]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
ldbl-opt: Add argp_error and argp_failure (bug 23983)
[thirdparty/glibc.git] / ChangeLog
1 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2
3 [BZ #23983]
4 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
6 * argp/bits/argp-ldbl.h: New file.
7 * include/argp.h: Include stdarg.h. Add prototypes for internal
8 functions: __argp_error_internal and __argp_failure_internal.
9 * include/bits/argp-ldbl.h: New file.
10 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
11 __nldbl_argp_error and __nldbl_argp_failure.
12 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
13 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
14 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
15 Redirect argp_error and argp_failure calls.
16 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
17 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18 Likewise.
19 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20 Likewise.
21 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22 Likewise.
23 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24 Likewise.
25 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
28
29 2019-03-01 Florian Weimer <fweimer@redhat.com>
30
31 [BZ #20419]
32 * elf/tst-big-note-lib.S: Create a syntactically valid note.
33 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
34 code, to avoid creating an ABI tag note.
35 (modules-names-nobuild): Add tst-big-note-lib.
36
37 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
38
39 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
40 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
41
42 2019-03-01 Florian Weimer <fweimer@redhat.com>
43
44 [BZ #20271]
45 * sysdeps/unix/sysv/linux/netlink_assert_response.c
46 (__netlink_assert_response): Add additional missing newlines.
47
48 2019-02-28 Joseph Myers <joseph@codesourcery.com>
49
50 * sysdeps/powerpc/powerpc32/dl-machine.c
51 (__elf_machine_fixup_plt): Use space before '('.
52 (__process_machine_rela): Likewise.
53 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
54 Likewise.
55 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
56 Likewise.
57 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
58 Likewise.
59 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
60 (pattern): Likewise.
61 (delta): Likewise.
62 (check_result): Likewise.
63 (check_excepts): Likewise.
64 (check_op): Likewise.
65 (fail_xr): Likewise.
66 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
67 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
68 (SCNHSZ): Likewise.
69 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
70 Likewise.
71 (ARGS): Likewise.
72 (__makecontext): Likewise.
73 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
74 Likewise.
75
76 2019-02-28 Florian Weimer <fweimer@redhat.com>
77
78 [BZ #23937]
79 elf: Add test with a local IFUNC resolver.
80 * elf/ifuncmain9.c: New file.
81 * elf/ifuncmain9pic.c: Likewise.
82 * elf/ifuncmain9picstatic.c: Likewise.
83 * elf/ifuncmain9pie.c: Likewise.
84 * elf/ifuncmain9static.c: Likewise.
85 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
86 ifuncmain9static, ifuncmain9picstatic.
87 * elf/Makefile [multi-arch && build-shared] (tests-internal):
88 Add ifuncmain9, ifuncmain9pic.
89 * elf/Makefile [multi-arch && build-shared && have-fpie]
90 (ifunc-pie-tests): Add ifuncmain9pie.
91 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
92 (CFLAGS-ifuncmain9picstatic.c): Likewise.
93 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
94
95 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
96
97 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
98 * configure: Regenerated.
99 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
100
101 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
102
103 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
104 symbol as __wcspcy instead of wcscpy.
105
106 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
107
108 * include/stdio.h (__renameat2): New hidden prototype.
109 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
110 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
111 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
112 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
113
114 2019-02-27 Joseph Myers <joseph@codesourcery.com>
115
116 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
117 if statement.
118
119 * benchtests/bench-strcpy.c (do_test): Use space before '('.
120 * benchtests/bench-string.h (cmdline_process_function): Likewise.
121 * benchtests/bench-strlen.c (do_test): Likewise.
122 (test_main): Likewise.
123 * catgets/gencat.c (read_old): Likewise.
124 * elf/cache.c (load_aux_cache): Likewise.
125 * iconvdata/bug-iconv8.c (do_test): Likewise.
126 * math/test-tgmath-ret.c (do_test): Likewise.
127 * nis/nis_call.c (rec_dirsearch): Likewise.
128 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
129 * nptl/tst-audit-threads.c (do_test): Likewise.
130 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
131 * nss/nss_test1.c (init): Likewise.
132 * nss/test-netdb.c (test_hosts): Likewise.
133 * posix/execvpe.c (maybe_script_execute): Likewise.
134 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
135 * stdio-common/tst-printf.c (do_test): Likewise.
136 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
137 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
138 * stdlib/qsort.c (STACK_SIZE): Likewise.
139 * stdlib/test-canon.c (do_test): Likewise.
140 * stdlib/tst-swapcontext1.c (do_test): Likewise.
141 * string/memcmp.c (OPSIZ): Likewise.
142 * string/test-strcpy.c (do_test): Likewise.
143 (do_random_tests): Likewise.
144 * string/test-strlen.c (do_test): Likewise.
145 (test_main): Likewise.
146 * string/test-strrchr.c (do_test): Likewise.
147 (do_random_tests): Likewise.
148 * string/tester.c (test_memrchr): Likewise.
149 (test_memchr): Likewise.
150 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
151 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
152 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
153 (read_encoded_value_with_base): Likewise.
154 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
155 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
156 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
157 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
158 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
159 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
160 Likewise.
161 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
162 Likewise.
163 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
164 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
165 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
166 Likewise.
167 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
168 Likewise.
169 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
170 Likewise.
171 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
172 Likewise.
173 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
174 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
175 (FP_XSTATE_MAGIC2_SIZE): Likewise.
176 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
177 * time/test_time.c (main): Likewise.
178
179 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
180
181 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
182
183 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
184 wmemcpy.
185
186 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
187 wmemcpy.
188
189 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
190
191 * include/wchar.h (__wcscpy): New prototype.
192 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
193 (__wcscpy): Route internal symbol to generic implementation.
194 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
195 Add internal __wcscpy alias.
196 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
197 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
198 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
199 * wcsmbs/wcscpy.c (wcscpy): Add
200 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
201 use generic implementation.
202 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
203
204 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
205 wmemset.
206
207 * sysdeps/m68k/wcpcpy.c: Remove file.
208 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
209
210 2019-02-26 Joseph Myers <joseph@codesourcery.com>
211
212 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
213 than after operators.
214 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
215 * sysdeps/mach/hurd/getcwd.c
216 (__hurd_canonicalize_directory_name_internal): Likewise.
217 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
218 (pthread_mutex_consistent): Likewise.
219 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
220 Likewise.
221 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
222 (__pthread_mutex_transfer_np): Likewise.
223 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
224 (__pthread_mutex_unlock): Likewise.
225 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
226 (mtx_owned_p): Likewise.
227 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
228 (pthread_mutexattr_getrobust): Likewise.
229 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
230 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
231 Likewise.
232 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
233 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
234 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
235 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
236 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
237 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
238 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
239 Likewise.
240 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
241 Likewise.
242 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
243 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
244 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
245 (____longjmp_chk): Likewise.
246 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
247 Likewise.
248 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
249 (INTERNAL_SYSCALL): Likewise.
250 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
251 (INTERNAL_SYSCALL): Likewise.
252 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
253 (__get_clockfreq_via_cpuinfo): Likewise.
254
255 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
256 comments.
257 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
258 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
259 (WORD_COPY_BWD): Likewise.
260 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
261 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
262 Likewise.
263 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
264 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
265 comment.
266 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
267
268 2019-02-25 Joseph Myers <joseph@codesourcery.com>
269
270 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
271 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
272 rather than after operators.
273 * elf/cache.c (print_cache): Likewise.
274 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
275 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
276 * hurd/hurdinit.c (_hurd_setproc): Likewise.
277 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
278 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
279 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
280 (reauth_proc): Likewise.
281 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
282 (__file_name_split_at): Likewise.
283 (__directory_name_split_at): Likewise.
284 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
285 * hurd/port2fd.c (_hurd_port2fd): Likewise.
286 * iconv/gconv_dl.c (do_print): Likewise.
287 * inet/netinet/in.h (struct sockaddr_in): Likewise.
288 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
289 * locale/setlocale.c (new_composite_name): Likewise.
290 * malloc/memusagestat.c (main): Likewise.
291 * misc/fstab.c (fstab_convert): Likewise.
292 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
293 Likewise.
294 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
295 (getgrent_next_file): Likewise.
296 (internal_getgrnam_r): Likewise.
297 (internal_getgrgid_r): Likewise.
298 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
299 Likewise.
300 (internal_getgrent_r): Likewise.
301 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
302 (getpwent_next_nss): Likewise.
303 (getpwent_next_file): Likewise.
304 (internal_getpwnam_r): Likewise.
305 (internal_getpwuid_r): Likewise.
306 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
307 Likewise.
308 (getspent_next_nss): Likewise.
309 (internal_getspnam_r): Likewise.
310 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
311 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
312 * string/strchr.c (STRCHR): Likewise.
313 * string/strchrnul.c (STRCHRNUL): Likewise.
314 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
315 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
316 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
317 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
318 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
319 Likewise.
320 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
321 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
322 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
323 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
324 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
325 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
326 (open_file): Likewise.
327 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
328 (pthread_mutexattr_setprotocol): Likewise.
329 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
330 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
331 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
332 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
333 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
334 Likewise.
335 (elf_machine_rela): Likewise.
336 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
337 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
338 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
339 * sysdeps/posix/rename.c (rename): Likewise.
340 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
341 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
342 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
343 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
344 * sysdeps/unix/grantpt.c (grantpt): Likewise.
345 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
346 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
347 Likewise.
348 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
349 Likewise.
350 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
351 * time/tzfile.c (__tzfile_compute): Likewise.
352
353 2019-02-22 Joseph Myers <joseph@codesourcery.com>
354
355 * benchtests/bench-memmem.c (simple_memmem): Break lines before
356 rather than after operators.
357 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
358 * crypt/md5.c (md5_finish_ctx): Likewise.
359 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
360 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
361 * elf/cache.c (load_aux_cache): Likewise.
362 * elf/dl-load.c (open_verify): Likewise.
363 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
364 * elf/readelflib.c (process_elf_file): Likewise.
365 * elf/rtld.c (dl_main): Likewise.
366 * elf/sprof.c (generate_call_graph): Likewise.
367 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
368 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
369 * hurd/dtable.c (reauth_dtable): Likewise.
370 * hurd/getdport.c (__getdport): Likewise.
371 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
372 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
373 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
374 Likewise.
375 * hurd/hurdioctl.c (fioctl): Likewise.
376 * hurd/hurdselect.c (_hurd_select): Likewise.
377 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
378 (STOPSIGS): Likewise.
379 * hurd/hurdstartup.c (_hurd_startup): Likewise.
380 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
381 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
382 * hurd/msgportdemux.c (msgport_server): Likewise.
383 * hurd/setauth.c (_hurd_setauth): Likewise.
384 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
385 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
386 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
387 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
388 * login/tst-utmp.c (do_check): Likewise.
389 (simulate_login): Likewise.
390 * mach/lowlevellock.h (lll_lock): Likewise.
391 (lll_trylock): Likewise.
392 * math/test-fenv.c (ALL_EXC): Likewise.
393 * math/test-fenvinline.c (ALL_EXC): Likewise.
394 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
395 * nis/nis_call.c (__do_niscall3): Likewise.
396 * nis/nis_callback.c (cb_prog_1): Likewise.
397 * nis/nis_defaults.c (searchaccess): Likewise.
398 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
399 * nis/nis_ismember.c (internal_ismember): Likewise.
400 * nis/nis_local_names.c (nis_local_principal): Likewise.
401 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
402 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
403 Likewise.
404 * nis/ypclnt.c (yp_match): Likewise.
405 (yp_first): Likewise.
406 (yp_next): Likewise.
407 (yp_master): Likewise.
408 (yp_order): Likewise.
409 * nscd/hstcache.c (cache_addhst): Likewise.
410 * nscd/initgrcache.c (addinitgroupsX): Likewise.
411 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
412 (internal_getpwuid_r): Likewise.
413 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
414 * posix/glob.h (__GLOB_FLAGS): Likewise.
415 * posix/regcomp.c (peek_token): Likewise.
416 (peek_token_bracket): Likewise.
417 (parse_expression): Likewise.
418 * posix/regexec.c (sift_states_iter_mb): Likewise.
419 (check_node_accept_bytes): Likewise.
420 * posix/tst-spawn3.c (do_test): Likewise.
421 * posix/wordexp-test.c (testit): Likewise.
422 * posix/wordexp.c (parse_tilde): Likewise.
423 (exec_comm): Likewise.
424 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
425 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
426 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
427 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
428 * stdio-common/tst-fileno.c (do_test): Likewise.
429 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
430 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
431 * stdlib/strtod_l.c (round_and_return): Likewise.
432 (____STRTOF_INTERNAL): Likewise.
433 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
434 * string/strcspn.c (STRCSPN): Likewise.
435 * string/test-memmem.c (simple_memmem): Likewise.
436 * termios/tcsetattr.c (tcsetattr): Likewise.
437 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
438 * time/asctime.c (asctime_internal): Likewise.
439 * time/strptime_l.c (__strptime_internal): Likewise.
440 * time/sys/time.h (timercmp): Likewise.
441 * time/tzfile.c (__tzfile_compute): Likewise.
442
443 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
444
445 [BZ #21915]
446 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
447
448 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
449
450 * argp/argp-help.c (__argp_error_internal): New function,
451 renamed from __argp_error, but that takes a 'mode_flags'
452 parameter to control the format of long double parameters.
453 (__argp_error): Converted into a call __argp_error_internal.
454 (__argp_failure_internal): New function, renamed from
455 __argp_failure, but that takes a 'mode_flags' parameter.
456 (__argp_failure): Converted into a call __argp_failure_internal.
457 * misc/err.c (__vwarnx_internal): New function, renamed from
458 vwarnx, but that takes a 'mode_flags' parameter.
459 (vwarnx): Converted into a call to __vwarnx_internal.
460 (__vwarn_internal): New function, renamed from vwarn, but that
461 takes a 'mode_flags' parameter.
462 (vwarn): Converted into a call to __vwarn_internal.
463 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
464 call to __vfxprintf with 'mode_flags'.
465 (__error_internal): New function, renamed from error, but that
466 takes a 'mode_flags' parameter.
467 (error): Converted into a call to __error_internal.
468 (__error_at_line_internal): New function, renamed from
469 error_at_line, but that takes a 'mode_flags' parameter.
470 (error_at_line): Converted into a call to
471 __error_at_line_internal.
472 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
473 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
474 Likewise.
475
476 2019-02-20 Martin Liska <mliska@suse.cz>
477
478 * math/Makefile: Install math-vector-fortran.h.
479 * bits/math-vector-fortran.h: New file.
480 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
481
482 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
483
484 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
485 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
486
487 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
488
489 * nptl/pthread_mutex_trylock.c: Fix comment.
490
491 2019-02-19 Carlos O'Donell <carlos@redhat.com>
492
493 * nptl/pthread_tryjoin.c: Fix comment.
494
495 2019-02-18 Joseph Myers <joseph@codesourcery.com>
496
497 [BZ #24231]
498 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
499 after R_SPARC_H34 case.
500
501 2019-02-18 Florian Weimer <fweimer@redhat.com>
502
503 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
504 (getanswer): Do not call Dprintf.
505 (res_gethostbyname2_context): Likewise.
506 (res_gethostbyaddr_context): Likewise.
507
508 2019-02-18 Florian Weimer <fweimer@redhat.com>
509
510 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
511 declaration.
512 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
513 Remove definitions.
514 * libio/stdfiles.c: Update comment.
515 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
516 set _IO_stdin, _IO_stdout, _IO_stderr.
517 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
518 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
519 inline function.
520 (_IO_deallocate_file): New inline function.
521 * libio/iolibio.h (_IO_vprintf): Remove definition.
522 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
523 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
524 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
525 _IO_legacy_file.
526 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
527 __builtin_expect. Use _IO_legacy_file.
528
529 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
530
531 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
532 Initialize ctid with a known value and remove update of ctid
533 after clone.
534 (wait_tid): Adjust arguments and call futex_wait with ctid_val
535 as assumed current value of ctid_ptr.
536
537 2019-02-15 Florian Weimer <fweimer@redhat.com>
538
539 Check that non-sysdeps headers have wrapper headers.
540 * scripts/check-wrapper-headers.py: New file.
541 * Makefile (tests-special): Add check-wrapper-headers.out.
542 (check-wrapper-headers.out): New target.
543 * Rules (tests-special): Add check-wrapper-headers.out.
544 (check-wrapper-headers.out): New target.
545
546 2019-02-15 Florian Weimer <fweimer@redhat.com>
547
548 Add missing header wrappers under include/.
549 * include/ar.h: New file.
550 * include/bits/mqueue2.h: Likewise.
551 * include/bits/stdio.h: Likewise.
552 * include/bits/stdio2.h: Likewise.
553 * include/fstab.h: Likewise.
554 * include/fts.h: Likewise.
555 * include/lastlog.h: Likewise.
556 * include/netinet/icmp6.h: Likewise.
557 * include/netinet/igmp.h: Likewise.
558 * include/netinet/ip6.h: Likewise.
559 * include/re_comp.h: Likewise.
560 * include/regexp.h: Likewise.
561 * include/rpcsvc/bootparam.h: Likewise.
562 * include/rpcsvc/yp_prot.h: Likewise.
563 * include/sys/random.h: Likewise.
564 * include/sys/stropts.h: Likewise.
565 * include/sys/ttychars.h: Likewise.
566 * include/sys/vfs.h: Likewise.
567 * include/wait.h: Likewise.
568
569 2019-02-15 Florian Weimer <fweimer@redhat.com>
570
571 * nptl_db/proc_service.h: Move to ...
572 * sysdeps/nptl/proc_service.h: ... here.
573 * nptl_db/thread_db.h: Move to ...
574 * sysdeps/nptl/thread_db.h: ... here.
575 * nptl/descr.h: Include <thread_db.h>.
576
577 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
578
579 * io/Makefile (tests): Add tst-lockf.
580 * io/lockf.c (lockf): Use __fcntl and only define for
581 !__OFF_T_MATCHES_OFF64_T.
582 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
583 __OFF_T_MATCHES_OFF64_T case.
584 * io/tst-lockf.c: New file.
585 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
586 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
587 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
588 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
589 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
590 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
591 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
592 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
593 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
594
595 2019-02-15 Florian Weimer <fweimer@redhat.com>
596
597 [BZ #24211]
598 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
599 pd->result after the thread descriptor has been freed.
600
601 2019-02-15 Joseph Myers <joseph@codesourcery.com>
602
603 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
604 from function return type.
605
606 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
607
608 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
609
610 * scripts/test_printers_common.py: Set TERM to a known harmless
611 value.
612
613 2019-02-14 Joseph Myers <joseph@codesourcery.com>
614
615 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
616 (xdr_u_int): Likewise.
617 (xdr_enum): Likewise.
618 (xdr_bytes): Reword fall-through comment.
619 (xdr_string): Likewise.
620
621 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
622
623 [BZ #2421]
624 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
625 (tests): Add tst-join8 tst-join9.
626 * nptl/lll_timedwait_tid.c: Remove file.
627 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
628 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
629 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
630 * nptl/pthread_join_common.c (timedwait_tid): New function.
631 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
632 is set.
633 * nptl/tst-join5.c (thread_join): New function.
634 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
635 check.
636 * nptl/tst-join8.c: New file.
637 * nptl/tst-join9.c: Likewise.
638 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
639 lll_futex_timed_wait_cancel): Add generic macros.
640 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
641 Remove definitions.
642 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
643 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
644 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
645 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
646 Remove function.
647 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
648 Likewise.
649 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
650 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
651 (lll_futex_timed_wait_cancel): New macro.
652
653 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
654
655 * benchtests/Makefile: Add malloc-simple benchmark.
656 * benchtests/bench-malloc-simple.c: New benchmark.
657
658 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
659
660 * benchtests/bench-memmove.c (do_one_test): Remove unused
661 ORIG_SRC.
662 (do_test): Adjust.
663 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
664 ORIG_SRC.
665 (do_test): Adjust.
666
667 2019-01-13 Jim Wilson <jimw@sifive.com>
668
669 [BZ #24040]
670 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
671 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
672 (func): New.
673 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
674 call func directly.
675 * nptl/Makefile (tests): Add tst-unwind-thread.
676 (CFLAGS-tst-unwind-thread.c): Define.
677 * nptl/tst-unwind-thread.c: New file.
678 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
679 as undefined.
680
681 2019-02-13 Joseph Myers <joseph@codesourcery.com>
682
683 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
684 comment wording.
685 * nis/nis_call.c (__do_niscall3): Likewise.
686
687 * catgets/gencat.c (normalize_line): Use braces around empty
688 'else' body.
689 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
690 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
691 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
692 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
693 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
694 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
695 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
696 definition.
697
698 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
699 execlp returns.
700
701 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
702
703 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
704 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
705 * benchtests/bench-strchr.c (stupid_strchr): Remove.
706 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
707 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
708 * benchtests/bench-strlen.c (builtin_strlen): Remove.
709 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
710 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
711 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
712 * benchtests/bench-strspn.c (stupid_strspn): Remove.
713 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
714 * benchtests/bench-bcopy.c: Delete file.
715 * benchtests/bench-bzero.c: Likewise.
716 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
717 (simple_memccpy): Remove.
718 (generic_memccpy): Add function.
719 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
720 * benchtests/bench-memmove.c (simple_bcopy): Remove.
721 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
722 (generic_mempcpy): Add new function.
723 * benchtests/bench-memset.c (simple_bzero): Remove.
724 (builtin_bzero): Remove.
725 (builtin_memset): Remove.
726 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
727 (generic_rawmemchr): Add new function.
728
729 2019-02-12 Florian Weimer <fweimer@redhat.com>
730
731 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
732
733 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
734
735 [BZ #24122]
736 * elf/Makefile (tests): Add tst-audit13.
737 (modules-names): Add tst-audit13mod1.
738 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
739 rule.
740 * elf/tst-audit13.c: New file.
741 * elf/tst-audit13mod1.c: Likewise.
742
743 2019-02-12 Florian Weimer <fweimer@redhat.com>
744
745 [BZ #24122]
746 * elf/rtld.c (unload_audit_module): New function.
747 (report_audit_module_load_error): Likewise.
748 (load_audit_module): Likewise. Extracted from dl_main. Call
749 _dl_close if the laversion symbol cannot be found. Use early
750 returns for error handling. Add malloc error check. Check for a
751 zero return value from la_version. Remove spurious comment about
752 static TLS initialization. Remove useless casts.
753 (notify_audit_modules_of_loaded_object): New function. Extracted
754 from dl_main.
755 (load_audit_module): Likewise.
756 (dl_main): Call load_audit_modules.
757
758 2019-02-12 Joseph Myers <joseph@codesourcery.com>
759
760 * elf/dl-exception.c (_dl_exception_create_format): Add
761 fall-through comments.
762 * elf/ldconfig.c (parse_conf_include): Likewise.
763 * elf/rtld.c (print_statistics): Likewise.
764 * locale/programs/charmap.c (parse_charmap): Likewise.
765 * misc/mntent_r.c (__getmntent_r): Likewise.
766 * posix/wordexp.c (parse_arith): Likewise.
767 (parse_backtick): Likewise.
768 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
769 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
770 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
771
772 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
773
774 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
775 Use float instead of double.
776
777 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
778
779 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
780
781 2019-02-08 Joseph Myers <joseph@codesourcery.com>
782
783 * sysdeps/powerpc/bits/mathinline.h: Remove.
784
785 2019-02-08 Florian Weimer <fweimer@redhat.com>
786
787 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
788 * math/bits/math-finite.h: Move to ...
789 * bits/math-finite.h: ... here.
790
791 2019-02-08 Florian Weimer <fweimer@redhat.com>
792
793 * sysdeps/generic/bits/unistd_ext.h: Move to ...
794 * bits/unistd_ext.h: here.
795
796 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
797
798 [BZ #21915]
799 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
800 * nss/tst-nss-files-hosts-long.c: New file.
801 * nss/tst-nss-files-hosts-long.root: New directory.
802 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
803 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
804
805 2019-02-08 Florian Weimer <fweimer@redhat.com>
806
807 * include/bits/unistd_ext.h: Remove file.
808 * posix/bits/unistd_ext.h: Move to ...
809 * sysdeps/generic/bits/unistd_ext.h: ... here.
810
811 2019-02-08 Florian Weimer <fweimer@redhat.com>
812
813 * include/bits/unistd_ext.h: New file.
814
815 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
816
817 * time/tst-strftime2.c: Use array_length macros instead of magic
818 numbers.
819
820 2019-02-08 Florian Weimer <fweimer@redhat.com>
821
822 [BZ #24161]
823 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
824 argument.
825 * nptl/register-atfork.c (__run_fork_handlers): Only perform
826 locking if the new do_locking argument is true.
827 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
828 __run_fork_handlers.
829
830 2019-02-08 Florian Weimer <fweimer@redhat.com>
831
832 [BZ #6399]
833 Linux: Add gettid system call wrapper.
834 * posix/Makefile (headers): Add bits/unistd_ext.h.
835 * posix/bits/unistd_ext.h: New file.
836 * posix/unistd.h: Include it.
837 * manual/process.texi (Process Identification): Document gettid.
838 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
839 tst-gettid, tst-gettid-kill.
840 (tst-gettid): Link with $(shared-thread-library).
841 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
842 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
843 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
844 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
845 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
846 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
847 Add gettid.
848 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
849 Likewise.
850 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
851 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
852 Likewise.
853 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
854 Likewise.
855 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
856 Likewise.
857 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
858 Likewise.
859 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
860 Likewise.
861 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
862 Likewise.
863 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
864 Likewise.
865 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
866 (GLIBC_2.30): Likewise.
867 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
868 (GLIBC_2.30): Likewise.
869 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
870 (GLIBC_2.30): Likewise.
871 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
872 (GLIBC_2.30): Likewise.
873 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
874 Likewise.
875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
876 (GLIBC_2.30): Likewise.
877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
878 (GLIBC_2.30): Likewise.
879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
880 (GLIBC_2.30): Likewise.
881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
882 (GLIBC_2.30): Likewise.
883 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
884 Likewise.
885 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
886 Likewise.
887 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
888 Likewise.
889 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
890 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
891 Likewise.
892 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
893 Likewise.
894 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
895 Likewise.
896 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
897 Likewise.
898 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
899
900 2019-02-07 Florian Weimer <fweimer@redhat.com>
901
902 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
903 compatibility symbols.
904
905 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
906
907 [BZ #24180]
908 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
909 Add compiler barriers and comments.
910
911 2019-02-07 Florian Weimer <fweimer@redhat.com>
912
913 * include/array_length.h (array_length): Do not use a statement
914 expression and _Static_assert, so that array_length can be used at
915 file scope and as a constant expression.
916
917 2019-02-07 Florian Weimer <fweimer@redhat.com>
918
919 * support/xdlfcn.h (xdlmopen): Declare.
920 * support/xdlmopen.c: New file.
921 * support/Makefile (libsupport-routines): Add xdlmopen.
922
923 2019-02-06 Joseph Myers <joseph@codesourcery.com>
924
925 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
926 before return type, without separate inline.
927 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
928 * elf/dl-tunables.h (tunable_is_name): Likewise.
929 * malloc/malloc.c (do_set_trim_threshold): Likewise.
930 (do_set_top_pad): Likewise.
931 (do_set_mmap_threshold): Likewise.
932 (do_set_mmaps_max): Likewise.
933 (do_set_mallopt_check): Likewise.
934 (do_set_perturb_byte): Likewise.
935 (do_set_arena_test): Likewise.
936 (do_set_arena_max): Likewise.
937 (do_set_tcache_max): Likewise.
938 (do_set_tcache_count): Likewise.
939 (do_set_tcache_unsorted_limit): Likewise.
940 * nis/nis_subr.c (count_dots): Likewise.
941 * nptl/allocatestack.c (advise_stack_range): Likewise.
942 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
943 (do_sin): Likewise.
944 (reduce_sincos): Likewise.
945 (do_sincos): Likewise.
946 * sysdeps/unix/sysv/linux/x86/elision-conf.c
947 (do_set_elision_enable): Likewise.
948 (TUNABLE_CALLBACK_FNDECL): Likewise.
949
950 2019-02-06 Florian Weimer <fweimer@redhat.com>
951
952 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
953 (xdlsym): Use dlerror to detect a NULL symbol.
954
955 2019-02-06 Florian Weimer <fweimer@redhat.com>
956
957 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
958 <stap-probe.h>.
959 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
960
961 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
962
963 * libio/tst-bz24153.c (wide): Use wide char format specifier.
964
965 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
966
967 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
968 __wmemcmp and weak alias to wmemcmp.
969
970 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
971
972 [BZ #23403]
973 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
974 TLS_TCB_AT_TP tls variant.
975 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
976 Add alignment checks.
977 * support/Makefile (libsupport-routines): Add xposix_memalign and
978 xpthread_setstack.
979 * support/support.h: Add xposix_memalign.
980 * support/xthread.h: Add xpthread_attr_setstack.
981 * support/xposix_memalign.c: New File.
982 * support/xpthread_attr_setstack.c: Likewise.
983
984 2019-02-05 Florian Weimer <fweimer@redhat.com>
985
986 [BZ #24164]
987 arm: Use "nr" constraint for Systemtap probes, to avoid the
988 compiler using memory operands for constants, due to the "o"
989 alternative in the default "nor" constraint.
990 * include/stap-probe.h [USE_STAP_PROBE]: Include
991 <stap-probe-machine.h>
992 * sysdeps/generic/stap-probe-machine.h: New file.
993 * sysdeps/arm/stap-probe-machine.h: Likewise.
994
995 2019-02-04 Joseph Myers <joseph@codesourcery.com>
996
997 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
998 with 0, not tcache->entries[tc_idx].
999
1000 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1001 once.
1002
1003 2019-02-04 Andreas Schwab <schwab@suse.de>
1004
1005 [BZ #16976]
1006 [BZ #17396]
1007 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1008 looking up collating elements match against (wide) character
1009 sequence instead of name. Correct alignment adjustment.
1010 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1011 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1012 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1013 (LOCALES): Add cs_CZ.ISO-8859-2.
1014 * posix/tst-fnmatch4.c: New file.
1015 * posix/tst-fnmatch5.c: New file.
1016 * include/wchar.h (__wmemcmp): Declare.
1017 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1018 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1019 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1020 * sysdeps/s390/wmemcmp.c: Likewise.
1021
1022 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1023
1024 [BZ #24155]
1025 CVE-2019-7309
1026 * NEWS: Updated for CVE-2019-7309.
1027 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1028 upper 32 bits of RDX register for x32. Use unsigned Jcc
1029 instructions, instead of signed.
1030 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1031 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1032
1033 2019-02-04 Florian Weimer <fweimer@redhat.com>
1034
1035 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1036 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1037 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1038 Likewise.
1039 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1040 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1041 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1042 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1043 Likewise.
1044 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1045 Likewise.
1046 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1047 Likewise.
1048 (posix_spawn_file_actions_addopen): Likewise.
1049 (posix_spawn_file_actions_addclose): Likewise.
1050 (posix_spawn_file_actions_adddup2): Likewise.
1051 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1052 qualifiers.
1053 (posix_spawn_file_actions_addfchdir_np): Likewise.
1054
1055 2019-02-04 David Newall <glibc@davidnewall.com>
1056
1057 elf: Implement --preload option for the dynamic linker.
1058 * elf/rtld.c (preloadarg): New variable.
1059 (handle_preload_list): Pass through “where” argument to
1060 do_preload.
1061 (dl_main): Handle "--preload" and add second call to
1062 handle_preload_list.
1063 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1064 (tst-rtld-preload-OBJS): Set variable.
1065 (tst-rtld-preload.out): New target.
1066 * elf/tst-rtld-preload.sh: New file.
1067
1068 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1069
1070 * Makefile (testrun.sh): Exit in case of incorrect argument.
1071
1072 2019-02-04 Florian Weimer <fweimer@redhat.com>
1073
1074 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1075 alignment gaps.
1076
1077 2019-02-03 Florian Weimer <fweimer@redhat.com>
1078
1079 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1080 implicit overflow checks.
1081
1082 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1083
1084 * stdlib/isomac.c: Include <unistd.h>.
1085
1086 2019-02-03 Florian Weimer <fweimer@redhat.com>
1087
1088 * include/time.h (__tzfile_default): Use int, not long int, for
1089 the GMT offsets.
1090 * time/tzfile.c (struct ttinfo): Change type of the offset member
1091 to int.
1092 (__tzfile_read): Remove useless cast.
1093 (__tzfile_default): Adjust prototype.
1094 * time/tzset.c (tz_rule): Change type of the offset member to int.
1095 (parse_offset): Change the type of the sign variable to int.
1096
1097 2019-02-03 Florian Weimer <fweimer@redhat.com>
1098
1099 [BZ #24153]
1100 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1101 * libio/getchar.c (getchar): Likewise.
1102 * libio/getchar_u.c (getchar_unlocked): Likewise.
1103 * libio/getwchar.c (getwchar): Likewise.
1104 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1105 * libio/iogets.c (_IO_gets): Likewise.
1106 * libio/vscanf.c (_IO_vscanf): Likewise.
1107 * libio/vwscanf.c (__vwscanf): Likewise.
1108 * libio/tst-bz24153.c: New file.
1109 * libio/Makefile (tests): Add it.
1110
1111 2019-02-02 Florian Weimer <fweimer@redhat.com>
1112
1113 [BZ #14829]
1114 * manual/resource.texi (Basic Scheduling Functions): Add
1115 portability note. Change process to task throughout the section.
1116 Remove incorrect comment about sched_yield as it affects
1117 tasks/threads, not entire processes.
1118 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1119 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1120
1121 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1122
1123 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1124 * configure: Regenerated.
1125 * manual/install.texi (Tools for Compilation): Update minimum GCC
1126 version.
1127 * INSTALL: Regenerated.
1128
1129 2019-02-01 Florian Weimer <fweimer@redhat.com>
1130
1131 * support/support_test_compare_string.c
1132 (support_test_compare_string): Use "string" in error message.
1133 * support/tst-test_compare_string.c (do_test): Adjust.
1134
1135 2019-02-01 Florian Weimer <fweimer@redhat.com>
1136
1137 * support/support_format_address_family.c
1138 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1139
1140 2019-02-01 Florian Weimer <fweimer@redhat.com>
1141
1142 * manual/socket.texi (Internet Address Formats): Clarify the byte
1143 order of struct sockaddr_in, struct sockaddr_in6. Document
1144 sin6_flowinfo and sin6_scope_id.
1145
1146 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1147
1148 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1149 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1150 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1151 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1152 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1153 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1154
1155 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1156
1157 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1158 [!MEMCHR](MEMCHR): Set to __memchr.
1159 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1160 Add memchr_generic and memchr_nosimd.
1161 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1162 (__libc_ifunc_impl_list): Add memchr ifuncs.
1163 * sysdeps/aarch64/multiarch/memchr.c: New file.
1164 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1165 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1166
1167 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1168
1169 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1170 Add memset_emag.
1171 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1172 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1173 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1174 Add IS_EMAG check for ifunc dispatch.
1175 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1176 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1177
1178 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1179
1180 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1181 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1182 Add emag.
1183 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1184 New macro.
1185
1186 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1187
1188 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1189
1190 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1191
1192 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1193 syscall-template file.
1194
1195 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1196 Torvald Riegel <triegel@redhat.com>
1197 Rik Prohaska <prohaska7@gmail.com>
1198
1199 [BZ# 23844]
1200 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1201 tst-rwlock-trywrlock-stall.
1202 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1203 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1204 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1205 Set __wrphase_fute to 1 only if we started the write phase.
1206 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1207 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1208 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1209 * support/xpthread_rwlock_destroy.c: New file.
1210 * support/xthread.h: Declare xpthread_rwlock_destroy.
1211
1212 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1213
1214 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1215 version to 4.0.2.
1216
1217 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1218
1219 [BZ #24051]
1220 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1221 * libio/fileops.c (_IO_new_file_underflow): Likewise
1222 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1223 * libio/putchar.c (putchar): Likewise.
1224 * libio/putchar_u.c (putchar_unlocked): Likewise.
1225 * libio/putwchar.c (putchar): Likewise.
1226 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1227 * libio/tst-bz24051.c: New test.
1228 * libio/Makefile (tests): Add tst-bz24051
1229
1230 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1231
1232 regex: fix read overrun [BZ #24114]
1233 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1234 https://debbugs.gnu.org/34140
1235 * posix/regexec.c (proceed_next_node):
1236 Do not read past end of input buffer.
1237
1238 2019-01-31 Florian Weimer <fweimer@redhat.com>
1239
1240 [BZ #24059]
1241 * nss/nss_files/files-alias.c (get_next_alias): Handle
1242 continuation line without newline at the end.
1243 * nss/tst-nss-files-alias-truncated.c: New file.
1244 * nss/Makefile [$(build-shared)] (tests): Add
1245 tst-nss-files-alias-truncated.
1246 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1247 * support/namespace.h (struct support_chroot_configuration): Add
1248 aliases member.
1249 (struct support_chroot): Add path_aliases member.
1250 * support/support_chroot.c (support_chroot_create): Handle
1251 aliases.
1252 (support_chroot_free): Free path_aliases.
1253
1254 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1255
1256 * version.h (RELEASE): Set to "development".
1257 (VERSION): Set to "2.29.9000".
1258 * NEWS: Add section for 2.30.
1259
1260 * version.h (RELEASE): Set to "stable".
1261 (VERSION): Set to "2.29".
1262 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1263
1264 * NEWS: Add the list of bugs fixed in 2.29.
1265 * manual/contrib.texi: Update contributors list with some more
1266 names.
1267 * manual/install.texi: Update latest versions of packages
1268 tested.
1269 * INSTALL: Regenerated.
1270
1271 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1272
1273 * po/be.po: Update translations.
1274 * po/bg.po: Likewise.
1275 * po/ca.po: Likewise.
1276 * po/cs.po: Likewise.
1277 * po/da.po: Likewise.
1278 * po/de.po: Likewise.
1279 * po/el.po: Likewise.
1280 * po/eo.po: Likewise.
1281 * po/es.po: Likewise.
1282 * po/fi.po: Likewise.
1283 * po/fr.po: Likewise.
1284 * po/gl.po: Likewise.
1285 * po/hr.po: Likewise.
1286 * po/hu.po: Likewise.
1287 * po/ia.po: Likewise.
1288 * po/id.po: Likewise.
1289 * po/it.po: Likewise.
1290 * po/ja.po: Likewise.
1291 * po/ko.po: Likewise.
1292 * po/lt.po: Likewise.
1293 * po/nb.po: Likewise.
1294 * po/nl.po: Likewise.
1295 * po/pl.po: Likewise.
1296 * po/pt_BR.po: Likewise.
1297 * po/ru.po: Likewise.
1298 * po/rw.po: Likewise.
1299 * po/sk.po: Likewise.
1300 * po/sl.po: Likewise.
1301 * po/sv.po: Likewise.
1302 * po/tr.po: Likewise.
1303 * po/uk.po: Likewise.
1304 * po/vi.po: Likewise.
1305 * po/zh_CN.po: Likewise.
1306 * po/zh_TW.po: Likewise.
1307
1308 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1309
1310 [BZ #24130]
1311 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1312 of $f3 register on $y_is_neg path.
1313
1314 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1315
1316 [BZ #24110]
1317 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1318 sigaltstack.ss_flags.
1319
1320 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1321
1322 [BZ #23758]
1323 * manual/time.texi (strftime): Document "%Ey".
1324 * time/strftime_l.c (__strftime_internal): Set the default width
1325 padding with zero of "%Ey" to 2.
1326
1327 [BZ #24096]
1328 * manual/time.texi (strftime): Document "%EC" and "%EY".
1329 * time/Makefile (tests): Add tst-strftime2.
1330 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1331 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1332 override padding for "%Ey".
1333 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1334 "%Ey" in the subformat as if decorated with that flag.
1335 * time/tst-strftime2.c: New file.
1336
1337 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1338
1339 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1340 are not defined.
1341
1342 [BZ #24122]
1343 * elf/Makefile (tests): Add tst-audit13.
1344 (modules-names): Add tst-audit13mod1.
1345 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1346 rule.
1347 * elf/rtld.c (dl_main): Handle invalid audit module version.
1348 * elf/tst-audit13.c: New file.
1349 * elf/tst-audit13mod1.c: Likewise.
1350
1351 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1352
1353 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1354 returned by __hurd_at_flags.
1355 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1356 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1357 directly instead of __hurd_file_name_lookup.
1358
1359 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1360
1361 * scripts/build-many-glibcs.py (Context.checkout): Default
1362 binutils version to 2.32 branch.
1363
1364 2019-01-21 Florian Weimer <fweimer@redhat.com>
1365
1366 [BZ #20018]
1367 CVE-2016-10739
1368 resolv: Reject trailing characters in host names
1369 * include/arpa/inet.h (__inet_aton_exact): Declare.
1370 (inet_aton): Remove hidden prototype. No longer used internally.
1371 * nscd/gai.c (__inet_aton): Do not define.
1372 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1373 * nss/digits_dots.c (__inet_aton): Likewise.
1374 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1375 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1376 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1377 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1378 (tst-resolv-trailing): Likewise.
1379 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1380 libc.
1381 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1382 Make static. Add endp parameter.
1383 (__inet_aton_exact): New function.
1384 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1385 (__inet_addr): Call inet_aton_end.
1386 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1387 not just IPv6. Call __inet_aton_exact.
1388 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1389 (tests): Make const. Add additional test cases with trailing
1390 characters.
1391 (do_test): Use array_length.
1392 * resolv/tst-inet_aton_exact.c: New file.
1393 * resolv/tst-resolv-trailing.c: Likewise.
1394 * resolv/tst-resolv-nondecimal.c: Likewise.
1395 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1396
1397 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1398
1399 [BZ# 24097]
1400 CVE-2019-6488
1401 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1402 Clear the upper 32 bits of RSI register.
1403 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1404 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1405 and tst-size_t-wcsnlen.
1406 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1407 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1408
1409 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1410
1411 [BZ# 24097]
1412 CVE-2019-6488
1413 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1414 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1415 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1416 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1417 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1418
1419 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 [BZ# 24097]
1422 CVE-2019-6488
1423 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1424 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1425 * sysdeps/x86_64/strcmp.S: Likewise.
1426 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1427 tst-size_t-strncmp and tst-size_t-wcsncmp.
1428 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1429 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1430 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1431
1432 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1433
1434 [BZ# 24097]
1435 CVE-2019-6488
1436 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1437 RDX_LP for length. Clear the upper 32 bits of RDX register.
1438 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1439 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1440 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1441 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1442
1443 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1444
1445 [BZ# 24097]
1446 CVE-2019-6488
1447 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1448 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1449 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1450 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1451
1452 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1453
1454 [BZ# 24097]
1455 CVE-2019-6488
1456 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1457 length. Clear the upper 32 bits of RDX register.
1458 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1459 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1460 Likewise.
1461 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1462 Likewise.
1463 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1464 tst-size_t-wmemchr.
1465 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1466
1467 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1468
1469 [BZ# 24097]
1470 CVE-2019-6488
1471 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1472 length. Clear the upper 32 bits of RDX register.
1473 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1474 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1475 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1476 tst-size_t-wmemcmp.
1477 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1478 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1479
1480 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1481
1482 [BZ# 24097]
1483 CVE-2019-6488
1484 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1485 upper 32 bits of RDX register.
1486 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1487 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1488 tst-size_t-wmemchr.
1489 * sysdeps/x86_64/x32/test-size_t.h: New file.
1490 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1491 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1492
1493 2019-01-18 Florian Weimer <fweimer@redhat.com>
1494
1495 [BZ #24112]
1496 resolv: Do not send queries for non-host-names in nss_dns.
1497 * resolv/nss_dns/dns-host.c (check_name): New function.
1498 (_nss_dns_gethostbyname2_r): Use it.
1499 (_nss_dns_gethostbyname_r): Likewise.
1500 (_nss_dns_gethostbyname4_r): Likewise.
1501
1502 2019-01-21 Florian Weimer <fweimer@redhat.com>
1503
1504 * resolv/inet_addr.c: Reformat to GNU style.
1505 (__inet_addr, __inet_aton): Update comment.
1506
1507 2019-01-18 Florian Weimer <fweimer@redhat.com>
1508
1509 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1510 ("malloc: Use current (C11-style) atomics for fastbin access").
1511 This commit introduces a substantial performance regression on
1512 POWER and Aarch64.
1513 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1514 (REMOVE_FB): Define.
1515 (_int_malloc): Use it and reindent.
1516 (_int_free): Use CAS loop with
1517 catomic_compare_and_exchange_val_rel.
1518 (malloc_consolidate): Use atomic_exchange_acq.
1519
1520
1521 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1522
1523 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1524 -Wl,-z,now.
1525 (LDFLAGS-tst-minsigstksz-2): Likewise.
1526 (LDFLAGS-tst-minsigstksz-3): Likewise.
1527 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1528 (LDFLAGS-tst-minsigstksz-4): Likewise.
1529
1530 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1531
1532 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1533 than "alternate".
1534
1535 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1536
1537 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1538
1539 2019-01-16 Zack Weinberg <zackw@panix.com>
1540
1541 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1542 (xget_sigstack_location): New test support functions.
1543 * support/xsigstack.c: New file, implementing them.
1544 * support/tst-xsigstack.c: New test for them.
1545 * support/Makefile: Update.
1546
1547 * signal/tst-minsigstksz-1.c
1548 * signal/tst-minsigstksz-2.c
1549 * signal/tst-minsigstksz-3.c
1550 * signal/tst-minsigstksz-3a.c
1551 * signal/tst-minsigstksz-4.c: New tests.
1552 * signal/Makefile: Run them.
1553
1554 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1555
1556 * po/libc.pot: Regenerate.
1557
1558 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1559
1560 * math/libm-test-fma.inc (fma_test_data): Set
1561 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1562
1563 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1564
1565 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1566 (do_test): Changed __vector __int128_t to __vector unsigned int.
1567
1568 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1569
1570 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1571 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1572 stpcpy-avx2 and stpncpy-avx2.
1573 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1574 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1575 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1576 and __stpncpy_avx2.
1577 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1578 ifunc-strcpy.h}: rename header for a more generic name.
1579 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1580 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1581 AVX unaligned load is fast and vzeroupper is preferred.
1582 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1583 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1584 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1585 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1586 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1587 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1588
1589 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1590
1591 * argp/argp-help.c: Fix typo in comment.
1592 * misc/sys/cdefs.h: Likewise.
1593 * posix/regexec.c (sift_states_iter_mb): Likewise.
1594 * socket/sockatmark.c: Likewise.
1595 * socket/sys/socket.h: Likewise.
1596 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1597 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1598 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1599 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1600 * sysdeps/unix/sockatmark.c: Likewise.
1601 * time/strptime_l.c: Likewise.
1602
1603 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1604
1605 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1606 missing space after the cast of "_NL_CURRENT".
1607
1608 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1609
1610 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1611 ifdef to fix read of VSCR.
1612 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1613 tst-ucontext-ppc64-vscr.c to test list.
1614 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1615
1616 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1617
1618 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1619 fall-through.
1620
1621 2019-01-09 Jim Wilson <jimw@sifive.com>
1622
1623 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1624
1625 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1626
1627 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1628 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1629 __memcpy_falkor for ares.
1630 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1631 Add new define.
1632 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1633 Add ares cpu.
1634
1635 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1636
1637 [BZ #24066]
1638 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1639 4_FP_W_TYPEs are used for IEEE quad precision.
1640 * soft-fp/extendhftf2.c: Likewise.
1641 * soft-fp/extendsftf2.c: Likewise.
1642 * soft-fp/extendxftf2.c: Likewise.
1643 * soft-fp/trunctfdf2.c: Likewise.
1644 * soft-fp/trunctfhf2.c: Likewise.
1645 * soft-fp/trunctfsf2.c: Likewise.
1646 * soft-fp/trunctfxf2.c: Likewise.
1647 * sysdeps/alpha/ots_cvttx.c: Likewise.
1648 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1649 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1650 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1651 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1652 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1653 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1654 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1655 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1656 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1657 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1658 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1659 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1660 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1661 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1662 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1663 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1664 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1665
1666 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1667
1668 [BZ #24024]
1669 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1670 code with -fmath-errno.
1671 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1672 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1673 * string/test-strerror-errno.c: New file.
1674
1675 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1676
1677 [BZ #24046]
1678 * localedata/locales/en_US (date_fmt): Add, set to
1679 "%a %d %b %Y %r %Z".
1680
1681 2019-01-07 Florian Weimer <fweimer@redhat.com>
1682
1683 [BZ #24063]
1684 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1685 instead of @var{errno}.
1686 (Parsing of Integers): Likewise.
1687 (Parsing of Floats): Likewise.
1688 * manual/filesys.texi (Working with Directory Trees): Likewise.
1689 (Temporary Files): Likewise.
1690 * manual/job.texi (Terminal Access Functions): Likewise.
1691 * manual/llio.texi (Synchronizing I/O): Likewise.
1692 * manual/math.texi (SVID Random): Likewise.
1693 * manual/message.texi (The catgets Functions): Likewise.
1694 (Translation with gettext): Likewise.
1695 (Locating gettext catalog): Likewise.
1696 (Charset conversion in gettext): Likewise.
1697 * manual/nss.texi (NSS Module Function Internals): Likewise.
1698 * manual/search.texi (Hash Search Function): Likewise.
1699 * manual/setjmp.texi (System V contexts): Likewise.
1700 * manual/time.texi (Sleeping): Likewise.
1701 * manual/users.texi (Lookup User): Likewise.
1702 (Lookup Group): Likewise.
1703
1704 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1705
1706 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1707 fix typo.
1708
1709 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1710
1711 [BZ #19444]
1712 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1713 __builtin_unreachable for default case in switch.
1714 (__ieee754_yn): Likewise.
1715 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1716 (__ieee754_ynl): Likewise.
1717 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1718 (__ieee754_ynl): Likewise.
1719 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1720 (__ieee754_ynl): Likewise.
1721
1722 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1723
1724 * manual/maint.texi: Use @{ and @}.
1725
1726 2019-01-04 Florian Weimer <fweimer@redhat.com>
1727
1728 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1729 function.
1730 (do_in_chroot_1): Call it.
1731 (run_chroot_tests):
1732 Improve error reporting in case it is not possible to create a
1733 collision for the PTY name required by the test.
1734
1735 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1736
1737 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1738 lll_wait_tid with timeout.
1739 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1740 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1741 futex_reltimed_wait_cancelable for cancelabla mode.
1742 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1743 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1744 macros.
1745 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1746 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1747 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1748 SYSCALL_CANCEL_NCS): New macro.
1749 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1750 (lll_timedwait_tid): Remove macro.
1751 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1752 Likewise.
1753 (lll_timedwait_tid): Likewise.
1754 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1755 Likewise.
1756 (lll_timedwait_tid): Likewise.
1757 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1758 Likewise.
1759 (lll_timedwait_tid): Likewise.
1760 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1761 Use INTERNAL_SYSCALL_CANCEL.
1762 * sysdeps/unix/sysv/linux/futex-internal.h
1763 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1764 instead of __pthread_{enable,disable}_asynccancel.
1765 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1766 (lll_futex_wait_cancel): New macro.
1767
1768 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1769 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1770
1771 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1772 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1773
1774 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1775 in backtrace analysis.
1776 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1777 side-effects.
1778 (tf_send): Likewise.
1779
1780 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1781 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1782 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1783 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1784 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1785 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1786 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1787 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1788 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1789 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1790 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1791 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1792 Likewise.
1793 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1794 tst-cancel-wrappers.sh.
1795 (generated): Remove tst-cancel-wrappers.out.
1796 (tst-cancel-wrappers.out): Remove rule.
1797 * nptl/tst-cancel-wrappers.sh: Remove file.
1798
1799 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1800
1801 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1802 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1803 Update.
1804
1805 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1806
1807 [BZ #23640]
1808 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1809 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1810 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1811 close-on-exec reset for adddup2 file action.
1812 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1813
1814 2019-01-03 Zack Weinberg <zackw@panix.com>
1815
1816 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1817 parameter. Only use deprecated scanf when __USE_GNU is defined
1818 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1819 than 201103L, whichever is relevant for the language being compiled.
1820
1821 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1822 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1823 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1824 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1825 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1826
1827 * libio/iovsscanf.c
1828 * libio/fwscanf.c
1829 * libio/iovswscanf.c
1830 * libio/swscanf.c
1831 * libio/vscanf.c
1832 * libio/vwscanf.c
1833 * libio/wscanf.c
1834 * stdio-common/fscanf.c
1835 * stdio-common/scanf.c
1836 * stdio-common/vfscanf.c
1837 * stdio-common/vfwscanf.c
1838 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1839 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1840 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1841 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1842 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1843 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1844 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1845 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1846 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1847 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1848 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1849 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1850 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1851 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1852 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1853
1854 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1855 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1856 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1857 not sscanf.
1858 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1859 with a preprocessor macro.
1860
1861 * stdio-common/bug21.c, stdio-common/scanf14.c:
1862 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1863 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1864 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1865 to xscanf, xfscanf, xsscanf.
1866
1867 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1868 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1869 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1870 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1871 xfscanf, xsscanf.
1872 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1873 override feature selection macros or provide definitions of u_char etc.
1874 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1875 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1876 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1877 with -std=gnu89.
1878
1879 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1880
1881 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1882 bits/termios-misc.h.
1883 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1884 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1885 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1886 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1887 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1888 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1889
1890 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1891 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1892 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1893 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1894 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1895 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1896 termios-misc.h.
1897 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1898 (sysdep_headers): Add termios-misc.h.
1899
1900 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1901 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1902 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1903
1904 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1905 termios-tcflow.h.
1906 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1907 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1908 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1909 TCSAFLUSH): Move to termios-tcflow.h.
1910 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1911 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1912 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1913 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1914
1915 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1916 termios-c_lflag.h.
1917 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1918 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1919 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1920 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1921 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1922 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1923 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1924 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1925 Likewise.
1926 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1927 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1928 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1929 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1930
1931 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1932 termios-c_cflag.h.
1933 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1934 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1935 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1936 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1937 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1938 termios-c_cflag.h.
1939 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1940 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1941 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1942 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1943
1944 [BZ #23783]
1945 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1946 termios-baud.h.
1947 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1948 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1949 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1950 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1951 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1952 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1953 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1954 __MAX_BAUD): Move to termios-baud.h.
1955 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1956 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1957 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1958 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1959 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1960
1961 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1962 termios-c_oflag.h.
1963 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1964 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1965 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1966 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1967 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1968 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1969 termios-c_oflag.h.
1970 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1971 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1972 FFR1): Likewise.
1973 [USE_MISC] (XTABS): Likewise.
1974 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1975 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1976 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1977 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1978
1979 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1980 termios-c_iflag.h.
1981 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1982 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1983 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1984 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1985 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1986 IUTF8): Move to termios-c_iflag.h.
1987 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1988 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1989 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1990 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1991
1992 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1993 termios-cc.h.
1994 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1995 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1996 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1997 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1998 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1999 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2000 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2001 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2002 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2003 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2004 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2005 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2006
2007 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2008 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2009 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2010 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2011 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2012 termios-struct.h.
2013 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2014 termios-struct.h.
2015 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2016 Likewise.
2017 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2018 Likewise.
2019 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2020 Likewise.
2021 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2022 Likewise.
2023 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2024 _HAVE_C_OSPEED): Define.
2025 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2026 _HAVE_C_OSPEED): Likewise.
2027 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2028 _HAVE_C_OSPEED): Likewise.
2029 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2030 (cfsetospeed): Check for define value instead of existence.
2031 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2032 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2033 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2034 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2035 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2036
2037 [BZ #17783]
2038 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2039 Define.
2040 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2041 (TIOCSER_TEMT): Likewise.
2042 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2043 (TEOCSER_TEMT): Likewise.
2044
2045 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2046
2047 [BZ #24011]
2048 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2049
2050 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2051
2052 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2053
2054 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2055
2056 * sysdeps/htl/pt-barrierattr-setpshared.c
2057 (pthread_barrierattr_setpshared): Add stub warning.
2058 * sysdeps/htl/pt-condattr-setpshared.c
2059 (pthread_condattr_setpshared): Likewise.
2060 * sysdeps/htl/pt-mutexattr-setpshared.c
2061 (pthread_mutexattr_setpshared): Likewise.
2062 * sysdeps/htl/pt-rwlockattr-setpshared.c
2063 (pthread_rwlockattr_setpshared): Likewise.
2064 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2065 (pthread_mutexattr_setpshared): Likewise.
2066
2067 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2068
2069 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2070 constants to match with Linux 4.20.
2071
2072 * sysdeps/mips/mips32/libm-test-ulps: Update.
2073 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2074
2075 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2076
2077 [BZ #24034]
2078 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2079 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2080 than __typeof (...) for the a_ptr variable.
2081
2082 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2083
2084 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2085 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2086 * libio/Makefile (tests): Add tst-sprintf-ub and
2087 tst-sprintf-chk-ub.
2088 (CFLAGS-tst-sprintf-ub.c): New variable.
2089 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2090 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2091 destination buffer and check for overflows in fortified mode.
2092 * libio/libioP.h (PRINTF_CHK): New macro.
2093 * libio/tst-sprintf-chk-ub.c: New file.
2094 * libio/tst-sprintf-ub.c: Likewise.
2095
2096 2019-01-02 Florian Weimer <fweimer@redhat.com>
2097
2098 [BZ #24018]
2099 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2100 failure.
2101
2102 2019-01-02 Florian Weimer <fweimer@redhat.com>
2103
2104 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2105
2106 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2107
2108 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2109 macro.
2110
2111 * sysdeps/unix/sysv/linux/netpacket/packet.h
2112 (PACKET_IGNORE_OUTGOING): New macro.
2113
2114 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2115 macro.
2116
2117 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2118 version to 4.20.
2119 (riscv_flush_icache): New syscall.
2120
2121 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2122 trailing whitespace removed.
2123 * scripts/config.guess: Update to version 2019-01-01.
2124 * scripts/config.sub: Update to version 2019-01-01.
2125 * scripts/move-if-change: Update from gnulib.
2126
2127 * NEWS: Update copyright dates.
2128 * catgets/gencat.c (print_version): Likewise.
2129 * csu/version.c (banner): Likewise.
2130 * debug/catchsegv.sh: Likewise.
2131 * debug/pcprofiledump.c (print_version): Likewise.
2132 * debug/xtrace.sh (do_version): Likewise.
2133 * elf/ldconfig.c (print_version): Likewise.
2134 * elf/ldd.bash.in: Likewise.
2135 * elf/pldd.c (print_version): Likewise.
2136 * elf/sotruss.sh: Likewise.
2137 * elf/sprof.c (print_version): Likewise.
2138 * iconv/iconv_prog.c (print_version): Likewise.
2139 * iconv/iconvconfig.c (print_version): Likewise.
2140 * locale/programs/locale.c (print_version): Likewise.
2141 * locale/programs/localedef.c (print_version): Likewise.
2142 * login/programs/pt_chown.c (print_version): Likewise.
2143 * malloc/memusage.sh (do_version): Likewise.
2144 * malloc/memusagestat.c (print_version): Likewise.
2145 * malloc/mtrace.pl: Likewise.
2146 * manual/libc.texinfo: Likewise.
2147 * nptl/version.c (banner): Likewise.
2148 * nscd/nscd.c (print_version): Likewise.
2149 * nss/getent.c (print_version): Likewise.
2150 * nss/makedb.c (print_version): Likewise.
2151 * posix/getconf.c (main): Likewise.
2152 * scripts/test-installation.pl: Likewise.
2153 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2154
2155 * All files with FSF copyright notices: Update copyright dates
2156 using scripts/update-copyrights.
2157 * locale/programs/charmap-kw.h: Regenerated.
2158 * locale/programs/locfile-kw.h: Likewise.
2159
2160 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2161
2162 * timezone/zdump.c: Update from tzcode 2018i.
2163 * timezone/zic.c: Likewise.
2164
2165 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2166
2167 regex: improve Gnulib port to AIX
2168 From the glibc point of view, this removes duplicate macro
2169 definitions and is obviously safe.
2170 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2171 * posix/regex_internal.h:
2172 (__attribute__, __attribute_warn_unused_result__):
2173 Remove; already defined elsewhere.
2174
2175 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2176
2177 [BZ #24027]
2178 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2179 copying operation. (ncopies had the wrong type, resulting in an
2180 integer wraparound and too few elements being copied.)
2181
2182 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2183
2184 [BZ #24022]
2185 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2186 <asm/syscalls.h> exists with __has_include__ before including it.
2187
2188 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2189
2190 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2191 version to 4.20.
2192
2193 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2194
2195 * hurd/lookup-retry: Include <unistd.h>.
2196 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2197 Release it on return. Handle "pid" magical lookup retry.
2198
2199 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2200
2201 [BZ #10496]
2202 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2203 (t_fmt_ampm): Likewise.
2204 * localedata/locales/aa_ER (t_fmt): Likewise.
2205 (t_fmt_ampm): Likewise.
2206 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2207 (t_fmt_ampm): Likewise.
2208 * localedata/locales/aa_ET (t_fmt): Likewise.
2209 (t_fmt_ampm): Likewise.
2210 * localedata/locales/am_ET (t_fmt): Likewise.
2211 (t_fmt_ampm): Likewise.
2212 * localedata/locales/byn_ER (t_fmt): Likewise.
2213 (t_fmt_ampm): Likewise.
2214 * localedata/locales/om_ET (t_fmt): Likewise.
2215 (t_fmt_ampm): Likewise.
2216 * localedata/locales/sid_ET (t_fmt): Likewise.
2217 (t_fmt_ampm): Likewise.
2218 * localedata/locales/so_DJ (t_fmt): Likewise.
2219 (t_fmt_ampm): Likewise.
2220 * localedata/locales/so_ET (t_fmt): Likewise.
2221 (t_fmt_ampm): Likewise.
2222 * localedata/locales/so_SO (t_fmt): Likewise.
2223 (t_fmt_ampm): Likewise.
2224 * localedata/locales/ti_ER (t_fmt): Likewise.
2225 (t_fmt_ampm): Likewise.
2226 * localedata/locales/ti_ET (t_fmt): Likewise.
2227 (t_fmt_ampm): Likewise.
2228 * localedata/locales/tig_ER (t_fmt): Likewise.
2229 (t_fmt_ampm): Likewise.
2230 * localedata/locales/wal_ET (t_fmt): Likewise.
2231 (t_fmt_ampm): Likewise.
2232
2233 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2234 * localedata/locales/ar_IN (t_fmt): Likewise.
2235 * localedata/locales/bhb_IN (t_fmt): Likewise.
2236 * localedata/locales/bho_IN (t_fmt): Likewise.
2237 * localedata/locales/bi_VU (t_fmt): Likewise.
2238 * localedata/locales/bn_BD (t_fmt): Likewise.
2239 * localedata/locales/bn_IN (t_fmt): Likewise.
2240 * localedata/locales/brx_IN (t_fmt): Likewise.
2241 * localedata/locales/doi_IN (t_fmt): Likewise.
2242 * localedata/locales/en_HK (t_fmt): Likewise.
2243 (t_fmt_ampm): Likewise.
2244 * localedata/locales/en_IN (t_fmt): Likewise.
2245 * localedata/locales/en_PH (t_fmt): Likewise.
2246 * localedata/locales/gu_IN (t_fmt): Likewise.
2247 * localedata/locales/hi_IN (t_fmt): Likewise.
2248 * localedata/locales/hif_FJ (t_fmt): Likewise.
2249 * localedata/locales/hne_IN (t_fmt): Likewise.
2250 * localedata/locales/kn_IN (t_fmt): Likewise.
2251 * localedata/locales/kok_IN (t_fmt): Likewise.
2252 * localedata/locales/ks_IN (t_fmt): Likewise.
2253 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2254 * localedata/locales/mag_IN (t_fmt): Likewise.
2255 * localedata/locales/mai_IN (t_fmt): Likewise.
2256 * localedata/locales/mjw_IN (t_fmt): Likewise.
2257 * localedata/locales/ml_IN (t_fmt): Likewise.
2258 * localedata/locales/mni_IN (t_fmt): Likewise.
2259 * localedata/locales/mr_IN (t_fmt): Likewise.
2260 * localedata/locales/ms_MY (t_fmt): Likewise.
2261 * localedata/locales/pa_IN (t_fmt): Likewise.
2262 * localedata/locales/raj_IN (t_fmt): Likewise.
2263 * localedata/locales/sa_IN (t_fmt): Likewise.
2264 * localedata/locales/sat_IN (t_fmt): Likewise.
2265 * localedata/locales/sd_IN (t_fmt): Likewise.
2266 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2267 * localedata/locales/tcy_IN (t_fmt): Likewise.
2268 * localedata/locales/the_NP (t_fmt): Likewise.
2269 * localedata/locales/to_TO (t_fmt): Likewise.
2270 * localedata/locales/ur_IN (t_fmt): Likewise.
2271
2272 * localedata/locales/hif_FJ (d_t_fmt): Set to
2273 "%A %d %b %Y %I:%M:%S %p".
2274 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2275
2276 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2277 * localedata/locales/ar_BH (t_fmt): Likewise.
2278 * localedata/locales/ar_DZ (t_fmt): Likewise.
2279 * localedata/locales/ar_EG (t_fmt): Likewise.
2280 * localedata/locales/ar_IQ (t_fmt): Likewise.
2281 * localedata/locales/ar_JO (t_fmt): Likewise.
2282 * localedata/locales/ar_KW (t_fmt): Likewise.
2283 * localedata/locales/ar_LB (t_fmt): Likewise.
2284 * localedata/locales/ar_LY (t_fmt): Likewise.
2285 * localedata/locales/ar_OM (t_fmt): Likewise.
2286 * localedata/locales/ar_QA (t_fmt): Likewise.
2287 * localedata/locales/ar_SD (t_fmt): Likewise.
2288 * localedata/locales/ar_SS (t_fmt): Likewise.
2289 * localedata/locales/ar_SY (t_fmt): Likewise.
2290 * localedata/locales/ar_TN (t_fmt): Likewise.
2291 * localedata/locales/ar_YE (t_fmt): Likewise.
2292
2293 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2294 (t_fmt_ampm): Likewise.
2295 * localedata/locales/gez_ET (t_fmt): Likewise.
2296 (t_fmt_ampm): Likewise.
2297
2298 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2299 (t_fmt_ampm): Likewise.
2300 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2301
2302 * localedata/locales/zh_HK (t_fmt):
2303 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2304
2305 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2306 because this locale does not use the 12-hour clock.
2307 (t_fmt): Set to "%Z %H:%M:%S".
2308 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2309
2310 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2311 because this locale does not use the 12-hour clock.
2312 (t_fmt): Set to "%H:%M:%S %Z".
2313 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2314
2315 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2316 because this locale does not use the 12-hour clock.
2317 (t_fmt): Set to "%T".
2318 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2319 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2320
2321 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2322 because this locale does not use the 12-hour clock.
2323 (t_fmt): Set to "%H:%M:%S %Z".
2324 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2325
2326 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2327 because this locale does not use the 12-hour clock.
2328 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2329 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2330
2331 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2332
2333 [BZ #10496]
2334 [BZ #23724]
2335 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2336 (t_fmt_ampm): Likewise.
2337 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2338 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2339 (d_fmt): Set to "%-d.%-m.%y".
2340
2341 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2342
2343 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2344 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2345 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2346 Likewise.
2347 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2348 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2349 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2350 function.
2351 * support/blob_repeat.c (check_mul_overflow_size_t,
2352 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2353
2354 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2355
2356 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2357
2358 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2359
2360 regex: simplify Gnulib port
2361 This simplifies the code, by removing stuff intended for porting
2362 to Gnulib but no longer needed there.
2363 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2364 uses of libc_hidden_def, weak_alias.
2365 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2366 _Restrict_ except for public-facing headers.
2367 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2368 Remove; already defined elsewhere.
2369 * posix/regex.c, posix/regex_internal.h:
2370 Use __GNUC_PREREQ instead of rolling our own.
2371 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2372
2373 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2374
2375 * benchtests/bench-strlen.c (generic_strlen): New function.
2376 (memchr_strlen): New function.
2377
2378 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2379
2380 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2381 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2382 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2383
2384 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2385
2386 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2387
2388 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2389
2390 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2391 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2392 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2393 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2394 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2395 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2396 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2397
2398 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2399
2400 [BZ #24023]
2401 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2402 PLT reference in libc.so.
2403 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2404 _Q_lltoq and _Q_qtod PLT references in libc.so.
2405
2406 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2407
2408 * benchtests/bench-memchr.c: Cleanup defines.
2409 * benchtests/bench-memcmp.c: Likewise.
2410 * benchtests/bench-memset.c: Likewise.
2411 * benchtests/bench-memset-large.c: Likewise.
2412 * benchtests/bench-memset-walk.c: Likewise.
2413 * benchtests/bench-stpcpy.c: Likewise.
2414 * benchtests/bench-stpncpy.c: Likewise.
2415 * benchtests/bench-strcat.c: Likewise.
2416 * benchtests/bench-strchr.c: Likewise.
2417 * benchtests/bench-strcmp.c: Likewise.
2418 * benchtests/bench-strcpy.c: Likewise.
2419 * benchtests/bench-strcspn.c: Likewise.
2420 * benchtests/bench-string.h: Likewise.
2421 * benchtests/bench-strlen.c: Likewise.
2422 * benchtests/bench-strncat.c: Likewise.
2423 * benchtests/bench-strncmp.c: Likewise.
2424 * benchtests/bench-strncpy.c: Likewise.
2425 * benchtests/bench-strnlen.c: Likewise.
2426 * benchtests/bench-strpbrk.c: Likewise.
2427 * benchtests/bench-strrchr.c: Likewise.
2428 * benchtests/bench-strspn.c: Likewise.
2429
2430 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2431
2432 * stdlib/longlong.h: Update from GCC.
2433
2434 [BZ #23993]
2435 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2436 * configure: Regenerated.
2437 * manual/install.texi (Tools for Compilation): Update minimum GCC
2438 version.
2439 * INSTALL: Regenerated.
2440
2441 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2442
2443 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2444
2445 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2446
2447 * malloc/malloc.c (mremap_chunk): Additional checks.
2448
2449 2018-12-21 Mao Han <han_mao@c-sky.com>
2450
2451 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2452 * scripts/build-many-glibcs.py: Add C-SKY targets.
2453 * sysdeps/csky/Implies: New file.
2454 * sysdeps/csky/Makefile: Likewise.
2455 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2456 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2457 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2458 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2459 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2460 * sysdeps/csky/abiv2/memmove.S: Likewise.
2461 * sysdeps/csky/abiv2/memset.S: Likewise.
2462 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2463 * sysdeps/csky/abiv2/start.S: Likewise.
2464 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2465 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2466 * sysdeps/csky/abiv2/strlen.S: Likewise.
2467 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2468 * sysdeps/csky/abort-instr.h: Likewise.
2469 * sysdeps/csky/atomic-machine.h: Likewise.
2470 * sysdeps/csky/bits/endian.h: Likewise.
2471 * sysdeps/csky/bits/fenv.h: Likewise.
2472 * sysdeps/csky/bits/link.h: Likewise.
2473 * sysdeps/csky/bits/setjmp.h: Likewise.
2474 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2475 * sysdeps/csky/bsd-setjmp.S: Likewise.
2476 * sysdeps/csky/configure: Likewise.
2477 * sysdeps/csky/configure.ac: Likewise.
2478 * sysdeps/csky/dl-machine.h: Likewise.
2479 * sysdeps/csky/dl-procinfo.c: Likewise.
2480 * sysdeps/csky/dl-procinfo.h: Likewise.
2481 * sysdeps/csky/dl-sysdep.h: Likewise.
2482 * sysdeps/csky/dl-tls.h: Likewise.
2483 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2484 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2485 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2486 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2487 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2488 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2489 * sysdeps/csky/fpu/fegetround.c: Likewise.
2490 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2491 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2492 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2493 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2494 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2495 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2496 * sysdeps/csky/fpu/fesetround.c: Likewise.
2497 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2498 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2499 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2500 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2501 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2502 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2503 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2504 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2505 * sysdeps/csky/fpu_control.h: Likewise.
2506 * sysdeps/csky/gccframe.h: Likewise.
2507 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2508 * sysdeps/csky/ldsodefs.h: Likewise.
2509 * sysdeps/csky/libc-tls.c: Likewise.
2510 * sysdeps/csky/linkmap.h: Likewise.
2511 * sysdeps/csky/machine-gmon.h: Likewise.
2512 * sysdeps/csky/memusage.h: Likewise.
2513 * sysdeps/csky/nofpu/Implies: Likewise.
2514 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2515 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2516 * sysdeps/csky/nptl/Makefile: Likewise.
2517 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2518 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2519 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2520 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2521 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2522 * sysdeps/csky/nptl/tls.h: Likewise.
2523 * sysdeps/csky/preconfigure: Likewise.
2524 * sysdeps/csky/sfp-machine.h: Likewise.
2525 * sysdeps/csky/sotruss-lib.c: Likewise.
2526 * sysdeps/csky/stackinfo.h: Likewise.
2527 * sysdeps/csky/sysdep.h: Likewise.
2528 * sysdeps/csky/tininess.h: Likewise.
2529 * sysdeps/csky/tst-audit.h: Likewise.
2530 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2531 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2532 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2533 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2534 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2535 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2536 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2537 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2538 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2539 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2540 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2541 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2542 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2543 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2544 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2545 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2546 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2547 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2548 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2549 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2550 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2551 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2552 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2553 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2554 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2555 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2556 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2557 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2558 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2559 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2560 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2561 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2562 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2563 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2564 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2565 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2566 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2567 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2568 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2569 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2570 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2571 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2572 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2573 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2574
2575 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2576
2577 * include/time.h (__difftime64): Add.
2578 * time/difftime.c (subtract): convert to 64-bit time.
2579 * time/difftime.c (__difftime64): Add.
2580 * time/difftime.c (__difftime): Wrap around __difftime64.
2581
2582 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2583
2584 * manual/examples/add.c: Remove redundant "if not".
2585 * manual/examples/argp-ex1.c: Likewise.
2586 * manual/examples/argp-ex2.c: Likewise.
2587 * manual/examples/argp-ex3.c: Likewise.
2588 * manual/examples/argp-ex4.c: Likewise.
2589 * manual/examples/atexit.c: Likewise.
2590 * manual/examples/db.c: Likewise.
2591 * manual/examples/dir.c: Likewise.
2592 * manual/examples/dir2.c: Likewise.
2593 * manual/examples/execinfo.c: Likewise.
2594 * manual/examples/filecli.c: Likewise.
2595 * manual/examples/filesrv.c: Likewise.
2596 * manual/examples/fmtmsgexpl.c: Likewise.
2597 * manual/examples/genpass.c: Likewise.
2598 * manual/examples/inetcli.c: Likewise.
2599 * manual/examples/inetsrv.c: Likewise.
2600 * manual/examples/isockad.c: Likewise.
2601 * manual/examples/longopt.c: Likewise.
2602 * manual/examples/memopen.c: Likewise.
2603 * manual/examples/memstrm.c: Likewise.
2604 * manual/examples/mkdirent.c: Likewise.
2605 * manual/examples/mkfsock.c: Likewise.
2606 * manual/examples/mkisock.c: Likewise.
2607 * manual/examples/mygetpass.c: Likewise.
2608 * manual/examples/pipe.c: Likewise.
2609 * manual/examples/popen.c: Likewise.
2610 * manual/examples/rprintf.c: Likewise.
2611 * manual/examples/search.c: Likewise.
2612 * manual/examples/select.c: Likewise.
2613 * manual/examples/setjmp.c: Likewise.
2614 * manual/examples/sigh1.c: Likewise.
2615 * manual/examples/sigusr.c: Likewise.
2616 * manual/examples/stpcpy.c: Likewise.
2617 * manual/examples/strdupa.c: Likewise.
2618 * manual/examples/strftim.c: Likewise.
2619 * manual/examples/subopt.c: Likewise.
2620 * manual/examples/swapcontext.c: Likewise.
2621 * manual/examples/termios.c: Likewise.
2622 * manual/examples/testopt.c: Likewise.
2623 * manual/examples/testpass.c: Likewise.
2624 * manual/examples/timeval_subtract.c: Likewise.
2625
2626 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2627
2628 * sysdeps/x86/fpu/math_private.h: New file.
2629 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2630
2631 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2632 definition.
2633 (cosh): Likewise.
2634 (tanh): Likewise.
2635
2636 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2637
2638 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2639 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2640 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2641 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2642 fields.
2643 (_dl_show_auxv): Give a special treatment to
2644 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2645 and AT_L3_CACHEGEOMETRY.
2646 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2647 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2648 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2649 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2650
2651 2018-12-19 Andreas Schwab <schwab@suse.de>
2652
2653 * nscd/connections.c (check_use): Don't abort on invalid len.
2654
2655 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2656
2657 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2658 values in the 64bit value cases.
2659
2660 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2661
2662 * include/time.h
2663 (__ctime64_r): Add.
2664 * time/ctime_r.c
2665 (__ctime64_r): Add.
2666 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2667
2668 * include/time.h
2669 (__ctime64): Add.
2670 * time/gmtime.c
2671 (__ctime64): Add.
2672 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2673
2674 * include/time.h
2675 (__gmtime64_r): Add.
2676 * time/gmtime.c
2677 (__gmtime64_r): Add.
2678 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2679
2680 * include/time.h
2681 (__gmtime64): Add.
2682 * time/gmtime.c
2683 (__gmtime64): Add.
2684 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2685
2686 * include/time.h
2687 (__localtime64_r): Add.
2688 * time/localtime.c
2689 (__localtime64_r): Add.
2690 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2691
2692 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2693
2694 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2695 kernel_sigction definition.
2696
2697 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2698
2699 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2700
2701 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2702 __syscall_rt_sigaction.
2703 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2704 (kernel_sigaction): Use Linux generic defintion.
2705 (STUB): Define.
2706 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2707 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2708 (__syscall_rt_sigaction): Remove implementation.
2709 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2710 hidden.
2711 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2712 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2713 INTERNAL_SYSCALL): Remove definitions.
2714 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2715 action and signal set size.
2716 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2717 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2718
2719 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2720 James Clarke <jrtc27@jrtc27.com>
2721
2722 [BZ #23967]
2723 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2724 Define if SA_RESTORER is defined.
2725 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2726 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2727 already defined.
2728 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2729 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2730 definitions.
2731 (HAS_SA_RESTORER): Define.
2732 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2733 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2734 (HAS_SA_RESTORER): Define.
2735 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2736 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2737 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2738 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2739 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2740
2741 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2742
2743 * sysdeps/unix/sysv/linux/kernel-features.h
2744 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2745 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2746 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2747 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2748 (__ASSUME_ST_INO_64_BIT): Likewise.
2749 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2750 <kernel-features.h>.
2751 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2752 Remove conditional code.
2753 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2754 <kernel-features.h>.
2755 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2756 Remove conditional code.
2757 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2758 <kernel-features.h>.
2759 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2760 Remove conditional code.
2761 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2762 <kernel-features.h>.
2763 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2764 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2765
2766 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2767
2768 * sysdeps/s390/multiarch/ifunc-resolve.h
2769 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2770 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2771 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2772 Delete macro definition.
2773 (s390_libc_ifunc_init): Rename to
2774 s390_libc_ifunc_expr_stfle_init.
2775 * sysdeps/s390/bzero: Use
2776 s390_libc_ifunc_expr_stfle_init instead of
2777 s390_libc_ifunc_init.
2778 * sysdeps/s390/memcmp.c: Likewise.
2779 * sysdeps/s390/memcpy.c: Likewise.
2780 * sysdeps/s390/mempcpy.c: Likewise.
2781 * sysdeps/s390/memset.c: Likewise.
2782
2783 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2784
2785 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2786 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2787
2788 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2789
2790 * sysdeps/s390/multiarch/Makefile
2791 (sysdep_routines): Remove wmemcmp variants.
2792 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2793 * sysdeps/s390/multiarch/ifunc-impl-list.c
2794 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2795 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2796 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2797 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2798 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2799 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2800 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2801 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2802
2803 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2804
2805 * sysdeps/s390/multiarch/Makefile
2806 (sysdep_routines): Remove wmemset variants.
2807 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2808 * sysdeps/s390/multiarch/ifunc-impl-list.c
2809 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2810 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2811 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2812 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2813 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2814 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2815 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2816 * sysdeps/s390/ifunc-wmemset.h: New file.
2817
2818 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2819
2820 * sysdeps/s390/multiarch/Makefile
2821 (sysdep_routines): Remove wmemchr variants.
2822 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2823 * sysdeps/s390/multiarch/ifunc-impl-list.c
2824 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2825 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2826 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2827 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2828 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2829 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2830 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2831 * sysdeps/s390/ifunc-wmemchr.h: New file.
2832
2833 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2834
2835 * sysdeps/s390/multiarch/Makefile
2836 (sysdep_routines): Remove wcscspn variants.
2837 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2838 * sysdeps/s390/multiarch/ifunc-impl-list.c
2839 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2840 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2841 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2842 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2843 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2844 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2845 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2846 * sysdeps/s390/ifunc-wcscspn.h: New file.
2847
2848 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2849
2850 * sysdeps/s390/multiarch/Makefile
2851 (sysdep_routines): Remove wcspbrk variants.
2852 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2853 * sysdeps/s390/multiarch/ifunc-impl-list.c
2854 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2855 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2856 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2857 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2858 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2859 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2860 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2861 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2862
2863 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2864
2865 * sysdeps/s390/multiarch/Makefile
2866 (sysdep_routines): Remove wcsspn variants.
2867 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2868 * sysdeps/s390/multiarch/ifunc-impl-list.c
2869 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2870 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2871 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2872 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2873 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2874 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2875 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2876 * sysdeps/s390/ifunc-wcsspn.h: New file.
2877
2878 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2879
2880 * sysdeps/s390/multiarch/Makefile
2881 (sysdep_routines): Remove wcsrchr variants.
2882 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2883 * sysdeps/s390/multiarch/ifunc-impl-list.c
2884 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2885 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2886 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2887 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2888 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2889 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2890 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2891 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2892
2893 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2894
2895 * sysdeps/s390/multiarch/Makefile
2896 (sysdep_routines): Remove wcschrnul variants.
2897 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2898 * sysdeps/s390/multiarch/ifunc-impl-list.c
2899 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2900 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2901 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2902 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2903 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2904 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2905 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2906 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2907
2908 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2909
2910 * sysdeps/s390/multiarch/Makefile
2911 (sysdep_routines): Remove wcschr variants.
2912 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2913 * sysdeps/s390/multiarch/ifunc-impl-list.c
2914 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2915 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2916 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2917 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2918 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2919 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2920 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2921 * sysdeps/s390/ifunc-wcschr.h: New file.
2922
2923 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2924
2925 * sysdeps/s390/multiarch/Makefile
2926 (sysdep_routines): Remove wcsncmp variants.
2927 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2928 * sysdeps/s390/multiarch/ifunc-impl-list.c
2929 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2930 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2931 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2932 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2933 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2934 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2935 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2936 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2937
2938 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2939
2940 * sysdeps/s390/multiarch/Makefile
2941 (sysdep_routines): Remove wcscmp variants.
2942 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2943 * sysdeps/s390/multiarch/ifunc-impl-list.c
2944 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2945 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2946 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2947 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2948 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2949 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2950 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2951 * sysdeps/s390/ifunc-wcscmp.h: New file.
2952
2953 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2954
2955 * sysdeps/s390/multiarch/Makefile
2956 (sysdep_routines): Remove wcsncat variants.
2957 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2958 * sysdeps/s390/multiarch/ifunc-impl-list.c
2959 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2960 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2961 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2962 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2963 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2964 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2965 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2966 * sysdeps/s390/ifunc-wcsncat.h: New file.
2967
2968 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2969
2970 * sysdeps/s390/multiarch/Makefile
2971 (sysdep_routines): Remove wcscat variants.
2972 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2973 * sysdeps/s390/multiarch/ifunc-impl-list.c
2974 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2975 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2976 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2977 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2978 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2979 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2980 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2981 * sysdeps/s390/ifunc-wcscat.h: New file.
2982
2983 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2984
2985 * sysdeps/s390/multiarch/Makefile
2986 (sysdep_routines): Remove wcpncpy variants.
2987 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2988 * sysdeps/s390/multiarch/ifunc-impl-list.c
2989 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2990 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2991 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2992 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2993 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2994 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2995 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2996 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2997
2998 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2999
3000 * sysdeps/s390/multiarch/Makefile
3001 (sysdep_routines): Remove wcsncpy variants.
3002 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3003 * sysdeps/s390/multiarch/ifunc-impl-list.c
3004 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3005 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3006 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3007 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3008 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3009 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3010 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3011 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3012
3013 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3014
3015 * sysdeps/s390/multiarch/Makefile
3016 (sysdep_routines): Remove wcpcpy variants.
3017 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3018 * sysdeps/s390/multiarch/ifunc-impl-list.c
3019 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3020 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3021 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3022 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3023 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3024 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3025 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3026 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3027
3028 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3029
3030 * sysdeps/s390/multiarch/Makefile
3031 (sysdep_routines): Remove wcscpy variants.
3032 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3033 * sysdeps/s390/multiarch/ifunc-impl-list.c
3034 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3035 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3036 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3037 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3038 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3039 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3040 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3041 * sysdeps/s390/ifunc-wcscpy.h: New file.
3042
3043 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3044
3045 * sysdeps/s390/multiarch/Makefile
3046 (sysdep_routines): Remove wcsnlen variants.
3047 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3048 * sysdeps/s390/multiarch/ifunc-impl-list.c
3049 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3050 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3051 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3052 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3053 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3054 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3055 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3056 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3057
3058 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3059
3060 * sysdeps/s390/multiarch/Makefile
3061 (sysdep_routines): Remove wcslen variants.
3062 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3063 * sysdeps/s390/multiarch/ifunc-impl-list.c
3064 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3065 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3066 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3067 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3068 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3069 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3070 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3071 * sysdeps/s390/ifunc-wcslen.h: New file.
3072
3073 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3074
3075 * sysdeps/s390/multiarch/Makefile
3076 (sysdep_routines): Remove memrchr variants.
3077 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3078 * sysdeps/s390/multiarch/ifunc-impl-list.c
3079 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3080 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3081 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3082 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3083 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3084 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3085 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3086 * sysdeps/s390/ifunc-memrchr.h: New file.
3087
3088 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3089
3090 * sysdeps/s390/multiarch/Makefile
3091 (sysdep_routines): Remove memccpy variants.
3092 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3093 * sysdeps/s390/multiarch/ifunc-impl-list.c
3094 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3095 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3096 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3097 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3098 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3099 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3100 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3101 * sysdeps/s390/ifunc-memccpy.h: New file.
3102
3103 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3104
3105 * sysdeps/s390/multiarch/Makefile
3106 (sysdep_routines): Remove rawmemchr variants.
3107 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3108 * sysdeps/s390/multiarch/ifunc-impl-list.c
3109 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3110 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3111 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3112 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3113 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3114 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3115 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3116 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3117
3118 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3119
3120 * sysdeps/s390/multiarch/Makefile
3121 (sysdep_routines): Remove memchr variants.
3122 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3123 * sysdeps/s390/multiarch/ifunc-impl-list.c
3124 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3125 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3126 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3127 * sysdeps/s390/multiarch/memchr.c: Move to ...
3128 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3129 * sysdeps/s390/ifunc-memchr.h: New file.
3130 * sysdeps/s390/s390-64/memchr.S: Move to ...
3131 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3132 for 31/64bit and ifunc handling.
3133 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3134 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3135 * sysdeps/s390/s390-32/memchr.S: Likewise.
3136
3137 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3138
3139 * sysdeps/s390/multiarch/Makefile
3140 (sysdep_routines): Remove strcspn variants.
3141 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3142 * sysdeps/s390/multiarch/ifunc-impl-list.c
3143 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3144 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3145 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3146 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3147 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3148 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3149 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3150 * sysdeps/s390/ifunc-strcspn.h: New file.
3151
3152 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3153
3154 * sysdeps/s390/multiarch/Makefile
3155 (sysdep_routines): Remove strpbrk variants.
3156 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3157 * sysdeps/s390/multiarch/ifunc-impl-list.c
3158 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3159 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3160 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3161 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3162 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3163 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3164 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3165 * sysdeps/s390/ifunc-strpbrk.h: New file.
3166
3167 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3168
3169 * sysdeps/s390/multiarch/Makefile
3170 (sysdep_routines): Remove strspn variants.
3171 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3172 * sysdeps/s390/multiarch/ifunc-impl-list.c
3173 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3174 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3175 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3176 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3177 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3178 * sysdeps/s390/multiarch/strspn.c: Move to ...
3179 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3180 * sysdeps/s390/ifunc-strspn.h: New file.
3181
3182 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3183
3184 * sysdeps/s390/multiarch/Makefile
3185 (sysdep_routines): Remove strrchr variants.
3186 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3187 * sysdeps/s390/multiarch/ifunc-impl-list.c
3188 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3189 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3190 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3191 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3192 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3193 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3194 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3195 * sysdeps/s390/ifunc-strrchr.h: New file.
3196
3197 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3198
3199 * sysdeps/s390/multiarch/Makefile
3200 (sysdep_routines): Remove strchrnul variants.
3201 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3202 * sysdeps/s390/multiarch/ifunc-impl-list.c
3203 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3204 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3205 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3206 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3207 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3208 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3209 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3210 * sysdeps/s390/ifunc-strchrnul.h: New file.
3211
3212 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3213
3214 * sysdeps/s390/multiarch/Makefile
3215 (sysdep_routines): Remove strchr variants.
3216 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3217 * sysdeps/s390/multiarch/ifunc-impl-list.c
3218 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3219 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3220 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3221 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3222 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3223 * sysdeps/s390/multiarch/strchr.c: Move to ...
3224 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3225 * sysdeps/s390/ifunc-strchr.h: New file.
3226
3227 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3228
3229 * sysdeps/s390/multiarch/Makefile
3230 (sysdep_routines): Remove strncmp variants.
3231 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3232 * sysdeps/s390/multiarch/ifunc-impl-list.c
3233 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3234 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3235 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3236 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3237 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3238 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3239 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3240 * sysdeps/s390/ifunc-strncmp.h: New file.
3241
3242 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3243
3244 * sysdeps/s390/multiarch/Makefile
3245 (sysdep_routines): Remove strcmp variants.
3246 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3247 * sysdeps/s390/multiarch/ifunc-impl-list.c
3248 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3249 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3250 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3251 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3252 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3253 * sysdeps/s390/ifunc-strcmp.h: New file.
3254 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3255 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3256 for 31/64bit and ifunc handling.
3257 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3258 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3259 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3260
3261 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3262
3263 * sysdeps/s390/multiarch/Makefile
3264 (sysdep_routines): Remove strncat variants.
3265 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3266 * sysdeps/s390/multiarch/ifunc-impl-list.c
3267 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3268 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3269 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3270 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3271 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3272 * sysdeps/s390/multiarch/strncat.c: Move to ...
3273 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3274 * sysdeps/s390/ifunc-strncat.h: New file.
3275
3276 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3277
3278 * sysdeps/s390/multiarch/Makefile
3279 (sysdep_routines): Remove strcat variants.
3280 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3281 * sysdeps/s390/multiarch/ifunc-impl-list.c
3282 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3283 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3284 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3285 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3286 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3287 * sysdeps/s390/multiarch/strcat.c: Move to ...
3288 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3289 * sysdeps/s390/ifunc-strcat.h: New file.
3290
3291 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3292
3293 * sysdeps/s390/multiarch/Makefile
3294 (sysdep_routines): Remove stpncpy variants.
3295 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3296 * sysdeps/s390/multiarch/ifunc-impl-list.c
3297 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3298 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3299 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3300 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3301 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3302 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3303 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3304 * sysdeps/s390/ifunc-stpncpy.h: New file.
3305
3306 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3307
3308 * sysdeps/s390/multiarch/Makefile
3309 (sysdep_routines): Remove strncpy variants.
3310 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3311 * sysdeps/s390/multiarch/ifunc-impl-list.c
3312 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3313 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3314 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3315 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3316 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3317 * sysdeps/s390/ifunc-strncpy.h: New file.
3318 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3319 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3320 and adjust ifunc handling.
3321 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3322 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3323 and adjust ifunc handling.
3324 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3325 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3326
3327 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3328
3329 * sysdeps/s390/multiarch/Makefile
3330 (sysdep_routines): Remove stpcpy variants.
3331 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3332 * sysdeps/s390/multiarch/ifunc-impl-list.c
3333 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3334 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3335 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3336 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3337 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3338 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3339 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3340 * sysdeps/s390/ifunc-stpcpy.h: New file.
3341
3342 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3343
3344 * sysdeps/s390/multiarch/Makefile
3345 (sysdep_routines): Remove strcpy variants.
3346 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3347 * sysdeps/s390/multiarch/ifunc-impl-list.c
3348 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3349 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3350 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3351 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3352 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3353 * sysdeps/s390/ifunc-strcpy.h: New file.
3354 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3355 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3356 for 31/64bit and ifunc handling.
3357 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3358 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3359 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3360
3361 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3362
3363 * sysdeps/s390/multiarch/Makefile
3364 (sysdep_routines): Remove strnlen variants.
3365 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3366 * sysdeps/s390/multiarch/ifunc-impl-list.c
3367 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3368 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3369 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3370 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3371 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3372 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3373 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3374 * sysdeps/s390/ifunc-strnlen.h: New file.
3375
3376 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3377
3378 * sysdeps/s390/multiarch/Makefile
3379 (sysdep_routines): Remove strlen variants.
3380 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3381 * sysdeps/s390/multiarch/ifunc-impl-list.c
3382 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3383 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3384 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3385 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3386 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3387 * sysdeps/s390/multiarch/strlen.c: Move to ...
3388 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3389 * sysdeps/s390/ifunc-strlen.h: New file.
3390
3391 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3392
3393 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3394 * sysdeps/s390/multiarch/ifunc-impl-list.c
3395 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3396 * sysdeps/s390/ifunc-memmem.h: New file.
3397 * sysdeps/s390/memmem.c: Likewise.
3398 * sysdeps/s390/memmem-c.c: Likewise.
3399 * sysdeps/s390/memmem-vx.c: Likewise.
3400
3401 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3402
3403 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3404 * sysdeps/s390/multiarch/ifunc-impl-list.c
3405 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3406 * sysdeps/s390/ifunc-strstr.h: New file.
3407 * sysdeps/s390/strstr.c: Likewise.
3408 * sysdeps/s390/strstr-c.c: Likewise.
3409 * sysdeps/s390/strstr-vx.c: Likewise.
3410
3411 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3412
3413 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3414 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3415 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3416 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3417 New defines.
3418 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3419 * sysdeps/s390/memmove-c.c: New file.
3420 * sysdeps/s390/memmove.c: Likewise.
3421 * sysdeps/s390/multiarch/ifunc-impl-list.c
3422 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3423
3424 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3425
3426 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3427 * sysdeps/s390/configure.ac: Add check for z13 support.
3428 * sysdeps/s390/configure: Regenerated.
3429
3430 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3431
3432 * sysdeps/s390/memcopy.h: New file.
3433
3434 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3435
3436 * sysdeps/s390/s390-32/bcopy.S: Remove.
3437 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3438
3439 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3440
3441 * sysdeps/s390/ifunc-memcpy.h: New File.
3442 * sysdeps/s390/memcpy.S: Move to ...
3443 * sysdeps/s390/memcpy-z900.S ... here.
3444 Move implementations from memcpy-s390x.s to here.
3445 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3446 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3447 Remove memcpy/mempcpy variants.
3448 * sysdeps/s390/Makefile (sysdep_routines):
3449 Add memcpy/mempcpy variants.
3450 * sysdeps/s390/multiarch/ifunc-impl-list.c
3451 (__libc_ifunc_impl_list): Adjust ifunc variants for
3452 memcpy and mempcpy.
3453 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3454 to ...
3455 * sysdeps/s390/memcpy.c: ... here.
3456 Adjust ifunc variants for memcpy.
3457 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3458 * sysdeps/s390/mempcpy.c: ... here.
3459 Adjust ifunc variants for mempcpy.
3460 * sysdeps/s390/mempcpy.S: Delete file.
3461
3462 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3463
3464 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3465 * sysdeps/s390/memcpy.S: ... here.
3466 Adjust to be usable for 31/64bit.
3467 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3468 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3469 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3470 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3471 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3472 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3473 Adjust to be usable for 31/64bit.
3474 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3475 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3476 * sysdeps/s390/multiarch/memcpy.c: ... here.
3477 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3478
3479 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3480
3481 * sysdeps/s390/ifunc-memcmp.h: New File.
3482 * sysdeps/s390/memcmp.S: Move to ...
3483 * sysdeps/s390/memcmp-z900.S ... here.
3484 Move implementations from memcmp-s390x.s to here.
3485 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3486 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3487 Remove memcmp variants.
3488 * sysdeps/s390/Makefile (sysdep_routines):
3489 Add memcmp variants.
3490 * sysdeps/s390/multiarch/ifunc-impl-list.c
3491 (__libc_ifunc_impl_list): Adjust ifunc variants for
3492 memcmp.
3493 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3494 to ...
3495 * sysdeps/s390/memcmp.c: ... here.
3496 Adjust ifunc variants for memcmp.
3497
3498 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3499
3500 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3501 * sysdeps/s390/memcmp.S: ... here.
3502 Adjust to be usable for 31/64bit.
3503 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3504 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3505 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3506 Remove memcmp.
3507 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3508 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3509 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3510 Adjust to be usable for 31/64bit.
3511 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3512 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3513 * sysdeps/s390/multiarch/memcmp.c: ... here.
3514 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3515
3516 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3517
3518 * sysdeps/s390/s390-32/bzero.S: Delete file.
3519 * sysdeps/s390/s390-64/bzero.S: Likewise.
3520 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3521 * sysdeps/s390/bzero.c: New file.
3522 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3523 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3524 * sysdeps/s390/multiarch/ifunc-impl-list.c
3525 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3526
3527 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3528
3529 * sysdeps/s390/ifunc-memset.h: New File.
3530 * sysdeps/s390/memset.S: Move to ...
3531 * sysdeps/s390/memset-z900.S ... here.
3532 Move implementations from memset-s390x.s to here.
3533 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3534 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3535 Remove memset variants.
3536 * sysdeps/s390/Makefile (sysdep_routines):
3537 Add memset variants.
3538 * sysdeps/s390/multiarch/ifunc-impl-list.c
3539 (__libc_ifunc_impl_list): Adjust ifunc variants for
3540 memset.
3541 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3542 to ...
3543 * sysdeps/s390/memset.c: ... here.
3544 Adjust ifunc variants for memset.
3545
3546 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3547
3548 * sysdeps/s390/s390-64/memset.S: Move to ...
3549 * sysdeps/s390/memset.S: ... here.
3550 Adjust to be usable for 31/64bit.
3551 * sysdeps/s390/s390-32/memset.S: Delete File.
3552 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3553 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3554 Remove memset.
3555 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3556 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3557 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3558 Adjust to be usable for 31/64bit.
3559 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3560 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3561 * sysdeps/s390/multiarch/memset.c: ... here.
3562 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3563
3564 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3565
3566 * sysdeps/s390/multiarch/ifunc-resolve.h
3567 (s390_libc_ifunc_init, s390_libc_ifunc,
3568 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3569
3570 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3571
3572 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3573 * sysdeps/s390/configure.ac: Add check for z10 support.
3574 * sysdeps/s390/configure: Regenerated.
3575
3576 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3577
3578 * sysdeps/i386/atomic-machine.h: Merged with ...
3579 * sysdeps/x86_64/atomic-machine.h: To ...
3580 * sysdeps/x86/atomic-machine.h: This. New file.
3581
3582 2018-12-18 Florian Weimer <fweimer@redhat.com>
3583
3584 Rewrite locale/gen-translit.pl in Python.
3585 * locale/Makefile (generated): Add C-translit.h.
3586 (before-compile): Add $(objpfx)C-translit.h.
3587 (C-translit.h): Move to $(objpfx). Create target directory.
3588 Build using Python script.
3589 * locale/gen-translit.py: New file.
3590 * locale/gen-translit.pl: Remove file.
3591 * locale/C-translit.h.in: Change comment character to '#' for
3592 easier parsing without a C preprocessor.
3593 * locale/C-translit.h: Remove generated file.
3594 * manual/install.texi (Tools for Compilation): Do not mention
3595 C-translit.h.
3596 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3597 Remove locale/C-translit.h.
3598 * scripts/update-copyrights: Likewise.
3599 * INSTALL: Regenerate.
3600
3601 2018-12-18 Florian Weimer <fweimer@redhat.com>
3602
3603 [BZ #23995]
3604 * localedata/locales/bi_VU: Remove executable bit from file.
3605
3606 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3607
3608 * include/time.h
3609 (__localtime64): Add.
3610 * manual/maint.texi: Document Y2038 symbol handling.
3611 * time/localtime.c
3612 (__localtime64): Add.
3613 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3614
3615 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3616
3617 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3618 Do not clobber r12.
3619
3620 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3621 to allow extra macros from first or second sources.
3622 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3623 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3624 (tests-special): Add $(objpfx)tst-mman-consts.out.
3625 ($(objpfx)tst-mman-consts.out): New makefile target.
3626
3627 2018-12-17 Mao Han <han_mao@c-sky.com>
3628
3629 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3630 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3631 without stat64 system call support.
3632 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3633 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3634 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3635 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3636 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3637 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3638 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3639 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3640 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3641 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3642 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3643
3644 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3645
3646 regex: fix storage-exhaustion error
3647 [BZ #18040]
3648 * posix/regexec.c (get_subexp):
3649 Do not continue if storage is exhausted.
3650
3651 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3652
3653 regex: fix heap-use-after-free error
3654 [BZ #18040]
3655 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3656 https://debbugs.gnu.org/32592
3657 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3658 call extend_buffers which reallocates the re_string_t internal buffer.
3659 Local variable 'buf' was not updated in such case, resulting in
3660 use-after-free.
3661 * posix/regexec.c (get_subexp): Update 'buf' after call to
3662 get_subexp_sub.
3663
3664 2018-12-15 Florian Weimer <fweimer@redhat.com>
3665
3666 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3667 (minimum_stride_size): Use it.
3668 (support_blob_repeat_allocate): Likewise.
3669
3670 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3671
3672 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3673 definition.
3674 (acosh): Likewise.
3675 (atanh): Likewise.
3676
3677 2018-12-14 Florian Weimer <fweimer@redhat.com>
3678
3679 * manual/process.texi (Process Creation Concepts): Remove
3680 documentation of process (ID) lifetime. List more process
3681 creation functions. Reference Process Identification section.
3682 (Process Identification): Add information about process ID
3683 lifetime. Describe Linux thread/task IDs.
3684 * manual/signal.texi (Signaling Another Process): Mention that the
3685 signal is always sent to the process.
3686
3687 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3688
3689 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3690 and tst-ldbl-efgcvt.
3691 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3692 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3693 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3694 (fcvt_tests, output_error, output_r_error, do_test): Use the
3695 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3696 select the type of floating-point variables and arguments; to
3697 produce extra tests for double and conversion specifiers for
3698 printf; and to set the names of called functions.
3699 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3700 in tst-efgcvt-template.c.
3701 * misc/tst-ldbl-efgcvt.c: Likewise.
3702
3703 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3704
3705 * nss/Makefile (tst-nss-test3.out): New rule.
3706
3707 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3708
3709 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3710 clobber sp.
3711
3712 2018-12-13 fanjinke <fanjinke@hygon.cn>
3713
3714 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3715 "HygonGenuine".
3716
3717 2018-12-13 Andreas Schwab <schwab@suse.de>
3718
3719 [BZ #23861]
3720 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3721 (__pthread_rwlock_rdlock_full): Update expected value for
3722 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3723 * nptl/tst-rwlock-pwn.c: New file.
3724 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3725
3726 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3727
3728 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3729 definition.
3730
3731 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3732
3733 * benchtests/scripts/compare_bench.py (do_compare): write to
3734 stderr in casestat is not present.
3735 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3736 stderr in case timings field is not present. Also string showing
3737 the output filename goes into the stderr.
3738
3739 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3740
3741 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3742 and ZeroDivisorError exceptions.
3743 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3744 argument to loop through user provided statistics.
3745 * benchtests/scripts/compare_bench.py (main): Include the --stats
3746 argument.
3747
3748 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3749
3750 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3751 instead of return.
3752
3753 2018-12-12 Florian Weimer <fweimer@redhat.com>
3754
3755 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3756 clause to copyright header.
3757
3758 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3759
3760 [BZ #23614]
3761 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3762 registers saved in the stack frame.
3763 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3764 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3765
3766 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3767
3768 * include/bits/monetary-ldbl.h: New file.
3769 * include/bits/printf-ldbl.h: Likewise.
3770 * include/bits/stdio-ldbl.h: Likewise.
3771 * include/bits/stdlib-ldbl.h: Likewise.
3772 * include/bits/syslog-ldbl.h: Likewise.
3773 * include/bits/wchar-ldbl.h: Likewise.
3774
3775 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3776
3777 * libio/libio.h: Remove redirection for _IO_vfprintf.
3778
3779 2018-12-11 Andreas Schwab <schwab@suse.de>
3780
3781 * Makerules: Remove all references to abilist-pattern.
3782 (update-all-abi): Simplify find expression.
3783
3784 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3785
3786 [BZ #23961]
3787 * math/auto-libm-test-in: Add new test case.
3788 * math/auto-libm-test-out-pow: Regenerated.
3789 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3790
3791 2018-12-10 DJ Delorie <dj@redhat.com>
3792
3793 [BZ #23948]
3794 * support/test-container.c: Move postclean step to before we
3795 change namespaces.
3796
3797 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3798
3799 * scripts/gen-as-const.py (main): Handle --python option.
3800 * scripts/gen-py-const.awk: Remove.
3801 * Makerules (py-const-script): Use gen-as-const.py.
3802 ($(py-const)): Likewise.
3803 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3804 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3805 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3806 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3807 ~PTHREAD_MUTEX_NO_ELISION_NP.
3808 * manual/README.pretty-printers: Update reference to
3809 gen-py-const.awk.
3810
3811 * scripts/glibcextract.py: New file.
3812 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3813 or tempfile. Import glibcexctract.
3814 (compute_c_consts): Remove. Moved to glibcextract.py.
3815 (gen_test): Update reference to compute_c_consts.
3816 (main): Likewise.
3817 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3818 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3819 * sysdeps/unix/sysv/linux/Makefile
3820 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3821 Redirect stderr as well as stdout.
3822
3823 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3824
3825 [BZ #19767]
3826 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3827 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3828 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3829 ALWAYS_USE_VSYSCALL.
3830 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3831 ALWAYS_USE_VSYSCALL.
3832 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3833 ALWAYS_USE_VSYSCALL.
3834
3835 2018-12-10 Florian Weimer <fweimer@redhat.com>
3836
3837 [BZ #23972]
3838 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3839 offset instead of count for clarity. Fix typo in comment.
3840 (__old_getdents64): Keep track of previous offset. Use it to call
3841 handle_overflow.
3842 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3843 that d_off is never zero.
3844
3845 2018-12-10 Andreas Schwab <schwab@suse.de>
3846
3847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3848 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3850 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3851 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3852
3853 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3854
3855 * timezone/private.h: Update from tzcode 2018g.
3856 * timezone/tzfile.h: Likewise.
3857 * timezone/tzselect.ksh: Likewise.
3858 * timezone/zdump.c: Likewise.
3859 * timezone/zic.c: Likewise.
3860
3861 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3862
3863 [BZ #23490]
3864 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3865 (do_test): Adjust buffer size and fix format.
3866
3867 2018-12-07 DJ Delorie <dj@redhat.com>
3868
3869 [BZ #23907]
3870 * malloc/tst-tcfree3.c: New.
3871 * malloc/Makefile: Add it.
3872
3873 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3874
3875 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3876
3877 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3878
3879 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3880 used as a mask for the mode argument of __vfscanf_internal and
3881 __vfwscanf_internal.
3882 * stdio-common/vfscanf-internal.c
3883 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3884 (__strtof128_internal): Define to __wcstof128_internal.
3885 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3886 __strtof128_internal or __wcstof128_internal when the format of
3887 long double is the same as _Float128.
3888
3889 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3890
3891 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3892 * posix/confstr.c (confstr): Rename to __confstr.
3893 (__confstr): Add hidden def.
3894 (confstr): Add weak alias for __confstr.
3895 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3896 confstr.
3897
3898 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3899
3900 * NEWS: Mention getcpu.
3901 * include/sched.h (__getcpu): New libc_hidden_proto.
3902 * manual/resource.texi: Document getcpu.
3903 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3904 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3905 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3906 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3907 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3908 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3909 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3910 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3911 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3912 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3913 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3914 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3915 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3916 Likewise.
3917 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3918 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3919 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3920 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3921 Likewise.
3922 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3923 Likewise.
3924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3925 Likewise.
3926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3927 Likewise.
3928 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3929 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3930 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3931 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3932 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3933 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3934 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3935 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3936 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3937 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3938 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3939 Also check getcpu.
3940
3941 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3942
3943 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3944 functions.
3945 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3946
3947 2018-12-07 Florian Weimer <fweimer@redhat.com>
3948
3949 [BZ #17405]
3950 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3951 * posix/Versions (GLIBC_2.29): Export
3952 posix_spawn_file_actions_addfchdir_np.
3953 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3954 * posix/spawn_faction_destroy.c
3955 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3956 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3957 and the field action.fchdir_action.
3958 * posix/tst-spawn-chdir.c (add_chdir): New function.
3959 (do_test): Add do_fchdir loop. Call add_chdir.
3960 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3961 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3962 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3963 posix_spawn_file_actions_addfchdir_np.
3964 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3965 Likewise.
3966 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3967 Likewise.
3968 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3969 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3970 Likewise.
3971 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3972 Likewise.
3973 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3974 Likewise.
3975 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3976 Likewise.
3977 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3978 Likewise.
3979 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3980 Likewise.
3981 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3982 (GLIBC_2.29): Likewise.
3983 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3984 (GLIBC_2.29): Likewise.
3985 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3986 (GLIBC_2.29): Likewise.
3987 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3988 (GLIBC_2.29): Likewise.
3989 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3990 Likewise.
3991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3992 (GLIBC_2.29): Likewise.
3993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3994 (GLIBC_2.29): Likewise.
3995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3996 (GLIBC_2.29): Likewise.
3997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3998 (GLIBC_2.29): Likewise.
3999 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4000 Likewise.
4001 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4002 Likewise.
4003 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4004 Likewise.
4005 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4006 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4007 Likewise.
4008 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4009 Likewise.
4010 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4011 Likewise.
4012 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4013 Likewise.
4014
4015 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4016
4017 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4018 trailing whitespace removed.
4019 * scripts/config.guess: Update to version 2018-11-28.
4020 * scripts/config.sub: Update to version 2018-11-28.
4021 * scripts/install-sh: Update to version 2018-03-11.20.
4022 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4023 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4024
4025 2018-12-07 Florian Weimer <fweimer@redhat.com>
4026
4027 [BZ #23927]
4028 CVE-2018-19591
4029 * inet/tst-if_index-long.c: New file.
4030 * inet/Makefile (tests): Add tst-if_index-long.
4031
4032 2018-12-07 Florian Weimer <fweimer@redhat.com>
4033
4034 * support/check.h (support_record_failure_is_failed): Declare.
4035 * support/descriptors.h: New file.
4036 * support/support_descriptors.c: Likewise.
4037 * support/tst-support_descriptors.c: Likewise.
4038 * support/support_record_failure.c
4039 (support_record_failure_is_failed): New function.
4040 * support/Makefile (libsupport-routines): Add support_descriptors.
4041 (tests): Add tst-support_descriptors.
4042
4043 2018-12-05 Zack Weinberg <zackw@panix.com>
4044 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4045
4046 * stdio-common/vfprintf-internal.c
4047 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4048 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4049 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4050 and __no_long_double.
4051 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4052 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4053 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4054 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4055 and __nldbl_*syslog* functions.
4056 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4057 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4058 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4059 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4060 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4061 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4062 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4063 (__nldbl_vwprintf, __nldbl_wprintf):
4064 Directly call the appropriate __v*printf_internal routine, passing
4065 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4066 variable names.
4067 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4068 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4069 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4070 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4071 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4072 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4073 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4074 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4075 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4076 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4077 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4078 (__nldbl_syslog, __nldbl_vsyslog):
4079 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4080 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4081 appropriate.
4082 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4083 appropriate.
4084
4085 2018-12-05 Zack Weinberg <zackw@panix.com>
4086 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4087
4088 [BZ #11319]
4089 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4090 Moved here from debug/vsprintf_chk.c.
4091 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4092 and completion logic for the strfile to match exactly what
4093 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4094 _IO_str_init_static_internal instead of maxlen-1.
4095 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4096 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4097 __vsprintf_internal.
4098
4099 * debug/vsprintf_chk.c (__vsprintf_chk)
4100 * debug/sprintf_chk.c (__sprintf_chk):
4101 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4102 'flags' argument is positive, and slen as maxlen. No need to lock
4103 the FILE and/or construct a temporary FILE. Minimize and normalize
4104 header inclusions and variable names. Do not libc_hidden_def anything.
4105
4106 * debug/asprintf_chk.c (__asprintf_chk)
4107 * debug/dprintf_chk.c (__dprintf_chk)
4108 * debug/fprintf_chk.c (__fprintf_chk)
4109 * debug/fwprintf_chk.c (__fwprintf_chk)
4110 * debug/printf_chk.c (__printf_chk)
4111 * debug/snprintf_chk.c (__snprintf_chk)
4112 * debug/swprintf_chk.c (__swprintf_chk)
4113 * debug/vasprintf_chk.c (__vasprintf_chk)
4114 * debug/vdprintf_chk.c (__vdprintf_chk)
4115 * debug/vfprintf_chk.c (__vfprintf_chk)
4116 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4117 * debug/vprintf_chk.c (__vprintf_chk)
4118 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4119 * debug/vswprintf_chk.c (__vswprintf_chk)
4120 * debug/vwprintf_chk.c (__vwprintf_chk)
4121 * debug/wprintf_chk.c (__wprintf_chk):
4122 Directly call the corresponding vxxprintf_internal function, passing
4123 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4124 the FILE and/or construct a temporary FILE. Minimize and normalize
4125 header inclusions and variable names. Do not libc_hidden_def anything.
4126
4127 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4128 __obstack_vprintf_internal.
4129 (__obstack_vprintf_chk): Convert into a wrapper that calls
4130 __obstack_vprintf_internal (these two functions already had the
4131 same code) and move to new file...
4132 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4133 file.
4134 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4135 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4136 * debug/Makefile (routines): Add vobprintf_chk.
4137
4138 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4139 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4140 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4141 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4142 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4143 (__nldbl___obstack_vfprintf_chk):
4144 Directly call the corresponding vxxprintf_internal function,
4145 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4146 duplicate comparison of slen with 0 or maxlen from the corresponding
4147 non-__nldbl function.
4148
4149 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4150 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4151 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4152 Remove libc_hidden_proto.
4153
4154 * stdio-common/vfprintf-internal.c
4155 (__vfprintf_internal, __vfwprintf_internal):
4156 Do not check _IO_FLAGS2_FORTIFY.
4157 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4158 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4159 a comment explaining why it has the maxlen argument.
4160 (_IO_acquire_lock_clear_flags2_fct): Remove.
4161 (_IO_acquire_lock_clear_flags2): Remove.
4162 (_IO_release_lock): Remove conditional statement which will
4163 now never execute.
4164 (_IO_acquire_lock): Remove variable which is now unused.
4165 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4166 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4167
4168 * stdio-common/Makefile (tests): Add tst-bz11319 and
4169 tst-bz11319-fortify2.
4170 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4171 * stdio-common/tst-bz11319-fortify2.c: New file.
4172 * stdio-common/tst-bz11319.c: Likewise.
4173
4174 2018-12-05 Zack Weinberg <zackw@panix.com>
4175 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4176
4177 * misc/syslog.c: Include libioP.h, not iolibio.h.
4178 (__vsyslog_internal): New function with the former body of
4179 __vsyslog_chk; takes mode_flags argument same as
4180 __v*printf_internal. Call __vfprintf_internal directly.
4181
4182 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4183 Remove libc_hidden_def.
4184 (__syslog, __syslog_chk): Use __vsyslog_internal.
4185 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4186
4187 * include/sys/syslog.h: Add multiple inclusion guard.
4188 Add prototype for __vsyslog_internal.
4189 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4190
4191 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4192 Use __vsyslog_internal.
4193
4194 2018-12-05 Zack Weinberg <zackw@panix.com>
4195 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4196
4197 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4198 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4199 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4200 New functions.
4201 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4202 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4203
4204 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4205 Include wctype.h here if COMPILE_WPRINTF is defined.
4206 Define __vfprintf_internal or __vfwprintf_internal, depending
4207 on COMPILE_WPRINTF.
4208 Temporarily, on entry to this function, update mode_flags
4209 according to the environmental settings corresponding to
4210 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4211 Throughout, check mode_flags instead of __ldbl_is_dbl and
4212 _IO_FLAGS2_FORTIFY on the destination FILE.
4213 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4214 Include vfprintf-internal.c. Don't include wctype.h.
4215 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4216 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4217 and vfprintf.
4218 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4219 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4220 and vfwprintf.
4221 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4222
4223 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4224 and add mode_flags argument; use __vfprintf_internal.
4225 (__vdprintf): New function. Alias vdprintf to this.
4226 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4227 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4228 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4229 (__obstack_printf): Use __obstack_printf_internal.
4230 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4231 public aliases __vsnprintf and vsnprintf.
4232 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4233 called internally.
4234 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4235 public aliases _IO_vsprintf and vsprintf.
4236 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4237 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4238 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4239 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4240 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4241
4242 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4243 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4244 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4245 * stdio-common/printf.c: Use __vfprintf_internal.
4246
4247 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4248 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4249 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4250
4251 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4252 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4253 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4254 __vfwprintf_internal.
4255
4256 * libio/libio.h: Remove libc_hidden_proto and declaration for
4257 _IO_vfprintf.
4258 Remove declaration of _IO_vfwprintf.
4259 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4260 _IO_vsprintf.
4261 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4262 _IO_obstack_printf.
4263 * include/stdio.h: Add prototype for __vasprintf.
4264 (__vsnprintf): Remove declaration, because there are no more
4265 internal calls.
4266 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4267 declaration, because there are no more internal calls.
4268
4269 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4270 __vsnprintf_internal, instead of _IO_vsnprintf.
4271 * argp/argp-help.c (__argp_error, __argp_failure): Use
4272 __vasprintf_internal, instead of _IO_vasprintf.
4273 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4274 redefine, because there are no more internal calls.
4275
4276 2018-12-05 Zack Weinberg <zackw@panix.com>
4277 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4278
4279 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4280 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4281 Include libio/strfile.h instead of libioP.h.
4282 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4283 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4284 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4285 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4286 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4287 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4288 necessary. Do not set __no_long_double. Normalize variable names.
4289 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4290 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4291 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4292 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4293 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4294 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4295 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4296 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4297 Do not set __no_long_double. Normalize variable names.
4298
4299 2018-12-05 Zack Weinberg <zackw@panix.com>
4300 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4301
4302 * stdio-common/isoc99_scanf.c
4303 * stdio-common/isoc99_fscanf.c
4304 * stdio-common/isoc99_sscanf.c
4305 * stdio-common/isoc99_vscanf.c
4306 * stdio-common/isoc99_vfscanf.c
4307 * stdio-common/isoc99_vsscanf.c
4308 * wcsmbs/isoc99_wscanf.c
4309 * wcsmbs/isoc99_fwscanf.c
4310 * wcsmbs/isoc99_swscanf.c
4311 * wcsmbs/isoc99_vwscanf.c
4312 * wcsmbs/isoc99_vfwscanf.c
4313 * wcsmbs/isoc99_vswscanf.c:
4314 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4315 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4316 No need to lock and unlock the FILE passed to that function.
4317
4318 * stdio-common/vfscanf-internal.c
4319 (__vfscanf_internal, __vfwscanf_internal):
4320 Don't look at _IO_FLAGS2_SCANF_STD.
4321 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4322 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4323 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4324
4325 2018-12-05 Zack Weinberg <zackw@panix.com>
4326 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4327
4328 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4329 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4330 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4331 * libio/strfile.h: Add multiple inclusion guard.
4332 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4333
4334 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4335 consistency with the other version of this file.
4336 (ldbl_compat_symbol): New macro.
4337 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4338 New macro.
4339
4340 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4341 Define __vfscanf_internal or __vfwscanf_internal, depending on
4342 COMPILE_WSCANF; don't define any other public symbols.
4343 Remove errval and code to set errp.
4344 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4345 as the mode_flags argument.
4346 (encode_error, conv_error, input_error): Don't set errval.
4347 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4348 Include vfscanf-internal.c.
4349 * stdio-common/vfscanf.c: New file defining the public entry
4350 point vfscanf, which calls __vfscanf_internal.
4351 * stdio-common/vfwscanf.c: New file defining the public entry
4352 point vfwscanf, which calls __vfwscanf_internal.
4353
4354 * stdio-common/iovfscanf.c: New file.
4355 * stdio-common/iovfwscanf.c: Likewise.
4356
4357 * stdio-common/Makefile (routines): Add vfscanf-internal,
4358 vfwscanf-internal, iovfscanf, iovfwscanf.
4359 * stdio-common/Versions: Mention GLIBC_2.29, so that
4360 it can be used in SHLIB_COMPAT expressions.
4361 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4362 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4363 Call __vfscanf_internal, instead of _IO_vfscanf.
4364 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4365 _IO_vfscanf.
4366 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4367 _IO_vfwscanf.
4368
4369 * libio/iovsscanf.c: Clean up includes, when possible. Use
4370 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4371 __vfscanf_internal or __vfwscanf_internal directly.
4372 * libio/iovswscanf.c: Likewise.
4373 * libio/swscanf.c: Likewise.
4374 * libio/vscanf.c: Likewise.
4375 * libio/vwscanf.c: Likewise.
4376 * libio/wscanf.c: Likewise.
4377 * stdio-common/isoc99_fscanf.c: Likewise.
4378 * stdio-common/isoc99_scanf.c: Likewise.
4379 * stdio-common/isoc99_sscanf.c: Likewise.
4380 * stdio-common/isoc99_vfscanf.c: Likewise.
4381 * stdio-common/isoc99_vscanf.c: Likewise.
4382 * stdio-common/isoc99_vsscanf.c: Likewise.
4383 * stdio-common/scanf.c: Likewise.
4384 * stdio-common/sscanf.c: Likewise.
4385 * wcsmbs/isoc99_fwscanf.c: Likewise.
4386 * wcsmbs/isoc99_swscanf.c: Likewise.
4387 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4388 * wcsmbs/isoc99_vswscanf.c: Likewise.
4389 * wcsmbs/isoc99_vwscanf.c: Likewise.
4390 * wcsmbs/isoc99_wscanf.c: Likewise.
4391
4392 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4393
4394 * include/time.h
4395 (__tz_compute): Replace time_t with __time64_t.
4396 (__tz_convert): Replace time_t* with __time64_t.
4397 (__offtime): Replace time_t* with __time64_t.
4398 * time/gmtime.c
4399 (__gmtime_r): Adjust call to __tz_convert.
4400 (gmtime): Likewise.
4401 * time/localtime.c
4402 (__localtime_r): Likewise.
4403 (localtime): Likewise.
4404 * time/offtime.c: Replace time_t with __time64_t.
4405 * time/tzset.c: Likewise.
4406
4407 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4408
4409 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4410 dynamic linker unless [$(run-built-tests) = yes].
4411
4412 2018-12-03 DJ Delorie <dj@delorie.com>
4413
4414 * support/test-container.c (check_for_unshare_hints): New.
4415 (main): Call it if unshare fails. Add support for "su" scriptlet
4416 command.
4417
4418 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4419
4420 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4421 'START' to indicate that start text should be output.
4422 (gen_test): Likewise.
4423 (main): Generate 'START' for first symbol or '--' line, or at end
4424 of input if not previously generated.
4425
4426 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4427
4428 [BZ #19767]
4429 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4430 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4431 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4432 ALWAYS_USE_VSYSCALL.
4433
4434 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4435
4436 [BZ #23913]
4437 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4438 new_argv by one.
4439
4440 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4441
4442 [BZ #23923]
4443 * locale/programs/localedef.c: Declare boolean hard_links default true.
4444 (options): Add --no-hard-links option.
4445 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4446 * locale/programs/localedef.h: Declare prototype for hard_links.
4447 * locale/programs/locfile.c (write_locale_data): Don't use hard
4448 links if hard_links is false.
4449
4450 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4451
4452 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4453 cpu_features_basic.
4454 (__cache_sysconf): Likewise.
4455 (init_cacheinfo): Likewise.
4456 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4457 populate COMMON_CPUID_INDEX_80000007 and
4458 COMMON_CPUID_INDEX_80000008.
4459 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4460 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4461 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4462 (init_cpu_features): Use _Static_assert on
4463 index_arch_Fast_Unaligned_Load.
4464 __get_cpuid_registers and __get_arch_feature. Updated for
4465 cpu_features_basic. Set stepping in cpu_features.
4466 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4467 (FEATURE_INDEX_2): New.
4468 (FEATURE_INDEX_MAX): Changed to enum.
4469 (COMMON_CPUID_INDEX_D_ECX_1): New.
4470 (COMMON_CPUID_INDEX_80000007): Likewise.
4471 (COMMON_CPUID_INDEX_80000008): Likewise.
4472 (cpuid_registers): Likewise.
4473 (cpu_features_basic): Likewise.
4474 (CPU_FEATURE_USABLE): Likewise.
4475 (bit_arch_XXX_Usable): Likewise.
4476 (cpu_features): Use cpuid_registers and cpu_features_basic.
4477 (bit_arch_XXX): Reweritten.
4478 (bit_cpu_XXX): Likewise.
4479 (index_cpu_XXX): Likewise.
4480 (reg_XXX): Likewise.
4481 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4482 <support/check.h>.
4483 (CHECK_CPU_FEATURE): New.
4484 (CHECK_CPU_FEATURE_USABLE): Likewise.
4485 (cpu_kinds): Likewise.
4486 (do_test): Print vendor, family, model and stepping. Check
4487 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4488 (TEST_FUNCTION): Removed.
4489 Include <support/test-driver.c> instead of
4490 "../../test-skeleton.c".
4491 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4492 Check POPCNT instead of POPCOUNT.
4493 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4494
4495 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4496
4497 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4498 there is no element in `consts'.
4499
4500 2018-12-01 Florian Weimer <fweimer@redhat.com>
4501
4502 * support/support_capture_subprocess.c
4503 (support_capture_subprocess): Check that pipe descriptors have
4504 expected values. Close original pipe descriptors in subprocess.
4505
4506 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4507
4508 [BZ #23032]
4509 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4510 attr with __pthread_default_barrierattr.
4511 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4512 attr with __pthread_default_condattr.
4513 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4514 attr with __pthread_default_mutexattr.
4515 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4516 attr with __pthread_default_rwlockattr.
4517
4518 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4519
4520 * manual/tunables.texi (POSIX Thread Tunables): New node.
4521 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4522 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4523 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4524 __pthread_tunables_init.
4525 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4526 (max_adaptive_count): Define.
4527 * nptl/pthread_mutex_conf.c: New file.
4528 * nptl/pthread_mutex_conf.h: New file.
4529 * sysdeps/generic/adaptive_spin_count.h: New file.
4530 * sysdeps/nptl/dl-tunables.list: New file.
4531 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4532 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4533 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4534 Likewise.
4535
4536 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4537
4538 [BZ #20544]
4539 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4540 * stdlib/on_exit.c (__on_exit): Likewise.
4541 * stdlib/Makefile (tests): Add tst-bz20544.
4542 * stdlib/tst-bz20544.c: New test.
4543
4544 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4545
4546 [BZ #19767]
4547 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4548 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4549 New.
4550
4551 2018-11-30 Florian Weimer <fweimer@redhat.com>
4552
4553 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4554 Extend error logging.
4555 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4556 symbol.
4557
4558 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4559
4560 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4561 __sigismember instead of sigismember.
4562 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4563 cancel_handler): New definitions.
4564 (do_system): Use posix_spawn instead of fork and execl and remove
4565 reentracy code.
4566 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4567 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4568 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4569 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4570 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4571 * sysdeps/unix/sysv/linux/system.c: Likewise.
4572
4573 [BZ #22834]
4574 [BZ #17490]
4575 * NEWS: Add new semantic for atfork with popen and system.
4576 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4577 fork and execl.
4578
4579 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4580
4581 [BZ #23690]
4582 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4583 modification order when accessing reloc_result->addr.
4584 * include/link.h (reloc_result): Add field init.
4585 * nptl/Makefile (tests): Add tst-audit-threads.
4586 (modules-names): Add tst-audit-threads-mod1 and
4587 tst-audit-threads-mod2.
4588 Add rules to build tst-audit-threads.
4589 * nptl/tst-audit-threads-mod1.c: New file.
4590 * nptl/tst-audit-threads-mod2.c: Likewise.
4591 * nptl/tst-audit-threads.c: Likewise.
4592 * nptl/tst-audit-threads.h: Likewise.
4593
4594 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4595
4596 * scripts/gen-as-const.py: New file.
4597 * scripts/gen-as-const.awk: Remove.
4598 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4599 gen-as-const.py.
4600 ($(objpfx)test-as-const-%.c): Likewise.
4601
4602 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4603
4604 * elf/dl-exception.c: Include <_itoa.h>.
4605
4606 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4607
4608 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4609 returned by __f_setlk.
4610
4611 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4612 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4613
4614 * elf/Makefile (tests-internal): Add tst-create_format1.
4615 * elf/dl-exception.c (_dl_exception_create_format): Support
4616 %x, %lx and %zx.
4617 * elf/tst-create_format1.c: New file.
4618
4619 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4620
4621 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4622 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4623 gnulib.)
4624 * argp/argp-help.c (__argp_failure): Likewise.
4625
4626 2018-11-29 Mao Han <han_mao@c-sky.com>
4627
4628 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4629 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4630 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4631 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4632 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4633 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4634 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4635 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4636 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4637 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4638 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4639 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4640 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4641 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4642 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4643 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4644 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4645 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4646 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4647 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4648 (R_CKCORE_TLS_TPOFF32): New defines.
4649
4650 2018-11-29 Florian Weimer <fweimer@redhat.com>
4651
4652 * posix/Makefile (before-compile): Remove testcases.h and
4653 ptestcases.h.
4654 (generated): Add testcases.h and ptestcases.h.
4655 (testcases.h, ptestcases.h): Move to $(objpfx).
4656 (runtests.o): Add dependency on testcases.h.
4657 (runptests.o): Add dependency on ptestcases.h.
4658 * posix/testcases.h, posix/ptestcases.h: Remove files.
4659 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4660 not touch posix/testcases.h and posix/ptestcases.h.
4661
4662 2018-11-28 Florian Weimer <fweimer@redhat.com>
4663
4664 support: Add signal support to support_capture_subprocess_check.
4665 * support/capture_subprocess.h (support_capture_subprocess_check):
4666 Adjust comment and rename parameter.
4667 * support/support_capture_subprocess_check.c
4668 (print_actual_status): New function.
4669 (support_capture_subprocess_check): Support negative
4670 status_or_signal. Call print_actual_status.
4671 * support/tst-support_capture_subprocess.c (do_test): Call
4672 support_capture_subprocess_check.
4673 * libio/tst-vtables-common.c (termination_status)
4674 (init_termination_status): Remove.
4675 (check_for_termination): Adjust support_capture_subprocess_check
4676 call.
4677 (do_test): Remove call to init_termination_status.
4678
4679 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4680
4681 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4682 source directory instead of a copy.
4683 (CommandList.create_copy_dir): Remove.
4684
4685 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4686
4687 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4688
4689 2018-11-28 Florian Weimer <fweimer@redhat.com>
4690
4691 * support/support.h (support_quote_string): Do not use str
4692 parameter name.
4693
4694 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4695
4696 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4697 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4698
4699 2018-11-27 Florian Weimer <fweimer@redhat.com>
4700
4701 * support/support.h (support_quote_string): Declare.
4702 * support/support_quote_string.c: New file.
4703 * support/tst-support_quote_string.c: Likewise.
4704 * support/Makefile (libsupport-routines): Add
4705 support_quote_string.
4706 (tests): Add tst-support_quote_string.
4707
4708 2018-11-27 Florian Weimer <fweimer@redhat.com>
4709
4710 [BZ #23927]
4711 CVE-2018-19591
4712 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4713 descriptor leak in case of ENODEV error.
4714
4715 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4716
4717 [BZ #19767]
4718 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4719 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4720 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4721
4722 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4723
4724 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4725 Error for unknown lines.
4726
4727 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4728
4729 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4730 Touch additional files.
4731
4732 2018-11-26 Florian Weimer <fweimer@redhat.com>
4733
4734 [BZ #23907]
4735 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4736 double-frees.
4737
4738 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4739
4740 [BZ #19767]
4741 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4742 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4743 SHARED. Include sysdep.h.
4744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4745 ALWAYS_USE_VSYSCALL.
4746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4747 ALWAYS_USE_VSYSCALL.
4748
4749 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4750
4751 [BZ #19767]
4752 * nptl/Makefile (tests-static): Add tst-cond11-static.
4753 (tests): Likewise.
4754 * nptl/tst-cond11-static.c: New File.
4755 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4756 tst-affinity-static.
4757 (tests): Likewise.
4758 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4759 instead of SHARED.
4760 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4761 (USE_VSYSCALL): Likewise.
4762 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4763 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4764 instead of SHARED.
4765 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4766 SHARED.
4767 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4768 New.
4769
4770 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4771
4772 [BZ #23915]
4773 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4774 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4775 Undefine.
4776
4777 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4778
4779 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4780 (tst-cet-legacy-1a-ARGS): New.
4781 ($(objpfx)tst-cet-legacy-1a): New target.
4782 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4783
4784 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4785
4786 * conform/conformtest.py (CompileSubTest.__init__): Set
4787 self.run_early to False.
4788 (ExecuteSubTest.__init__): Likewise.
4789 (HeaderTests.run): Try running all non-optional, non-XFAILed
4790 compilation tests in a single execution of the compiler.
4791
4792 * conform/conformtest.py (CompileSubTest): New class.
4793 (ExecuteSubTest): Likewise.
4794 (ElementTest.run): Rename to gen_subtests. Append tests to
4795 self.subtests instead of running them.
4796 (ConstantTest.run): Likewise.
4797 (SymbolTest.run): Likewise.
4798 (TypeTest.run): Likewise.
4799 (TagTest.run): Likewise.
4800 (FunctionTest.run): Likewise.
4801 (VariableTest.run): Likewise.
4802 (MacroFunctionTest.run): Likewise.
4803 (MacroStrTest.run): Likewise.
4804 (HeaderTests.handle_test_line): Generate subtests for tests.
4805 (HeaderTests.run): Run subtests for tests.
4806
4807 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4808
4809 * math/Versions (GLIBC_2.29): Add pow.
4810 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4811 symbol.
4812 * math/w_pow.c: New file.
4813 * sysdeps/i386/fpu/w_pow.c: New file.
4814 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4815 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4816 and add necessary aliases.
4817 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4818 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4819 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4820 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4821 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4822 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4823 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4824 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4825 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4826 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4827 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4828 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4829 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4830 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4831 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4836 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4837 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4838 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4839 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4840 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4841 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4842 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4843 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4844 __pow.
4845 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4846 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4847 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4848
4849 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4850
4851 * math/Versions (GLIBC_2.29): Add log2.
4852 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4853 symbol.
4854 * math/w_log2.c: New file.
4855 * sysdeps/i386/fpu/w_log2.c: New file.
4856 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4857 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4858 and add necessary aliases.
4859 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4860 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4861 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4862 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4863 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4864 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4865 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4866 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4867 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4868 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4869 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4870 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4871 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4872 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4873 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4878 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4879 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4880 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4881 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4882 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4883 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4884 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4885
4886 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4887
4888 * math/Versions (GLIBC_2.29): Add log.
4889 * math/w_log_compat.c (__log_compat): Change to versioned compat
4890 symbol.
4891 * math/w_log.c: New file.
4892 * sysdeps/i386/fpu/w_log.c: New file.
4893 * sysdeps/ia64/fpu/e_log.S: Update.
4894 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4895 and add necessary aliases.
4896 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4897 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4898 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4899 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4900 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4901 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4902 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4903 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4904 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4905 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4906 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4907 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4908 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4909 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4910 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4915 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4916 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4917 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4918 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4919 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4920 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4921 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4922 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4923 __log.
4924 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4925 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4926 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4927 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4928
4929 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4930
4931 * math/Versions (GLIBC_2.29): Add exp and exp2.
4932 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4933 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4934 * math/w_exp_compat.c (__exp_compat): Likewise.
4935 * math/w_exp.c: New file.
4936 * math/w_exp2.c: New file.
4937 * sysdeps/i386/fpu/w_exp.c: New file.
4938 * sysdeps/i386/fpu/w_exp2.c: New file.
4939 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4940 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4941 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4942 and add necessary aliases.
4943 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4944 and add necessary aliases.
4945 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4946 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4947 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4948 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4949 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4950 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4951 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4952 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4953 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4954 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4955 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4956 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4957 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4958 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4959 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4960 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4961 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4963 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4964 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4966 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4967 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4968 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4969 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4970 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4971 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4972 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4973 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4974 (__ieee754_exp): Rename to __exp.
4975 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4976 (__ieee754_exp): Rename to __exp.
4977 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4978 (__ieee754_exp): Rename to __exp.
4979 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4980 __exp.
4981 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4982
4983 2018-11-20 DJ Delorie <dj@redhat.com>
4984
4985 * malloc/malloc.c (tcache_entry): Add key field.
4986 (tcache_put): Set it.
4987 (tcache_get): Likewise.
4988 (_int_free): Check for double free in tcache.
4989 * malloc/tst-tcfree1.c: New.
4990 * malloc/tst-tcfree2.c: New.
4991 * malloc/Makefile: Run the new tests.
4992 * manual/probes.texi: Document memory_tcache_double_free probe.
4993
4994 * dlfcn/dlerror.c (check_free): Prevent double frees.
4995
4996 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4997
4998 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4999
5000 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5001
5002 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5003 in tests. Use names for format arguments.
5004 (ConstantTest.run): Likewise.
5005 (SymbolTest.run): Likewise.
5006 (TypeTest.run): Likewise.
5007 (TagTest.run): Likewise.
5008 (FunctionTest.run): Likewise.
5009 (VariableTest.run): Likewise.
5010 (MacroFunctionTest.run): Likewise.
5011 (MacroStrTest.run): Likewise.
5012 (HeaderTests.__init__): Set self.num_tests.
5013 (HeaderTests.handle_test_line): Set test.num. Increment
5014 self.num_tests.
5015
5016 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5017
5018 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5019 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5020 SEEK_SET.
5021
5022 2018-11-19 Mao Han <han_mao@c-sky.com>
5023
5024 * scripts/config.guess: Update to version 2018-08-29.
5025 * scripts/config.sub: Update to version 2018-08-29.
5026
5027 2018-11-19 Florian Weimer <fweimer@redhat.com>
5028
5029 support: Print timestamps in timeout handler.
5030 * support/support_test_main.c (print_timestamp): New function.
5031 (signal_handler): Use it to print the termination time and the
5032 time of the last write to standard output.
5033
5034 2018-11-16 Zack Weinberg <zackw@panix.com>
5035 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5036
5037 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5038 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5039 argument.
5040 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5041 and add flags argument. Check flags instead of __ldbl_is_dbl when
5042 deciding whether to set is_long_double.
5043 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5044 passing zero for flags argument.
5045 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5046
5047 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5048 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5049 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5050 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5051 variable names. Remove libc_hidden_def/libc_hidden_proto from
5052 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5053 longer called from within the library.
5054 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5055 for __nldbl___vstrfmon_l, declare it explicitly.
5056
5057 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5058
5059 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5060
5061 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5062 macros
5063 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5064 F_SETLK64, F_SETLKW64, respectively.
5065 * sysdeps/mach/hurd/f_setlk.c: New file.
5066 * sysdeps/mach/hurd/f_setlk.h: New file.
5067 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5068 f_setlk.
5069 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5070 (__libc_fcntl): Move non-flock operations to...
5071 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5072 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5073
5074 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5075
5076 mktime: DEBUG_MKTIME cleanup
5077 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5078 And it’s no longer needed now that glibc and Gnulib both have
5079 their own testing mechanisms for mktime.
5080 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5081
5082 mktime: fix non-EOVERFLOW errno handling
5083 [BZ#23789]
5084 mktime was not properly reporting failures when the underlying
5085 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5086 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5087 The problem could happen on non-glibc platforms, with Gnulib.
5088 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5089 (tm_diff): ... this simpler function, which does not change errno.
5090 All callers changed to deal with errno themselves.
5091 (ranged_convert, __mktime_internal): Return failure immediately if
5092 the underlying function reports any failure other than EOVERFLOW.
5093 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5094 gap code fails.
5095
5096 mktime: fix bug with Y2038 DST transition
5097 [BZ#23789]
5098 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5099 mishandle a DST transition that jumps over the Y2038 boundary.
5100 No such DST transitions are known so this is only a theoretical
5101 bug, but we might as well do things right.
5102
5103 mktime: make more room for overflow
5104 [BZ#23789]
5105 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5106 This is so that we can add tm_diff results to a previous guess,
5107 which will be useful in a later patch.
5108
5109 mktime: simplify offset guess
5110 [BZ#23789]
5111 * time/mktime.c (__mktime_internal): Omit excess precision.
5112
5113 mktime: new test for mktime failure
5114 [BZ#23789]
5115 Based on a test suggested by Albert Aribaud in:
5116 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5117 * time/Makefile (tests): Add bug-mktime4.
5118 * time/bug-mktime4.c: New file.
5119
5120 mktime: fix EOVERFLOW bug
5121 [BZ#23789]
5122 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5123 Include libc-config.h, not config.h, for __set_errno.
5124 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5125
5126 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5127
5128 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5129 __attribute_copy__ to copy attributes from name. Drop static qualifier
5130 to avoid warnings about leaf attribute not having effect on static
5131 functions.
5132
5133 2018-11-13 Florian Weimer <fweimer@redhat.com>
5134
5135 * malloc/malloc.c (fastbin_push_entry): New function.
5136 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5137 (REMOVE_FB): Remove macro.
5138 (_int_malloc): Use fastbin_pop_entry and reindent.
5139 (_int_free): Use fastbin_push_entry.
5140 (malloc_consolidate): Use atomic_exchange_acquire.
5141
5142 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5143
5144 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5145 alias attribute, not with strong_alias.
5146
5147 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5148 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5149 with additional parameter thread.
5150 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5151 in terms of __hidden_ver2.
5152 (hidden_tls_def): New macro.
5153 (libc_hidden_tls_def): Likewise.
5154 (rtld_hidden_tls_def): Likewise.
5155 (libm_hidden_tls_def): Likewise.
5156 (libmvec_hidden_tls_def): Likewise.
5157 (libresolv_hidden_tls_def): Likewise.
5158 (librt_hidden_tls_def): Likewise.
5159 (libdl_hidden_tls_def): Likewise.
5160 (libnss_files_hidden_tls_def): Likewise.
5161 (libnsl_hidden_tls_def): Likewise.
5162 (libnss_nisplus_hidden_tls_def): Likewise.
5163 (libutil_hidden_tls_def): Likewise.
5164 (libutil_hidden_tls_def): Likweise.
5165 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5166 libc_hidden_tls_def.
5167 (__sim_disabled_exceptions_thread): Likewise.
5168 (__sim_round_mode_thread): Likewise.
5169
5170 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5171 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5172 copy attributes from name.
5173
5174 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5175
5176 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5177 Use __attribute_copy__ to copy attributes from name.
5178
5179 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5180 with __hidden_ver1 call.
5181 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5182 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5183 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5184 (__cosf): Do not declare here.
5185 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5186 (__sincosf): Do not declare here.
5187 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5188 (__sinf): Do not declare here.
5189
5190 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5191 (__BIG_ENDIAN): Likewise.
5192 (__BYTE_ORDER): Likewise.
5193 (strong_alias): Likewise.
5194 (_strong_alias): Likewise.
5195
5196 2018-11-12 Florian Weimer <fweimer@redhat.com>
5197
5198 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5199 function. Move after the definition of in_smallbin_range. Do not
5200 use __builtin_expect for paths that lead to a noreturn function.
5201 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5202 because it is unclear whether this is in fact an unlikely
5203 condition.
5204 (_int_malloc, _int_free): Adjust.
5205 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5206 variables.
5207 * malloc/arena.c (heap_trim): Likewise.
5208
5209 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5210
5211 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5212 it, free it if needed.
5213 (reauthenticate): Test and use ccwdir.
5214 (child_init_port): In non-resetids case, test and use ccwdir.
5215 (child_chdir): New nested function to set ccwdir.
5216 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5217 * hurd/hurd/port.h (_hurd_port_move): New function.
5218 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5219 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5220 * hurd/Versions (_hurd_port_move): Export function.
5221 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5222 symbol.
5223 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5224 of dtablesize for allocating dtable_cloexec.
5225
5226 2018-11-09 Martin Sebor <msebor@redhat.com>
5227
5228 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5229 it's already defined.
5230 (_strong_alias): Use __attribute_copy__.
5231 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5232 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5233 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5234 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5235 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5236 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5237 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5238 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5239 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5240 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5241 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5242 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5243 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5244 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5245 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5246 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5247 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5248 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5249 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5250
5251 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5252
5253 * misc/tst-efgcvt.c: Include support/check.h and
5254 support/test-driver.c. Do not include test-skeleton.c.
5255 (error_count): Remove.
5256 (output_error): Replace increments to error_count with calls to
5257 support_record_failure.
5258 (output_r_error): Likewise.
5259 (special): Likewise.
5260 (do_test): Unconditionally return zero.
5261 (TEST_FUNCTION): Remove.
5262
5263 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5264
5265 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5266 not $(@D)/scratch.
5267 ($(linknamespace-header-tests)): Likewise.
5268
5269 * conform/conformtest.py: New file.
5270 * conform/conformtest.pl: Remove.
5271 * conform/GlibcConform.pm: Likewise.
5272 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5273 (KEYWORDS_C99): Likewise.
5274 (KEYWORDS): Likewise.
5275 * conform/Makefile ($(conformtest-header-tests)): Use
5276 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5277 option. Use --header instead of --headers.
5278 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5279 function entries.
5280 * conform/data/spawn.h-data: Likewise.
5281 * conform/data/fcntl.h-data (openat): Add space after function
5282 name.
5283 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5284 (wcscasecmp_l): Likewise.
5285 * conform/data/termios.h-data (c_cc): Add space after element
5286 name.
5287
5288 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5289
5290 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5291 instead of manually comparing and reporting mismatching strings.
5292 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5293 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5294
5295 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5296
5297 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5298 __ASSUME_SOCKETCALL.
5299 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5300 (__ASSUME_SOCKETCALL): Remove.
5301 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5302 (__ASSUME_SOCKETCALL): Likewise.
5303 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5304 (__ASSUME_SOCKETCALL): Likewise.
5305 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5306 (__ASSUME_SOCKETCALL): Likewise.
5307 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5308 (__ASSUME_SOCKETCALL): Likewise.
5309 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5310 (__ASSUME_SOCKETCALL): Likewise.
5311 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5312 (__ASSUME_SOCKETCALL): Likewise.
5313
5314 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5315
5316 [BZ #23509]
5317 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5318 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5319 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5320 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5321 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5322 lc_unknown.
5323
5324 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5325
5326 [BZ #17630]
5327 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5328
5329 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5330
5331 [BZ #23867]
5332 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5333 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5334 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5335 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5336
5337 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5338
5339 * support/support_test_compare_string.c
5340 (support_test_compare_string): Fix printf format.
5341
5342 2018-11-07 Florian Weimer <fweimer@redhat.com>
5343
5344 Implement TEST_COMPARE_STRING.
5345 * support/check.h (TEST_COMPARE_STRING): Define.
5346 (support_test_compare_string): Declare.
5347 * support/Makefile (libsupport-routines): Add
5348 support_test_compare_string.
5349 (tests): Add tst-test_compare_string.
5350 * support/support_test_compare_string.c: New file.
5351 * support/tst-test_compare_string.c: Likewise.
5352
5353 2018-11-07 Andreas Schwab <schwab@suse.de>
5354
5355 [BZ #23864]
5356 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5357 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5358 Undef.
5359
5360 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5361
5362 [BZ #23862]
5363 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5364 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5365 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5366 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5367 Likewise.
5368
5369 2018-11-06 Florian Weimer <fweimer@redhat.com>
5370
5371 [BZ #17405]
5372 * posix/Makefile (routines): Add spawn_faction_addchdir.
5373 (tests): Add tst-spawn-chdir.
5374 * posix/Versions (GLIBC_2.29): Add
5375 posix_spawn_file_actions_addchdir_np.
5376 * posix/spawn_faction_addchdir.c: New file.
5377 * posix/spawn_faction_destroy.c
5378 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5379 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5380 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5381 chdir_action.
5382 * posix/tst-spawn-chdir.c: New file.
5383 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5384 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5385 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5386 posix_spawn_file_actions_addchdir_np.
5387 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5388 Likewise.
5389 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5390 Likewise.
5391 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5392 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5393 Likewise.
5394 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5395 Likewise.
5396 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5397 Likewise.
5398 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5399 Likewise.
5400 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5401 Likewise.
5402 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5403 Likewise.
5404 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5405 (GLIBC_2.29): Likewise.
5406 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5407 (GLIBC_2.29): Likewise.
5408 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5409 (GLIBC_2.29): Likewise.
5410 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5411 (GLIBC_2.29): Likewise.
5412 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5413 Likewise.
5414 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5415 (GLIBC_2.29): Likewise.
5416 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5417 (GLIBC_2.29): Likewise.
5418 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5419 (GLIBC_2.29): Likewise.
5420 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5421 (GLIBC_2.29): Likewise.
5422 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5423 Likewise.
5424 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5425 Likewise.
5426 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5427 Likewise.
5428 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5429 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5430 Likewise.
5431 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5432 Likewise.
5433 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5434 Likewise.
5435 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5436 Likewise.
5437
5438 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5439
5440 * misc/Makefile (tests): Add tst-ldbl-error.
5441 * misc/tst-ldbl-error.c: New file.
5442
5443 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5444
5445 * misc/Makefile (tests): Add tst-ldbl-warn.
5446 * misc/tst-ldbl-warn.c: New file.
5447
5448 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5449
5450 * argp/Makefile (tests): Add tst-ldbl-argp.
5451 * argp/tst-ldbl-argp.c: New file.
5452
5453 2018-11-05 Arjun Shankar <arjun@redhat.com>
5454
5455 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5456 __gconv_path_elem and call __gconv_get_path unconditionally.
5457
5458 2018-11-05 Andreas Schwab <schwab@suse.de>
5459
5460 [BZ #22927]
5461 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5462 creating the first helper thread failed.
5463
5464 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5465
5466 * sysdeps/mach/hurd/msync.c: New file.
5467
5468 2018-11-02 Florian Weimer <fweimer@redhat.com>
5469
5470 * support/shell-container.c (copy_func): Call
5471 support_copy_file_range instead of copy_file_range to support
5472 cross-device copies.
5473
5474 2018-11-02 Florian Weimer <fweimer@redhat.com>
5475
5476 * support/test-container.c: Include <libc-pointer-arith.h> for
5477 ALIGN_UP.
5478
5479 2018-11-01 Zong Li <zong@andestech.com>
5480
5481 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5482 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5483 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5484 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5485
5486 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5487 variable to avoid overlap arguments.
5488
5489 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5490
5491 * posix/bug-regex22.c (main): Use puts with distinct error
5492 messages for unexpected success of re_compile_pattern, not printf
5493 with NULL argument to %s.
5494
5495 * stdio-common/bug22.c: Include <libc-diag.h>.
5496 (do_test): Disable -Wformat-overflow= warnings around fprintf
5497 calls outputting more than INT_MAX characters.
5498 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5499 around printf call with NULL %s argument.
5500
5501 [BZ #23848]
5502 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5503 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5504 Undefine.
5505 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5506 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5507 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5508 (__ASSUME_SENDTO_SYSCALL): Likewise.
5509 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5510 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5511 [!__arch64__].
5512 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5513 (__ASSUME_CONNECT_SYSCALL): Likewise.
5514 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5515 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5516 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5517 Define.
5518 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5519 Likewise.
5520 [__LINUX_KERNEL_VERSION >= 0x040400]
5521 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5522 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5523 Remove.
5524 (listen): Likewise.
5525 (setsockopt): Likewise.
5526
5527 2018-11-01 Fredrik Noring <noring@nocrew.org>
5528
5529 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5530 with the ISA override.
5531
5532 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5533
5534 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5535 #endif.
5536
5537 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5538
5539 * manual/errno.texi (EIEIO): Document how translators should
5540 translate the error message.
5541 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5542 printing trailing whitespaces refused by git.
5543 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5544 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5545 * hurd/Makefile (user-interfaces): Add pci.
5546
5547 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5548
5549 * conform/linknamespace.py: New file.
5550 * conform/linknamespace.pl: Remove file.
5551 * conform/Makefile ($(linknamespace-header-tests)): Use
5552 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5553 option.
5554
5555 2018-10-30 Florian Weimer <fweimer@redhat.com>
5556
5557 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5558 memory leaks.
5559
5560 2018-10-30 Florian Weimer <fweimer@redhat.com>
5561
5562 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5563
5564 2018-10-30 Florian Weimer <fweimer@redhat.com>
5565
5566 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5567 support_blob_repeat.
5568
5569 2018-10-30 Florian Weimer <fweimer@redhat.com>
5570
5571 Avoid spurious test failures in stdlib/test-bz22786.
5572 * support/Makefile (libsupport-routines): Add blob_repeat.
5573 (tests): Add tst-support_blob_repeat.
5574 * support/blob_repeat.h: New file.
5575 * support/blob_repeat.c: Likewise.
5576 * support/tst-support_blob_repeat.c: Likewise.
5577 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5578 support_blob_repeat_allocate.
5579
5580 2018-10-30 Andreas Schwab <schwab@suse.de>
5581
5582 [BZ #23125]
5583 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5584 Don't use tail call.
5585 * elf/tst-unwind-main.c: New file.
5586 * elf/Makefile (tests): Add tst-unwind-main.
5587 (CFLAGS-tst-unwind-main.c): Define.
5588
5589 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5590
5591 [BZ #23791]
5592 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5593 n_cs_precedes to 0.
5594 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5595
5596 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5597
5598 * conform/glibcconform.py: Do not import shutil.
5599 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5600 of mkdtemp.
5601
5602 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5603 critic_missing for versions before 3.4.
5604 * configure: Regenerated.
5605 * manual/install.texi (Tools for Compilation): Document
5606 requirement for Python to build glibc.
5607 * INSTALL: Regenerated.
5608 * Rules [PYTHON]: Make code unconditional.
5609 * benchtests/Makefile [PYTHON]: Likewise.
5610 * conform/Makefile [PYTHON]: Likewise.
5611 * manual/Makefile [PYTHON]: Likewise.
5612 * math/Makefile [PYTHON]: Likewise.
5613
5614 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5615
5616 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5617 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5618 answer to interrupt_operation, return EIEIO instead of EINTR.
5619 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5620 _hurd_intr_rpc_msg_about_to global point to start of controlled
5621 assembly snippet. Make it check canceled flag.
5622 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5623 the _hurd_intr_rpc_msg_about_to point.
5624 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5625 issue, remove cancel flag check.
5626
5627 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5628
5629 * scripts/build-many-glibcs.py: Remove compatibility for missing
5630 os.cpu_count and re.fullmatch.
5631
5632 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5633
5634 [BZ #23822]
5635 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5636 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5637 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5638
5639 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5640
5641 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5642 macro.
5643
5644 2018-10-25 Florian Weimer <fweimer@redhat.com>
5645
5646 [BZ #23562]
5647 [BZ #23821]
5648 XFAIL siginfo_t si_band conform test on sparc64.
5649 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5650 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5651 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5652 (conformtest-xfail-conds): Add sparc64-linux.
5653 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5654 sparc64.
5655 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5656
5657 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5658
5659 * elf/elf.h (NT_MIPS_DSP): New macro.
5660 (NT_MIPS_FP_MODE): Likewise.
5661
5662 2018-10-25 Zong Li <zong@andestech.com>
5663
5664 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5665 name by adding the file extension (.so).
5666
5667 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5668
5669 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5670 (test-xfail-ISO11/threads.h/linknamespace,
5671 test-xfail-ISO11/threads.h/conform): Add.
5672
5673 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5674
5675 * math/gen-libm-test.py: Import os.
5676 (ALL_FLOATS_MANUAL): New constant.
5677 (ALL_FLOATS_SUFFIX): Likewise.
5678 (Ulps.all_functions): New function.
5679 (real_all_ulps): Likewise.
5680 (generate_err_table_sub): Likewise.
5681 (generate_err_table): Likewise.
5682 (main): Handle -s and -m options.
5683 * manual/libm-err-tab.pl: Remove.
5684 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5685 instead of libm-err-tab.pl.
5686 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5687 != no].
5688 * manual/install.texi (Tools for Compilation): Document
5689 requirement for Python to build manual.
5690 * INSTALL: Regenerated.
5691
5692 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5693
5694 * bits/time64.h: New file.
5695 * include/time.h: Replace internal_time_t with __time64_t.
5696 * posix/bits/types (__time64_t): Add.
5697 * stdlib/Makefile: Add bits/time64.h to includes.
5698 * time/tzfile.c: Replace internal_time_t with __time64_t.
5699
5700 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5701
5702 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5703 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5704 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5705 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5706 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5707 prototype.
5708 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5709 * posix/spawn_faction_addclose.c
5710 (__posix_spawn_file_actions_addclose): Add hidden definition.
5711 * posix/spawn_faction_adddup2.c
5712 (__posix_spawn_file_actions_adddup2): Likewise.
5713 * posix/spawn_faction_destroy.c
5714 (__posix_spawn_file_actions_destroy): Likewise.
5715 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5716 Likewise.
5717 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5718 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5719 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5720 Likewise.
5721 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5722 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5723 Likewise.
5724
5725 2018-10-24 Andreas Schwab <schwab@suse.de>
5726
5727 [BZ #18093]
5728 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5729 format cache.
5730 * elf/cache.c (print_cache): Likewise.
5731
5732 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5733
5734 * bits/timesize.h: New file.
5735 * stdlib/Makefile (headers): Add bits/timesize.h.
5736 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5737 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5738 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5739 (__SEM_PAD_AFTER_TIME): Likewise.
5740 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5741 (__SHM_PAD_AFTER_TIME): Likewise.
5742 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5743 (__MSQ_PAD_BEFORE_TIME): Likewise.
5744 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5745 (__SEM_PAD_BEFORE_TIME): Likewise.
5746 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5747 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5748 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5749 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5750 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5751 (__MSQ_PAD_BEFORE_TIME): Likewise.
5752 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5753 (__SEM_PAD_BEFORE_TIME): Likewise.
5754 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5755 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5756 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5757 (__MSQ_PAD_BEFORE_TIME): Likewise.
5758 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5759 (__SEM_PAD_BEFORE_TIME): Likewise.
5760 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5761 (__SHM_PAD_BEFORE_TIME): Likewise.
5762 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5763 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5764 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5765
5766 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5767
5768 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5769 USE_RDTSCP is defined.
5770 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5771 USE_RDTSCP is defined.
5772
5773 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5774
5775 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5776 defined.
5777
5778 [BZ #23709]
5779 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5780 independently of other flags.
5781
5782 2018-10-23 Florian Weimer <fweimer@redhat.com>
5783
5784 * time/tst-mktime2.c (N_STRINGS): Remove.
5785 (set_timezone): New function.
5786 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5787 (mktime_test1): Report localtime failure and check errno value.
5788 Use TEST_COMPARE.
5789 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5790 (do_test): Remove alarm call. Use set_timezone and array_length.
5791
5792 2018-10-23 Andreas Schwab <schwab@suse.de>
5793
5794 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5795 (__start_context): Use END instead of PSEUDO_END.
5796
5797 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5798
5799 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5800 version to 4.19.
5801
5802 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5803 version to 4.19.
5804
5805 [BZ #23793]
5806 * wcsmbs/c32rtomb.c: New file.
5807 * wcsmbs/mbrtoc32.c: Likewise.
5808 * wcsmbs/tst-c32-state.c: Likewise.
5809 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5810 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5811 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5812 (tests): Add tst-c32-state.
5813 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5814 $(gen-locales).
5815
5816 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5817
5818 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5819 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5820
5821 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5822
5823 [BZ #23794]
5824 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5825 pair and return 0 in that case, and use saved character to
5826 interpret following character.
5827 * wcsmbs/tst-c16-surrogate.c: New file.
5828 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5829 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5830 Depend on $(gen-locales)
5831
5832 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5833
5834 [BZ #23562]
5835 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5836 (struct siginfo_t): Use correct type for si_band.
5837
5838 2018-10-19 Florian Weimer <fweimer@redhat.com>
5839
5840 [BZ #23689]
5841 * resource/bits/types/struct_rusage.h (struct rusage): Update
5842 comment on struct. Remove extraneous field comment.
5843
5844 2018-10-18 David S. Miller <davem@davemloft.net>
5845
5846 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5847 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5848 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5849 sysdep_routines in subdir elf.
5850 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5851 version for __vdso_clock_gettime.
5852 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5853 Define.
5854 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5855 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5856
5857 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5858
5859 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5860
5861 * sysdeps/i386/init-arch.h: Removed.
5862 * sysdeps/i386/i586/init-arch.h: Likewise.
5863 * sysdeps/i386/i686/init-arch.h: Likewise.
5864 * sysdeps/i386/i686/hp-timing.h: Likewise.
5865 * sysdeps/x86_64/hp-timing.h: Likewise.
5866 * sysdeps/i386/isa.h: New file.
5867 * sysdeps/i386/i586/isa.h: Likewise.
5868 * sysdeps/i386/i686/isa.h: Likewise.
5869 * sysdeps/x86_64/isa.h: Likewise.
5870 * sysdeps/x86/hp-timing.h: New file.
5871 * sysdeps/x86/init-arch.h: Include <isa.h>.
5872
5873 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5874
5875 * math/libm-test-pow.inc (pow_test_data): Do not allow
5876 divide-by-zero exception for pow(+/- 0, -Inf).
5877
5878 2018-10-17 Zack Weinberg <zackw@panix.com>
5879
5880 * manual/job.texi (Job Control is Optional): Remove node, as
5881 job control has not been optional in quite some time.
5882 (Job Control): Mention briefly that systems older than
5883 POSIX.1-2001 might not support job control.
5884 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5885 defined on systems conforming to POSIX.1-2001.
5886
5887 2018-10-17 Arjun Shankar <arjun@redhat.com>
5888
5889 [BZ #22062]
5890 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5891 indentation.
5892 * (__gconv_read_conf): Mark function static.
5893 * (once): New static variable.
5894 * (__gconv_load_conf): New function.
5895 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5896 * iconv/gconv_db.c (once): Remove static variable.
5897 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5898 __gconv_read_conf.
5899 * (__gconv_find_transform): Likewise.
5900 * iconv/tst-iconv-mt.c: New test.
5901 * iconv/Makefile: Add tst-iconv_mt.
5902
5903 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5904
5905 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5906 bits/shm-pad.h.
5907 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5908 (shmatt_t): Define as __syscall_ulong_t.
5909 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5910 and [__SHM_PAD_AFTER_TIME].
5911 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5912 Define shm_segsz and associated padding based on
5913 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5914 Use __syscall_ulong_t instead of unsigned long int.
5915 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5916 unsigned long int.
5917 [__USE_MISC] (struct shm_info): Likewise.
5918 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5919 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5920 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5921 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5922 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5923 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5924 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5925 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5926 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5927 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5928 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5929
5930 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5931 bits/shmlba.h.
5932 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5933 (SHMLBA): Remove macro.
5934 (__getpagesize): Remove function declaration.
5935 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5936 <bits/shmlba.h>.
5937 (SHMLBA): Remove macro.
5938 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5939 <bits/shmlba.h>.
5940 (SHMLBA): Remove macro.
5941 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5942 <bits/shmlba.h>.
5943 (SHMLBA): Remove macro.
5944 (__getpagesize): Remove function declaration.
5945 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5946 <bits/shmlba.h>.
5947 (SHMLBA): Remove macro.
5948 (__getshmlba): Remove function declaration.
5949 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5950 (SHMLBA): Remove macro.
5951 (__getpagesize): Remove function declaration.
5952 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5953 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5954 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5955 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5956 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5957 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5958 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5959 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5960 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5961 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5962
5963 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5964
5965 [BZ #23275]
5966 * nptl/tst-mutex10.c: New File.
5967 * nptl/Makefile (tests): Add tst-mutex10.
5968 (tst-mutex10-ENV): New variable.
5969 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5970 Ensure that elision path is used if elision is available.
5971 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5972 Likewise.
5973 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5974 Likewise.
5975 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5976 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5977 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5978 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5979 Likewise.
5980 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5981 (__pthread_mutex_cond_lock_adjust): Likewise.
5982 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5983 Likewise.
5984 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5985 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5986 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5987 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5988 Add comments.
5989 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5990 Use atomic_load_relaxed and atomic_store_relaxed.
5991 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5992 Use atomic_store_relaxed.
5993
5994 2018-10-17 Andreas Schwab <schwab@suse.de>
5995
5996 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5997 * crypt/badsalttest.c (TIMEOUT): Likewise.
5998 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5999 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6000 * io/test-lfs.c (TIMEOUT): Likewise.
6001 * libio/tst-atime.c (TIMEOUT): Likewise.
6002 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6003 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6004 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6005 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6006 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6007 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6008 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6009 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6010 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6011 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6012 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6013 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6014 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6015 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6016 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6017 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6018 * nptl/tst-once2.c (TIMEOUT): Likewise.
6019 * nptl/tst-once3.c (TIMEOUT): Likewise.
6020 * nptl/tst-once4.c (TIMEOUT): Likewise.
6021 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6022 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6023 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6024 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6025 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6026 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6027 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6028 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6029 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6030 * posix/tst-chmod.c (TIMEOUT): Likewise.
6031 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6032 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6033 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6034 * posix/tst-regex2.c (TIMEOUT): Likewise.
6035 * posix/tst-waitid.c (TIMEOUT): Likewise.
6036 * rt/tst-aio.c (TIMEOUT): Likewise.
6037 * rt/tst-aio10.c (TIMEOUT): Likewise.
6038 * rt/tst-aio4.c (TIMEOUT): Likewise.
6039 * rt/tst-aio5.c (TIMEOUT): Likewise.
6040 * rt/tst-aio6.c (TIMEOUT): Likewise.
6041 * rt/tst-aio64.c (TIMEOUT): Likewise.
6042 * rt/tst-aio7.c (TIMEOUT): Likewise.
6043 * rt/tst-aio9.c (TIMEOUT): Likewise.
6044 * rt/tst-clock.c (TIMEOUT): Likewise.
6045 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6046 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6047 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6048 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6049 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6050 * rt/tst-timer4.c (TIMEOUT): Likewise.
6051 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6052 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6053 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6054 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6055 * time/tst-ftime.c (TIMEOUT): Likewise.
6056 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6057
6058 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6059
6060 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6061 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6062 for thunderX2.
6063
6064 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6065
6066 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6067 bits/sem-pad.h.
6068 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6069 instead of <bits/wordsize.h>.
6070 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6071 and [__SEM_PAD_AFTER_TIME].
6072 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6073 __syscall_ulong_t instead of unsigned long int.
6074 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6075 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6076 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6077 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6078 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6079 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6080 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6081 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6082 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6083 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6084 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6085
6086 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6087
6088 regex: simplify by using intprops.h
6089 [BZ#23744]
6090 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6091 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6092 intprops.h defines them.
6093
6094 regex: __builtin_expect → __glibc_unlikely
6095 [BZ#23744]
6096 This refactoring was prompted by a problem when the regex code is
6097 used as part of Gnulib and when the builder’s compiler does not grok
6098 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6099 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6100 Although this refactoring does not fix the problem directly,
6101 we might as well have Gawk use the now-preferred glibc style for when
6102 __builtin_expect is unavailable.
6103 * posix/regex_internal.h (BE): Remove.
6104 All uses replaced by __glibc_unlikely or __glibc_likely.
6105
6106 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6107
6108 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6109 bits/msq-pad.h.
6110 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6111 instead of <bits/wordsize.h>.
6112 (msgqnum_t): Define as __syscall_ulong_t.
6113 (msglen_t): Likewise.
6114 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6115 and [__MSQ_PAD_AFTER_TIME].
6116 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6117 __syscall_ulong_t instead of unsigned long int.
6118 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6119 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6120 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6121 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6122 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6123 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6124 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6125 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6126 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6127 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6128 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6129
6130 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6131
6132 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6133 (struct shmid_ds): Condition padding after time fields on
6134 [__WORDSIZE == 32].
6135 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6136 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6137 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6138
6139 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6140 (struct semid_ds): Condition padding after time fields on
6141 [__WORDSIZE == 32].
6142 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6143 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6144 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6145 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6146
6147 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6148 (struct msqid_ds): Condition padding after time fields on
6149 [__WORDSIZE == 32].
6150 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6151 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6152 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6153 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6154
6155 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6156
6157 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6158
6159 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6160
6161 * libio/tst-readline.c (TIMEOUT): Define.
6162
6163 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6164
6165 mktime fix for Gnulib + coreutils
6166 [BZ#23745]
6167 This fix affects only Gnulib. Problem discovered when
6168 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6169 * time/mktime.c:
6170 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6171 Do not define since it is not used. Defining an unused static
6172 function prompts a warning from GCC when Coreutils is configured
6173 with --enable-gcc-warnings.
6174
6175 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6176
6177 * benchtests/scripts/compare_bench.py (main): set float type on
6178 threshold argument.
6179
6180 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6181
6182 [BZ #23740]
6183 * localedata/locales/kl_GL (mon): Update, the relative case.
6184 (alt_mon): Add, fill with month names in the nominative case.
6185 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6186 (d_fmt): Set to "%b %d %Y".
6187
6188 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6189
6190 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6191 <bits/mman-linux.h>.
6192 (PROT_READ): Don't define here.
6193 (PROT_WRITE): Likewise.
6194 (PROT_EXEC): Likewise.
6195 (PROT_NONE): Likewise.
6196 (PROT_GROWSDOWN): Likewise.
6197 (PROT_GROWSUP): Likewise.
6198 (MAP_SHARED): Likewise.
6199 (MAP_PRIVATE): Likewise.
6200 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6201 [__USE_MISC] (MAP_FILE): Likewise.
6202 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6203 [__USE_MISC] (MAP_ANON): Likewise.
6204 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6205 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6206 (MCL_CURRENT): Likewise.
6207 (MCL_FUTURE): Likewise.
6208 (MCL_ONFAULT): Likewise.
6209 [__USE_MISC] (MADV_NORMAL): Likewise.
6210 [__USE_MISC] (MADV_RANDOM): Likewise.
6211 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6212 [__USE_MISC] (MADV_WILLNEED): Likewise.
6213 [__USE_MISC] (MADV_DONTNEED): Likewise.
6214 [__USE_MISC] (MADV_FREE): Likewise.
6215 [__USE_MISC] (MADV_REMOVE): Likewise.
6216 [__USE_MISC] (MADV_DONTFORK): Likewise.
6217 [__USE_MISC] (MADV_DOFORK): Likewise.
6218 [__USE_MISC] (MADV_HWPOISON): Likewise.
6219 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6220 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6221 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6222 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6223 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6224 (__MAP_ANONYMOUS): New macro.
6225 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6226 <bits/mman-linux.h> inclusion.
6227 (MAP_FIXED): Likewise.
6228 (MS_SYNC): Likewise.
6229 (MS_ASYNC): Likewise.
6230 (MS_INVALIDATE): Likewise.
6231 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6232 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6233 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6234 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6235 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6236 [__USE_MISC] (MADV_DODUMP): Likewise.
6237 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6238 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6239
6240 [BZ #23735]
6241 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6242 Define.
6243 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6244 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6245 Add test-nldbl-redirect.
6246 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6247 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6248 $(objpfx)libnldbl_nonshared.a.
6249
6250 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6251
6252 * support/support.h (support_objdir_elf_ldso): New variable.
6253 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6254 * support/Makefile (CFLAGS-support_paths.c): Add definition
6255 for OBJDIR_ELF_LDSO_PATH.
6256 * support/test-container.c (main): Search for the ld.so
6257 which is also used by the testsuite.
6258
6259 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6260
6261 [BZ #20209]
6262 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6263 should be "sap" rather than "sab".
6264 (day): Fix spelling of Sunday, should be "sapaat" rather than
6265 "sabaat".
6266
6267 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6268
6269 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6270
6271 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6272
6273 [BZ #19444]
6274 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6275 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6276 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6277
6278 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6279
6280 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6281
6282 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6283
6284 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6285 Add -mrtm.
6286 (CFLAGS-elision-unlock.c): Likewise.
6287 (CFLAGS-elision-timed.c): Likewise.
6288 (CFLAGS-elision-trylock.c): Likewise.
6289 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6290
6291 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6292
6293 [BZ #21037]
6294 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6295 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6296 new fd_to_filename interface.
6297 * libio/freopen64.c (freopen64): Likewise.
6298 * libio/tst-memstream.h: New file.
6299 * libio/tst-memstream4.c: Likewise.
6300 * libio/tst-wmemstream4.c: Likewise.
6301 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6302 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6303 and remove internal dynamic allocation.
6304
6305 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6306
6307 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6308 (MREMAP_MAYMOVE): Do not define here.
6309 [__USE_GNU] (MREMAP_FIXED): Likewise.
6310 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6311 (MREMAP_MAYMOVE): Define here instead.
6312 [__USE_GNU] (MREMAP_FIXED): Likewise.
6313 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6314 (MREMAP_MAYMOVE): Remove.
6315 [__USE_GNU] (MREMAP_FIXED): Likewise.
6316
6317 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6318
6319 * math/fromfp.h: Do not include <math_private.h>.
6320 * math/s_cacosh_template.c: Likewise.
6321 * math/s_casin_template.c: Likewise.
6322 * math/s_casinh_template.c: Likewise.
6323 * math/s_ccos_template.c: Likewise.
6324 * math/s_cproj_template.c: Likewise.
6325 * math/s_fdim_template.c: Likewise.
6326 * math/s_fmaxmag_template.c: Likewise.
6327 * math/s_fminmag_template.c: Likewise.
6328 * math/s_iseqsig_template.c: Likewise.
6329 * math/s_ldexp_template.c: Likewise.
6330 * math/s_nextdown_template.c: Likewise.
6331 * math/w_log1p_template.c: Likewise.
6332 * math/w_scalbln_template.c: Likewise.
6333 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6334 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6335 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6336 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6337 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6338 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6339 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6340 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6341 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6342 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6343 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6344 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6345 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6346 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6347 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6348 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6349 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6350 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6351 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6352 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6353 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6354 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6355 * sysdeps/ieee754/k_standardf.c: Likewise.
6356 * sysdeps/ieee754/k_standardl.c: Likewise.
6357 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6358 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6359 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6360 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6361 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6362 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6363 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6364 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6365 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6366 * sysdeps/ieee754/s_signgam.c: Likewise.
6367 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6368 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6369 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6370 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6371 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6372 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6373 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6374 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6375 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6376 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6377 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6378 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6379 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6380 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6381 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6382 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6383 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6384 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6385 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6386 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6387 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6388 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6389 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6390 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6391 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6392 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6393 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6394 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6395 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6396 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6397 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6398 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6399 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6400 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6401 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6402 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6403 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6404 <math_private.h>.
6405 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6406
6407 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6408
6409 [BZ #23716]
6410 * sysdeps/i386/dl-cet.c: Removed.
6411 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6412 prototype.
6413 (_dl_runtime_profile_shstk): Likewise.
6414 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6415 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6416
6417 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6418
6419 [BZ #23579]
6420 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6421 do_test_with_invalid_iov): New tests.
6422 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6423 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6424 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6425 errno is ENOSYS.
6426 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6427 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6428 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6429
6430 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6431
6432 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6433 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6434 (MATH_REDIRECT_BINARY_ARGS): New macro.
6435 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6436 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6437 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6438 header inclusion.
6439 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6440 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6441 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6442 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6443 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6444 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6445 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6446 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6447 Likewise.
6448 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6449 Likewise.
6450 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6451 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6452 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6453 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6454 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6455 Likewise.
6456 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6457 Likewise.
6458 * sysdeps/generic/math_private_calls.h
6459 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6460 Do not declare and define as an inline function.
6461 * math/divtc3.c (__divtc3): Use copysign functions instead of
6462 __copysign variants.
6463 * math/multc3.c (__multc3): Likewise.
6464 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6465 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6466 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6467 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6468 Likewise.
6469 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6470 (__ieee754_yn): Likewise.
6471 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6472 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6473 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6474 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6475 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6476 (__sin): Likewise.
6477 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6478 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6479 Likewise.
6480 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6481 Likewise.
6482 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6483 Likewise.
6484 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6485 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6486 Likewise.
6487 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6488 (__ieee754_ynf): Likewise.
6489 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6490 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6491 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6492 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6493 Likewise.
6494 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6495 (__ieee754_ynl): Likewise.
6496 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6497 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6498 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6499 Likewise.
6500 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6501 (__ieee754_ynl): Likewise.
6502 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6503 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6504 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6505 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6506 Likewise.
6507 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6508 (__ieee754_ynl)
6509 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6510 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6511 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6512 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6513 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6514
6515 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6516 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6517 using MATH_REDIRECT.
6518 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6519 header inclusion.
6520 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6521 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6522 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6523 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6524 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6525 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6526 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6527 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6528 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6529 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6530 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6531 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6532 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6533 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6534 (round): Redirect to __round.
6535 (__roundl): Call round instead of __round.
6536 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6537 Remove macro.
6538 [_ARCH_PWR5X] (__roundf): Likewise.
6539 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6540 functions instead of __round variants.
6541 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6542 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6543 Likewise.
6544 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6545 Likewise.
6546 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6547 Likewise.
6548 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6549 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6550 __lroundl.
6551 (__ieee754_expl): Call roundl instead of __roundl.
6552
6553 2018-09-27 Andreas Schwab <schwab@suse.de>
6554
6555 [BZ #23717]
6556 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6557 (do_test): Make st1 static.
6558
6559 2018-09-26 Andreas Schwab <schwab@suse.de>
6560
6561 [BZ #23707]
6562 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6563 * elf/Makefile (tests): Add tst-unwind-ctor.
6564 (modules-names): Add tst-unwind-ctor-lib.
6565 ($(objpfx)tst-unwind-ctor): Depend on
6566 $(objpfx)tst-unwind-ctor-lib.so.
6567
6568 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6569
6570 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6571 file. Most contents moved from ....
6572 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6573 and include <bits/mman-map-flags-generic.h>.
6574 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6575 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6576 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6577 <bits/mman-map-flags-generic.h>.
6578 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6579 macros defined in <bits/mman-map-flags-generic.h>.
6580 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6581 <bits/mman-map-flags-generic.h>.
6582 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6583 defined in <bits/mman-map-flags-generic.h>.
6584
6585 2018-09-26 Andreas Schwab <schwab@suse.de>
6586
6587 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6588 output.
6589
6590 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6591 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6592 Fangrui Song <maskray@google.com>
6593
6594 [BZ #20480]
6595 * config.make.in (have-textrel_ifunc): New define.
6596 * configure.ac: Add check if linker supports textrel relocation with
6597 ifunc.
6598 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6599 tst-ifunc-textrel.
6600 (CFLAGS-tst-ifunc-textrel.c): New rule.
6601 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6602 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6603 * elf/tst-ifunc-textrel.c: New file.
6604
6605 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6606
6607 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6608 <bits/procfs-prregset.h>.
6609 (prgregset_t): Define using __prgregset_t.
6610 (prfpregset_t): Define using __prfpregset_t.
6611 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6612 (sysdep_headers): Add bits/procfs-prregset.h.
6613 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6614 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6615 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6616 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6617
6618 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6619 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6620 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6621 pr_uid and pr_gid.
6622 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6623 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6624 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6625 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6626 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6627 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6628 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6629 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6630 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6631 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6632 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6633 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6634 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6635 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6636 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6637 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6638 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6639 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6640 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6641 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6642 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6643 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6644 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6645 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6646
6647 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6648 AArch64 version. Include <bits/procfs.h>.
6649 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6650 (sysdep_headers): Add bits/procfs.h.
6651 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6652 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6653 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6654 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6655 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6656 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6657 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6658 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6659 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6660 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6661 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6662 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6663 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6664 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6665 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6666 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6667 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6668
6669 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6670
6671 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6672 Use libsupport.
6673
6674 2018-09-25 Arjun Shankar <arjun@redhat.com>
6675
6676 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6677 (__gconv_max_path_elem_len): Likewise.
6678 (__gconv_nmodules): Likewise.
6679 (__gconv_get_path): Likewise.
6680 (path_elem): Move to ...
6681 * iconv/gconv_conf.c: ... here.
6682 (__gconv_get_path): Mark function static.
6683 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6684 * iconv/gconv_open.c: ... here.
6685
6686 2018-09-24 Andreas Schwab <schwab@suse.de>
6687
6688 * scripts/haveversions.awk: New file.
6689 * Makerules ($(common-objpfx)Versions.def)
6690 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6691 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6692 Move rules ...
6693 * Makeconfig ($(common-objpfx)Versions.def)
6694 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6695 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6696 ... here.
6697 ($(common-objpfx)Versions.mk): New rule. Include it.
6698 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6699 Emit error if build-obsolete-nsl = yes.
6700 * manual/install.texi (Configuring and compiling): Describe
6701 --enable-obsolete-nsl as unavaiable after version 2.28.
6702 * INSTALL: Regenerate.
6703
6704 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6705
6706 * NEWS: Add note about new TLE support on powerpc64le.
6707 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6708 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6709 __ununsed1.
6710 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6711 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6712 * sysdeps/powerpc/powerpc32/sysdep.h,
6713 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6714 ABORT_TRANSACTION): Remove macros.
6715 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6716 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6717 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6718 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6719 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6720 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6721 usage.
6722 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6723
6724 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6725
6726 [BZ #10425]
6727 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6728 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6729 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6730 which is the same as in it_IT.
6731 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6732 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6733
6734 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6735
6736 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6737 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6738 using MATH_REDIRECT.
6739 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6740 header inclusion.
6741 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6742 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6743 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6744 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6745 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6746 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6747 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6748 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6751 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6752 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6753 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6754 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6755 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6756 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6757 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6758 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6759 (ceil): Redirect to __ceil.
6760 (floor): Redirect to __floor.
6761 (trunc): Redirect to __trunc.
6762 (__truncl): Call trunc instead of __trunc.
6763 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6764 Remove macro.
6765 [_ARCH_PWR5X] (__truncf): Likewise.
6766 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6767 trunc functions instead of __trunc variants.
6768 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6769 Likewise.
6770 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6771 Likewise.
6772 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6773 Likewise.
6774 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6775 Likewise.
6776
6777 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6778 [__i586__ || __pentium__].
6779 [__i486__]: Handle explicitly.
6780 (HAS_CPUID): Define to 1 if above macros are undefined.
6781 (HAS_I586): Likewise.
6782 (HAS_I686): Likewise.
6783
6784 2018-09-20 Florian Weimer <fweimer@redhat.com>
6785
6786 * misc/tst-gethostid.c: New file.
6787 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6788 (tst-gethostid): Link with -ldl.
6789
6790 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6791
6792 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6793 value from gethostbyname_r.
6794
6795 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6796
6797 * stdlib/tst-setcontext9.c (f1): Rename to...
6798 (f1a): ... this.
6799 (f1b): New function implementing lower half of f1 in alternate stack.
6800
6801 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6802
6803 Fix mktime localtime offset confusion
6804 [BZ #23603]
6805 * include/time.h (__mktime_internal): The localtime offset is now
6806 of type long int instead of time_t. This is the longstanding type
6807 in glibc, and it is more than enough to represent difference
6808 between localtime and gmtime even if it is 32 bits and time_t is
6809 64. Changing it now will let us avoid an unnecessary change when
6810 time_t is widened to 64 bits on 32-bit platforms.
6811 * time/mktime-internal.h (mktime_offset_t): Now long int.
6812
6813 Merge mktime, timegm from upstream Gnulib
6814 [BZ #23603][BZ #16346]
6815 This fixes some obscure problems with integer overflow.
6816 Although it looks scary, it is almost all a byte-for-byte copy
6817 from Gnulib, and the Gnulib code has been tested reasonably well.
6818 * include/intprops.h: New file, copied from Gnulib.
6819 * include/verify.h, time/mktime-internal.h:
6820 New tiny files, simplified from Gnulib.
6821 * time/mktime.c: Copy from Gnulib. This has the following changes:
6822 Do not include config.h if DEBUG_MKTIME is nonzero.
6823 Include stdbool.h, intprops.h, verify.h.
6824 Include string.h only if needed.
6825 Include stdlib.h on MS-Windows.
6826 Include mktime-internal.h.
6827 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6828 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6829 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6830 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6831 simplify later conditionals; default the others to zero. Use
6832 these conditionals to express only the code needed on the current
6833 platform. In uses of these conditionals, explicitly spell out how
6834 _LIBC affects things, so it’s easier to review from a glibc
6835 viewpoint.
6836 (WRAPV): Remove; no longer needed now that we have
6837 systematic overflow checking.
6838 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6839 compartmentalize tzset issues. Move system-dependent tzsettish
6840 code here from mktime.
6841 (verify): Remove; now done by verify.h. All uses changed.
6842 (long_int): Use a more-conservative definition, to avoid
6843 integer overflow.
6844 (SHR): Remove, replacing with ...
6845 (shr): New function, which means we needn’t worry about side
6846 effects in args, and conversion analysis is simpler.
6847 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6848 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6849 (time_t_avg, time_t_add_ok): Remove.
6850 (mktime_min, mktime_max): New constants.
6851 (leapyear, isdst_differ): Use bool for booleans.
6852 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6853 Use long_int, not time_t, for mktime differences.
6854 (long_int_avg): New function, replacing time_t_avg.
6855 INT_ADD_WRAPV replaces time_t_add_ok.
6856 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6857 All uses changed.
6858 (convert_time): New function.
6859 (ranged_convert): Use it.
6860 (__mktime_internal): Last arg now points to mktime_offset_t, not
6861 time_t. All uses changed. This is a no-op on glibc, where
6862 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6863 offset guess. Directly check for integer overflow instead of
6864 using a heuristic that works only 99.9...% of the time.
6865 Access *OFFSET only once, to avoid an unlikely race if the
6866 compiler delays a load and if this cascades into a signed integer
6867 overflow.
6868 (mktime): Move tzsettish code to my_tzset, and move
6869 localtime_offset to within mktime so that it doesn’t
6870 need a separate ifdef.
6871 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6872 instead of localtime.
6873 * time/timegm.c: Copy from Gnulib. This has the following changes:
6874 Include mktime-internal.h.
6875 [!_LIBC]: Include config.h and time.h. Do not include
6876 timegm.h or time_r.h. Make __mktime_internal a macro,
6877 and include mktime-internal.h to get its declaration.
6878 (timegm): Temporary is now mktime_offset_t, not time_t.
6879 This affects only Gnulib.
6880
6881 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6882
6883 [BZ #23637]
6884 * string/test-strstr.c (pr23637): New function.
6885 (test_main): Add tests with longer needles.
6886 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6887 * string/strstr.c (AVAILABLE): Likewise.
6888
6889 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6890
6891 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6892
6893 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6894
6895 * NEWS: Mention pow improvements.
6896 * math/Makefile (type-double-routines): Add e_pow_log_data.
6897 * sysdeps/generic/math_private.h (__exp1): Remove.
6898 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6899 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6900 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6901 contraction.
6902 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6903 (exp_inline): Remove.
6904 (__ieee754_exp): Only single double input is handled.
6905 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6906 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6907 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6908 (__pow_log_data): Define.
6909 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6910 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6911 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6912 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6913 contraction.
6914 (CFLAGS-e_pow-fma4.c): Likewise.
6915
6916 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6917
6918 Simplify tzfile fstat failure code
6919 [BZ #21716]
6920 * time/tzfile.c (__tzfile_read): Simplify slightly.
6921
6922 Fix tzfile low-memory assertion failure
6923 [BZ #21716]
6924 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6925 when registering time zone abbreviations.
6926
6927 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6928
6929 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6930 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6931 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6932 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6933 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6934 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6935 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6936 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6937 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6938
6939 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6940 __ceil.
6941 (__ceill): Call ceil instead of __ceil.
6942 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6943 __floor.
6944 (__floorl): Call floor instead of __floor.
6945
6946 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6947
6948 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6949 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6950 using MATH_REDIRECT.
6951 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6952 header inclusion.
6953 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6954 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6955 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6956 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6957 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6958 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6959 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6960 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6961 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6962 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6963 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6964 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6965 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6966 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6967 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6968 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6969 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6970 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6971 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6972 Remove macro.
6973 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6974 functions instead of __ceil variants.
6975 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6976 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6977 Likewise.
6978 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6979 Likewise.
6980 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6981 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6982 Likewise.
6983 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6984 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6985
6986 [BZ #21286]
6987 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6988 constant.
6989 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6990 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6991 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6992 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6993 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6994 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6995 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6996 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6997 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6998 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6999 (ILL_BADIADDR): Remove constant.
7000 (TRAP_BRANCH): Likewise.
7001 (TRAP_HWBKPT): Likewise.
7002
7003 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7004
7005 [BZ #23656]
7006 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7007 Remove [_MIPS_SIM = _ABIN32] conditional case.
7008 (struct elf_prpsinfo): Likewise.
7009
7010 [BZ #23649]
7011 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7012 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7013 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7014 Likewise.
7015 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7016 elf_prpsinfo): Likewise.
7017 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7018 elf_prpsinfo): Likewise.
7019 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7020 Likewise.
7021
7022 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7023 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7024 using MATH_REDIRECT.
7025 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7026 header inclusion.
7027 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7028 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7029 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7030 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7031 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7032 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7033 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7034 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7035 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7036 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7037 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7038 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7039 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7040 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7041 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7042 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7043 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7044 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7045 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7046 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7047 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7048 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7049 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7050 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7051 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7052 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7053 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7054 __rint variants.
7055 * math/e_scalbf.c (invalid_fn): Likewise.
7056 * math/e_scalbl.c (invalid_fn): Likewise.
7057 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7058 Likewise.
7059 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7060 Likewise.
7061 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7062 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7063 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7064 Likewise.
7065 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7066 Likewise.
7067 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7068 Likewise.
7069 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7070 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7071
7072 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7073 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7074 New macro.
7075 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7076 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7077 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7078 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7079 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7080 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7081 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7082 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7083 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7084 && !NO_MATH_REDIRECT] (floor): Likewise.
7085 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7086 header inclusion.
7087 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7088 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7089 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7090 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7091 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7092 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7093 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7094 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7096 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7099 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7100 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7101 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7102 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7103 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7104 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7105 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7106 Remove macro.
7107 [_ARCH_PWR5X] (__floorf): Likewise.
7108 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7109 inline function.
7110 [__SSE4_1__] (__floorf): Likewise.
7111 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7112 instead of __floor variants.
7113 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7114 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7115 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7116 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7117 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7118 * math/w_tgamma_compat.c (__tgamma): Likewise.
7119 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7120 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7121 * math/w_tgammal_compat.c (__tgammal): Likewise.
7122 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7123 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7124 Likewise.
7125 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7126 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7127 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7128 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7129 Likewise.
7130 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7131 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7132 Likewise.
7133 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7134 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7135 Likewise.
7136 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7137 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7138 Likewise.
7139 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7140 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7141 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7142 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7143 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7144 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7145
7146 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7147
7148 * elf/Makefile (modules-names-tests): New variable.
7149
7150 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7151
7152 * NEWS: Mention log2 improvements.
7153 * math/Makefile (type-double-routines): Add e_log2_data.
7154 * sysdeps/i386/fpu/e_log2_data.c: New file.
7155 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7156 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7157 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7158 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7159 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7160 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7161
7162 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7163
7164 * NEWS: Mention log improvement.
7165 * math/Makefile (type-double-routines): Add e_log_data.
7166 * sysdeps/i386/fpu/e_log_data.c: New file.
7167 * sysdeps/ia64/fpu/e_log_data.c: New file.
7168 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7169 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7170 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7171 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7172 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7173 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7174
7175 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7176 Xuepeng Guo <xuepeng.guo@intel.com>
7177
7178 [BZ #23606]
7179 * sysdeps/i386/start.S: Include <sysdep.h>
7180 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7181 enabled. Add cfi_undefined (eip).
7182
7183 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7184
7185 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7186 (MOVQ): Likewise.
7187 (EXTRACT_WORDS64): Likewise.
7188 (INSERT_WORDS64): Likewise.
7189 (GET_FLOAT_WORD): Likewise.
7190 (SET_FLOAT_WORD): Likewise.
7191
7192 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7193 argument.
7194 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7195 build, but not for second build if --full-gcc. Use
7196 --enable-languages=all for second build if --full-gcc.
7197 (get_parser): Add --full-gcc option.
7198 (main): Update call to Context.
7199
7200 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7201
7202 [BZ #10797]
7203 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7204 Single Quotation Mark).
7205 (thousands_sep): Likewise.
7206 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7207 * localedata/locales/it_IT (thousands_sep): Use ".".
7208 (grouping): Use "3;3".
7209
7210 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7211
7212 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7213 x86_64 and i686 configs using --enable-obsolete-rpc
7214 --enable-obsolete-nsl.
7215
7216 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7217
7218 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7219
7220 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7221
7222 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7223 Increment size of new_argv by one.
7224
7225 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7226
7227 [BZ #17426]
7228 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7229 * localedata/locales/ar_IN (d_fmt): Likewise.
7230 * localedata/locales/bhb_IN (d_fmt): Likewise.
7231 * localedata/locales/bho_IN (d_fmt): Likewise.
7232 * localedata/locales/bn_BD (d_fmt): Likewise.
7233 * localedata/locales/bn_IN (d_fmt): Likewise.
7234 * localedata/locales/doi_IN (d_fmt): Likewise.
7235 * localedata/locales/gu_IN (d_fmt): Likewise.
7236 * localedata/locales/hi_IN (d_fmt): Likewise.
7237 * localedata/locales/hne_IN (d_fmt): Likewise.
7238 * localedata/locales/kn_IN (d_fmt): Likewise.
7239 * localedata/locales/mag_IN (d_fmt): Likewise.
7240 * localedata/locales/mai_IN (d_fmt): Likewise.
7241 * localedata/locales/mjw_IN (d_fmt): Likewise.
7242 * localedata/locales/ml_IN (d_fmt): Likewise.
7243 * localedata/locales/mni_IN (d_fmt): Likewise.
7244 * localedata/locales/mr_IN (d_fmt): Likewise.
7245 * localedata/locales/pa_IN (d_fmt): Likewise.
7246 * localedata/locales/raj_IN (d_fmt): Likewise.
7247 * localedata/locales/sat_IN (d_fmt): Likewise.
7248 * localedata/locales/sd_IN (d_fmt): Likewise.
7249 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7250 * localedata/locales/ta_IN (d_fmt): Likewise.
7251 * localedata/locales/ta_LK (d_fmt): Likewise.
7252 * localedata/locales/tcy_IN (d_fmt): Likewise.
7253 * localedata/locales/ur_IN (d_fmt): Likewise.
7254
7255 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7256 * localedata/locales/ks_IN (d_fmt): Likewise.
7257 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7258
7259 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7260 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7261 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7262 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7263
7264 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7265
7266 * NEWS: Mention exp and exp2 improvements.
7267 * math/Makefile (libm-support): Remove t_exp.
7268 (type-double-routines): Add math_err and e_exp_data.
7269 * sysdeps/aarch64/libm-test-ulps: Update.
7270 * sysdeps/arm/libm-test-ulps: Update.
7271 * sysdeps/i386/fpu/e_exp_data.c: New file.
7272 * sysdeps/i386/fpu/math_err.c: New file.
7273 * sysdeps/i386/fpu/t_exp.c: Remove.
7274 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7275 * sysdeps/ia64/fpu/math_err.c: New file.
7276 * sysdeps/ia64/fpu/t_exp.c: Remove.
7277 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7278 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7279 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7280 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7281 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7282 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7283 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7284 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7285 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7286 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7287 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7288 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7289 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7290 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7291 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7292 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7293
7294 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7295
7296 * sysdeps/alpha/fpu/math_private.h: Remove.
7297
7298 * sysdeps/generic/math_private.h
7299 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7300 Move this inline function ....
7301 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7302 * include/math.h [!_ISOMAC]: To here....
7303
7304 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7305
7306 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7307 code ....
7308 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7309 * include/fenv.h [!_ISOMAC]: ... to here.
7310 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7311 (feraiseexcept): Likewise.
7312 * math/fromfp.h: Do not include <fenv_private.h>.
7313 * math/s_cexp_template.c: Likewise.
7314 * math/s_csin_template.c: Likewise.
7315 * math/s_csinh_template.c: Likewise.
7316 * math/s_ctan_template.c: Likewise.
7317 * math/s_ctanh_template.c: Likewise.
7318 * math/s_iseqsig_template.c: Likewise.
7319 * math/w_acos_compat.c: Likewise.
7320 * math/w_acosf_compat.c: Likewise.
7321 * math/w_acosl_compat.c: Likewise.
7322 * math/w_asin_compat.c: Likewise.
7323 * math/w_asinf_compat.c: Likewise.
7324 * math/w_asinl_compat.c: Likewise.
7325 * math/w_j0_compat.c: Likewise.
7326 * math/w_j0f_compat.c: Likewise.
7327 * math/w_j0l_compat.c: Likewise.
7328 * math/w_j1_compat.c: Likewise.
7329 * math/w_j1f_compat.c: Likewise.
7330 * math/w_j1l_compat.c: Likewise.
7331 * math/w_jn_compat.c: Likewise.
7332 * math/w_jnf_compat.c: Likewise.
7333 * math/w_log10_compat.c: Likewise.
7334 * math/w_log10f_compat.c: Likewise.
7335 * math/w_log10l_compat.c: Likewise.
7336 * math/w_log2_compat.c: Likewise.
7337 * math/w_log2f_compat.c: Likewise.
7338 * math/w_log2l_compat.c: Likewise.
7339 * math/w_log_compat.c: Likewise.
7340 * math/w_logf_compat.c: Likewise.
7341 * math/w_logl_compat.c: Likewise.
7342 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7343 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7344 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7345 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7346 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7347 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7348 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7349 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7350 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7351 * sysdeps/ieee754/k_standardl.c: Likewise.
7352 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7353 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7354 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7355 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7356 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7357 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7358 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7359 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7360 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7361 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7362 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7363 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7364 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7365 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7366 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7367 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7368 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7369 * math/w_ilogb_template.c: Include <fenv.h> instead of
7370 <fenv_private.h>.
7371 * math/w_llogb_template.c: Likewise.
7372 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7373 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7374
7375 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7376
7377 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7378 * math/fromfp.h: Include <fenv_private.h>.
7379 * math/math-narrow.h: Likewise.
7380 * math/s_cexp_template.c: Likewise.
7381 * math/s_csin_template.c: Likewise.
7382 * math/s_csinh_template.c: Likewise.
7383 * math/s_ctan_template.c: Likewise.
7384 * math/s_ctanh_template.c: Likewise.
7385 * math/s_iseqsig_template.c: Likewise.
7386 * math/w_acos_compat.c: Likewise.
7387 * math/w_acosf_compat.c: Likewise.
7388 * math/w_acosl_compat.c: Likewise.
7389 * math/w_asin_compat.c: Likewise.
7390 * math/w_asinf_compat.c: Likewise.
7391 * math/w_asinl_compat.c: Likewise.
7392 * math/w_ilogb_template.c: Likewise.
7393 * math/w_j0_compat.c: Likewise.
7394 * math/w_j0f_compat.c: Likewise.
7395 * math/w_j0l_compat.c: Likewise.
7396 * math/w_j1_compat.c: Likewise.
7397 * math/w_j1f_compat.c: Likewise.
7398 * math/w_j1l_compat.c: Likewise.
7399 * math/w_jn_compat.c: Likewise.
7400 * math/w_jnf_compat.c: Likewise.
7401 * math/w_llogb_template.c: Likewise.
7402 * math/w_log10_compat.c: Likewise.
7403 * math/w_log10f_compat.c: Likewise.
7404 * math/w_log10l_compat.c: Likewise.
7405 * math/w_log2_compat.c: Likewise.
7406 * math/w_log2f_compat.c: Likewise.
7407 * math/w_log2l_compat.c: Likewise.
7408 * math/w_log_compat.c: Likewise.
7409 * math/w_logf_compat.c: Likewise.
7410 * math/w_logl_compat.c: Likewise.
7411 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7412 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7413 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7414 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7415 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7416 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7417 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7418 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7419 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7420 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7421 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7422 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7423 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7424 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7425 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7426 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7427 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7428 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7429 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7430 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7431 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7432 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7433 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7434 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7435 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7436 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7437 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7438 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7439 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7440 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7441 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7442 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7443 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7444 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7445 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7446 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7447 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7448 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7449 * sysdeps/ieee754/k_standardl.c: Likewise.
7450 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7451 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7452 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7453 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7454 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7455 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7456 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7457 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7458 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7459 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7460 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7461 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7462 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7463 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7464 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7465 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7466 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7467 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7468 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7469 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7470 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7471 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7472 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7473 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7474 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7475 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7476 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7477 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7478 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7479 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7480 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7481 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7482 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7483 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7484 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7485 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7486 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7487 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7488 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7489 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7490 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7491 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7492 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7493 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7494 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7495 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7496 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7497 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7498 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7499 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7500 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7501 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7502 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7503 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7504 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7505 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7506 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7507 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7508 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7509 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7510 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7511 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7512 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7513 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7514 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7515 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7516 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7517 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7518 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7519 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7520 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7521
7522 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7523
7524 [BZ #20271]
7525 * include/stdio.h (__libc_fatal): Mention newline in comment.
7526 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7527 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7528 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7529 * nss/nsswitch.c (__nss_next2): Likewise.
7530 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7531 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7532 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7533 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7534 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7535 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7536 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7537 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7538 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7539 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7540 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7541 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7542 (__netlink_assert_response): Likewise.
7543
7544 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7545
7546 * conform/glibcconform.py: New file.
7547 * conform/list-header-symbols.py: Likewise.
7548 * conform/list-header-symbols.pl: Remove.
7549 * conform/Makefile (tests-special): Only add linknamespace tests
7550 if [PYTHON].
7551 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7552
7553 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7554
7555 [BZ #23597]
7556 * support/Makefile (libsupport-routines): Add
7557 support_copy_file_range and xcopy_file_range.
7558 * support/support.h: Include <sys/types.h>.
7559 (support_copy_file_range): New prototype.
7560 * support/support_copy_file_range.c: New file. Copied and
7561 modified from io/copy_file_range-compat.c.
7562 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7563 instead of copy_file_range.
7564 * support/xcopy_file_range.c: New file.
7565 * support/xunistd.h (xcopy_file_range): New prototype.
7566
7567 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7568
7569 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7570 xpthread_create and xpthread_join.
7571
7572 2018-08-30 Florian Weimer <fweimer@redhat.com>
7573
7574 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7575
7576 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7577
7578 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7579 if malloc fails.
7580
7581 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7582
7583 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7584 and minus_oflow as non-finite.
7585
7586 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7587
7588 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7589 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7590 moved to fenv_private.h except for ...
7591 (TOINT_INTRINSICS): Kept in math_private.h.
7592 (roundtoint): Likewise.
7593 (converttoint): Likewise.
7594 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7595 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7596 * sysdeps/arm/math_private.h: Remove.
7597 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7598 ....
7599 * sysdeps/generic/math_private.h: ... this file. Include
7600 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7601 Include <fenv_private.h>. Remove functions and macros moved to
7602 fenv_private.h.
7603 * sysdeps/i386/fpu/math_private.h: Remove.
7604 * sysdeps/mips/math_private.h: Move to ....
7605 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7606 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7607 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7608 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7609 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7610 * sysdeps/powerpc/fpu/math_private.h: Do not include
7611 <fenv_private.h>.
7612 * sysdeps/riscv/rvf/math_private.h: Move to ....
7613 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7614 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7615 <fenv_private.h>.
7616 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7617 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7618 * sysdeps/sparc/fpu/math_private.h: Remove.
7619 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7620 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7621 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7622 <fenv_private.h>.
7623 * sysdeps/x86_64/fpu/math_private.h: Do not include
7624 <sysdeps/i386/fpu/fenv_private.h>.
7625
7626 2018-08-28 Florian Weimer <fweimer@redhat.com>
7627
7628 [BZ #23578]
7629 * posix/tst-regcomp-truncated.c: New file.
7630 * posix/Makefile (tests): Add it.
7631 (tst-regcomp-truncated.out): Depend on generated locales.
7632
7633 2018-08-28 Florian Weimer <fweimer@redhat.com>
7634
7635 * support/test-container.c (main): Treat unshare failure with
7636 EPERM as an unsupported test.
7637
7638 2018-08-28 Florian Weimer <fweimer@redhat.com>
7639
7640 [BZ #23520]
7641 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7642 * nscd/netgroupcache.c
7643 (addgetnetgrentX): Add tofreep parameter. Do not free
7644 heap-allocated buffer.
7645 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7646 (addgetnetgrentX_ignore): New function.
7647 (addgetnetgrent): Call it.
7648 (readdgetnetgrent): Likewise.
7649
7650 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7651
7652 * string/memmem.c: Use memcmp for first match.
7653
7654 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7655
7656 [BZ #17426]
7657 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7658
7659 2018-08-27 DJ Delorie <dj@redhat.com>
7660
7661 * support/Makefile (others): Don't list programs explicitly as a
7662 dependency of "others".
7663
7664 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7665
7666 * sysdeps/generic/math-tests-trap-force.h: New file.
7667 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7668 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7669 * sysdeps/powerpc/math-tests.h: Remove file.
7670 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7671
7672 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7673 Torvald Riegel <triegel@redhat.com>
7674
7675 [BZ #23538]
7676 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7677 Update r to include the set wake-request flag if waiters are
7678 remaining after spinning.
7679
7680 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7681
7682 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7683
7684 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7685
7686 [BZ #23578]
7687 regex: fix uninitialized memory access
7688 I introduced this bug into gnulib in commit
7689 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7690 eventually it was merged into glibc. The bug was found by
7691 project-repo <bugs@feusi.co> and reported here:
7692 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7693 Diagnosis and draft fix reported by Assaf Gordon here:
7694 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7695 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7696 * posix/regex_internal.c (build_wcs_upper_buffer):
7697 Fix bug when mbrtowc returns 0.
7698
7699 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7700
7701 * po/be.po: Update translation.
7702
7703 2018-08-24 DJ Delorie <dj@delorie.com>
7704
7705 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7706 $(libunwind).
7707
7708 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7709
7710 [BZ #23400]
7711 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7712 create temporary files in source tree.
7713
7714 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7715
7716 * sysdeps/generic/math-tests-trap.h: New file.
7717 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7718 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7719 * sysdeps/aarch64/math-tests.h: Remove file.
7720 * sysdeps/arm/math-tests.h: Likewise.
7721 * sysdeps/riscv/math-tests.h: Likewise.
7722 * sysdeps/aarch64/math-tests-trap.h: New file.
7723 * sysdeps/arm/math-tests-trap.h: Likewise.
7724 * sysdeps/riscv/math-tests-trap.h: Likewise.
7725
7726 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7727
7728 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7729 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7730 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7731 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7732 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7733 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7734 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7735 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7736 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7737 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7738 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7739 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7740 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7741 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7742 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7743 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7744 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7745 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7746
7747 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7748
7749 * sysdeps/generic/math-tests-exceptions.h: New file.
7750 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7751 (EXCEPTION_TESTS_float): Do not define here.
7752 (EXCEPTION_TESTS_double): Likewise.
7753 (EXCEPTION_TESTS_long_double): Likewise.
7754 (EXCEPTION_TESTS_float128): Likewise.
7755 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7756 Likewise.
7757 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7758 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7759 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7760 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7761 * sysdeps/mips/math-tests.h: Likewise.
7762 * sysdeps/nios2/math-tests.h: Likewise.
7763 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7764 (EXCEPTION_TESTS_float): Do not define here.
7765 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7766 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7767 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7768
7769 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7770
7771 * NEWS: Move optimized sinf entry to 2.29.
7772
7773 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7774
7775 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7776
7777 2018-08-22 DJ Delorie <dj@redhat.com>
7778
7779 * Makefile (testroot.pristine): New rules to initialize the
7780 test-in-container "testroot".
7781 * Makerules (all-testsuite): Add tests-container.
7782 * Rules (tests-expected): Add tests-container.
7783 (binaries-all-tests): Likewise.
7784 (tests-container): New, run these tests in the testroot container.
7785 * support/Makefile (others): Add *-container, support_paths.c,
7786 xmkdirp, and links-dso-program.
7787 * support/links-dso-program-c.c: New.
7788 * support/links-dso-program.cc: New.
7789 * support/test-container.c: New.
7790 * support/shell-container.c: New.
7791 * support/echo-container.c: New.
7792 * support/true-container.c: New.
7793 * support/xmkdirp.c: New.
7794 * support/xsymlink.c: New.
7795 * support/support_paths.c: New.
7796 * support/support.h: Add support paths prototypes.
7797 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7798
7799 * nss/tst-nss-test3.c: Convert to test-in-container.
7800 * nss/tst-nss-test3.root/: New.
7801
7802 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7803
7804 regex: port Gnulib code to z/OS POSIX environment
7805 Problem reported by Arnold Robbins in:
7806 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7807 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7808 Undef.
7809
7810 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7811
7812 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7813 (ROUNDING_TESTS_double): Remove.
7814 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7815 (ROUNDING_TESTS_double): Remove.
7816 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7817 (ROUNDING_TESTS_double): Remove.
7818 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7819 (ROUNDING_TESTS_float): Remove.
7820 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7821 (ROUNDING_TESTS_float): Remove.
7822 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7823 (ROUNDING_TESTS_float): Remove.
7824 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7825 !TEST_MATHVEC here.
7826 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7827 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7828
7829 * sysdeps/generic/math-tests-rounding.h: New file.
7830 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7831 (ROUNDING_TESTS_float): Do not define here.
7832 (ROUNDING_TESTS_double): Likewise.
7833 (ROUNDING_TESTS_long_double): Likewise.
7834 (ROUNDING_TESTS_float128): Likewise.
7835 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7836 (ROUNDING_TESTS_double): Undefine before defining.
7837 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7838 (ROUNDING_TESTS_double): Undefine before defining.
7839 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7840 (ROUNDING_TESTS_double): Undefine before defining.
7841 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7842 (ROUNDING_TESTS_float): Undefine before defining.
7843 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7844 (ROUNDING_TESTS_float): Undefine before defining.
7845 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7846 (ROUNDING_TESTS_float): Undefine before defining.
7847 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7848 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7849 not define here.
7850 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7851 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7852 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7853 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7854 (ROUNDING_TESTS_float): Do not define here.
7855 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7856 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7857 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7858 (ROUNDING_TESTS_float): Likewise.
7859 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7860 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7861 * sysdeps/mips/math-tests.h [__mips_soft_float]
7862 (ROUNDING_TESTS_float): Likewise.
7863 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7864 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7865 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7866 (ROUNDING_TESTS_double): Likewise.
7867 (ROUNDING_TESTS_long_double): Likewise.
7868
7869 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7870
7871 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7872 (PF_XDP): New macro.
7873 (AF_XDP): New macro.
7874 (SOL_XDP): New macro.
7875
7876 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7877
7878 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7879 (TCP_INQ): Likewise.
7880 (TCP_CM_INQ): Likewise.
7881 (TCP_REPAIR_ON): Likewise.
7882 (TCP_REPAIR_OFF): Likewise.
7883 (TCP_REPAIR_OFF_NO_WP): Likewise.
7884 (struct tcp_zerocopy_receive): New type.
7885
7886 2018-08-21 Florian Weimer <fweimer@redhat.com>
7887
7888 * support/support.h (support_descriptor_supports_holes): Declare.
7889 * support/Makefile (libsupport-routines): Add
7890 support_descriptor_supports_holes.
7891 * support/support_descriptor_supports_holes.c: New file.
7892 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7893 and stop testing if holes are not supported.
7894 * io/test-lfs.c (do_prepare): Likewise.
7895 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7896 Likewise.
7897 * timezone/tst-tzset.c (create_tz_file): Likewise.
7898 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7899 variable.
7900 (do_prepare): Set it.
7901 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7902
7903 2018-08-21 Florian Weimer <fweimer@redhat.com>
7904
7905 [BZ #17248]
7906 * Makeconfig (+cflags): Do not sort (and deduplicate).
7907
7908 2018-08-21 Florian Weimer <fweimer@redhat.com>
7909
7910 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7911 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7912
7913 2018-08-20 Florian Weimer <fweimer@redhat.com>
7914
7915 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7916 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7917
7918 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7919
7920 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7921 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7922 and ssi_arch members.
7923
7924 * elf/elf.c (NT_VMCOREDD): New macro.
7925 (AT_MINSIGSTKSZ): Likewise.
7926
7927 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7928
7929 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7930 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7931 s_cosf-ppc64 and s_cosf-power8.
7932 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7933 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7934 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7935 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7942 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7943 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7944
7945 2018-08-17 Florian Weimer <fweimer@redhat.com>
7946
7947 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7948
7949 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7950
7951 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7952
7953 2018-08-16 Florian Weimer <fweimer@redhat.com>
7954
7955 * configure.ac: Add --with-nonshared-cflags option.
7956 * config.make.in (extra-nonshared-cflags): Set variable.
7957 * Makeconfig (CFLAGS-.oS): Use it.
7958 * manual/install.texi (Configuring and compiling): Document
7959 --with-nonshared-cflags.
7960 * configure: Regenerate.
7961 * INSTALL: Likewise.
7962
7963 2018-08-16 Florian Weimer <fweimer@redhat.com>
7964
7965 * Makeconfig (ASFLAGS): Always append required assembler flags.
7966
7967 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7968
7969 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7970 (malloc_consolidate): Likewise.
7971
7972 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7973
7974 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7975
7976 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7977
7978 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7979 every strlen call.
7980
7981 * benchtests/bench-strlen.c: Print performance numbers in json.
7982
7983 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7984
7985 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7986 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7987 only for little endian.
7988 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7989 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7990 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7991 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7992 Add check for little endian.
7993 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7994 (__strcmp_power9): Add check for little endian.
7995 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7996 Add check for little endian.
7997 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7998 (__strncmp_power9): Add check for little endian.
7999 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8000 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8001 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8002 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8003 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8004
8005 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8006
8007 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8008 [!STRLEN](STRLEN): Set to __strlen.
8009 * sysdeps/aarch64/multiarch/strlen.c: New file.
8010 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8011 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8012 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8013 (__libc_ifunc_impl_list): Add strlen.
8014 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8015 strlen_generic and strlen_asimd.
8016
8017 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8018
8019 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8020 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8021 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8022
8023 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8024
8025 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8026
8027 2018-08-14 Florian Weimer <fweimer@redhat.com>
8028
8029 [BZ #23519]
8030 * include/stdio.h (__vfxprintf): Declare.
8031 * stdio-common/fxprintf.c (__vfxprintf): New function.
8032 (__fxprintf): Call it.
8033 * misc/err.c (convert_and_print): Remove function.
8034 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8035 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8036 * misc/Makefile (tests): Add tst-warn-wide.
8037 * misc/tst-warn-wide.c: New file.
8038
8039 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8040 Szabolcs Nagy <szabolcs.nagy@arm.com>
8041
8042 * NEWS: Mention sinf, cosf, sincosf.
8043 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8044 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8045 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8046 constants rather than including generic sincosf.h.
8047 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8048 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8049 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8050 (reduced_cos): Remove.
8051 (sinf_poly): New function.
8052 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8053
8054 2018-08-14 Florian Weimer <fweimer@redhat.com>
8055
8056 [BZ #23521]
8057 [BZ #23522]
8058 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8059 processing, bail out if no room, and close the stream before
8060 returning ERANGE.
8061 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8062 (tst-nss-files-alias-leak): Link with libdl.
8063 (tst-nss-files-alias-leak.out): Depend on nss_files.
8064
8065 * nss/tst-nss-files-alias-leak.c: New file.
8066
8067 2018-08-14 Florian Weimer <fweimer@redhat.com>
8068
8069 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8070 server_user, stat_user.
8071
8072 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8073
8074 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8075 version to 4.18.
8076 (io_pgetevents): New syscall.
8077 (rseq): Likewise.
8078
8079 * manual/install.texi (Configuring and compiling): Do not list
8080 tools used for testing pretty printers here.
8081 (Tools for Compilation): List Python, PExpect and GDB here.
8082 Update descriptions of uses of Perl and Python.
8083 * INSTALL: Regenerate.
8084
8085 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8086 version to 4.18.
8087
8088 2018-08-13 Florian Weimer <fweimer@redhat.com>
8089
8090 * misc/error.c (error): Add missing va_end call.
8091 (error_at_line): Likewise.
8092
8093 2018-08-13 Florian Weimer <fweimer@redhat.com>
8094
8095 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8096
8097 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8098
8099 * benchtests/scripts/benchout.schema.json (properties): Add
8100 new properties.
8101
8102 * benchtests/bench-skeleton.c (main): Add duration and
8103 iterations attributes.
8104
8105 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8106
8107 regex: Gnulib unibyte RRI uses bytes not chars
8108 Adjust the non-glibc code to agree with what Gawk needs for
8109 rational range interpretation (RRI) for regular expression ranges.
8110 In unibyte locales, Gawk wants ranges to use the underlying byte
8111 rather than the character code point. This change does not affect
8112 glibc proper.
8113 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8114 In unibyte locales, use the byte value rather than
8115 running it through btowc.
8116
8117 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8118
8119 * sysdeps/generic/math-tests-snan.h: New file.
8120 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8121 (SNAN_TESTS_float): Do not define here.
8122 (SNAN_TESTS_double): Likewise.
8123 (SNAN_TESTS_long_double): Likewise.
8124 (SNAN_TESTS_float128): Likewise.
8125 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8126 * sysdeps/i386/fpu/math-tests.h: Remove file.
8127 * sysdeps/ia64/math-tests-snan.h: New file.
8128 * sysdeps/ia64/math-tests.h: Remove file.
8129 * sysdeps/x86/math-tests.h: Likewise.
8130 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8131
8132 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8133 Szabolcs Nagy <szabolcs.nagy@arm.com>
8134
8135 * math/Makefile: Add s_sincosf_data.c.
8136 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8137 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8138 (sincosf_poly): Likewise.
8139 (reduce_small): Likewise.
8140 (reduce_large): Likewise.
8141 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8142 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8143 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8144 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8145
8146 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8147 Szabolcs Nagy <szabolcs.nagy@arm.com>
8148
8149 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8150 (converttoint): Use lround.
8151 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8152 document the semantics when TOINT_INTRINSICS is set.
8153 (converttoint): Likewise.
8154 (TOINT_RINT): Remove.
8155 (TOINT_SHIFT): Remove.
8156 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8157 path.
8158
8159 2018-08-10 Florian Weimer <fweimer@redhat.com>
8160
8161 [BZ #23497]
8162 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8163 function.
8164 (__old_getdents64): Use getdents64. Convert entries without
8165 moving them.
8166 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8167 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8168 tst-readdir64-compat.
8169
8170 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8171
8172 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8173 Fix unwind.
8174
8175 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8176
8177 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8178 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8179 code to s390x-mcount.h and #include it.
8180 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8181 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8182 (__fentry__): Add.
8183
8184 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8185
8186 * stdlib/Versions: Remove __fentry__.
8187 * sysdeps/i386/Versions: Add __fentry__.
8188 * sysdeps/x86_64/Versions: Add __fentry__.
8189
8190 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8191
8192 * sysdeps/s390/Makefile: Register the new tests.
8193 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8194 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8195 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8196 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8197 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8198 * sysdeps/s390/tst-dl-runtime.c: New file.
8199
8200 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8201
8202 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8203 Do not clobber R0.
8204
8205 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8206
8207 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8208 Do not clobber R0.
8209
8210 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8211
8212 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8213 Do not clobber R0.
8214
8215 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8216
8217 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8218 Do not clobber R0.
8219
8220 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8221
8222 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8223 Use symbolic offsets for stack variables.
8224
8225 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8226
8227 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8228 Use symbolic offsets for stack variables.
8229
8230 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8231
8232 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8233 Use symbolic offsets for stack variables.
8234
8235 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8236
8237 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8238 Use symbolic offsets for stack variables.
8239
8240 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8241
8242 * math/gen-libm-test.py: New file.
8243 * math/gen-libm-test.pl: Remove.
8244 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8245 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8246 gen-libm-test.pl.
8247 ($(libm-test-c-noauto-obj)): Likewise.
8248 ($(libm-test-c-auto-obj)): Likewise.
8249 ($(libm-test-c-narrow-obj)): Likewise.
8250 (regen-ulps): Likewise.
8251 * math/README.libm-test: Update references to gen-libm-test.pl.
8252 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8253 referencing gen-libm-test.pl.
8254 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8255 * math/libm-test-support.c: Likewise.
8256 * math/libm-test-support.h: Likewise.
8257 * sysdeps/generic/libm-test-ulps: Likewise.
8258
8259 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8260
8261 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8262 Fix value.
8263
8264 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8265
8266 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8267 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8268
8269 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8270
8271 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8272 symbols.
8273 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8274 __pthread_setspecific): Add hidden proto.
8275 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8276 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8277
8278 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8279
8280 * benchtests/bench-string.h (buf1_size, buf2_size): New
8281 variables.
8282 (init_sizes): New function.
8283 (test_init): Use it.
8284 (alloc_buf, exit_error): New functions.
8285 (alloc_bufs): Use ALLOC_BUF.
8286 (realloc_bufs): Remove.
8287 * benchtests/bench-memcmp.c (do_test): Adjust.
8288 * benchtests/bench-memset-large.c (do_test): Likewise.
8289 * benchtests/bench-memset-walk.c (do_test): Likewise.
8290 * benchtests/bench-memset.c (do_test): Likewise.
8291 * benchtests/bench-strncmp.c (do_test): Likewise.
8292
8293 2018-08-06 Andreas Schwab <schwab@suse.de>
8294
8295 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8296 of CONST_THREAD_AREA.
8297
8298 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8299
8300 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8301 (STATE_SAVE_MASK): Likewise.
8302 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8303 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8304 (STATE_SAVE_MASK): Likewise.
8305 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8306 instead of <cpu-features.h>.
8307
8308 2018-08-03 DJ Delorie <dj@redhat.com>
8309
8310 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8311 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8312
8313 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8314
8315 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8316
8317 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8318 after TEST_* calls.
8319 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8320 * math/libm-test-logb.inc (logb_test_data): Likewise.
8321
8322 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8323
8324 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8325 * string/strstr.c (AVAILABLE): Likewise.
8326
8327 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8328
8329 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8330 <init-arch.h>.
8331 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8332 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8333 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8334
8335 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8336
8337 * po/be.po: Update translation.
8338
8339 * po/be.po: Update translation.
8340
8341 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8342
8343 * sysdeps/x86/cpu-features-offsets.sym
8344 (rtld_global_ro_offsetof): Removed.
8345 (CPU_FEATURES_SIZE): Likewise.
8346 (CPUID_OFFSET): Likewise.
8347 (CPUID_SIZE): Likewise.
8348 (CPUID_EAX_OFFSET): Likewise.
8349 (CPUID_EBX_OFFSET): Likewise.
8350 (CPUID_ECX_OFFSET): Likewise.
8351 (CPUID_EDX_OFFSET): Likewise.
8352 (FAMILY_OFFSET): Likewise.
8353 (MODEL_OFFSET): Likewise.
8354 (FEATURE_OFFSET): Likewise.
8355 (FEATURE_SIZ): Likewise.
8356 (COMMON_CPUID_INDEX_1): Likewise.
8357 (COMMON_CPUID_INDEX_7): Likewise.
8358 (FEATURE_INDEX_1): Likewise.
8359 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8360
8361 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8362
8363 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8364 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8365 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8366 (install-locales): Depend on install-locale-archive.
8367 (install-locale-archive): Define.
8368 (install-locale-files): Define.
8369 (build-one-locale): Define macro.
8370 * manual/install.texi (Running make install): Document.
8371 * manual/INSTALL: Regenerate.
8372
8373 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8374
8375 * benchtests/scripts/compare_strings.py: Import traceback.
8376 (parse_file): Pretty-print error.
8377
8378 * NEWS: Mention the change.
8379 * elf/dl-tunables.list: Rename tune namespace to cpu.
8380 * sysdeps/powerpc/dl-tunables.list: Likewise.
8381 * sysdeps/x86/dl-tunables.list: Likewise.
8382 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8383 cpu.name.
8384 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8385 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8386 * manual/README.tunables: Likewise.
8387 * manual/tunables.texi: Likewise.
8388 * sysdeps/powerpc/cpu-features.c: Likewise.
8389 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8390 (init_cpu_features): Likewise.
8391 * sysdeps/x86/cpu-features.c: Likewise.
8392 * sysdeps/x86/cpu-features.h: Likewise.
8393 * sysdeps/x86/cpu-tunables.c: Likewise.
8394 * sysdeps/x86_64/Makefile: Likewise.
8395 * sysdeps/x86/dl-cet.c: Likewise.
8396
8397 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8398
8399 [BZ #23479]
8400 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8401 [__mips_hard_float].
8402 (FE_UNDERFLOW): Likewise.
8403 (FE_OVERFLOW): Likewise.
8404 (FE_DIVBYZERO): Likewise.
8405 (FE_INVALID): Likewise.
8406 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8407 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8408 (FE_UPWARD): Likewise.
8409 (FE_DOWNWARD): Likewise.
8410 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8411 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8412 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8413 [__mips_hard_float].
8414 (FP_ROUNDMODE): Likewise.
8415 (FP_RND_NEAREST): Likewise.
8416 (FP_RND_ZERO): Likewise.
8417 (FP_RND_PINF): Likewise.
8418 (FP_RND_MINF): Likewise.
8419 (FP_EX_INVALID): Likewise.
8420 (FP_EX_OVERFLOW): Likewise.
8421 (FP_EX_UNDERFLOW): Likewise.
8422 (FP_EX_DIVZERO): Likewise.
8423 (FP_EX_INEXACT): Likewise.
8424 (FP_INIT_ROUNDMODE): Likewise.
8425 * sysdeps/mips/nofpu/fesetenv.c: New file.
8426 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8427
8428 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8429
8430 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8431 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8432 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8433 conditional on [FE_UPWARD].
8434
8435 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8436
8437 regex: fix memory leak in Gnulib
8438 Problem and fix reported by Assaf Gordon in:
8439 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8440 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8441 range_ends members too, as they are defined in 'struct
8442 re_charset_t' even if not _LIBC. This affects only Gnulib.
8443
8444 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8445
8446 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8447 ...
8448 (get_common_indices): This.
8449 (init_cpu_features): Updated.
8450
8451 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8452
8453 * sysdeps/generic/math-tests-snan-payload.h: New file.
8454 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8455 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8456 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8457 * sysdeps/generic/math-tests.h: Include
8458 <math-tests-snan-payload.h>.
8459 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8460 * sysdeps/hppa/math-tests.h: Remove file.
8461 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8462 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8463 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8464 Likewise.
8465
8466 * sysdeps/generic/math-tests-snan-cast.h: New file.
8467 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8468 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8469 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8470 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8471
8472 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8473
8474 * version.h (RELEASE): Set to "development".
8475 (VERSION): Set to "2.28.9000".
8476 * NEWS (2.29): New section.
8477
8478 * version.h (RELEASE): Set to "stable".
8479 (VERSION): Set to "2.28".
8480 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8481 * NEWS: Add the list of bugs fixed in 2.28.
8482
8483 * po/ca.po: Update to latest version.
8484 * po/cs.po: Likewise
8485 * po/da.po: Likewise
8486 * po/el.po: Likewise
8487 * po/eo.po: Likewise
8488 * po/es.po: Likewise
8489 * po/fi.po: Likewise
8490 * po/fr.po: Likewise
8491 * po/gl.po: Likewise
8492 * po/hu.po: Likewise
8493 * po/ia.po: Likewise
8494 * po/id.po: Likewise
8495 * po/it.po: Likewise
8496 * po/ja.po: Likewise
8497 * po/ko.po: Likewise
8498 * po/lt.po: Likewise
8499 * po/nb.po: Likewise
8500 * po/nl.po: Likewise
8501 * po/pt_BR.po: Likewise
8502 * po/ru.po: Likewise
8503 * po/rw.po: Likewise
8504 * po/sk.po: Likewise
8505 * po/sl.po: Likewise
8506 * po/tr.po: Likewise
8507 * po/zh_CN.po: Likewise
8508 * po/zh_TW.po: Likewise
8509
8510 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8511
8512 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8513 initialization...
8514 (init): ... before initializing libpthread.
8515
8516 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8517 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8518 (__mach_setup_tls): ... new function.
8519 (mach_setup_tls): New alias.
8520 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8521 __mach_setup_thread.
8522 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8523 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8524 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8525 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8526
8527 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8528
8529 * manual/install.texi: Update versions.
8530 * INSTALL: Regenerate.
8531
8532 * manual/contrib.texi (Contributors): Update contributions.
8533
8534 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8535
8536 * po/be.po: Update translations.
8537
8538 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8539
8540 * sysdeps/sh/libm-test-ulps: Update.
8541
8542 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8543
8544 * po/bg.po: Update translations.
8545 * po/de.po: Likewise.
8546 * po/hr.po: Likewise.
8547 * po/pt_BR.po: Likewise.
8548 * po/sv.po: Likewise.
8549 * po/vi.po: Likewise.
8550
8551 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8552
8553 [BZ #23467]
8554 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8555 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8556 (CFLAGS-tst-cet-property-1.o): New.
8557 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8558 ($(objpfx)tst-cet-property-2): Likewise.
8559 ($(objpfx)tst-cet-property-2.out): Likewise.
8560 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8561 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8562 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8563 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8564 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8565
8566 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8567
8568 [BZ #23458]
8569 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8570
8571 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8572
8573 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8574 __sbrk): Do not set attribute_hidden.
8575 * sysdeps/mach/hurd/not-errno.h: New file.
8576 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8577 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8578
8579 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8580
8581 * po/uk.po: Update translations.
8582 * po/cs.po: Likewise.
8583 * po/pl.po: Likewise.
8584
8585 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8586
8587 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8588 parse beyond the note end.
8589
8590 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8591
8592 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8593 kernel does not support OFD locks.
8594 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8595
8596 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8597
8598 * sysdeps/mach/hurd/Versions (libc): Make __access and
8599 __access_noerrno external so they can override the ld symbols.
8600 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8601 __writev, __open64, __access_noerrno extern so they can be overrided.
8602 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8603 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8604
8605 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8606
8607 * po/libc.pot: Regenerate.
8608
8609 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8610
8611 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8612
8613 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8614
8615 [BZ #23459]
8616 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8617 function.
8618 (init_cpu_features): Call get_extended_indices for both Intel
8619 and AMD CPUs.
8620 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8621 Remove "for AMD" comment.
8622
8623 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8624
8625 [BZ # 23456]
8626 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8627 COMMON_CPUID_INDEX_80000001.
8628
8629 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8630
8631 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8632 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8633
8634 2018-07-26 Florian Weimer <fweimer@redhat.com>
8635
8636 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8637 aliases for symbols not in the implementation namespace.
8638
8639 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8640
8641 [BZ #23393]
8642 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8643 lowercase in LATIN script.
8644 * localedata/Makefile (test-input): Add en_US.UTF-8.
8645 * localedata/en_US.UTF-8.in: New file.
8646 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8647 and restore old tests.
8648 * posix/tst-regexloc.c (do_test): Add back range expression test.
8649
8650 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8651
8652 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8653
8654 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8655
8656 * nptl/threads.h: Move to ...
8657 * sysdeps/nptl/threads.h: ... here.
8658 * sysdeps/hurd/stdc-predef.h: New file.
8659
8660 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8661
8662 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8663 tst-cet-setcontext-1 if CET is enabled.
8664 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8665 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8666
8667 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8668
8669 * include/threads.h: Move to ...
8670 * sysdeps/nptl/threads.h: ... here.
8671 * sysdeps/htl/threads.h: New file.
8672 * conform/Makefile (linknamespace-libs-ISO11): Use
8673 static-thread-library instead of linking libpthread.
8674 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8675
8676 2018-07-25 Florian Weimer <fweimer@redhat.com>
8677
8678 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8679 nanoseconds into seconds.
8680 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8681 (do_test): Likewise.
8682 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8683 (do_test): Likewise. Avoid nanosecond overflow and spurious
8684 timeouts due to system load.
8685 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8686 (child_wait): Increment it.
8687 (do_test): Wait as long as necessary until all expected threads
8688 have arrived.
8689
8690 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8691 H.J. Lu <hongjiu.lu@intel.com>
8692
8693 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8694 __ssp.
8695 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8696 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8697 (__push___start_context): New.
8698 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8699 <asm/prctl.h>.
8700 (__getcontext): Record the current shadow stack base. Save the
8701 caller's shadow stack pointer and base.
8702 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8703 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8704 (__push___start_context): New prototype.
8705 (__makecontext): Call __push___start_context to allocate a new
8706 shadow stack, push __start_context onto the new stack as well
8707 as the new shadow stack.
8708 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8709 <asm/prctl.h>.
8710 (__setcontext): Restore the target shadow stack.
8711 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8712 <asm/prctl.h>.
8713 (__swapcontext): Record the current shadow stack base. Save
8714 the caller's shadow stack pointer and base. Restore the target
8715 shadow stack.
8716 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8717 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8718 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8719
8720 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8721
8722 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8723 tst-setcontext8 and tst-setcontext9.
8724 * stdlib/tst-setcontext6.c: New file.
8725 * stdlib/tst-setcontext7.c: Likewise.
8726 * stdlib/tst-setcontext8.c: Likewise.
8727 * stdlib/tst-setcontext9.c: Likewise.
8728
8729 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8730
8731 * stdlib/Makefile ((tests): Add tst-setcontext5.
8732 * stdlib/tst-setcontext5.c: New file.
8733
8734 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8735
8736 * stdlib/Makefile (tests): Add tst-setcontext4.
8737 * stdlib/tst-setcontext4.c: New file.
8738
8739 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8740
8741 * stdlib/Makefile (tests): Add tst-swapcontext1.
8742 * stdlib/tst-swapcontext1.c: New test.
8743
8744 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8745
8746 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8747 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8748 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8749 and tst-cet-legacy-4c.
8750 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8751 and tst-cet-legacy-mod-4.
8752 (CFLAGS-tst-cet-legacy-2.c): New.
8753 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8754 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8755 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8756 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8757 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8758 ($(objpfx)tst-cet-legacy-1): Likewise.
8759 ($(objpfx)tst-cet-legacy-2): Likewise.
8760 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8761 ($(objpfx)tst-cet-legacy-2a): Likewise.
8762 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8763 ($(objpfx)tst-cet-legacy-4): Likewise.
8764 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8765 ($(objpfx)tst-cet-legacy-4a): Likewise.
8766 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8767 (tst-cet-legacy-4a-ENV): Likewise.
8768 ($(objpfx)tst-cet-legacy-4b): Likewise.
8769 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8770 (tst-cet-legacy-4b-ENV): Likewise.
8771 ($(objpfx)tst-cet-legacy-4c): Likewise.
8772 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8773 (tst-cet-legacy-4c-ENV): Likewise.
8774 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8775 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8776 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8777 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8778 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8779 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8780 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8781 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8782 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8783 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8784 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8785
8786 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8787
8788 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8789 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8790 with ssp_base.
8791 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8792 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8793 with ssp_base.
8794
8795 2018-07-25 Andreas Schwab <schwab@suse.de>
8796
8797 [BZ #23442]
8798 * locale/weightwc.h (findidx): Handle the case where usrc is a
8799 prefix of cp but one character too short.
8800
8801 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8802
8803 * NEWS: Add ISO C threads addition.
8804
8805 2018-07-24 Florian Weimer <fweimer@redhat.com>
8806
8807 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8808 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8809 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8810 4.13.
8811
8812 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8813
8814 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8815 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8816 <sys/prctl.h> and <asm/prctl.h>.
8817 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8818 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8819 and <asm/prctl.h>.
8820 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8821 ARCH_CET_LEGACY_BITMAP.
8822 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8823 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8824 * sysdeps/x86/libc-start.c: Include <startup.h>.
8825
8826 2018-07-24 Florian Weimer <fweimer@redhat.com>
8827
8828 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8829 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8830
8831 2018-07-24 Rical Jasan <rj@2c3t.io>
8832 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8833 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8834
8835 [BZ #14092]
8836 * manual/debug.texi: Update adjacent chapter name.
8837 * manual/probes.texi: Likewise.
8838 * manual/threads.texi (ISO C Threads): New section.
8839 (POSIX Threads): Convert to a section.
8840
8841 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8842 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8843
8844 [BZ# 14092]
8845 * nptl/Makefile (tests): Add new test files.
8846 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8847 * nptl/tst-cnd-basic.c: Likewise.
8848 * nptl/tst-cnd-broadcast.c: Likewise.
8849 * nptl/tst-cnd-timedwait.c: Likewise.
8850 * nptl/tst-mtx-basic.c: Likewise.
8851 * nptl/tst-mtx-recursive.c: Likewise.
8852 * nptl/tst-mtx-timedlock.c: Likewise.
8853 * nptl/tst-mtx-trylock.c: Likewise.
8854 * nptl/tst-thrd-basic.c: Likewise.
8855 * nptl/tst-thrd-detach.c: Likewise.
8856 * nptl/tst-thrd-sleep.c: Likewise.
8857 * nptl/tst-tss-basic.c: Likewise.
8858
8859 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8860
8861 [BZ #14092]
8862 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8863 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8864 symbols.
8865 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8866 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8867 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8868 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8869 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8870 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8871 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8872 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8873 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8874 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8875 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8876 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8878 Likewise.
8879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8880 Likewise.
8881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8882 Likewise.
8883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8884 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8885 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8886 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8887 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8888 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8889 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8890 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8891 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8892 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8893 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8894 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8895 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8896 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8897 Likewise.
8898 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8899 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8900 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8901 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8902 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8903 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8904 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8905 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8906 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8907 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8908 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8909 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8910 ikewise.
8911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8913 Likewise.
8914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8915 Likewise.
8916 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8917 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8918 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8919 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8920 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8921 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8922 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8923 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8924
8925 [BZ #14092]
8926 * conform/data/threads.h-data (thread_local): New macro.
8927 (TSS_DTOR_ITERATIONS): Likewise.
8928 (tss_t): New type.
8929 (tss_dtor_t): Likewise.
8930 (tss_create): New function.
8931 (tss_get): Likewise.
8932 (tss_set): Likewise.
8933 (tss_delete): Likewise.
8934 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8935 tss_get, and tss_set objects.
8936 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8937 * nptl/tss_create.c: New file.
8938 * nptl/tss_delete.c: Likewise.
8939 * nptl/tss_get.c: Likewise.
8940 * nptl/tss_set.c: Likewise.
8941 * sysdeps/nptl/threads.h (thread_local): New define.
8942 (TSS_DTOR_ITERATIONS): Likewise.
8943 (tss_t): New typedef.
8944 (tss_dtor_t): Likewise.
8945 (tss_create): New prototype.
8946 (tss_get): Likewise.
8947 (tss_set): Likewise.
8948 (tss_delete): Likewise.
8949
8950 [BZ #14092]
8951 * conform/data/threads.h-data (cnd_t): New type.
8952 (cnd_init): New function.
8953 (cnd_signal): Likewise.
8954 (cnd_broadcast): Likewise.
8955 (cnd_wait): Likewise.
8956 (cnd_timedwait): Likewise.
8957 (cnd_destroy): Likewise.
8958 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8959 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8960 object.
8961 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8962 * nptl/cnd_broadcast.c: New file.
8963 * nptl/cnd_destroy.c: Likewise.
8964 * nptl/cnd_init.c: Likewise.
8965 * nptl/cnd_signal.c: Likewise.
8966 * nptl/cnd_timedwait.c: Likewise.
8967 * nptl/cnd_wait.c: Likewise.
8968 * sysdeps/nptl/threads.h (cnd_t): New type.
8969 (cnd_init): New prototype.
8970 (cnd_signa): Likewise.
8971 (cnd_broadcast): Likewise.
8972 (cnd_wait): Likewise.
8973 (cnd_timedwait): Likewise.
8974 (cnd_destroy): Likewise.
8975
8976 [BZ #14092]
8977 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8978 (once_flag): New type.
8979 (call_once): New function.
8980 * nptl/Makefile (libpthread-routines): Add call_once object.
8981 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8982 * nptl/call_once.c: New file.
8983 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8984 (once_flag): New type.
8985 (call_once): New prototype.
8986
8987 [BZ #14092]
8988 * conform/data/threads.h-data (mtx_plain): New constant.
8989 (mtx_recursive): Likewise.
8990 (mtx_timed): Likewise.
8991 (mtx_t): New type.
8992 (mtx_init): New function.
8993 (mtx_lock): Likewise.
8994 (mtx_timedlock): Likewise.
8995 (mtx_trylock): Likewise.
8996 (mtx_unlock): Likewise.
8997 (mtx_destroy): Likewise.
8998 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8999 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9000 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9001 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9002 * nptl/mtx_destroy.c: New file.
9003 * nptl/mtx_init.c: Likewise.
9004 * nptl/mtx_lock.c: Likewise.
9005 * nptl/mtx_timedlock.c: Likewise.
9006 * nptl/mtx_trylock.c: Likewise.
9007 * nptl/mtx_unlock.c: Likewise.
9008 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9009 (mtx_recursive): Likewise.
9010 (mtx_timed): Likewise.
9011 (mtx_t): New type.
9012 (mtx_init): New prototype.
9013 (mtx_lock): Likewise.
9014 (mtx_timedlock): Likewise.
9015 (mtx_trylock): Likewise.
9016 (mtx_unlock): Likewise.
9017 (mtx_destroy): Likewise.
9018
9019 [BZ #14092]
9020 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9021 (linknamespace-libs-ISO11): Add libpthread.a.
9022 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9023 functions.
9024 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9025 * nptl/Makefile (headers): Add threads.h.
9026 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9027 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9028 thrd_yield.
9029 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9030 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9031 thrd_join, thrd_sleep, and thrd_yield symbols.
9032 * nptl/descr.h (struct pthread): Add c11 field.
9033 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9034 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9035 routine with expected function prototype.
9036 (__pthread_create_2_1): Add C11 threads check based on attribute
9037 value.
9038 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9039 * nptl/thrd_create.c: New file.
9040 * nptl/thrd_current.c: Likewise.
9041 * nptl/thrd_detach.c: Likewise.
9042 * nptl/thrd_equal.c: Likewise.
9043 * nptl/thrd_exit.c: Likewise.
9044 * nptl/thrd_join.c: Likewise.
9045 * nptl/thrd_priv.h: Likewise.
9046 * nptl/thrd_sleep.c: Likewise.
9047 * nptl/thrd_yield.c: Likewise.
9048 * include/threads.h: Likewise.
9049
9050 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9051
9052 * bits/indirect-return.h: New file.
9053 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9054 * sysdeps/x86/bits/indirect-return.h: Likewise.
9055 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9056 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9057 (swapcontext): Add __INDIRECT_RETURN.
9058 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9059 (prepare_test_buffer): Use it.
9060
9061 2018-07-24 Andreas Schwab <schwab@suse.de>
9062
9063 [BZ #23448]
9064 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9065 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9066
9067 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9068
9069 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9070 Redefine if shadow stack is enabled.
9071 (SYSCALL_ERROR_LABEL): Likewise.
9072 (__vfork): Pop shadow stack and jump back to to caller directly
9073 when shadow stack is in use.
9074 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9075 Redefine if shadow stack is enabled.
9076 (SYSCALL_ERROR_LABEL): Likewise.
9077 (__vfork): Pop shadow stack and jump back to to caller directly
9078 when shadow stack is in use.
9079
9080 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9081
9082 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9083 enabled.
9084 (foo): Likewise.
9085 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9086 (foo): Likewise.
9087
9088 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9089
9090 * scripts/build-many-glibcs.py (Context.checkout): Default
9091 binutils version to 2.31 branch.
9092
9093 2018-07-20 Zong Li <zong@andestech.com>
9094
9095 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9096 URL of gcc's tarball.
9097
9098 2018-07-20 Florian Weimer <fweimer@redhat.com>
9099
9100 [BZ #23396]
9101 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9102 not compare an extra byte after the end of the weights.
9103
9104 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9105
9106 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9107 to 1.
9108 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9109 hidden prototypes.
9110 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9111 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9112 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9113 list of libraries whose stack executability is expected.
9114 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9115 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9116 variable.
9117 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9118 libc.so libpthread.so.
9119
9120 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9121
9122 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9123 SOCK_NONBLOCK.
9124 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9125 and SOCK_NONBLOCK.
9126 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9127 implement __pipe2.
9128 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9129
9130 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9131
9132 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9133 library to improve command line parsing.
9134 (__main__): make schema file as optional parameter (--schema),
9135 defaulting to benchtests/scripts/benchout.schema.json.
9136 (main): move out of the parsing stuff to __main_  and leave it
9137 only as caller of main comparison functions.
9138
9139 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9140
9141 * NEWS: Add a note for Intel CET status.
9142 * manual/install.texi: Likewise.
9143 * INSTALL: Regenerated.
9144
9145 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9146
9147 [BZ #23140]
9148 * localedata/locales/oc_FR (mon): Rename to...
9149 (alt_mon): This, then update October (typo fix).
9150 (mon): New content (genitive case, month names preceded by
9151 "de" or "d’").
9152
9153 [BZ #23422]
9154 * localedata/locales/oc_FR (abday): Update all items.
9155 (day): Update Wednesday and Saturday (typo fixes).
9156 (abmon): Update all items, except May.
9157 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9158 (LC_IDENTIFICATION): Bump the revision number and date.
9159 Keep the "category" entries in alphabetic order.
9160 (LC_ADDRESS): Remove no longer needed comment.
9161 (LC_COLLATE): Use “copy "ca_ES"”.
9162 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9163 "name_mrs".
9164
9165 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9166
9167 * grp/tst_fgetgrent.c: Include <unistd.h>.
9168 (main): Use mkstemp instead of tmpnam.
9169 * io/test-utime.c (main): Likewise.
9170 * posix/annexc.c (macrofile): Change to modifiable array.
9171 (main): Remove macrofile here.
9172 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9173 macrofile here.
9174 (check_header): Do not remove macrofile here.
9175 * posix/bug-getopt1.c: Include <stdlib.h>.
9176 (do_test): Use mkstemp instead of tmpnam.
9177 * posix/bug-getopt2.c: Include <stdlib.h>.
9178 (do_test): Use mkstemp instead of tmpnam.
9179 * posix/bug-getopt3.c: Include <stdlib.h>.
9180 (do_test): Use mkstemp instead of tmpnam.
9181 * posix/bug-getopt4.c: Include <stdlib.h>.
9182 (do_test): Use mkstemp instead of tmpnam.
9183 * posix/bug-getopt5.c: Include <stdlib.h>.
9184 (do_test): Use mkstemp instead of tmpnam.
9185 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9186 (main): Use mkstemp instead of tmpnam.
9187 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9188 (main): Use mkstemp instead of tmpnam.
9189 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9190 (main): use mkstemp instead of tmpnam.
9191 * stdlib/isomac.c (macrofile): Change to modifiable array.
9192 (main): Remove macrofile here.
9193 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9194 macrofile here.
9195 (check_header): Do not remove macrofile here.
9196
9197 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9198
9199 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9200 glibc.tune.x86_shstk.
9201
9202 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9203
9204 * NEWS: Mention --enable-cet.
9205 * manual/install.texi: Document --enable-cet.
9206 * INSTALL: Regenerated.
9207
9208 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9209
9210 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9211 Add _CET_NOTRACK before indirect jump to jump table.
9212
9213 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9214
9215 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9216 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9217 to jump table.
9218
9219 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9220
9221 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9222 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9223 to jump table.
9224
9225 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9226
9227 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9228 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9229 to jump table.
9230
9231 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9232
9233 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9234 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9235 to jump table.
9236
9237 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9238
9239 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9240 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9241 to jump table.
9242 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9243
9244 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9245
9246 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9247 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9248 to jump table.
9249
9250 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9251
9252 * sysdeps/i386/i686/multiarch/memset-sse2.S
9253 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9254 to jump table.
9255
9256 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9257
9258 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9259 indirect jump to jump table.
9260
9261 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9262
9263 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9264 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9265 to jump table.
9266 (MEMCPY): Likewise.
9267
9268 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9269
9270 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9271 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9272 to jump table.
9273 (MEMCPY): Likewise.
9274
9275 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9276
9277 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9278 _CET_NOTRACK before indirect jump to jump table.
9279
9280 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9281
9282 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9283 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9284 to jump table.
9285
9286 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9287
9288 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9289 indirect jump to jump table.
9290
9291 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9292
9293 [BZ #22241]
9294 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9295 (LOCALES): Likewise.
9296 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9297 * localedata/locales/sah_RU: New file.
9298 * localedata/sah_RU.UTF-8.in: New file.
9299
9300 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9301
9302 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9303 "sysdep.h".
9304 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9305 _CET_ENDBR to indirect jump targets and adjust jump destination
9306 for _CET_ENDBR.
9307 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9308 "sysdep.h".
9309 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9310 _CET_ENDBR to indirect jump targets and adjust jump destination
9311 for _CET_ENDBR.
9312 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9313 "sysdep.h".
9314 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9315 _CET_ENDBR to indirect jump targets and adjust jump destination
9316 for _CET_ENDBR.
9317
9318 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9319
9320 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9321 _CET_ENDBR.
9322
9323 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9324
9325 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9326 _CET_ENDBR.
9327 (_dl_tlsdesc_undefweak): Likewise.
9328 (_dl_tlsdesc_dynamic): Likewise.
9329 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9330 (_dl_tlsdesc_resolve_rel): Likewise.
9331 (_dl_tlsdesc_resolve_rela): Likewise.
9332 (_dl_tlsdesc_resolve_hold): Likewise.
9333 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9334 (_dl_tlsdesc_undefweak): Likewise.
9335 (_dl_tlsdesc_dynamic): Likewise.
9336 (_dl_tlsdesc_resolve_rela): Likewise.
9337 (_dl_tlsdesc_resolve_hold): Likewise.
9338
9339 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9340
9341 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9342 (_fini): Likewise.
9343 * sysdeps/x86_64/crti.S (_init): Likewise.
9344 (_fini): Likewise.
9345
9346 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9347
9348 [BZ #23140]
9349 * localedata/locales/os_RU (mon): Rename to...
9350 (alt_mon): This.
9351 (mon): Import from CLDR (genitive case).
9352
9353 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9354
9355 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9356 cet-tunables.h> when CET is enabled.
9357
9358 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9359
9360 [BZ #21598]
9361 * configure.ac: Add --enable-cet.
9362 * configure: Regenerated.
9363 * elf/Makefille (all-built-dso): Add a comment.
9364 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9365 Include <dl-prop.h>.
9366 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9367 segment.
9368 * elf/dl-open.c: Include <dl-prop.h>.
9369 (dl_open_worker): Call _dl_open_check.
9370 * elf/rtld.c: Include <dl-prop.h>.
9371 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9372 _rtld_main_check.
9373 * sysdeps/generic/dl-prop.h: New file.
9374 * sysdeps/i386/dl-cet.c: Likewise.
9375 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9376 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9377 * sysdeps/x86/cet-tunables.h: Likewise.
9378 * sysdeps/x86/check-cet.awk: Likewise.
9379 * sysdeps/x86/configure: Likewise.
9380 * sysdeps/x86/configure.ac: Likewise.
9381 * sysdeps/x86/dl-cet.c: Likewise.
9382 * sysdeps/x86/dl-procruntime.c: Likewise.
9383 * sysdeps/x86/dl-prop.h: Likewise.
9384 * sysdeps/x86/libc-start.h: Likewise.
9385 * sysdeps/x86/link_map.h: Likewise.
9386 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9387 _CET_ENDBR.
9388 (_dl_runtime_profile): Likewise.
9389 (_dl_runtime_resolve_shstk): New.
9390 (_dl_runtime_profile_shstk): Likewise.
9391 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9392 if CET is enabled.
9393 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9394 (CFLAGS-.os): Likewise.
9395 (CFLAGS-.op): Likewise.
9396 (CFLAGS-.oS): Likewise.
9397 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9398 is enabled.
9399 (tests-special): Add $(objpfx)check-cet.out.
9400 (cet-built-dso): New.
9401 (+$(cet-built-dso:=.note)): Likewise.
9402 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9403 ($(objpfx)check-cet.out): New.
9404 (generated): Add check-cet.out.
9405 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9406 <cet-tunables.h>.
9407 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9408 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9409 (init_cpu_features): Call get_cet_status to check CET status
9410 and update dl_x86_feature_1 with CET status. Call
9411 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9412 (set_x86_shstk). Disable and lock CET in libc.a.
9413 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9414 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9415 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9416 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9417 (_CET_ENDBR): Define if not defined.
9418 (ENTRY): Add _CET_ENDBR.
9419 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9420 x86_shstk.
9421 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9422 _CET_ENDBR.
9423 (_dl_runtime_profile): Likewise.
9424
9425 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9426
9427 [BZ #21895]
9428 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9429 restore r2 on longjmp.
9430 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9431 test list.
9432 Added rules to build test tst-setjmp-bug21895-static.
9433 Added module setjmp-bug21895 and rules to build a shared object from it.
9434 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9435 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9436
9437 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9438
9439 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9440 * benchtests/bench-strstr.c: Likewise.
9441 * string/memmem.c (FASTSEARCH): Define.
9442 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9443 Add support for FASTSEARCH.
9444 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9445 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9446 (FASTSEARCH): Define.
9447 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9448 * string/test-strstr.c: Likewise.
9449
9450 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9451
9452 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9453 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9454
9455 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9456 H.J. Lu <hongjiu.lu@intel.com>
9457
9458 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9459 (__longjmp): Restore shadow stack pointer if shadow stack is
9460 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9461 isn't defined for __longjmp_cancel.
9462 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9463 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9464 and SHADOW_STACK_POINTER_OFFSET is defined.
9465 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9466 (setjmp): Save shadow stack pointer if shadow stack is enabled
9467 and SHADOW_STACK_POINTER_OFFSET is defined.
9468 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9469 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9470 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9471 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9472 <jmp_buf-ssp.h>.
9473 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9474 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9475 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9476 Remove jmp_buf-ssp.sym.
9477 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9478 <jmp_buf-ssp.h>.
9479 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9480 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9481 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9482 jmp_buf-ssp.sym.
9483 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9484 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9485 (__longjmp): Restore shadow stack pointer if shadow stack is
9486 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9487 isn't defined for __longjmp_cancel.
9488 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9489 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9490 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9491
9492 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9493
9494 [BZ #22563]
9495 * nptl/pthread_create.c: Include <tls-setup.h>.
9496 (__pthread_create_2_1): Call tls_setup_tcbhead.
9497 * sysdeps/generic/tls-setup.h: New file.
9498 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9499 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9500 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9501 Likewise.
9502 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9503 to feature_1.
9504 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9505 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9506 (X86_FEATURE_1_SHSTK): Likewise.
9507 (CET_ENABLED): Likewise.
9508 (IBT_ENABLED): Likewise.
9509 (SHSTK_ENABLED): Likewise.
9510
9511 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9512
9513 [BZ #23208]
9514 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9515 (LOCALES): Likewise.
9516 * localedata/dsb_DE.UTF-8.in: New file.
9517 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9518
9519 2018-07-12 Florian Weimer <fweimer@redhat.com>
9520
9521 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9522 __mprotect, not mprotect.
9523
9524 2018-07-11 Florian Weimer <fweimer@redhat.com>
9525
9526 * io/Makefile (headers): Add bits/statx.h.
9527
9528 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9529
9530 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9531 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9532 and headers.
9533 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9534 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9535 for utf8_gen.py
9536
9537 2018-07-10 Florian Weimer <fweimer@redhat.com>
9538
9539 * io/Makefile (routines): Add statx.
9540 (tests-internal): Add tst-statx.
9541 * io/Versions (GLIBC_2.28): Export statx.
9542 * io/bits/statx.h: New file.
9543 * io/sys/stat.h [__USE_GNU]: Include it.
9544 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9545 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9546 Define.
9547 * io/statx.c: New file.
9548 * io/statx_generic.: Likewise.
9549 * io/tst-statx.: Likewise.
9550 * include/bits/statx.h: Likewise.
9551 * sysdeps/unix/sysv/linux/kernel-features.h
9552 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9553 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9554 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9555 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9556 Undefine.
9557 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9558 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9559 * sysdeps/unix/sysv/linux/statx.c: New file.
9560 * manual/filesys.texi: Note that statx is undocumented.
9561 * sysdeps/**/libc*.abilist: Update.
9562
9563 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9564
9565 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9566 a kernel issue which lead to test failure in some cases.
9567
9568 2018-07-10 Florian Weimer <fweimer@redhat.com>
9569
9570 [BZ #23036]
9571 * posix/regexec.c (check_node_accept_bytes): When comparing
9572 weights, do not compare an extra byte after the end of the
9573 weights.
9574
9575 2018-07-10 Florian Weimer <fweimer@redhat.com>
9576
9577 * libio/readline.c: Fix copyright year.
9578 * libio/tst-readline.c Likewise.
9579 * nss/tst-nss-files-hosts-getent.c: Likewise.
9580
9581 2018-07-06 Florian Weimer <fweimer@redhat.com>
9582
9583 [BZ #18991]
9584 * nss/nss_files/files-XXX.c (internal_getent): Use
9585 __libc_readline_unlocked. Seek back to the start of the line if
9586 parsing failes with ERANGE.
9587 (get_contents_ret, get_contents): Remove.
9588 * nss/tst-nss-files-hosts-getent.c: New file.
9589 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9590 (tst-nss-files-hosts-getent): Link with -ldl.
9591
9592 2018-07-06 Florian Weimer <fweimer@redhat.com>
9593
9594 * include/stdio.h (__libc_readline_unlocked): Declare.
9595 (__ftello64, __fseeko64): Declare aliases.
9596 * libio/readline.c: New file.
9597 * libio/tst-readline.c: Likewise.
9598 (routines): Add readline.
9599 (tests-internal): Add tst-readlime.
9600 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9601 __libc_readline_unlocked.
9602 * libio/fseeko.c (__fseeko): Rename from fseeko.
9603 (fseeko): Add alias.
9604 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9605 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9606 (fseeko64): Add alias.
9607 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9608 * libio/ftello64.c (__ftello64): Rename from ftello64.
9609 (ftello64): Add alias.
9610
9611 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9612
9613 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9614 HWCAP_ATOMICS.
9615
9616 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9617
9618 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9619 Use dl_hwcap without masking.
9620 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9621 Remove HWCAP_CPUID.
9622
9623 2018-07-06 Florian Weimer <fweimer@redhat.com>
9624
9625 * conform/conformtest.pl (checknamespace): Escape literal braces
9626 in regular expressions.
9627
9628 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9629
9630 * sysdeps/x86/cpu-features.c (get_common_indeces):
9631 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9632 * sysdeps/x86/cpu-features.c (init_cpu_features):
9633 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9634
9635 2018-07-05 Florian Weimer <fweimer@redhat.com>
9636
9637 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9638 protector.
9639 (CFLAGS-elf-init.oS): Likewise.
9640
9641 2018-07-05 Florian Weimer <fweimer@redhat.com>
9642 Carlos O'Donell <carlos@redhat.com>
9643
9644 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9645 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9646 with stack protector enabled because there is no risk of infinite
9647 recursion.
9648
9649 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9650
9651 [BZ #19818]
9652 [BZ #23307]
9653 * libc-abis (ABSOLUTE): New ABI.
9654 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9655 * NEWS: Mention the new ABI.
9656
9657 2018-07-05 Florian Weimer <fweimer@redhat.com>
9658
9659 [BZ # 17662]
9660 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9661 (RENAME_WHITEOUT): Define.
9662 [__USE_GNU] (renameat2): Declare.
9663 * stdio-common/Makefile (routines): Add renameat2.
9664 (tests): Add tst-renameat2.
9665 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9666 * stdio-common/renameat2.c: New file.
9667 * stdio-common/tst-renameat2.c: Likewise.
9668 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9669 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9670 undocumented.
9671 * sysdeps/unix/sysv/linux/kernel-features.h
9672 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9673 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9674 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9675 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9676 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9677 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9678 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9679 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9680 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9681 * include/stdio.h (__renameat): Add alias for renameat.
9682 * stdio-common/renameat.c (__renameat): Rename from renameat.
9683 Add hidden definition and alias.
9684 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9685 * sysdeps/mach/hurd/renameat.c: Likewise.
9686 * sysdeps/**/libc*.abilist: Add renameat2.
9687
9688 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9689
9690 * posix/bug-regex33.c: Fix build after regex sync.
9691
9692 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9693
9694 [BZ #23164]
9695 * localedata/tst-langinfo-setlocale.c: New file.
9696 * localedata/tst-langinfo-setlocale-static.c: New file.
9697 * localedata/tst-langinfo-newlocale.c: New file.
9698 * localedata/tst-langinfo-newlocale-static.c: New file.
9699 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9700 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9701 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9702 (tests-static): Remove tst-langinfo-static. Add
9703 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9704 (tests-special): Remove $(objpfx)tst-langinfo.out,
9705 $(objpfx)tst-langinfo-static.out. Add
9706 $(objpfx)tst-langinfo-setlocale.out,
9707 $(objpfx)tst-langinfo-newlocale.out,
9708 $(objpfx)tst-langinfo-setlocale-static.out,
9709 $(objpfx)tst-langinfo-newlocale-static.out.
9710 ($(objpfx)tst-langinfo.out): Remove.
9711 ($(objpfx)tst-langinfo-static.out): Remove.
9712 ($(objpfx)tst-langinfo-newlocale.out): New target.
9713 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9714 (test-xfail-tst-langinfo-newlocale-static): Add.
9715 ($(objpfx)tst-langinfo-setlocale.out): New target.
9716 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9717 * localedata/tst-langinfo.c: Call test_locale.
9718 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9719 data.
9720
9721 2018-07-04 Florian Weimer <fweimer@redhat.com>
9722
9723 testrun.sh: Implement --tool=strace, --tool=valgrind
9724 * Makefile (testrun-script): Define variable.
9725 (testrun.sh): Use variable.
9726 * manual/install.texi (Tools for Compilation): make 4.0 or later
9727 is required.
9728 * configure.ac: Check for make 4.0 or later.
9729 * INSTALL: Regenerate.
9730 * configure: Likewise.
9731
9732 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9733
9734 [BZ #23233]
9735 [BZ #21163]
9736 [BZ #18986]
9737 [BZ #13762]
9738 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9739 * posix/PCRE.tests: Remove invalid test.
9740 * posix/bug-regex28.c: Fix expected values for used syntax.
9741 * posix/bug-regex37.c: New file.
9742 * posix/bug-regex38.c: Likewise.
9743 * posix/regcomp.c: Sync with gnulib.
9744 * posix/regex.c: Likewise.
9745 * posix/regex.h: Likewise.
9746 * posix/regex_internal.c: Likewise.
9747 * posix/regex_internal.h: Likewise.
9748 * posix/regexec.c: Likewise.
9749
9750 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9751
9752 [BZ #23308]
9753 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9754 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9755 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9756 * localedata/unicode-gen/PropList.txt: likewise.
9757 * localedata/unicode-gen/UnicodeData.txt: likewise.
9758 * localedata/charmaps/UTF-8: Regenerate.
9759 * localedata/locales/i18n_ctype: likewise.
9760 * localedata/locales/tr_TR: likewise.
9761 * localedata/locales/translit_circle: likewise.
9762 * localedata/locales/translit_cjk_compat: likewise.
9763 * localedata/locales/translit_combining: likewise.
9764 * localedata/locales/translit_compat: likewise.
9765 * localedata/locales/translit_font: likewise.
9766 * localedata/locales/translit_fraction: likewise.
9767
9768 2018-07-03 Florian Weimer <fweimer@redhat.com>
9769
9770 [BZ #23363]
9771 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9772 * stdio-common/tst-printf.sh: Adjust expected output.
9773 * LICENSES: Update.
9774
9775 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9776
9777 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9778 symbol.
9779
9780 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9781
9782 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9783 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9784 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9785 * stdio-common/tst-printfsz-islongdouble.c: New file.
9786 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9787 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9788 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9789 [subdir == stdio-common] (tests-internal): Add
9790 test-printf-size-ieee128, and test-printf-size-ibm128.
9791 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9792 (CFLAGS-test-printf-size-ibm128.c): New variables.
9793 [subdir == stdio-common] (tests-special): Add
9794 $(objpfx)test-printf-size-ieee128.out and
9795 $(objpfx)test-printf-size-ibm128.out.
9796 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9797 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9798 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9799 __printf_sizeieee128.
9800 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9801 New file.
9802 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9803 Likewise.
9804 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9805 Likewise.
9806
9807 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9808
9809 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9810 (exp2f_inline): Likewise.
9811 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9812 (__math_uflowf): Likewise.
9813 (__math_may_uflowf): Likewise.
9814 (__math_divzerof): Likewise.
9815 (__math_invalidf): Likewise.
9816 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9817 (__math_oflowf): Likewise.
9818 (__math_uflowf): Likewise.
9819 (__math_may_uflowf): Likewise.
9820 (__math_divzerof): Likewise.
9821 (__math_invalidf): Likewise.
9822
9823 2018-06-29 DJ Delorie <dj@redhat.com>
9824 Carlos O'Donell <carlos@redhat.com>
9825
9826 [BZ #23329]
9827 * include/libc-symbols.h: Comment the freeres framework.
9828 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9829 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9830 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9831 * dlfcn/dlerror.c: Include libc-symbols.h
9832 (__dlerror_main_freeres): New function.
9833 * dlfcn/dlfreeres.c: New file.
9834 * dlfcn/sdlfreeres.c: New file.
9835 * include/dlfcn.h: Declare __dlerror_main_freeres.
9836 * malloc/set-freeres.c: Declare __libdl_freeres, and
9837 __libpthread_freeres.
9838 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9839 the releavant libraries are loaded.
9840 * malloc/thread-freeres.c: Add comments.
9841 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9842 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9843 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9844 (__free_stacks): Rename to...
9845 (free_stacks): ...this. Mark static.
9846 (queue_stack): Call free_stacks.
9847 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9848 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9849 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9850 ptr_freeres element from struct.
9851 (pthread_functions): Remove .ptr_freeres from struct initializer.
9852 [SHARED] (nptl_freeres): Remove.
9853 * nptl/nptlfreeres.c: New file.
9854 * nptl/pthreadP.h
9855 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9856 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9857 attribute_hidden.
9858 (__free_stacks): Rename to...
9859 (__nptl_stacks_freeres): ...this.
9860 (__shm_directory_freeres): Declare.
9861 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9862 (__nptl_unwind_freeres): ...this.
9863 * resolv/res-close.c: Add comment.
9864 * resolv/resolv_conf.c: Include libc-symbols.h.
9865 * string/strerror_l.c: Include libc-symbols.h.
9866 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9867 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9868 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9869 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9870
9871 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9872
9873 * stdlib/tst-strfmon_l.c: Add tests for long double.
9874
9875 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9876
9877 [BZ #23208]
9878 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9879 * localedata/locales/dsb_DE: New file.
9880
9881 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9882
9883 [BZ #23140]
9884 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9885 genitive case).
9886 (alt_mon): New entry, import from CLDR (nominative case).
9887
9888 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9889
9890 [BZ #22996]
9891 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9892
9893 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9894
9895 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9896 Use vector registers.
9897
9898 * sysdeps/aarch64/multiarch/memmove_falkor.S
9899 (__memcpy_falkor): Use vector registers.
9900
9901 2018-06-29 Martin Sebor <msebor@redhat.com>
9902
9903 * manual/stdio.texi (Customizing Printf): Mention interaction
9904 with GCC built-ins.
9905
9906 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9907
9908 [BZ #23307]
9909 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9910 `st_value' is 0 if `st_shndx' is SHN_ABS.
9911 * elf/tst-absolute-zero.c: New file.
9912 * elf/tst-absolute-zero-lib.c: New file.
9913 * elf/tst-absolute-zero-lib.lds: New file.
9914 * elf/Makefile (tests): Add `tst-absolute-zero'.
9915 (modules-names): Add `tst-absolute-zero-lib'.
9916 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9917 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9918 ($(objpfx)tst-absolute-zero: New dependency.
9919
9920 2018-06-29 Zack Weinberg <zackw@panix.com>
9921
9922 * configure.ac: New command-line option --disable-crypt.
9923 Force --disable-nss-crypt when --disable-crypt is given, with a
9924 warning if it was explicitly enabled.
9925 * configure: Regenerate.
9926 * config.make.in: New boolean substitution variable $(build-crypt).
9927 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9928 when $(build-crypt).
9929 * manual/install.texi: Document --disable-crypt.
9930 * INSTALL: Regenerate.
9931
9932 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9933 which is never set.
9934 * conform/Makefile: Only include libcrypt.a in
9935 linknamespace-libs-xsi and linknamespace-libs-XPG4
9936 when $(build-crypt).
9937 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9938 USE_CRYPT to 1 when $(build-crypt).
9939 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9940 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9941 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9942
9943 2018-06-29 Zack Weinberg <zackw@panix.com>
9944
9945 * crypt/crypt.h, posix/unistd.h: Update comments and
9946 prototypes for crypt and crypt_r.
9947
9948 * manual/crypt.texi (Cryptographic Functions): New initial
9949 exposition.
9950 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9951 (Unpredictable Bytes): Improve initial exposition. Clarify error
9952 behavior of getentropy and getrandom.
9953 * manual/examples/genpass.c: Generate a salt using getentropy
9954 instead of the current time. Use hash $5$ (SHA-2-256).
9955 * manual/examples/testpass.c: Demonstrate validation against
9956 hashes generated with three different one-way functions.
9957
9958 * manual/intro.texi: crypt.texi does not need an overview
9959 anymore.
9960
9961 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9962 * manual/terminal.texi: Consistently refer to "passphrases"
9963 * instead of "passwords", and to the "user database" instead
9964 * of the "password database".
9965 * manual/users.texi: Similarly. Add notes about how actual
9966 passphrase hashes are now stored in the shadow database.
9967 Remove 20-year-old junk todo note.
9968
9969 2018-06-29 Zack Weinberg <zackw@panix.com>
9970
9971 * manual/crypt.texi: Use a normal top-level @node declaration.
9972 Move most of the introductory text to the 'crypt' section.
9973 Move the example programs below the @deftypefun for 'crypt_r'.
9974 Move the 'getpass' section...
9975 * manual/terminal.texi: ...here.
9976
9977 2018-06-29 Zack Weinberg <zackw@panix.com>
9978 Florian Weimer <fweimer@redhat.com>
9979
9980 * posix/unistd.h: Do not declare encrypt.
9981 (_XOPEN_CRYPT): Remove macro definition.
9982 (crypt): Declare only for _USE_MISC.
9983 * stdlib/stdlib.h: Do not declare setkey.
9984 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9985 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9986
9987 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9988 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9989 into compat symbols. Don't define initial_perm if it's not
9990 going to be used.
9991 * crypt/cert.c: Link explicitly with the expected versions for
9992 setkey and encrypt. If they are not available at all, mark
9993 the test as unsupported.
9994
9995 * sunrpc/des_crypt.c: Unconditionally block linkage with
9996 cbc_crypt and ecb_crypt for new binaries.
9997 * sunrpc/des_soft.c: Unconditionally block linkage with
9998 des_setparity for new binaries.
9999
10000 * manual/crypt.texi: Remove the entire "DES Encryption"
10001 section. Also remove the paragraph talking about FIPS 140-2
10002 from the introduction.
10003 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10004 of libgcrypt for "real" encryption, not DES.
10005 * manual/conf.texi (Constants for Sysconf): Mention that
10006 _XOPEN_CRYPT is no longer impelemented.
10007
10008 * conform/data/unistd.h-data: Remove crypt function declaration.
10009
10010 2018-06-29 Florian Weimer <fweimer@redhat.com>
10011
10012 [BZ #23351]
10013 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10014 (disallow_malloc_check): Remove variable.
10015 (__malloc_check_init): Adjust.
10016 (malloc_set_state): Update comment.
10017 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10018 declarations.
10019
10020 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10021
10022 [BZ #23140]
10023 * localedata/locales/ast_ES (mon): Rename to...
10024 (alt_mon): This.
10025 (mon): Import from CLDR (genitive case).
10026
10027 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10028 Jakub Sitnicki <jkbs@redhat.com>
10029
10030 [BZ #21812]
10031 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10032 on NLM_F_DUMP_INTR.
10033
10034 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10035
10036 * manual/llio.texi: Remove spurious space.
10037
10038 2018-06-28 Florian Weimer <fweimer@redhat.com>
10039
10040 [BZ #23349]
10041 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10042 _STRUCT_TIMESPEC.
10043
10044 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10045
10046 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10047 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10048 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10049 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10050 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10051 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10052 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10053
10054 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10055
10056 [BZ #23266]
10057 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10058 Copy and null-terminate entries that are not terminated, in
10059 addition to empty ones.
10060
10061 2018-06-27 Florian Weimer <fweimer@redhat.com>
10062
10063 [BZ #18023]
10064 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10065 (extend_alloca_account): Remove.
10066 * manual/stdio.texi (Variable Arguments Output): Update comment.
10067
10068 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10069
10070 * nptl/sockperf.c: Remove file.
10071
10072 2018-06-27 Florian Weimer <fweimer@redhat.com>
10073
10074 [BZ #18023]
10075 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10076 scratch_buffer instead of extend_alloca.
10077
10078 2018-06-27 Florian Weimer <fweimer@redhat.com>
10079
10080 [BZ #18023]
10081 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10082 scratch_buffer instead of extend_alloca. Update comments.
10083
10084 2018-06-27 Florian Weimer <fweimer@redhat.com>
10085
10086 [BZ #18023]
10087 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10088 instead of extend_alloca.
10089
10090 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10091
10092 [BZ #13888]
10093 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10094 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10095 /tmp.
10096 * scripts/test-installation.pl: Put temporary files in build
10097 directory, not /tmp.
10098 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10099 (CFLAGS-bug4.c): Likewise.
10100 (CFLAGS-bug5.c): Likewise.
10101 (CFLAGS-test-fseek.c): Likewise.
10102 (CFLAGS-test-popen.c): Likewise.
10103 (CFLAGS-test_rdwr.c): Likewise.
10104 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10105 /tmp.
10106 * stdio-common/bug4.c (main): Likewise.
10107 * stdio-common/bug5.c (main): Likewise.
10108 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10109 * stdio-common/test-popen.c (do_test): Likewise.
10110 * stdio-common/test_rdwr.c (main): Likewise.
10111
10112 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10113
10114 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10115 (sem_open): Set sem.newsem.pad to zero for valgrind.
10116
10117 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10118
10119 [BZ #20251]
10120 * NEWS: Mention fcntl64 addition.
10121 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10122 * login/utmp_file.c: Likewise.
10123 * sysdeps/posix/fdopendir.c: Likewise.
10124 * sysdeps/posix/opendir.c: Likewise.
10125 * sysdeps/unix/pt-fcntl.c: Likewise.
10126 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10127 __fcntl64_nocancel_adjusted): New prototype.
10128 (__fcntl_nocancel_adjusted): Remove prototype.
10129 * io/Makefile (routines): Add fcntl64.
10130 (CFLAGS-fcntl64.c): New rule.
10131 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10132 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10133 * io/fcntl.h (fcntl64): Add prototype and redirect if
10134 __USE_FILE_OFFSET64 is defined.
10135 * io/fcntl64.c: New file.
10136 * manual/llio.text: Add a note for which commands fcntl acts a
10137 cancellation point.
10138 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10139 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10140 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10141 New symbols.
10142 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10143 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10144 non-LFS case.
10145 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10146 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10147 to __fcntl64_nocancel.
10148 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10149 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10150 to __fcntl64_nocancel.
10151 * sysdeps/generic/not-cancel.h: Likewise.
10152 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10153 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10154 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10155 (fcntl64): New symbol.
10156 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10157 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10158 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10161 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10162 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10163 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10164 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10165 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10166 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10167 fcntl64): Likewise.
10168 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10169 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10170 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10171 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10172 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10173 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10174 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10175 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10176 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10177 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10178 Likewise.
10179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10180 Likewise.
10181 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10182 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10183 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10184
10185 2018-06-26 Florian Weimer <fweimer@redhat.com>
10186
10187 Run thread shutdown functions in an explicit order.
10188 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10189 definition.
10190 (__libc_thread_freeres): Call thread shutdown functions
10191 explicitly.
10192 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10193 * include/string.h (__strerror_thread_freeres): Declare.
10194 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10195 arena_thread_freeres. No longer static. Remove thread shutdown
10196 hook registration.
10197 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10198 Declare.
10199 * resolv/res-close.c (__res_thread_freeres): Renamed from
10200 res_thread_freeres. No longer static. Remove thread shutdown
10201 hook registration.
10202 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10203 * resolv/resolv_conf.c (freeres): Remove incorrect section
10204 attribute and use libc_freeres_fn.
10205 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10206 strerror_thread_freeres. No longer static. Remove thread
10207 shutdown hook registration.
10208 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10209 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10210 shutdown hook registration.
10211 * Makerules (shlib.lds): Do not provide section boundary symbols
10212 for __libc_thread_subfreeres.
10213 * manual/memory.texi (Basic Allocation): Update comment.
10214
10215 2018-06-26 Florian Weimer <fweimer@redhat.com>
10216
10217 Remove always-defined _RPC_THREAD_SAFE_ macro.
10218 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10219 Do not define _RPC_THREAD_SAFE_.
10220 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10221 conditional.
10222 * sunrpc/clnt_perr.c: Likewise.
10223 * sunrpc/clnt_raw.c: Likewise.
10224 * sunrpc/clnt_simp.c: Likewise.
10225 * sunrpc/key_call.c: Likewise.
10226 * sunrpc/rpc_common.c: Likewise.
10227 * sunrpc/rpc_main.c: Likewise.
10228 * sunrpc/rpc_thread.c: Likewise.
10229 * sunrpc/svc.c: Likewise.
10230 * sunrpc/svc_raw.c: Likewise.
10231 * sunrpc/svc_simple.c: Likewise.
10232 * sumrpc/svcauth_des.c: Likewise.
10233
10234 2018-06-26 Florian Weimer <fweimer@redhat.com>
10235
10236 * libio/Makefile (tests-internal): Add tst-vtables,
10237 tst-vtables-interposed.
10238 * libio/tst-vtables.c: New file.
10239 * libio/tst-vtables-common.c: Likewise.
10240 * libio/tst-vtables-interposed.c: Likewise.
10241
10242 2018-06-26 Florian Weimer <fweimer@redhat.com>
10243
10244 * support/support_test_main.c (support_test_main): Only call
10245 setvbuf if not disables.
10246 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10247 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10248
10249 2018-06-26 Florian Weimer <fweimer@redhat.com>
10250
10251 [BZ #23313]
10252 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10253
10254 2018-06-25 Florian Weimer <fweimer@redhat.com>
10255
10256 [BZ #18023]
10257 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10258 Use struct scratch_buffer instead of extend_alloca.
10259
10260 2018-06-25 Florian Weimer <fweimer@redhat.com>
10261
10262 [BZ #18023]
10263 * nss/getent.c (initgroups_keys): Use dynarray instead of
10264 extend_alloca.
10265
10266 2018-06-25 Florian Weimer <fweimer@redhat.com>
10267
10268 [BZ #18023]
10269 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10270 Use struct scratch_buffer instead of extend_alloca.
10271
10272 2018-06-25 Florian Weimer <fweimer@redhat.com>
10273
10274 [BZ #18023]
10275 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10276 back to malloc directly, without stack allocations.
10277
10278 2018-06-25 Florian Weimer <fweimer@redhat.com>
10279
10280 [BZ #18023]
10281 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10282 of extend_alloca.
10283
10284 2018-06-25 Florian Weimer <fweimer@redhat.com>
10285
10286 [BZ #18023]
10287 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10288 of extend_alloca.
10289 * nscd/hstcache.c (addhstbyX): Likewise.
10290 * nscd/pwdcache.c (addpwbyX): Likewise.
10291 * nscd/servicescache.c (addservbyX): Likewise.
10292
10293 2018-06-25 Florian Weimer <fweimer@redhat.com>
10294
10295 [BZ #18023]
10296 * nscd/connections.c (read_cmdline): New function.
10297 (restart): Use it. Update comment.
10298
10299 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10300
10301 [BZ #23140]
10302 * localedata/locales/csb_PL (mon): Rename to...
10303 (alt_mon): This.
10304 (abmon): Rename to...
10305 (ab_alt_mon): This.
10306 (mon): Add with proper genitive forms, copy from Wikipedia.
10307 (abmon): Likewise.
10308
10309 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10310
10311 [BZ #19485]
10312 * localedata/locales/csb_PL (mon): Fix typos:
10313 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10314 (yesstr): Add, value is "jo".
10315 (nostr): Add, value is "nié".
10316
10317 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10318
10319 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10320 all log1p and significand functions on m680x0.
10321 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10322 of s_significand.c..
10323 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10324 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10325 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10326 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10327 s_log1p.c and include it..
10328
10329 2018-06-21 Vincent Chen <vincentc@andestech.com>
10330
10331 * elf/elf.h (R_NDS32_NONE): New define.
10332 (R_NDS32_32_RELA): Likewise.
10333 (R_NDS32_COPY): Likewise.
10334 (R_NDS32_GLOB_DAT): Likewise.
10335 (R_NDS32_JUMP_SLOT): Likewise.
10336 (R_NDS32_RELATIVE): Likewise.
10337 (R_NDS32_TLS_TPOFF): Likewise.
10338 (R_NDS32_TLS_DESC): Likewise.
10339
10340 2018-06-21 Mark Wielaard <mark@klomp.org>
10341
10342 * elf/elf.h (R_BPF_MAP_FD): Removed.
10343 (R_BPF_64_64, R_BPF_64_32): New.
10344
10345 2018-06-21 Florian Weimer <fweimer@redhat.com>
10346
10347 [BZ #23253]
10348 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10349 Renamed from libc_feholdsetround_ctx.
10350 (default_libc_feresetround_ctx): Renamed from
10351 libc_feresetround_ctx.
10352 (default_libc_feholdsetround_noex_ctx): Renamed from
10353 libc_feholdsetround_noex_ctx.
10354 (default_libc_feresetround_noex_ctx): Renamed from
10355 libc_feresetround_noex_ctx.
10356 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10357 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10358 forwardning to the old implementations under the new names.
10359 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10360 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10361 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10362 (libc_feresetround_ctx): Forward to default implements for i386
10363 and MATH_SET_BOTH_ROUNDING_MODES.
10364 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10365 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10366
10367 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10368
10369 * string/tst-cmp.c: Include <libc-diag.h>.
10370 (strncmp_max): Disable -Wstringop-overflow= around call to
10371 strncmp.
10372 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10373 strncasecmp.
10374
10375 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10376 (main): Disable -Wunused-value around call to strpbrk.
10377 * string/bug-strspn1.c: Include <libc-diag.h>.
10378 (main): Disable -Wunused-value around call to strspn.
10379
10380 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10381 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10382
10383 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10384 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10385
10386 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10387
10388 * math/Makefile (libm-calls): Move s_significandF to...
10389 (gen-libm-calls): ... here.
10390 * math/s_significand_template.c: New file.
10391 * math/s_significand.c: Removed.
10392 * math/s_significandf.c: Removed.
10393 * math/s_significandl.c: Removed.
10394 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10395 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10396
10397 * math/e_exp2_template.c (declare_mgen_finite_alias,
10398 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10399 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10400 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10401
10402 2018-06-20 Florian Weimer <fweimer@redhat.com>
10403
10404 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10405
10406 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10407
10408 [BZ #23280]
10409 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10410 floating-point number to strtod functions rather than possibly
10411 negating result of those functions.
10412 * stdio-common/tst-scanf-round.c: New file.
10413 * stdio-common/Makefile (tests): Add tst-scanf-round.
10414 ($(objpfx)tst-scanf-round): Depend on $(libm).
10415
10416 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10417
10418 * sysdeps/mach/hurd/localplt.data: Move to...
10419 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10420 R_386_GLOB_DAT like on Linux i386.
10421
10422 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10423
10424 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10425 (SHM_STAT_ANY): New macro.
10426 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10427 (SHM_STAT_ANY): Likewise.
10428 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10429 (SHM_STAT_ANY): Likewise.
10430 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10431 (SHM_STAT_ANY): Likewise.
10432 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10433 (SHM_STAT_ANY): Likewise.
10434 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10435 (SHM_STAT_ANY): Likewise.
10436 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10437 (SHM_STAT_ANY): Likewise.
10438 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10439 (SHM_STAT_ANY): Likewise.
10440 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10441 (SHM_STAT_ANY): Likewise.
10442 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10443 (SHM_STAT_ANY): Likewise.
10444 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10445 (SHM_STAT_ANY): Likewise.
10446 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10447 (SHM_STAT_ANY): Likewise.
10448
10449 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10450 (SEM_STAT_ANY): New macro.
10451 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10452 (SEM_STAT_ANY): Likewise.
10453 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10454 (SEM_STAT_ANY): Likewise.
10455 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10456 (SEM_STAT_ANY): Likewise.
10457 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10458 (SEM_STAT_ANY): Likewise.
10459 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10460 (SEM_STAT_ANY): Likewise.
10461 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10462 (SEM_STAT_ANY): Likewise.
10463 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10464 (SEM_STAT_ANY): Likewise.
10465 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10466 (SEM_STAT_ANY): Likewise.
10467 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10468 (SEM_STAT_ANY): Likewise.
10469
10470 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10471 (MSG_STAT_ANY): New macro.
10472 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10473 (MSG_STAT_ANY): Likewise.
10474 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10475 (MSG_STAT_ANY): Likewise.
10476 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10477 (MSG_STAT_ANY): Likewise.
10478 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10479 (MSG_STAT_ANY): Likewise.
10480 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10481 (MSG_STAT_ANY): Likewise.
10482 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10483 (MSG_STAT_ANY): Likewise.
10484 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10485 (MSG_STAT_ANY): Likewise.
10486 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10487 (MSG_STAT_ANY): Likewise.
10488 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10489 (MSG_STAT_ANY): Likewise.
10490
10491 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10492 (MAP_TYPE): Change value to 0x2b.
10493
10494 2018-06-18 Florian Weimer <fweimer@redhat.com>
10495
10496 [BZ #15722]
10497 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10498 socket with SOCK_CLOEXEC.
10499
10500 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10501
10502 [BZ #23303]
10503 * sysdeps/powerpc/powerpc64/le/Makefile
10504 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10505 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10506 (gnulib-tests): Also add $(f128-loader-link) for
10507 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10508
10509 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10510
10511 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10512 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10513 of sendfile.
10514 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10515 (sendfile64): New strong alias.
10516 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10517 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10518 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10519 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10520 attribute.
10521 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10522 ___pthread_get_cleanup_stack.
10523 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10524 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10525 * mach/shortcut.awk: Make syscall stubs include
10526 <mach-shortcuts-hidden.h> and add hidden definition.
10527 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10528 (__mach_msg): Add hidden prototype.
10529 * mach/msg.c: Include <mach.h>.
10530 (__mach_msg): Add hidden definition.
10531 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10532 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10533 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10534 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10535 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10536 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10537 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10538 prototype and definition.
10539 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10540 hidden target for _hurd_self_sigstate.
10541
10542 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10543
10544 [BZ #23007]
10545 * stdlib/tst-strtod-nan-sign-main.c: New file.
10546 * stdlib/tst-strtod-nan-sign.c: Likewise.
10547 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10548 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10549 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10550 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10551 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10552
10553 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10554
10555 [BZ #23007]
10556 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10557 appropriate sign.
10558
10559 2018-06-14 Florian Weimer <fweimer@redhat.com>
10560
10561 [BZ #23290]
10562 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10563 that the result stays within the ISO-8859-1 range.
10564 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10565 characters are defined in IBM273.
10566
10567 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10568
10569 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10570 __mach_task_self): Remove attribute_hidden.
10571
10572 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10573
10574 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10575 ignore -Wrestrict for one test.
10576
10577 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10578 Szabolcs Nagy <szabolcs.nagy@arm.com>
10579
10580 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10581
10582 2018-06-14 Florian Weimer <fweimer@redhat.com>
10583
10584 * scripts/update-abilist.sh: Accept empty list of files to patch.
10585
10586 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10587
10588 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10589 test-xfail-check-abi-libmachuser): Add.
10590 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10591 __libc_read and __libc_write to __read and __write.
10592 * sysdeps/hurd/include/hurd/port.h: New file.
10593 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10594 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10595 __thread_switch, __evc_wait): Move declarations to...
10596 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10597 attribute_hidden.
10598 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10599 use PLT to call _hurd_self_sigstate.
10600
10601 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10602
10603 [BZ #23279]
10604 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10605 MAX_EXP as overflowing.
10606 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10607 overflow flag.
10608 (round_str): Output also whether result overflows in each rounding
10609 mode.
10610 * stdlib/tst-strtod-round-data: Add more tests.
10611 * stdlib/tst-strtod-round-data.h: Regenerated.
10612 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10613 (TEST): Handle extra arguments for overflow flags.
10614 (struct test_overflow): New type.
10615 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10616 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10617 (test_in_one_mode): Take argument with overflow information.
10618 (do_test): Update calls to test_in_one_mode.
10619
10620 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10621
10622 * elf/dl-load (_dl_dst_substitute): Correct comment.
10623 (_dl_dst_count): Likewise.
10624
10625 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10626 lll_futex_timed_wait.
10627
10628 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10629
10630 [BZ #23277]
10631 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10632 attribute.
10633 * math/test-nan-const.c: New file.
10634 * math/Makefile (tests): Add test-nan-const.
10635 (CFLAGS-test-nan-const.c): New variable.
10636
10637 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10638
10639 * benchtests/scripts/compare_strings.py (process_results): Add
10640 funcs argument. Compare only functions which are selected.
10641 (main): Check if base function is among selected functions.
10642 Pass selected functions to process_results.
10643 (__main__): Add -f/--functions argument.
10644
10645 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10646 Hongbo Zhang <hongbo.zhang@linaro.org>
10647
10648 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10649 __memcpy_falkor for phecda core.
10650 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10651 __memmove_falkor for phecda core.
10652 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10653 __memset_falkor for phecda core.
10654 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10655 for phecda core.
10656 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10657 macro to identify phecda core.
10658
10659 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10660 Andreas Schwab <schwab@suse.de>
10661 Dmitry V. Levin <ldv@altlinux.org>
10662 Florian Weimer <fweimer@redhat.com>
10663
10664 [BZ #23102]
10665 [BZ #21942]
10666 [BZ #18018]
10667 [BZ #23259]
10668 CVE-2011-0536
10669 * elf/dl-dst.h: Remove DL_DST_COUNT.
10670 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10671 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10672 (is_dst): Comment. Support ELF gABI.
10673 (_dl_dst_count): Comment. Simplify and count DSTs.
10674 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10675 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10676 locals.
10677
10678 2018-06-12 Zack Weinberg <zackw@panix.com>
10679
10680 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10681 * sysdeps/unix/sysv/linux/dl-sysdep.c
10682 Include not-cancel.h. Use __close_nocancel instead of __close,
10683 __open64_nocancel instead of __open, __read_nocancel instead of
10684 __libc_read, and __write_nocancel instead of __libc_write.
10685
10686 * csu/check_fds.c (check_one_fd)
10687 * sysdeps/posix/fdopendir.c (__fdopendir)
10688 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10689 instead of __fcntl and/or __libc_fcntl.
10690
10691 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10692 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10693 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10694 Use __open64_nocancel instead of __open_nocancel.
10695
10696 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10697 hidden_proto declarations to the end and issue them if either
10698 IS_IN(libc) or IS_IN(rtld).
10699 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10700 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10701 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10702 read_nocancel, waitpid_nocancel, write_nocancel.
10703
10704 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10705 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10706 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10707
10708 * nptl/pt-fcntl.c: New file.
10709 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10710 (libpthread-routines): Add pt-fcntl.
10711 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10712 (__libc_fcntl): Remove attribute_hidden.
10713 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10714 __fcntl_nocancel_adjusted, not fcntl_common.
10715 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10716 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10717 to fcntl_nocancel.c.
10718 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10719 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10721 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10722
10723 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10724 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10725 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10726 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10727 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10728 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10729 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10730 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10731 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10732 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10733 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10734 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10735 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10736 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10737 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10738 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10739 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10740 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10741 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10742 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10743
10744 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10745 libpthread-routines.
10746 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10747 defines nothing.
10748
10749 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10750 __libc_read, and __write instead of __libc_write. Define
10751 __open64 in addition to __open.
10752
10753 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10754
10755 [BZ #23250]
10756 [BZ #10686]
10757 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10758 to _private_tm[3] and add __glibc_reserved2.
10759 Add _Static_assert of offset of __private_ss == 0x30.
10760 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10761 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10762
10763 2018-06-12 Florian Weimer <fweimer@redhat.com>
10764
10765 x86: Make strncmp usable from rtld.
10766 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10767 __strncmp_ia32 if in libc (and not in rtld).
10768 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10769 strncmp if not in libc (and not to __strncmp_sse2).
10770
10771 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10772
10773 [BZ #23140]
10774 * localedata/locales/gd_GB (mon): Rename to...
10775 (alt_mon): This.
10776 (mon): Import from CLDR (genitive case).
10777 * localedata/locales/hsb_DE (mon): Rename to...
10778 (alt_mon): This.
10779 (mon): Import from CLDR (genitive case).
10780 * localedata/locales/wa_BE (mon): Rename to...
10781 (alt_mon): This.
10782 (mon): Add, fill with the proper genitive forms, but CLDR data
10783 is incomplete; completed according to the comments in this file.
10784 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10785
10786 * localedata/locales/wa_BE (country_name): Reword
10787 "Beljike" -> "Beldjike".
10788
10789 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10790
10791 [BZ #23272]
10792 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10793 cases of non-finite arguments.
10794 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10795
10796 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10797
10798 [BZ #23174]
10799 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10800
10801 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10802
10803 [BZ #23264]
10804 * include/unistd.h (__execvpex): New prototype.
10805 * posix/Makefile (tests): Add tst-spawn4.
10806 (tests-internal): Add tst-spawn4-compat.
10807 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10808 * posix/tst-spawn4-compat.c: New file.
10809 * posix/tst-spawn4.c: Likewise.
10810 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10811 binaries as shell scripts.
10812 * sysdeps/posix/spawni.c (__spawni): Likewise.
10813
10814 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10815
10816 [BZ #23145]
10817 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10818 ($(all-built-dso:=.dynsym): New target.
10819 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10820 ($(objpfx)check-initfini.out): New target.
10821 (generated): Add check-initfini.out.
10822 * scripts/check-initfini.awk: New file.
10823 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10824 (_fini): Likewise.
10825 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10826 (_fini): Likewise.
10827 * sysdeps/arm/crti.S (_init): Mark as hidden.
10828 (_fini): Likewise.
10829 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10830 (_fini): Likewise.
10831 * sysdeps/i386/crti.S (_init): Mark as hidden.
10832 (_fini): Likewise.
10833 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10834 (_fini): Likewise.
10835 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10836 (_fini): Likewise.
10837 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10838 (_fini): Likewise.
10839 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10840 (_fini): Likewise.
10841 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10842 (_fini): Likewise.
10843 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10844 (_fini): Likewise.
10845 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10846 (_fini): Likewise.
10847 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10848 (_fini): Likewise.
10849 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10850 (_fini): Likewise.
10851 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10852 (_fini): Likewise.
10853 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10854 (_fini): Likewise.
10855 * sysdeps/sh/crti.S (_init): Mark as hidden.
10856 (_fini): Likewise.
10857 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10858 (_fini): Likewise.
10859 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10860 (_fini): Likewise.
10861
10862 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10863
10864 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10865 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10866 and TF redirection to KFtype and KF only when the default
10867 long double type is not the IEEE 128-bit floating point type.
10868
10869 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10870
10871 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10872 macro.
10873 (HWCAP_USCAT): Likewise.
10874 (HWCAP_ILRCPC): Likewise.
10875 (HWCAP_FLAGM): Likewise.
10876 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10877 Increase to 28.
10878 (_dl_aarch64_cap_flags): Add new flag names.
10879
10880 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10881 (MAP_FIXED_NOREPLACE): New macro.
10882 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10883 (MAP_FIXED_NOREPLACE): Likewise.
10884 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10885 (MAP_FIXED_NOREPLACE): Likewise.
10886 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10887 (MAP_FIXED_NOREPLACE): Likewise.
10888 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10889 (MAP_FIXED_NOREPLACE): Likewise.
10890 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10891 (MAP_FIXED_NOREPLACE): Likewise.
10892 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10893 (MAP_FIXED_NOREPLACE): Likewise.
10894 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10895 (MAP_FIXED_NOREPLACE): Likewise.
10896 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10897 (MAP_FIXED_NOREPLACE): Likewise.
10898 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10899 (MAP_FIXED_NOREPLACE): Likewise.
10900 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10901 (MAP_FIXED_NOREPLACE): Likewise.
10902 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10903 (MAP_FIXED_NOREPLACE): Likewise.
10904 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10905 (MAP_FIXED_NOREPLACE): Likewise.
10906 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10907 (MAP_FIXED_NOREPLACE): Likewise.
10908 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10909 (MAP_FIXED_NOREPLACE): Likewise.
10910
10911 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10912 version to 4.17.
10913
10914 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10915
10916 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10917 version to 4.17
10918
10919 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10920
10921 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10922 int.
10923 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10924
10925 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10926
10927 * benchtests/scripts/compare_string.py: (process_results) Catch
10928 exception in non-existent base_func and catch exception in
10929 non-existent attribute.
10930 (parse_file) Catch exception if input file does not exist.
10931
10932 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10933
10934 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10935 options to avoid diff calculation and omit header, respectively.
10936 (main): process --no-diff and --no-header
10937
10938 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10939 H.J. Lu <hongjiu.lu@intel.com>
10940
10941 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10942 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10943 wcsncmp-sse2.
10944 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10945 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10946 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10947 and __wcsncmp_sse2.
10948 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10949 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10950 AVX unaligned load is fast and vzeroupper is preferred.
10951 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10952 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10953 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10954 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10955 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10956 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10957 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10958 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10959 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10960 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10961 is undefined.
10962
10963 2018-06-01 Florian Weimer <fweimer@redhat.com>
10964
10965 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10966 configuring with --disable-multi-arch, building with
10967 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10968 Haswell-era CPU.
10969
10970 2018-06-01 Florian Weimer <fweimer@redhat.com>
10971
10972 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10973 results from building with “-march=x86-64 -mtune=generic
10974 -mfpmath=sse” and running on a Haswell-era CPU.
10975
10976 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10977
10978 [BZ #18473]
10979 * soft-fp/sqrttf2.c: Remove file.
10980 * soft-fp/sqrtdf2.c: Move to ....
10981 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10982 <shlib-compat.h>.
10983 (__sqrtdf2): Make conditional on
10984 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10985 symbol.
10986 * soft-fp/sqrtsf2.c: Move to ....
10987 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10988 <shlib-compat.h>.
10989 (__sqrtsf2): Make conditional on
10990 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10991 symbol.
10992 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10993 (gcc-double-routines): Remove sqrtdf2.
10994 (gcc-quad-routines): Remove sqrttf2.
10995 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10996 Do not filter out sqrtsf2 and sqrtdf2.
10997 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10998 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10999
11000 2018-06-01 Florian Weimer <fweimer@redhat.com>
11001
11002 * sysdeps/generic/libcidn.abilist: Remove file.
11003
11004 2018-06-01 Florian Weimer <fweimer@redhat.com>
11005
11006 [BZ #23236]
11007 * libio/strfile.h (struct _IO_str_fields): Rename members to
11008 discourage their use and add comment.
11009 (_IO_STR_DYNAMIC): Remove unused macro.
11010 * libio/strops.c (_IO_str_init_static_internal): Do not use
11011 callback pointers. Call malloc and free.
11012 (_IO_str_overflow): Do not use callback pointers. Call malloc
11013 and free.
11014 (enlarge_userbuf): Likewise.
11015 (_IO_str_finish): Call free.
11016 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11017 _allocate_buffer_unused.
11018 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11019 and free.
11020 (enlarge_userbuf): Likewise.
11021 (_IO_wstr_finish): Call free.
11022 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11023 _allocate_buffer_unused, _free_buffer_unused.
11024 * libio/memstream.c (__open_memstream): Likewise.
11025 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11026 * libio/wmemstream.c (open_wmemstream): Likewise.
11027
11028 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11029
11030 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11031 AMD Ryzen 7 1800X.
11032
11033 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11034
11035 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11036 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11037 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11038 New file.
11039 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11040 Likewise.
11041 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11042
11043 2018-05-29 Florian Weimer <fweimer@redhat.com>
11044
11045 * support/Makefile (libsupport-routines): Add
11046 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11047 xpthread_barrierattr_setpshared.
11048 * support/xpthread_barrierattr_destroy.c: New file.
11049 * support/xpthread_barrierattr_init.c: Likewise.
11050 * support/xpthread_barrierattr_setpshared.c: Likewise.
11051
11052 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11053
11054 [BZ #23206]
11055 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11056 _r_debug and update DT_DEBUG for debugger.
11057
11058 2018-05-29 Florian Weimer <fweimer@redhat.com>
11059
11060 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11061 (tst-strtod5i.out): Likewise.
11062
11063 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11064
11065 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11066 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11067 (sparc64-quad-routines): New variable. Moved from ....
11068 [$(subdir) = soft-fp] (sysdep_routines): Add
11069 $(sparc64-quad-routines). Moved from ....
11070 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11071 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11072 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11073 moved from ....
11074 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11075 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11076 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11077 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11078 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11079 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11080 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11081 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11082 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11083 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11084 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11085 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11086 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11087 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11088 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11089 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11090 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11091 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11092 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11093 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11094 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11095 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11096 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11097 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11098 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11099 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11100 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11101 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11102 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11103 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11104 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11105 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11106 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11107 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11108 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11109 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11110 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11111 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11112 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11113 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11114 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11115 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11116 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11117 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11118 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11119 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11120 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11121 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11122 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11123 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11124 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11125 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11126 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11127 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11128 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11129 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11130 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11131 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11132
11133 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11134 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11135 (sparc32-quad-routines): New variable. Moved from ....
11136 [$(subdir) = soft-fp] (sysdep_routines): Add
11137 $(sparc32-quad-routines). Moved from ....
11138 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11139 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11140 moved from ....
11141 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11142 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11143 * sysdeps/sparc/sparc32/q_add.c: ... here.
11144 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11145 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11146 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11147 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11148 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11149 * sysdeps/sparc/sparc32/q_div.c: ... here.
11150 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11151 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11152 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11153 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11154 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11155 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11156 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11157 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11158 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11159 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11160 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11161 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11162 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11163 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11164 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11165 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11166 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11167 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11168 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11169 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11170 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11171 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11172 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11173 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11174 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11175 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11176 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11177 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11178 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11179 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11180 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11181 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11182 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11183 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11184 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11185 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11186 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11187 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11188 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11189 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11190 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11191 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11192 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11193 * sysdeps/sparc/sparc32/q_util.c: ... here.
11194 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11195 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11196 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11197 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11198
11199 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11200 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11201
11202 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11203 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11204 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11205 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11206
11207 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11208
11209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11210 powerpc/soft-fp.
11211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11212 Likewise.
11213 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11214 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11215
11216 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11217
11218 [BZ #23171]
11219 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11220 double version.
11221
11222 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11223
11224 * sysdeps/sh/Implies: Remove sh/soft-fp.
11225 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11226 * sysdeps/sh/sfp-machine.h: ... here.
11227
11228 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11229
11230 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11231 (__mempcpy_erms): Skip zero length.
11232 (__memmove_erms): Likewise.
11233 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11234 (__memset_erms): Likewise.
11235
11236 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11237
11238 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11239 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11240 Add functions moved from ....
11241 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11242 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11243 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11244 from ....
11245 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11246 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11247 * sysdeps/alpha/e_sqrtl.c: ... here.
11248 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11249 * sysdeps/alpha/local-soft-fp.h: ... here.
11250 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11251 * sysdeps/alpha/ots_add.c: ... here.
11252 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11253 * sysdeps/alpha/ots_cmp.c: ... here.
11254 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11255 * sysdeps/alpha/ots_cmpe.c: ... here.
11256 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11257 * sysdeps/alpha/ots_cvtqux.c: ... here.
11258 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11259 * sysdeps/alpha/ots_cvtqx.c: ... here.
11260 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11261 * sysdeps/alpha/ots_cvttx.c: ... here.
11262 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11263 * sysdeps/alpha/ots_cvtxq.c: ... here.
11264 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11265 * sysdeps/alpha/ots_cvtxt.c: ... here.
11266 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11267 * sysdeps/alpha/ots_div.c: ... here.
11268 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11269 * sysdeps/alpha/ots_mul.c: ... here.
11270 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11271 * sysdeps/alpha/ots_nintxq.c: ... here.
11272 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11273 * sysdeps/alpha/ots_sub.c: ... here.
11274 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11275 * sysdeps/alpha/sfp-machine.h: ... here.
11276
11277 2018-05-23 Florian Weimer <fweimer@redhat.com>
11278
11279 [BZ #19728]
11280 [BZ #19729]
11281 [BZ #22247]
11282 CVE-2016-6261
11283 CVE-2016-6263
11284 CVE-2017-14062
11285 Switch to extern IDNA implementation (libidn2).
11286 * libidn: Remove subdirectory.
11287 * LICENSES: Do not mention licensing conditions for the removed
11288 libidn code.
11289 * config.h.in (HAVE_LIBIDN): Remove.
11290 * include/dlfcn.h (__libc_dlopen): Update comment.
11291 * include/idna.h: Remove file.
11292 * inet/Makefile (routines): Add idna.
11293 (tests-static, tests-internal): Add tst-idna_name_classify.
11294 (LOCALES): Generate locales for tests.
11295 (tst-idna_name_classify.out): Depend on generated locales.
11296 * inet/idna_name_classify.c: New file.
11297 * inet/tst-idna_name_classify.c: Likewise.
11298 * inet/net-internal.h (__idna_to_dns_encoding)
11299 (__idna_from_dns_encoding): Declare.
11300 * inet/net-internal.h (enum idna_name_classification): Define.
11301 (__idna_name_classify): Declare.
11302 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11303 __idna_from_dns_encoding.
11304 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11305 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11306 name as a fallback in case of encoding errors.
11307 (getnameinfo): Use DEPRECATED_NI_IDN.
11308 * inet/idna.c: New file.
11309 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11310 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11311 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11312 (modules-names): Add tst-no-libidn2.
11313 (extra-test-objs): Add tst-no-libidn2.os.
11314 (LDFLAGS-tst-no-libidn2.so): Set soname.
11315 (LOCALES): Set, and generate locales.
11316 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11317 (tst-resolv-ai_idn-latin1): Likewise.
11318 (tst-resolv-ai_idn-nolibidn2): Likewise.
11319 (tst-resolv-ai_idn.out): Depend on locales.
11320 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11321 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11322 tst-no-libidn2.so.
11323 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11324 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11325 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11326 * resolv/tst-resolv-ai_idn.c: New file.
11327 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11328 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11329 * resolv/tst-no-libidn2.c: Likewise.
11330 * support/support_format_addrinfo.c (format_ai_flags): Do not
11331 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11332 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11333 (gaih_inet): Call __idna_to_dns_encoding and
11334 __idna_from_dns_encoding, and use the original (punycode) name if
11335 __idna_from_dns_encoding fails due to an encoding error.
11336 (getaddrinfo): Use DEPRECATED_AI_IDN.
11337 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11338 * sysdeps/unix/inet/configure: Remove file.
11339 * sysdeps/unix/inet/configure.ac: Likewise.
11340
11341 2018-05-23 Florian Weimer <fweimer@redhat.com>
11342
11343 Implement allocate_once.
11344 * include/allocate_once.h: New file.
11345 * misc/allocate_once.c: Likewise.
11346 * misc/tst-allocate_once.c: Likewise.
11347 * misc/Makefile (routines): Add allocate_once.
11348 (tests-internal): Add tst-allocate_once.
11349 (generated): Add tst-allocate_once.mtrace,
11350 tst-allocate_once-mem.out.
11351 (tests-special): Add tst-allocate_once-mem.out.
11352 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11353 (tst-allocate_once-mem.out): Call mtrace.
11354 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11355
11356 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11357
11358 [BZ #23196]
11359 * string/test-memcpy.c (do_test1): New function.
11360 (test_main): Call it.
11361
11362 2018-05-23 Andreas Schwab <schwab@suse.de>
11363
11364 [BZ #23196]
11365 CVE-2018-11237
11366 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11367 (L(preloop_large)): Save initial destination pointer in %r11 and
11368 use it instead of %rax after the loop.
11369 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11370
11371 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11372
11373 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11374 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11375 -I../soft-fp. Moved from ....
11376 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11377 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11378 * sysdeps/aarch64/e_sqrtl.c: ... here.
11379 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11380 * sysdeps/aarch64/sfp-machine.h: ... here.
11381
11382 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11383 -Wmaybe-uninitialized around access to fq[0].
11384 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11385 Likewise.
11386
11387 [BZ #18471]
11388 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11389 aliases for non-libc case of versioned symbols.
11390 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11391 (llseek): Define as compat symbol if
11392 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11393 with link warning.
11394 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11395 Make into a compat symbol, disabled for minimum symbol version
11396 GLIBC_2.28 and later.
11397 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11398
11399 2018-05-22 Florian Weimer <fweimer@redhat.com>
11400
11401 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11402 not add -mpreferred-stack-boundary=4.
11403 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11404 (stack-align-test-flags): Likewise.
11405 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11406 Likewise.
11407 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11408 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11409 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11410 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11411 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11412 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11413 (CFLAGS-tst-align2.c): Likewise.
11414
11415 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11416
11417 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11418 (index_arch_Prefer_FSRM): Likewise.
11419 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11420 Also check Prefer_FSRM.
11421 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11422 Also return OPTIMIZE (erms) for Prefer_FSRM.
11423
11424 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11425
11426 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11427 (index_cpu_FSRM): Likewise.
11428 (reg_FSRM): Likewise.
11429
11430 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11431
11432 * math/gen-tgmath-tests.py: Import sys.
11433 (Tests.__init__): Initialize macros_seen.
11434 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11435 if requested to do so for this macro.
11436 (Tests.add_all_tests): Take argument for macro for which to
11437 generate tests.
11438 (Tests.check_macro_list): New function.
11439 (main): Handle check-list argument and argument specifying macro
11440 for which to generate tests.
11441 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11442 [PYTHON] (tgmath3-macro-tests): Likewise.
11443 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11444 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11445 not test-tgmath3.c.
11446 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11447 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11448 to CFLAGS.
11449 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11450 [PYTHON] ($(foreach
11451 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11452 rule.
11453 [PYTHON] (tests-special): Add
11454 $(objpfx)test-tgmath3-macro-list.out.
11455 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11456
11457 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11458 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11459 later.
11460
11461 [BZ #22639]
11462 * time/tzset.c (SECSPERDAY): Cast to time_t.
11463 * time/tst-y2039.c: New file.
11464 * time/Makefile (tests): Add tst-y2039.
11465
11466 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11467
11468 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11469 (PREFETCH_ONE_SET): Remove duplicate line.
11470
11471 2018-05-17 Florian Weimer <fweimer@redhat.com>
11472
11473 * sysdeps/generic/math-type-macros-double.h: Include
11474 <math-nan-payload-double.h> after <libm-alias-double.h>.
11475 * sysdeps/generic/math-type-macros-float.h: Include
11476 <math-nan-payload-float.h> after <libm-alias-float.h>.
11477 * sysdeps/generic/math-type-macros-float128.h: Include
11478 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11479 * sysdeps/generic/math-type-macros-ldouble.h: Include
11480 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11481
11482 2018-05-17 Andreas Schwab <schwab@suse.de>
11483
11484 * resolv/res_send.c (__res_context_send): Don't set errno when
11485 returing error after malloc failure.
11486
11487 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11488
11489 * nptl/allocatestack.c (allocate_stack): Remove the
11490 !__ASSUME_PRIVATE_FUTEX paths.
11491 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11492 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11493 Likewise.
11494 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11495 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11496 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11497 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11498 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11499 !__ASSUME_PRIVATE_FUTEX path.
11500 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11501 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11502 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11503 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11504 !__ASSUME_PRIVATE_FUTEX macros.
11505 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11506 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11507 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11508 * sysdeps/unix/sysv/linux/kernel-features.h
11509 (__ASSUME_PRIVATE_FUTEX): Removed.
11510
11511 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11512
11513 * math/Makefile (libm-narrow-fns): Add div.
11514 (libm-test-funcs-narrow): Likewise.
11515 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11516 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11517 * math/gen-auto-libm-tests.c (test_functions): Add div.
11518 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11519 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11520 (NARROW_DIV_TRIVIAL): Likewise.
11521 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11522 macro.
11523 (__ddivl): Likewise.
11524 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11525 ddiv.
11526 (CFLAGS-nldbl-ddiv.c): New variable.
11527 (CFLAGS-nldbl-fdiv.c): Likewise.
11528 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11529 __nldbl_ddivl.
11530 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11531 prototype.
11532 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11533 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11534 * math/auto-libm-test-in: Add tests of div.
11535 * math/auto-libm-test-out-narrow-div: New generated file.
11536 * math/libm-test-narrow-div.inc: New file.
11537 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11538 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11539 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11540 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11541 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11542 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11543 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11544 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11545 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11546 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11547 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11548 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11549 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11550 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11551 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11552 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11553 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11554 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11555 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11556 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11558 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11559 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11581
11582 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11583
11584 [BZ #23178]
11585 * nscd/nscd-client.h (sendfileall): Remove prototype.
11586 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11587 (handle_request): Use writeall instead of sendfileall.
11588 * nscd/aicache.c (addhstaiX): Likewise.
11589 * nscd/grpcache.c (cache_addgr): Likewise.
11590 * nscd/hstcache.c (cache_addhst): Likewise.
11591 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11592 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11593 * nscd/pwdcache.c (cache_addpw): Likewise.
11594 * nscd/servicescache.c (cache_addserv): Likewise.
11595 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11596 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11597 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11598 Remove define.
11599
11600 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11601
11602 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11603 Include <string/strncat.c>.
11604 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11605 alias.
11606 (__GI___strncat): New hidden alias.
11607
11608 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11609
11610 * sysdeps/mips/mips32/libm-test-ulps: Update.
11611 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11612
11613 2018-05-16 Florian Weimer <fweimer@redhat.com>
11614
11615 * support/Makefile (libsupport-routines): Add support_quote_blob,
11616 support_test_compare_blob.
11617 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11618 * support/check.h (TEST_COMPARE_BLOB): Define.
11619 (support_test_compare_blob): Declare.
11620 * support/support.h (support_quote_blob): Declare.
11621 * support/support_quote_blob.c: New file.
11622 * support/support_test_compare_blob.c: Likewise.
11623 * support/tst-support_quote_blob.c: Likewise.
11624 * support/tst-test_compare_blob.c: Likewise.
11625
11626 2018-05-16 Florian Weimer <fweimer@redhat.com>
11627
11628 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11629 of <strtod_nan_double.h>.
11630 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11631 instead of SET_MANTISSA.
11632 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11633 of include <strtod_nan_float.h>.
11634 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11635 instead of <strtod_nan_ldouble.h>.
11636 * stdlib/strtod_nan_double.h: Move to ...
11637 * sysdeps/generic/math-nan-payload-double.h: ... here.
11638 (FLOAT): Remove definition.
11639 (SET_MANTISSA): Rename to ...
11640 (SET_NAN_PAYLOAD): ... this.
11641 * stdlib/strtod_nan_float.h: Move to ...
11642 * sysdeps/generic/math-nan-payload-float.h: ... here.
11643 (FLOAT): Remove definition.
11644 (SET_MANTISSA): Rename to ...
11645 (SET_NAN_PAYLOAD): ... this.
11646 * sysdeps/generic/math-type-macros-double.h: Include
11647 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11648 instead of <math-svid-compat.h>.
11649 * sysdeps/generic/math-type-macros-float.h: Include
11650 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11651 instead of <math-svid-compat.h>.
11652 * sysdeps/generic/math-type-macros-float128.h: Include
11653 <math-nan-payload-float128.h>.
11654 * sysdeps/generic/math-type-macros-ldouble.h: Include
11655 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11656 instead of <math-svid-compat.h>.
11657 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11658 check for definition.
11659 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11660 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11661 Include <ieee754_float128.h>.
11662 (FLOAT): Remove definition.
11663 (SET_MANTISSA): Rename to ...
11664 (SET_NAN_PAYLOAD): ... this.
11665 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11666 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11667 Do not include <float128_private.h>.
11668 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11669 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11670 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11671 (FLOAT): Remove definition.
11672 (SET_MANTISSA): Rename to ...
11673 (SET_NAN_PAYLOAD): ... this.
11674 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11675 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11676 (FLOAT): Remove definition.
11677 (SET_MANTISSA): Rename to ...
11678 (SET_NAN_PAYLOAD): ... this.
11679 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11680 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11681 (FLOAT): Remove definition.
11682 (SET_MANTISSA): Rename to ...
11683 (SET_NAN_PAYLOAD): ... this.
11684 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11685 of "../stdlib/strtod_nan_double.h".
11686 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11687 of "../stdlib/strtod_nan_float.h".
11688 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11689 instead of "../stdlib/strtod_nan_ldouble.h".
11690 * manual/arith.texi (Parsing of Floats): Adjust comment.
11691
11692 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11693
11694 * math/Makefile (libm-narrow-fns): Add mul.
11695 (libm-test-funcs-narrow): Likewise.
11696 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11697 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11698 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11699 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11700 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11701 (NARROW_MUL_TRIVIAL): Likewise.
11702 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11703 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11704 macro.
11705 (__dmull): Likewise.
11706 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11707 dmul.
11708 (CFLAGS-nldbl-dmul.c): New variable.
11709 (CFLAGS-nldbl-fmul.c): Likewise.
11710 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11711 __nldbl_dmull.
11712 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11713 prototype.
11714 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11715 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11716 * math/auto-libm-test-in: Add tests of mul.
11717 * math/auto-libm-test-out-narrow-mul: New generated file.
11718 * math/libm-test-narrow-mul.inc: New file.
11719 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11720 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11721 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11722 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11723 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11724 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11725 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11726 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11727 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11728 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11729 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11730 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11731 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11732 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11733 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11734 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11735 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11736 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11737 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11738 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11763
11764 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11765
11766 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11767 with *%eax in call.
11768
11769 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11770
11771 * sysdeps/i386/ldsodefs.h: Removed.
11772 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11773 * sysdeps/x86/ldsodefs.h: This.
11774 (La_i86_regs): New.
11775 (La_i86_retval): Likewise.
11776 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11777 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11778
11779 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11780
11781 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11782 unnecessary testl.
11783
11784 2018-05-13 Alan Modra <amodra@gmail.com>
11785
11786 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11787 R_PARISC_TLS_DTPOFF32 reloc addend.
11788
11789 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11790
11791 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11792 * math/math.h: Restrict the prototype definition for the functions
11793 issignaling(_Float128) and iszero(_Float128); and template
11794 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11795 __HAVE_FLOAT128_UNLIKE_LDBL.
11796 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11797 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11798 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11799 __f128() constants; define the type _Float128 as long double;
11800 and reuse long double in __CFLOAT128.
11801
11802 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11803
11804 * sysdeps/generic/math_private.h: Do not include
11805 <math-barriers.h>.
11806 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11807 <math_private.h>.
11808 * math/fromfp.h: Include <math-barriers.h>.
11809 * math/math-narrow.h: Likewise.
11810 * math/s_nextafter.c: Likewise.
11811 * math/s_nexttowardf.c: Likewise.
11812 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11813 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11814 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11815 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11816 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11817 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11818 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11819 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11820 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11821 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11822 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11823 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11824 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11825 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11826 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11827 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11828 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11829 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11830 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11831 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11832 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11833 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11834 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11835 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11836 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11837 * sysdeps/ieee754/k_standardl.c: Likewise.
11838 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11839 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11840 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11841 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11842 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11843 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11844 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11845 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11846 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11847 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11848 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11849 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11850 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11851 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11852 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11853 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11854 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11855 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11856 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11857 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11858 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11859 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11860
11861 2018-05-11 Florian Weimer <fweimer@redhat.com>
11862
11863 Use 64-bit epoch values in the time zone file parser.
11864 * include/time.h (internal_time_t): Define.
11865 (__tzfile_compute): Use it.
11866 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11867 member.
11868 (transitions): Switch to internal_time_t.
11869 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11870 types.
11871 (__tzfile_compute): Use internal_time_t for timer argument. Check
11872 for truncation before calling __offtime.
11873
11874 2018-05-11 Florian Weimer <fweimer@redhat.com>
11875
11876 [BZ #23166]
11877 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11878 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11879 Likewise.
11880 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11881 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11882 export without --enable-obsolete-rpc.
11883 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11884 symbol. This should not have been exported, ever.
11885
11886 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11887
11888 [BZ #23152]
11889 * localedata/locales/gd_GB (abmon): Fix typo in May:
11890 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11891
11892 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11893
11894 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11895 Use multiple registers to copy data in loop tail.
11896
11897 * sysdeps/aarch64/multiarch/memmove_falkor.S
11898 (__memmove_falkor): Use multiple registers to move data in
11899 loop tail.
11900
11901 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11902
11903 * math/math-underflow.h: New file.
11904 * sysdeps/generic/math_private.h: Do not include <float.h>.
11905 (fabs_tg): Remove macro. Moved to math-underflow.h.
11906 (min_of_type_f): Likewise.
11907 (min_of_type_): Likewise.
11908 (min_of_type_l): Likewise.
11909 (min_of_type_f128): Likewise.
11910 (min_of_type): Likewise.
11911 (math_check_force_underflow): Likewise.
11912 (math_check_force_underflow_nonneg): Likewise.
11913 (math_check_force_underflow_complex): Likewise.
11914 * math/e_exp2_template.c: Include <math-underflow.h>.
11915 * math/k_casinh_template.c: Likewise.
11916 * math/s_catan_template.c: Likewise.
11917 * math/s_catanh_template.c: Likewise.
11918 * math/s_ccosh_template.c: Likewise.
11919 * math/s_cexp_template.c: Likewise.
11920 * math/s_clog10_template.c: Likewise.
11921 * math/s_clog_template.c: Likewise.
11922 * math/s_csin_template.c: Likewise.
11923 * math/s_csinh_template.c: Likewise.
11924 * math/s_csqrt_template.c: Likewise.
11925 * math/s_ctan_template.c: Likewise.
11926 * math/s_ctanh_template.c: Likewise.
11927 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11928 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11929 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11930 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11931 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11932 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11933 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11934 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11935 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11936 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11937 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11938 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11939 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11940 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11941 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11942 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11943 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11944 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11945 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11946 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11947 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11948 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11949 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11950 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11951 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11952 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11953 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11954 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11955 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11956 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11957 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11958 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11959 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11960 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11961 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11962 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11963 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11964 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11965 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11966 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11967 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11968 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11969 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11970 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11971 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11972 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11973 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11974 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11975 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11976 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11977 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11978 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11979 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11980 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11981 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11982 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11983 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11984 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11985 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11986 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11987 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11988 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11989 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11990 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11991 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11992 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11993 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11994 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11995 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11996 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11997 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11998 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11999 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12000 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12001 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12002 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12003 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12004 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12005 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12006 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12007 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12008 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12009 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12010 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12011
12012 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12013
12014 * sysdeps/generic/math-barriers.h: New file.
12015 * sysdeps/generic/math_private.h [!math_opt_barrier]
12016 (math_opt_barrier): Move to math-barriers.h.
12017 [!math_opt_barrier] (math_force_eval): Likewise.
12018 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12019 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12020 math-barriers.h.
12021 (math_force_eval): Likewise.
12022 * sysdeps/alpha/fpu/math-barriers.h: New file.
12023 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12024 math-barriers.h.
12025 (math_force_eval): Likewise.
12026 * sysdeps/x86/fpu/math-barriers.h: New file.
12027 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12028 math-barriers.h.
12029 (math_force_eval): Likewise.
12030 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12031 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12032 multiple-include guard for rename.
12033 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12034 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12035 math-barriers.h.
12036 (math_force_eval): Likewise.
12037
12038 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12039
12040 [BZ #22786]
12041 CVE-2018-11236
12042 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12043 computation.
12044 * stdlib/Makefile (test-bz22786): New test.
12045 * stdlib/test-bz22786.c: New test.
12046
12047 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12048
12049 * include/math-narrow-eval.h: New file. Contents moved from ....
12050 * sysdeps/generic/math_private.h: ... here.
12051 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12052 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12053 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12054 * stdlib/strtod_l.c: Likewise.
12055 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12056 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12057 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12058 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12059 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12060 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12061 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12062 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12063 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12064 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12065 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12066 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12067 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12068 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12069 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12070 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12071 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12072 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12073 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12074 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12075 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12076 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12077 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12078 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12079 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12080 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12081 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12082 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12083 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12084
12085 2018-05-08 Andreas Schwab <schwab@suse.de>
12086
12087 * sysdeps/nptl/internaltypes.h: Fix comment.
12088
12089 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12090
12091 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12092 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12093 hidden.
12094
12095 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12096
12097 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12098 of I into loop header.
12099 * benchtests/bench-memmove-walk.c
12100 (test_main): Likewise.
12101
12102 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12103
12104 Revert:
12105 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12106 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12107
12108 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12109
12110 [BZ #20419]
12111 * elf/dl-load.c (open_verify): Fix stack overflow.
12112 * elf/Makefile (tst-big-note): New test.
12113 * elf/tst-big-note-lib.S: New.
12114 * elf/tst-big-note.c: New.
12115
12116 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12117
12118 * scripts/abilist.awk: Ignore absolute symbols.
12119 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12120 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12121 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12122 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12123 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12124 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12125 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12126 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12127 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12128 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12129 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12130 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12131 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12132 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12133 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12134 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12135 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12136 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12137 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12138 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12139 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12140 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12141 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12142 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12143 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12144 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12145 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12146 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12147 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12148 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12149 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12150 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12151 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12152 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12153 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12154 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12155 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12156 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12157 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12158 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12159 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12160 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12161 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12162 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12163 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12164 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12165 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12166 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12167 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12168 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12169 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12170 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12171 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12172 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12173 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12174 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12175 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12176 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12177 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12178 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12179 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12180 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12181 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12182 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12183 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12184 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12185 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12186 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12187 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12188 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12189 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12190 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12191 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12192 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12193 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12194 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12195 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12196 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12197 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12198 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12199 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12200 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12201 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12202 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12203 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12204 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12205 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12206 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12207 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12208 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12209 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12210 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12211 Likewise.
12212 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12213 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12214 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12215 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12216 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12217 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12218 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12219 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12220 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12221 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12222 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12223 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12224 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12225 Likewise.
12226 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12227 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12228 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12229 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12230 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12231 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12232 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12233 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12234 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12235 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12236 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12237 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12238 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12239 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12240 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12241 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12242 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12243 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12244 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12245 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12246 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12247 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12248 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12249 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12250 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12251 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12252 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12253 Likewise.
12254 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12255 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12256 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12257 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12258 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12259 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12260 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12261 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12262 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12263 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12264 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12265 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12266 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12267 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12271 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12274 Likewise.
12275 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12285 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12286 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12296 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12297 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12299 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12300 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12301 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12302 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12307 Likewise.
12308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12313 Likewise.
12314 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12315 Likewise.
12316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12318 Likewise.
12319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12321 Likewise.
12322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12323 Likewise.
12324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12327 Likewise.
12328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12329 Likewise.
12330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12331 Likewise.
12332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12336 Likewise.
12337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12339 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12343 Likewise.
12344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12346 Likewise.
12347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12348 Likewise.
12349 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12350 Likewise.
12351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12352 Likewise.
12353 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12356 Likewise.
12357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12358 Likewise.
12359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12360 Likewise.
12361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12362 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12363 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12364 Likewise.
12365 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12376 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12377 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12378 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12379 Likewise.
12380 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12381 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12382 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12383 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12384 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12385 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12386 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12387 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12388 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12389 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12390 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12391 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12392 Likewise.
12393 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12394 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12395 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12396 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12397 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12398 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12399 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12400 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12401 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12402 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12403 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12404 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12405 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12406 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12407 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12408 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12409 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12410 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12411 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12412 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12413 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12414 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12415 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12416 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12417 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12418 Likewise.
12419 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12420 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12421 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12422 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12423 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12424 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12425 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12426 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12427 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12428 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12429 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12430 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12431 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12432 Likewise.
12433 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12434 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12435 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12436 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12437 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12438 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12439 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12440 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12441 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12442 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12443 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12444 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12445 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12446 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12447 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12448 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12449 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12450 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12451 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12452 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12453 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12454 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12455 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12456 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12457 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12458 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12459 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12460 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12461 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12462 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12463 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12464 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12465 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12466 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12467 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12468 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12469 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12470 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12471
12472 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12473
12474 [BZ #23137]
12475 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12476 Use atomic_load_acquire to load __tid.
12477
12478 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12479
12480 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12481 Restore the pointer into %rdx, after syscall and use %rdx,
12482 instead of %rsi, to restore context.
12483
12484 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12485
12486 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12487 Pop the pointer into %rdx after syscall and use %rdx, instead
12488 of %rsi, to restore context.
12489
12490 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12491
12492 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12493 handlers after setjmp.
12494 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12495 defined.
12496 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12497 <libc-pointer-arith.h>.
12498 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12499 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12500 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12501 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12502 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12503 * sysdeps/x86/__longjmp_cancel.S: New file.
12504 * sysdeps/x86/longjmp.c: Likewise.
12505 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12506
12507 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12508
12509 * NEWS: Add ustat.h deprecation entry.
12510 * bits/ustat.h: Remove file.
12511 * misc/sys/ustat.h: Likewise.
12512 * misc/ustat.h: Likewise.
12513 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12514 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12515 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12516 compatibility mode.
12517 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12518 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12519 generic Linux implementation.
12520
12521 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12522
12523 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12524 * math/w_expl_compat.c: Likewise.
12525 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12526
12527 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12528
12529 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12530
12531 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12532
12533 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12534 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12535 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12536 Remove.
12537 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12539 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12540 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12541 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12542 and SYSCALL_LL64.
12543
12544 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12545
12546 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12547
12548 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12549 * math/w_asin_template.c: Likewise.
12550 * math/w_atanh_template.c: Likewise.
12551
12552 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12553
12554 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12555 to powerpc/powerpc64/be for big-endian.
12556 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12557 little-endian.
12558
12559 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12560 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12561 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12562 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12563 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12564 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12565 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12566 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12567 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12568 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12569 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12570 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12571 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12572 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12573 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12574 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12575 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12576 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12577 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12578 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12579 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12580 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12581 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12582 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12583 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12584 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12585 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12586 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12587 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12588 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12589 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12590 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12591
12592 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12593 adjusted to imply powerpc64 and older processors on powerpc64/be.
12594 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12595 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12596 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12597 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12598 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12599 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12600 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12601 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12602 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12603 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12604 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12605 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12606 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12607 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12608 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12609 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12610 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12611 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12612 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12613 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12614 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12615 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12616 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12617 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12618 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12619 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12620 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12621 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12622 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12623 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12624 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12625
12626 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12627 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12628 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12629 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12630
12631 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12632 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12633 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12634 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12635
12636 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12637 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12638 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12639 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12640 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12641 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12642 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12643 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12644 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12645 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12646 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12647
12648 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12649 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12650 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12651 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12652 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12653 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12654 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12655 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12656 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12657 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12658 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12659
12660 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12661 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12662 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12663 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12664 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12665 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12666 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12667 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12668 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12669 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12670 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12671 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12672
12673 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12674 and adjusted to imply olders processors.
12675 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12676 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12677 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12678 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12679 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12680 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12681 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12682 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12683 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12684 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12685 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12686
12687 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12688 powerpc64/le.
12689 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12690 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12691
12692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12693 powerpc64le.
12694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12696
12697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12698 powerpc64/be.
12699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12702
12703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12704 powerpc64 and adjusted.
12705 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12708 Likewise.
12709
12710 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12711
12712 * sysdeps/tile: Remove.
12713 * sysdeps/unix/sysv/linux/tile: Likewise.
12714 * README (tilegx-*-linux-gnu): Remove from list of supported
12715 configurations.
12716 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12717 contribution of support for generic Linux kernel syscall
12718 interface.
12719 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12720 tilegx configurations.
12721 (Config.install_linux_headers): Do not handle tile.
12722 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12723 in comment.
12724 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12725 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12726 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12727 conditional undefine and redefine.
12728 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12729 in comment.
12730 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12731 conditional undefine and redefine.
12732
12733 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12734
12735 * signal/tst-sigaction.c: New file to test BZ #23069.
12736 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12737
12738 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12739
12740 [BZ #22766]
12741 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12742 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12743 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12744 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12745
12746 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12747
12748 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12749 _DIRENT_MATCHES_DIRENT64 is not defined.
12750 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12751 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12752 is defined.
12753 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12754 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12755
12756 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12757
12758 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12759 version to GCC 8 branch.
12760
12761 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12762
12763 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12764 (check_no_hidden): Use type of original function when declaring
12765 alias.
12766
12767 * sysdeps/unix/sysv/linux/sys/ptrace.h
12768 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12769 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12770 (struct __ptrace_seccomp_metadata): New type.
12771 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12772 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12773 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12774 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12775 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12776 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12777 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12778 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12779 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12780 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12781 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12782 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12783 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12784 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12785 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12786 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12787
12788 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12789
12790 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12791 defined.
12792 * dirent/versionsort.c (versionsort): Likewise.
12793 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12794 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12795 * dirent/versionsort64.c (versionsort64): Likewise.
12796 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12797 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12798 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12799 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12800 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12801 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12802 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12803 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12804 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12805 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12806 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12808 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12809 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12810
12811 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12812
12813 * elf/elf.h (NT_PPC_PKEY): New macro.
12814
12815 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12816
12817 [BZ #23094]
12818 * localedata/locales/hr_HR: fix thousands_sep and
12819 mon_thousands_sep
12820
12821 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12822
12823 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12824 (XTABS): Define to TAB3.
12825
12826 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12827
12828 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12829
12830 * dirent/scandir-tail-common.c: New file.
12831 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12832 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12833 * dirent/scandir.c: Use scandir-tail-common.c.
12834 * dirent/scandirat.c: Likewise.
12835 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12836 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12837 if _DIRENT_MATCHES_DIRENT64 is defined.
12838 * dirent/scandirat64.c (scandirat64): Likewise.
12839 * include/dirent.h (__scandir_tail): Only define iff
12840 _DIRENT_MATCHES_DIRENT64 is not defined.
12841 (__scandir64_tail): Define regardless.
12842 (__scandirat, scandirat64): Remove libc_hidden_proto.
12843 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12844 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12846 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12847 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12848 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12849 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12850
12851 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12852
12853 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12854 New macro.
12855 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12856 Increase to 24.
12857 (_dl_aarch64_cap_flags): Add asimdfhm.
12858
12859 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12860
12861 * sysdeps/nios2/libm-test-ulps: Update.
12862
12863 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12864
12865 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12866 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12867
12868 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12869 requirements.
12870 (_DIRENT_MATCHES_DIRENT64): Undef
12871 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12872 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12873 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12874 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12875 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12876 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12877 use getdents64 syscalls as base.
12878 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12879 symbol if required.
12880 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12881 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12882 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12883 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12884 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12885 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12886 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12887 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12888 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12889 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12890 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12891
12892 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12893
12894 * scripts/test_printers_common.py (init_test): Disable lock elision.
12895
12896 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12897
12898 * math/test-tgmath.c (count_double, count_float,
12899 count_ldouble, count_cdouble, count_cfloat,
12900 count_cldouble): Use volatile int.
12901
12902 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12903
12904 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12905 (conformtest-xfail-conds): Add i386-gnu.
12906 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12907 i386-gnu.
12908 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12909 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12910 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12911 msqid_ds.msg_lrpid): Likewise.
12912 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12913 Likewise.
12914 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12915 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12916 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12917 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12918 unsigned int.
12919 (struct statvfs64): Likewise.
12920 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12921 Likewise.
12922 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12923 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12924 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12925 instead of wait_queue.
12926 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12927 instead of vm_area_struct.
12928 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12929 struct sched_param definition to it.
12930 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12931 * bits/types/struct_sched_param.h: New file.
12932 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12933 <bits/types/struct_sched_param.h> instead of <sched.h>.
12934 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12935 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12936 generic version but include <bits/pthreadtypes.h> to make struct
12937 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12938 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12939 non-compliant.
12940 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12941 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12942 [__USE_XOPEN] (OFDEL): New macro.
12943 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12944 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12945 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12946 prototypes.
12947 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12948 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12949 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12950 non-compliant.
12951 * sysdeps/i386/sys/ucontext.h: Likewise.
12952 * sysdeps/m68k/sys/ucontext.h: Likewise.
12953 * sysdeps/mips/sys/ucontext.h: Likewise.
12954 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12955 * sysdeps/mach/hurd/i386/Makefile
12956 (test-xfail-POSIX/fcntl.h/conform): Add.
12957 (test-xfail-POSIX/signal.h/conform): Add.
12958 (test-xfail-POSIX/semaphore.h/conform): Add.
12959 (test-xfail-POSIX/regex.h/conform): Add.
12960 (test-xfail-POSIX/aio.h/conform): Add.
12961 (test-xfail-POSIX/mqueue.h/conform): Add.
12962 (test-xfail-POSIX/sys/types.h/conform): Add.
12963 (test-xfail-UNIX98/fcntl.h/conform): Add.
12964 (test-xfail-UNIX98/netdb.h/conform): Add.
12965 (test-xfail-UNIX98/signal.h/conform): Add.
12966 (test-xfail-UNIX98/semaphore.h/conform): Add.
12967 (test-xfail-UNIX98/regex.h/conform): Add.
12968 (test-xfail-UNIX98/aio.h/conform): Add.
12969 (test-xfail-UNIX98/ftw.h/conform): Add.
12970 (test-xfail-UNIX98/mqueue.h/conform): Add.
12971 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12972 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12973 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12974 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12975 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12976 (test-xfail-UNIX98/sys/types.h/conform): Add.
12977 (test-xfail-UNIX98/stdlib.h/conform): Add.
12978 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12979 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12980 (test-xfail-POSIX2008/netdb.h/conform): Add.
12981 (test-xfail-POSIX2008/signal.h/conform): Add.
12982 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12983 (test-xfail-POSIX2008/regex.h/conform): Add.
12984 (test-xfail-POSIX2008/aio.h/conform): Add.
12985 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12986 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12987 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12988 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12989 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12990 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12991 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12992 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12993 (test-xfail-XOPEN2K/signal.h/conform): Add.
12994 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12995 (test-xfail-XOPEN2K/regex.h/conform): Add.
12996 (test-xfail-XOPEN2K/aio.h/conform): Add.
12997 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12998 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12999 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13000 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13001 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13002 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13003 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13004 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13005 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13006 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13007 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13008 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13009 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13010 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13011 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13012 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13013 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13014 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13015 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13016 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13017 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13018 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13019 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13020 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13021 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13022 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13023 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13024 i386-gnu.
13025 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13026 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13027
13028 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13029
13030 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13031 --enable-obsolete for powerpc-linux-gnuspe.
13032
13033 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13034
13035 * conform/data/sys/un.h-data: Allow sun_ prefix.
13036 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13037 prototypes.
13038 * sysdeps/mach/include/mach.h: Likewise.
13039 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13040 * sysdeps/mach/include/mach_error.h: Likewise.
13041
13042 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13043
13044 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13045 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13046 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13047 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13048
13049 2018-04-16 Andreas Schwab <schwab@suse.de>
13050
13051 [BZ #19527]
13052 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13053
13054 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13055
13056 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13057 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13058
13059 2018-04-12 DJ Delorie <dj@redhat.com>
13060
13061 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13062 version to 4.16.
13063
13064 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13065
13066 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13067 (struct kernel_sigaction): Use the same definition on 31bit as is used
13068 on 64bit.
13069
13070 2018-04-09 Florian Weimer <fweimer@redhat.com>
13071
13072 [BZ #23037]
13073 * resolv/res_send.c (send_dg): Use designated initializers instead
13074 of assignment to zero-initialize other fields of struct mmsghdr.
13075
13076 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13077
13078 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13079 __READDIR_ALIAS): Undefine after usage.
13080 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13081 __READDIR_R_ALIAS): Likewise.
13082 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13083 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13084 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13085 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13086 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13087 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13088 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13089 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13090 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13091 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13092 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13093 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13094 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13095 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13096 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13097 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13098 * sysdeps/unix/sysv/linux/readdir.c: New file.
13099 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13100 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13101 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13102
13103 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13104
13105 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13106
13107 * manual/charset.texi (Converting a Character): Fix typo.
13108
13109 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13110
13111 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13112
13113 * sysdeps/arm/libm-test-ulps: Update.
13114
13115 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13116 as base implementation.
13117 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13118 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13119 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13120 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13121 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13122 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13123 remove unrequired definitions and update comments.
13124 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13125 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13126 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13127 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13128 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13129 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13130 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13131 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13132 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13133 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13134 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13135 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13136 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13137 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13138 and RESET_SA_RESTORER hooks.
13139
13140 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13141
13142 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13143
13144 2018-04-05 Florian Weimer <fweimer@redhat.com>
13145
13146 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13147 integer overflow, memory leak on error, and indeterminate errno
13148 value. Add a null wide character to terminate the result string.
13149 * manual/charset.texi (Converting a Character): Mention embedded
13150 null bytes in the mbrtowc input string. Explain what happens in
13151 the -2 result case. Do not claim that mbrtowc is simple or
13152 obvious to use. Adjust the description of the code example. Use
13153 @code, not @var, for concrete variables.
13154
13155 2018-04-05 Florian Weimer <fweimer@redhat.com>
13156
13157 * manual/examples/mbstouwcs.c: New file.
13158 * manual/charset.texi (Converting a Character): Include it.
13159
13160 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13161
13162 * include/dirent.h (dirfd): Add hidden proto.
13163 * dirent/dirfd.c (dirfd): Add hidden def.
13164 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13165 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13166
13167 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13168
13169 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13170 sin, cos and sincos to 1 ULP.
13171
13172 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13173
13174 [BZ #19818]
13175 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13176 symbols.
13177 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13178 * elf/tst-absolute-sym.c: New file.
13179 * elf/tst-absolute-sym-lib.c: New file.
13180 * elf/tst-absolute-sym-lib.lds: New file.
13181 * elf/Makefile (tests): Add `tst-absolute-sym'.
13182 (modules-names): Add `tst-absolute-sym-lib'.
13183 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13184 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13185 ($(objpfx)tst-absolute-sym): New dependency.
13186
13187 [BZ #19818]
13188 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13189 parameter.
13190 (SYMBOL_ADDRESS): New macro.
13191 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13192 SYMBOL_ADDRESS for symbol address calculation.
13193 * elf/dl-runtime.c (_dl_fixup): Likewise.
13194 (_dl_profile_fixup): Likewise.
13195 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13196 * elf/rtld.c (dl_main): Likewise.
13197 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13198 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13199 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13200 (elf_machine_rela): Likewise.
13201 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13202 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13203 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13204 (elf_machine_rela): Likewise.
13205 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13206 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13207 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13208 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13209 Likewise.
13210 (elf_machine_reloc): Likewise.
13211 (elf_machine_got_rel): Likewise.
13212 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13213 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13214 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13215 Likewise.
13216 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13217 Likewise.
13218 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13219 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13220 Likewise.
13221 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13222 Likewise.
13223 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13224 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13225 Likewise.
13226 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13227 Likewise.
13228 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13229 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13230
13231 2018-04-04 Zack Weinberg <zackw@panix.com>
13232
13233 * sysdeps/generic/internal-signals.h: Include signal.h,
13234 sigsetops.h, and stdbool.h.
13235 (__libc_signal_block_all): Actually block all signals.
13236 (__libc_signal_block_app): Likewise.
13237 (__libc_signal_restore_set): Actually restore the signal mask.
13238
13239 2018-04-04 Florian Weimer <fweimer@redhat.com>
13240
13241 inet: Actually build and run tst-deadline.
13242 * inet/Makefile (tests-internal): Add tst-deadline and do not
13243 overwrite the variable.
13244 (tests-static-internal): Remove variable.
13245
13246 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13247
13248 [BZ #22947]
13249 * bits/uio-ext.h (RWF_APPEND): New.
13250 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13251 * manual/llio.texi: Document RWF_APPEND.
13252 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13253 (RWF_SUPPORTED): Add RWF_APPEND.
13254
13255 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13256
13257 [BZ #22391]
13258 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13259 check for internal nptl signals.
13260 * nptl/sigaction.c (__sigaction): Likewise.
13261 * signal/sigaddset.c (sigaddset): Likewise.
13262 * signal/sigdelset.c (sigdelset): Likewise.
13263 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13264 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13265 value.
13266 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13267 to filter out internal nptl signals.
13268 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13269 also check realtime signals using standard macros.
13270 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13271 __is_internal_signal, __libc_signal_block_all,
13272 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13273 * sysdeps/nptl/sigfillset.c: Remove file.
13274 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13275 Change return to bool.
13276 (__clear_internal_signals): Remove SIGTIMER clean since it is
13277 equal to SIGCANEL on Linux.
13278 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13279 signal set was constructed using standard functions.
13280
13281 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13282
13283 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13284 ifname is too long.
13285 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13286 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13287 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13288 hidden def.
13289 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13290 * signal/sigaddset.c: Include <sigsetopts.h>.
13291 * signal/sigdelset.c: Likewise.
13292
13293 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13294
13295 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13296 (__cos): Likewise.
13297 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13298 logic as sin and cos.
13299
13300 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13301
13302 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13303 inputs. Return correct sign.
13304 (do_sincos): Remove small input check before do_sin, let do_sin set
13305 the sign.
13306 (__sin): Likewise.
13307 (__cos): Likewise.
13308
13309 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13310
13311 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13312 (do_cos_slow): Likewise.
13313 (do_sin_slow): Likewise.
13314 (reduce_and_compute): Likewise.
13315 (slow): Likewise.
13316 (slow1): Likewise.
13317 (slow2): Likewise.
13318 (sloww): Likewise.
13319 (sloww1): Likewise.
13320 (sloww2): Likewise.
13321 (bslow): Likewise.
13322 (bslow1): Likewise.
13323 (bslow2): Likewise.
13324 (cslow2): Likewise.
13325
13326 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13327
13328 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13329 (do_cos): Remove corp parameter and calculations.
13330 (do_sin): Likewise.
13331 (do_sincos): Remove cor variable.
13332 (__sin): Use do_sincos for huge inputs.
13333 (__cos): Likewise.
13334 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13335 (reduce_and_compute_sincos): Remove unused function.
13336
13337 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13338
13339 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13340 reduce_sincos, improve accuracy to 136 bits.
13341 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13342 (__sin): Use improved reduction and simplified do_sincos calculation.
13343 (__cos): Likewise.
13344 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13345
13346 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13347
13348 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13349 (do_sincos_2): Likewise.
13350 (__sin): Remove middle range reduction case.
13351 (__cos): Likewise.
13352 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13353 reduction case.
13354
13355 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13356
13357 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13358 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13359 inputs.
13360 (__cos): Likewise.
13361 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13362
13363 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13364
13365 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13366 version to 4.16
13367
13368 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13369
13370 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13371 Remove definitions.
13372 (opendir_oflags): Use O_DIRECTORY regardless.
13373 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13374 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13375
13376 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13377
13378 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13379 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13380 macros.
13381 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13382 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13383 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13384 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13385 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13386 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13387
13388 * htl/Makefile: Bump licence to LGPL 2.1+.
13389 * htl/alloca_cutoff.c: Likewise.
13390 * htl/cthreads-compat.c: Likewise.
13391 * htl/lockfile.c: Likewise.
13392 * htl/pt-alloc.c: Likewise.
13393 * htl/pt-cancel.c: Likewise.
13394 * htl/pt-cleanup.c: Likewise.
13395 * htl/pt-create.c: Likewise.
13396 * htl/pt-dealloc.c: Likewise.
13397 * htl/pt-detach.c: Likewise.
13398 * htl/pt-exit.c: Likewise.
13399 * htl/pt-getattr.c: Likewise.
13400 * htl/pt-initialize.c: Likewise.
13401 * htl/pt-internal.h: Likewise.
13402 * htl/pt-join.c: Likewise.
13403 * htl/pt-self.c: Likewise.
13404 * htl/pt-setcancelstate.c: Likewise.
13405 * htl/pt-setcanceltype.c: Likewise.
13406 * htl/pt-sigmask.c: Likewise.
13407 * htl/pt-spin-inlines.c: Likewise.
13408 * htl/pt-testcancel.c: Likewise.
13409 * htl/pt-yield.c: Likewise.
13410 * htl/tests/test-1.c: Likewise.
13411 * htl/tests/test-10.c: Likewise.
13412 * htl/tests/test-11.c: Likewise.
13413 * htl/tests/test-12.c: Likewise.
13414 * htl/tests/test-13.c: Likewise.
13415 * htl/tests/test-14.c: Likewise.
13416 * htl/tests/test-15.c: Likewise.
13417 * htl/tests/test-16.c: Likewise.
13418 * htl/tests/test-17.c: Likewise.
13419 * htl/tests/test-2.c: Likewise.
13420 * htl/tests/test-3.c: Likewise.
13421 * htl/tests/test-4.c: Likewise.
13422 * htl/tests/test-5.c: Likewise.
13423 * htl/tests/test-6.c: Likewise.
13424 * htl/tests/test-7.c: Likewise.
13425 * htl/tests/test-8.c: Likewise.
13426 * htl/tests/test-9.c: Likewise.
13427 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13428 * sysdeps/htl/bits/cancelation.h: Likewise.
13429 * sysdeps/htl/bits/pthread-np.h: Likewise.
13430 * sysdeps/htl/bits/pthread.h: Likewise.
13431 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13432 * sysdeps/htl/bits/semaphore.h: Likewise.
13433 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13434 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13435 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13436 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13437 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13438 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13439 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13440 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13441 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13442 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13443 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13444 * sysdeps/htl/old_pt-atfork.c: Likewise.
13445 * sysdeps/htl/pt-atfork.c: Likewise.
13446 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13447 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13448 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13449 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13450 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13451 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13452 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13453 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13454 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13455 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13456 * sysdeps/htl/pt-attr-init.c: Likewise.
13457 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13458 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13459 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13460 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13461 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13462 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13463 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13464 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13465 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13466 * sysdeps/htl/pt-attr.c: Likewise.
13467 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13468 * sysdeps/htl/pt-barrier-init.c: Likewise.
13469 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13470 * sysdeps/htl/pt-barrier.c: Likewise.
13471 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13472 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13473 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13474 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13475 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13476 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13477 * sysdeps/htl/pt-cond-init.c: Likewise.
13478 * sysdeps/htl/pt-cond-signal.c: Likewise.
13479 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13480 * sysdeps/htl/pt-cond-wait.c: Likewise.
13481 * sysdeps/htl/pt-cond.c: Likewise.
13482 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13483 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13484 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13485 * sysdeps/htl/pt-condattr-init.c: Likewise.
13486 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13487 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13488 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13489 * sysdeps/htl/pt-equal.c: Likewise.
13490 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13491 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13492 * sysdeps/htl/pt-getschedparam.c: Likewise.
13493 * sysdeps/htl/pt-getspecific.c: Likewise.
13494 * sysdeps/htl/pt-init-specific.c: Likewise.
13495 * sysdeps/htl/pt-key-create.c: Likewise.
13496 * sysdeps/htl/pt-key-delete.c: Likewise.
13497 * sysdeps/htl/pt-key.h: Likewise.
13498 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13499 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13500 * sysdeps/htl/pt-mutex-init.c: Likewise.
13501 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13502 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13503 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13504 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13505 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13506 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13507 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13508 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13509 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13510 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13511 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13512 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13513 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13514 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13515 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13516 * sysdeps/htl/pt-mutexattr.c: Likewise.
13517 * sysdeps/htl/pt-once.c: Likewise.
13518 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13519 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13520 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13521 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13522 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13523 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13524 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13525 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13526 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13527 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13528 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13529 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13530 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13531 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13532 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13533 * sysdeps/htl/pt-setschedparam.c: Likewise.
13534 * sysdeps/htl/pt-setschedprio.c: Likewise.
13535 * sysdeps/htl/pt-setspecific.c: Likewise.
13536 * sysdeps/htl/pt-spin.c: Likewise.
13537 * sysdeps/htl/pt-startup.c: Likewise.
13538 * sysdeps/htl/pthread.h: Likewise.
13539 * sysdeps/htl/sem-close.c: Likewise.
13540 * sysdeps/htl/sem-destroy.c: Likewise.
13541 * sysdeps/htl/sem-getvalue.c: Likewise.
13542 * sysdeps/htl/sem-init.c: Likewise.
13543 * sysdeps/htl/sem-open.c: Likewise.
13544 * sysdeps/htl/sem-post.c: Likewise.
13545 * sysdeps/htl/sem-timedwait.c: Likewise.
13546 * sysdeps/htl/sem-trywait.c: Likewise.
13547 * sysdeps/htl/sem-unlink.c: Likewise.
13548 * sysdeps/htl/sem-wait.c: Likewise.
13549 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13550 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13551 * sysdeps/mach/htl/pt-block.c: Likewise.
13552 * sysdeps/mach/htl/pt-spin.c: Likewise.
13553 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13554 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13555 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13556 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13557 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13558 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13559 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13560 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13561 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13562 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13563 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13564 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13565 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13566 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13567 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13568 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13569 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13570 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13571 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13572 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13573 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13574 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13575 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13576 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13577 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13578 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13579 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13580 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13581 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13582 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13583 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13584 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13585 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13586 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13587 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13588 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13589 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13590 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13591 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13592 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13593 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13594 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13595 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13596
13597 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13598 * README: Remove the mention of out-of-tree patches needed for
13599 GNU/Hurd.
13600
13601 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13602 (UTIME_NOW, UTIME_OMIT): Define macros.
13603
13604 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13605 instead of pthread_detach.
13606 (__cthread_fork): Call __pthread_create instead of pthread_create.
13607 (__cthread_keycreate): Call __pthread_key_create instead of
13608 pthread_key_create.
13609 (__cthread_getspecific): Call __pthread_getspecific instead of
13610 pthread_getspecific.
13611 (__cthread_setspecific): Call __pthread_setspecific instead of
13612 pthread_setspecific.
13613 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13614 __pthread_mutex_unlock instead of pthread_mutex_lock and
13615 pthread_mutex_unlock.
13616 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13617 ___pthread_get_cleanup_stack.
13618 (__pthread_get_cleanup_stack): New strong alias.
13619 * htl/pt-create.c: Include <pthreadP.h>.
13620 (entry_point): Call __pthread_exit instead of pthread_exit.
13621 (pthread_create): Rename to __pthread_create.
13622 (pthread_create): New strong alias.
13623 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13624 (pthread_detach): New strong alias.
13625 (__pthread_detach): Call __pthread_cond_broadcast instead of
13626 pthread_cond_broadcast.
13627 * htl/pt-exit.c: Include <pthreadP.h>.
13628 (__pthread_exit): Call __pthread_setcancelstate and
13629 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13630 __pthread_get_cleanup_stack.
13631 * htl/pt-testcancel.c: Include <pthreadP.h>.
13632 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13633 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13634 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13635 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13636 pthread_attr_getstacksize.
13637 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13638 Rename to __pthread_attr_getstackaddr.
13639 (pthread_attr_getstackaddr): New strong alias.
13640 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13641 Rename to __pthread_attr_getstacksize.
13642 (pthread_attr_getstacksize): New strong alias.
13643 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13644 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13645 (pthread_attr_setstack): New strong alias.
13646 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13647 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13648 pthread_attr_getstacksize, pthread_attr_setstacksize and
13649 pthread_attr_setstackaddr.
13650 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13651 Rename to __pthread_attr_setstackaddr.
13652 (pthread_attr_setstackaddr): New strong alias.
13653 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13654 Rename to __pthread_attr_setstacksize.
13655 (pthread_attr_setstacksize): New strong alias.
13656 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13657 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13658 pthread_exit.
13659 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13660 (__pthread_key_create): New hidden def.
13661 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13662 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13663 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13664 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13665 __pthread_setspecific, __pthread_setcancelstate,
13666 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13667 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13668 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13669 declarations.
13670 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13671 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13672 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13673 (pthread_attr_setstackaddr): New strong alias.
13674 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13675 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13676 (pthread_attr_setstacksize): New strong alias.
13677 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13678 (call_exit): Call __pthread_exit instead of pthread_exit.
13679 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13680 (_pthread_mutex_init): New hidden definition.
13681 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13682 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13683 instead of pthread_attr_init and pthread_attr_setstack.
13684
13685 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13686 __vm_deallocate instead of vm_allocate and vm_deallocate.
13687 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13688 setenv.
13689 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13690 of geteuid.
13691 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13692 strdup.
13693 * hurd/siginfo.c: Include <libioP.h>.
13694 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13695 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13696 munmap.
13697 * mach/devstream.c: Include <libioP.h>.
13698 (dealloc_ref): Call __mach_port_deallocate instead of
13699 mach_port_deallocate.
13700 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13701 Call __mach_port_deallocate instead of mach_port_deallocate.
13702 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13703 pathconf.
13704 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13705 munmap.
13706 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13707 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13708 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13709 of munmap.
13710 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13711 of close.
13712 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13713 instead of sysconf.
13714 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13715 __clock_gettime instead of clock_gettime.
13716 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13717 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13718 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13719 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13720 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13721 tcgetattr.
13722 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13723 __clock_gettime and __nanosleep instead of clock_gettime and
13724 nanosleep.
13725 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13726 __hurd_catch_signal.
13727 (hurd_catch_signal): New strong alias.
13728 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13729 __hurd_catch_signal instead of hurd_catch_signal.
13730 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13731 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13732 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13733 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13734 (_hurd_thread_sigstate): Add hidden def.
13735 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13736 mutex_unlock.
13737 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13738 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13739 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13740 __hurd_file_name_path_lookup.
13741 (hurd_file_name_path_lookup): New strong alias.
13742 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13743 hurd_file_name_path_lookup.
13744 * mach/errstring.c (mach_error_type): Add hidden def.
13745 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13746 * mach/mutex-init.c (__mutex_init): Add hidden def.
13747 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13748 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13749 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13750 * sysdeps/mach/hurd/getcwd.c
13751 (_hurd_canonicalize_directory_name_internal): Rename to
13752 __hurd_canonicalize_directory_name_internal.
13753 (_hurd_canonicalize_directory_name_internal): New strong alias.
13754 (__canonicalize_directory_name_internal, __getcwd): Call
13755 __hurd_canonicalize_directory_name_internal instead of
13756 _hurd_canonicalize_directory_name_internal.
13757 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13758 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13759 hidden defs.
13760 * sysdeps/hurd/include/hurd.h: New file.
13761 * sysdeps/hurd/include/hurd/fd.h: New file.
13762 * sysdeps/hurd/include/hurd/signal.h: New file.
13763 * sysdeps/mach/include/lock-intern.h: New file.
13764 * sysdeps/mach/include/mach.h: New file.
13765 * sysdeps/mach/include/mach/mig_support.h: New file.
13766 * sysdeps/mach/include/mach_error.h: New file.
13767 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13768 prototype.
13769 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13770 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13771 _HEADER_H_HIDDEN_DEF macro.
13772 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13773 _hurd_fd_error_signal): Add hidden prototype.
13774 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13775 hidden def.
13776 * libio/iolibio.h (_IO_puts): New hidden prototype.
13777 * libio/ioputs.c (_IO_puts): New hidden def.
13778 * sysdeps/mach/hurd/localplt.data: New file.
13779
13780 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13781 Amos Jeffries <squid3@treenet.co.nz>
13782 David Michael <fedora.dm0@gmail.com>
13783 Marco Gerards <marco@gnu.org>
13784 Marcus Brinkmann <marcus@gnu.org>
13785 Neal H. Walfield <neal@gnu.org>
13786 Pino Toscano <toscano.pino@tiscali.it>
13787 Richard Braun <rbraun@sceen.net>
13788 Roland McGrath <roland@gnu.org>
13789 Samuel Thibault <samuel.thibault@ens-lyon.org>
13790 Thomas DiModica <ricinwich@yahoo.com>
13791 Thomas Schwinge <tschwinge@gnu.org>
13792
13793 * htl: New directory.
13794 * sysdeps/htl: New directory.
13795 * sysdeps/hurd/htl: New directory.
13796 * sysdeps/i386/htl: New directory.
13797 * sysdeps/mach/htl: New directory.
13798 * sysdeps/mach/hurd/htl: New directory.
13799 * sysdeps/mach/hurd/i386/htl: New directory.
13800 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13801 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13802 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13803
13804 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13805
13806 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13807 signals in thread created for runing timers.
13808
13809 2018-04-01 Florian Weimer <fweimer@redhat.com>
13810
13811 * support/support_format_addrinfo.c (support_format_addrinfo):
13812 Include unknown error number in formatted result.
13813
13814 2018-03-29 Florian Weimer <fweimer@redhat.com>
13815
13816 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13817 capture SIGBUS.
13818
13819 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13820
13821 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13822 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13823 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13824 (__ASSUME_CLONE_BACKWARDS): Define.
13825
13826 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13827
13828 [BZ #23024]
13829 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13830 early when linux sentinel value is set.
13831
13832 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13833
13834 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13835
13836 2018-03-27 Andreas Schwab <schwab@suse.de>
13837
13838 [BZ #23005]
13839 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13840 allocation of private copy of nsaddr_list fails.
13841
13842 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13843
13844 [BZ #16552]
13845 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13846 * sysdeps/unix/sysv/linux/umount.c: ... here.
13847 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13848 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13849 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13850 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13852 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13853 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13854
13855 2018-03-26 Andreas Schwab <schwab@suse.de>
13856
13857 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13858 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13859 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13860 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13861 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13862 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13863 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13864 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13865 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13866 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13867 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13868 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13869 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13870 (R_RISCV_NUM): Define.
13871
13872 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13873
13874 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13875 TLS declaration of errno.
13876 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13877 __libc_setup_tls.
13878 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13879 (ARCH_SETUP_TLS): Likewise.
13880 * sysdeps/mach/hurd/libc-start.h: New file copied from
13881 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13882 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13883 instead of __libc_setup_tls.
13884 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13885 __libc_setup_tls before initializing libpthread and running _hurd_init
13886 which starts the signal thread.
13887 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13888 Declare function.
13889 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13890
13891 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13892
13893 [BZ #22998]
13894 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13895 after it is defined.
13896
13897 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13898 Max Horn <max@quendi.de>
13899
13900 [BZ #22644]
13901 CVE-2017-18269
13902 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13903 branch conditions.
13904 * string/test-memmove.c (do_test2): New testcase.
13905
13906 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13907
13908 * sysdeps/generic/frame.h: Remove file.
13909 * sysdeps/arm/frame.h: Likewise.
13910 * sysdeps/hppa/frame.h: Likewise.
13911 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13912 macro.
13913 (GET_FRAME): Likewise.
13914 (GET_STACK): Likewise.
13915 (CALL_SIGHANDLER): Likewise.
13916 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13917 Likewise.
13918 (GET_FRAME): Likewise.
13919 (GET_STACK): Likewise.
13920 (CALL_SIGHANDLER): Likewise.
13921 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13922 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13923 (GET_FRAME): Likewise.
13924 (GET_STACK): Likewise.
13925 (CALL_SIGHANDLER): Likewise.
13926 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13927 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13928 (GET_FRAME): Likewise.
13929 (GET_STACK): Likewise.
13930 (ADVANCE_STACK_FRAME): Likewise.
13931 (CALL_SIGHANDLER): Likewise.
13932 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13933 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13934 (GET_FRAME): Likewise.
13935 (GET_STACK): Likewise.
13936 (CALL_SIGHANDLER): Likewise.
13937 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13938 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13939 (GET_FRAME): Likewise.
13940 (GET_STACK): Likewise.
13941 (CALL_SIGHANDLER): Likewise.
13942 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13943 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13944 (GET_FRAME): Likewise.
13945 (GET_STACK): Likewise.
13946 (CALL_SIGHANDLER): Likewise.
13947 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13948 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13949 (GET_FRAME): Likewise.
13950 (GET_STACK): Likewise.
13951 (CALL_SIGHANDLER): Likewise.
13952 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13953 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13954 (GET_FRAME): Likewise.
13955 (GET_STACK): Likewise.
13956 (CALL_SIGHANDLER): Likewise.
13957 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13958 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13959 (GET_FRAME): Likewise.
13960 (GET_STACK): Likewise.
13961 (CALL_SIGHANDLER): Likewise.
13962 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13963 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13964 (GET_FRAME): Likewise.
13965 (GET_STACK): Likewise.
13966 (CALL_SIGHANDLER): Likewise.
13967 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13968 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13969 (GET_FRAME): Likewise.
13970 (GET_STACK): Likewise.
13971 (CALL_SIGHANDLER): Likewise.
13972 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13973 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13974 (GET_FRAME): Likewise.
13975 (GET_STACK): Likewise.
13976 (CALL_SIGHANDLER): Likewise.
13977 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13978 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13979 (FIRST_FRAME_POINTER): Likewise.
13980 (ADVANCE_STACK_FRAME): Likewise.
13981 (GET_STACK): Likewise.
13982 (GET_FRAME): Likewise.
13983 (CALL_SIGHANDLER): Likewise.
13984 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13985 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13986 (ADVANCE_STACK_FRAME): Likewise.
13987 (GET_STACK): Likewise.
13988 (GET_FRAME): Likewise.
13989 (CALL_SIGHANDLER): Likewise.
13990 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13991 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13992 (GET_FRAME): Likewise.
13993 (GET_STACK): Likewise.
13994 (CALL_SIGHANDLER): Likewise.
13995 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13996 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13997 (GET_FRAME): Likewise.
13998 (GET_STACK): Likewise.
13999 (CALL_SIGHANDLER): Likewise.
14000
14001 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14002
14003 * sysdeps/x86_64/backtrace.c: Move to ....
14004 * debug/backtrace.c: ... here.
14005 * sysdeps/aarch64/backtrace.c: Remove file.
14006 * sysdeps/alpha/backtrace.c: Likewise.
14007 * sysdeps/hppa/backtrace.c: Likewise.
14008 * sysdeps/ia64/backtrace.c: Likewise.
14009 * sysdeps/mips/backtrace.c: Likewise.
14010 * sysdeps/nios2/backtrace.c: Likewise.
14011 * sysdeps/riscv/backtrace.c: Likewise.
14012 * sysdeps/sh/backtrace.c: Likewise.
14013 * sysdeps/tile/backtrace.c: Likewise.
14014
14015 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14016
14017 [BZ #22987]
14018 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14019 function.
14020 (fdimf): Likewise.
14021 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14022
14023 [BZ #17343]
14024 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14025 possibly overflowing computations.
14026
14027 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14028
14029 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14030 values from Linux-specific section now that it is in the GNU section.
14031 * sysdeps/gnu/errlist.c: Regenerate.
14032
14033 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14034
14035 * math/Makefile (libm-narrow-fns): Add sub.
14036 (libm-test-funcs-narrow): Likewise.
14037 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14038 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14039 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14040 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14041 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14042 (NARROW_SUB_TRIVIAL): Likewise.
14043 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14044 macro.
14045 (__dsubl): Likewise.
14046 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14047 dsub.
14048 (CFLAGS-nldbl-dsub.c): New variable.
14049 (CFLAGS-nldbl-fsub.c): Likewise.
14050 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14051 __nldbl_dsubl.
14052 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14053 prototype.
14054 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14055 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14056 * math/auto-libm-test-in: Add tests of sub.
14057 * math/auto-libm-test-out-narrow-sub: New generated file.
14058 * math/libm-test-narrow-sub.inc: New file.
14059 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14060 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14061 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14062 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14063 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14064 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14065 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14066 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14067 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14068 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14069 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14070 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14071 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14072 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14073 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14074 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14075 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14076 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14077 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14078 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14079 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14080 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14081 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14082 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14083 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14084 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14085 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14086 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14087 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14088 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14089 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14090 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14092 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14095 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14096 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14097 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14098 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14099 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14100 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14101 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14102 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14103 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14104 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14105
14106 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14107
14108 [BZ #20079]
14109 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14110
14111 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14112
14113 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14114
14115 2018-03-18 Richard Braun <rbraun@sceen.net>
14116
14117 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14118 thread reference.
14119
14120 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14121
14122 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14123 (__libc_cleanup_fct): Define function.
14124 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14125 __libc_cleanup_end): Rewrite implementation using
14126 __attribute__ ((__cleanup__)).
14127 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14128 * hurd/Makefile (routines): Add hurdlock.
14129 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14130 interface.
14131 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14132 * hurd/hurdpid.c: Include <lowlevellock.h>
14133 (_S_msg_proc_newids): Use lll_wait to synchronize.
14134 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14135 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14136 * mach/Makefile (lock-headers): Remove machine-lock.h.
14137 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14138 <machine-lock.h>.
14139 (__spin_lock_t): New type.
14140 (__SPIN_LOCK_INITIALIZER): New macro.
14141 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14142 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14143 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14144 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14145 (__mutex_init): Initialize with lll.
14146 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14147 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14148 needing lll.
14149 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14150 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14151 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14152 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14153 (__setpgid): Use lll for synchronization.
14154 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14155 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14156 instead of <cthreads.h>.
14157 (_IO_lock_inexpensive): New macro
14158 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14159 (__libc_lock_self0): New declaration.
14160 (__libc_lock_owner_self): New macro.
14161 (__libc_key_t): Remove type.
14162 (_LIBC_LOCK_INITIALIZER): New macro.
14163 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14164 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14165 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14166 __libc_lock_define_initialized_recursive,
14167 __rtld_lock_define_initialized_recursive,
14168 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14169 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14170 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14171 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14172 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14173 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14174 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14175 New macros.
14176 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14177 * hurd/hurdlock.c: New file.
14178 * hurd/hurdlock.h: New file.
14179 * mach/lowlevellock.h: New file
14180
14181 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14182
14183 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14184 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14185 when opening a symlink with O_NOFOLLOW.
14186 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14187 path when flags contains O_NOFOLLOW.
14188 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14189 if flags contains O_DIRECTORY and the result is a directory.
14190 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14191 oneself when the pointer given in D is nul (as set by ext2fs).
14192 * sysdeps/mach/hurd/mlockall.c: New file.
14193 * sysdeps/mach/hurd/munlockall.c: New file.
14194
14195 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14196
14197 * hurd/hurdsig.c: Include <pthread.h>.
14198 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14199 get the signal thread stack layout.
14200 * hurd/Makefile (headers): Remove threadvar.h.
14201 (inline-headers): Remove threadvar.h.
14202 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14203 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14204 __hurd_threadvar_max, __hurd_errno_location.
14205 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14206 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14207 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14208 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14209 unless TLS is not initialized yet, in which case we do not need a
14210 critical section yet anyway.
14211 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14212 <machine-sp.h>.
14213 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14214 declarations.
14215 (__hurd_threadvar_index): Remove enum.
14216 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14217 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14218 inlines.
14219 (__hurd_reply_port0): New variable declaration.
14220 (__hurd_local_reply_port): New macro.
14221 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14222 (interrupted_reply_port_location): Add thread_t parameter. Use it
14223 with THREAD_TCB to access thread-local variables.
14224 (_hurdsig_abort_rpcs): Pass ss->thread to
14225 interrupted_reply_port_location.
14226 (_hurd_internal_post_signal): Likewise.
14227 (_hurdsig_init): Use presence of cthread_fork instead of
14228 __hurd_threadvar_stack_mask to start signal thread by hand.
14229 Remove signal thread threadvar initialization.
14230 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14231 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14232 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14233 of threadvar.
14234 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14235 __libc_lock_self0.
14236 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14237 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14238 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14239 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14240 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14241 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14242 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14243 define variables.
14244 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14245 <hurd/threadvar.h>.
14246 [IS_IN(rtld)] (rtld_errno): New variable.
14247 [IS_IN(rtld)] (__errno_location): New weak function.
14248 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14249 * sysdeps/mach/hurd/errno.c: Remove file.
14250 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14251 (__fork): Remove THREADVAR_SPACE macro and its use.
14252 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14253 variable.
14254 (init): Do not initialize threadvar.
14255 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14256 symbol.
14257 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14258 __hurd_local_reply_port instead of threadvar.
14259 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14260 _hurd_sigstate fields.
14261 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14262 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14263 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14264 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14265 instead of threadvar.
14266 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14267 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14268 (use_threadvar, global_reply_port): Remove variables.
14269 (__hurd_reply_port0): New variable.
14270 (__mig_get_reply_port): Use __hurd_local_reply_port and
14271 __hurd_reply_port0 instead of threadvar.
14272 (__mig_dealloc_reply_port): Likewise.
14273 (__mig_init): Do not initialize threadvar.
14274 * sysdeps/mach/hurd/profil.c: Fix comment.
14275 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14276 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14277 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14278 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14279 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14280 __cthread_setspecific.
14281 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14282 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14283 __cthread_t instead of cthread_fork, cthread_detach,
14284 pthread_getattr_np, pthread_attr_getstack.
14285 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14286 __cthread_keycreate.
14287 (cthread_getspecific): Rename to __cthread_getspecific.
14288 (cthread_setspecific): Rename to __cthread_setspecific.
14289 (__libc_getspecific): Use __cthread_getspecific instead of
14290 cthread_getspecific.
14291 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14292 __cthread_keycreate instead of cthread_keycreate.
14293 (__libc_setspecific): Use __cthread_setspecific instead of
14294 cthread_setspecific.
14295 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14296 Likewise.
14297 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14298 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14299 testing whether it is defined.
14300
14301 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14302
14303 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14304 Define macro.
14305 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14306 * sysdeps/mach/i386/thread_state.h
14307 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14308 i386_THREAD_STATE.
14309 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14310 i386_THREAD_STATE.
14311 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14312
14313 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14314 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14315
14316 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14317 macros.
14318 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14319 descriptor instead of creating a new one.
14320 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14321
14322 * mach/setup-thread.c: Include <ldsodefs.h>.
14323 (__mach_setup_thread): Call _dl_allocate_tls, pass
14324 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14325 MACHINE_THREAD_STATE_FLAVOR, before getting
14326 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14327 MACHINE_THREAD_STATE_FLAVOR with the result.
14328 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14329 MACHINE_THREAD_STATE_FIX_NEW.
14330 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14331 too. Add original thread parameter.
14332
14333 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14334
14335 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14336 Remove inline function.
14337
14338 * sysdeps/i386/fpu/libm-test-ulps: Update.
14339 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14340
14341 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14342
14343 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14344 commit.
14345
14346 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14347
14348 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14349 (__sincos_code): Remove define and undefine.
14350 [__FAST_MATH__] (__sincos): Remove inline function.
14351 [__FAST_MATH__] (__sincosf): Remove inline function.
14352 [__FAST_MATH__] (__sincosl): Remove inline function.
14353 (__atan2l): Remove inline functions.
14354 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14355 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14356 function.
14357 (floor): Remove inline function.
14358 (ceil): Likewise.
14359 [__FAST_MATH__] (__ldexp_code): Remove macro.
14360 [__FAST_MATH__] (ldexp): Remove inline function.
14361 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14362 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14363 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14364 [__USE_ISOC99] (__lrint_code): Remove macro.
14365 [__USE_ISOC99] (__llrint_code): Likewise.
14366 [__USE_ISOC99] (lrintf): Remove inline function.
14367 [__USE_ISOC99] (lrint): Likewise.
14368 [__USE_ISOC99] (lrintl): Likewise.
14369 [__USE_ISOC99] (llrint): Likewise.
14370 [__USE_ISOC99] (llrintf): Likewise.
14371 [__USE_ISOC99] (llrintl): Likewise.
14372
14373 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14374
14375 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14376 (__ieee754_sqrtf): Remove.
14377 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14378 (__ieee754_sqrtf): Remove.
14379 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14380 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14381 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14382 (__ieee754_sqrtf): Remove.
14383 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14384 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14385 (sqrtf): Remove.
14386 (sqrtl): Remove.
14387 (__ieee754_sqrt): Remove.
14388 (__ieee754_sqrtf): Remove.
14389 (__ieee754_sqrtl): Remove.
14390 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14391 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14392 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14393 (__ieee754_sqrtf): Remove.
14394 (__ieee754_sqrtl): Remove.
14395
14396 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14397
14398 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14399 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14400 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14401 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14402 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14403 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14404 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14405 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14406 Likewise.
14407 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14408 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14409 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14410 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14411 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14412 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14413 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14414 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14415 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14416 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14417 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14418 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14419 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14420 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14421 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14422 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14423 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14424 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14425 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14426 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14427 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14428 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14429 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14430 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14431 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14432 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14433 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14434 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14435 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14436 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14437 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14438 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14439 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14440 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14441 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14442 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14443 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14444 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14445 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14446 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14447
14448 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14449
14450 * include/math.h (sqrt): Declare with asm redirect.
14451 (sqrtf): Likewise.
14452 (sqrtl): Likewise.
14453 (sqrtf128): Likewise.
14454 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14455 nonlib and libnldbl with -fmath-errno.
14456 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14457 * math/w_sqrt_template.c: Likewise.
14458 * math/w_sqrtf_compat.c: Likewise.
14459 * math/w_sqrtl_compat.c: Likewise.
14460 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14461 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14462 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14463 complex.h.
14464
14465 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14466
14467 * benchtests/Makefile: Define _ISOMAC.
14468 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14469 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14470 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14471 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14472 * benchtests/bench-timing.h: Define attribute_hidden.
14473
14474 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14475
14476 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14477 mov + lsr.
14478
14479 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14480
14481 [BZ #22963]
14482 * localedata/locales/cs_CZ (mon): Rename to...
14483 (alt_mon): This.
14484 (mon): Import from CLDR (genitive case).
14485
14486 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14487
14488 [BZ #22937]
14489 * localedata/locales/el_CY (abmon): Rename to...
14490 (ab_alt_mon): This.
14491 (abmon): Import from CLDR (abbreviated genitive case).
14492 * localedata/locales/el_GR (abmon): Rename to...
14493 (ab_alt_mon): This.
14494 (abmon): Import from CLDR (abbreviated genitive case).
14495
14496 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14497
14498 [BZ #22932]
14499 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14500
14501 2018-03-15 Robert Buj <robert.buj@gmail.com>
14502
14503 [BZ #22848]
14504 * localedata/locales/ca_ES (abmon): Rename to...
14505 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14506 (mon): Rename to...
14507 (alt_mon): This.
14508 (abmon): Import from CLDR (genitive case, month names preceded by
14509 "de" or "d’").
14510 (mon): Likewise.
14511 (abday): Synchronize with CLDR.
14512 (d_t_fmt): Likewise.
14513 (d_fmt): Likewise.
14514 (am_pm): Likewise.
14515
14516 (LC_TIME): Improve indentation.
14517 (LC_TELEPHONE): Likewise.
14518 (LC_NAME): Likewise.
14519 (LC_ADDRESS): Likewise.
14520
14521 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14522
14523 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14524 (lrintf): Remove definitions used only with old GCC.
14525 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14526 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14527 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14528 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14529 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14530 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14531 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14532 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14533 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14534 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14535 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14536 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14537 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14538 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14539 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14540 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14541 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14542 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14543 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14544 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14545 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14546 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14547 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14548 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14549 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14550 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14551 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14552 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14553
14554 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14555
14556 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14557 instruction to unbreak builds with binutils 2.26 and older.
14558
14559 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14560
14561 * sysdeps/aarch64/strncmp.S (count): New macro.
14562 (strncmp): Store misaligned length in SRC1 in COUNT.
14563 (mutual_align): Adjust.
14564 (misaligned8): Load dword at a time when it is safe.
14565
14566 2018-03-12 Zack Weinberg <zackw@panix.com>
14567
14568 [BZ #1190]
14569 [BZ #19476]
14570 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14571 if the _IO_EOF_SEEN bit is already set; update commentary.
14572 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14573 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14574
14575 * support/support_openpty.c, support/tty.h: New files.
14576 * support/Makefile (libsupport-routines): Add support_openpty.
14577
14578 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14579 New test cases.
14580 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14581 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14582
14583 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14584
14585 * po/pt_BR.po: Update translations.
14586
14587 2018-03-12 David Michael <fedora.dm0@gmail.com>
14588
14589 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14590 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14591 get a port to the startup server.
14592
14593 2018-03-11 Zack Weinberg <zackw@panix.com>
14594
14595 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14596 before nldbl-compat.h.
14597
14598 2018-03-10 Zack Weinberg <zackw@panix.com>
14599
14600 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14601 math.h or math_private.h.
14602
14603 * sysdeps/alpha/fpu/s_isnan.c
14604 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14605 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14606 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14607 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14608 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14609 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14610 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14611 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14612 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14613 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14614 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14615 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14616 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14617 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14618 Include math_private.h.
14619
14620 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14621 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14622 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14623 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14624 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14625 * sysdeps/powerpc/power7/fpu/s_logb.c:
14626 Include math.h and math_private.h.
14627
14628 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14629 uses of $at in .set noat / .set at.
14630
14631 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14632
14633 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14634 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14635 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14636 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14637 Likewise.
14638
14639 2018-03-09 Florian Weimer <fweimer@redhat.com>
14640
14641 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14642 in comment.
14643
14644 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14645
14646 [BZ #22919]
14647 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14648 Add nop before __startcontext, add explaining comments.
14649
14650 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14651
14652 [BZ #22926]
14653 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14654 empty for __SPE__.
14655 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14656 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14657 Do not build hardware transactional code for __SPE__.
14658 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14659 (__lll_trylock_elision): Likewise.
14660 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14661 (__lll_unlock_elision): Likewise.
14662
14663 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14664 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14665 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14666 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14667 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14668 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14669 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14670 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14671 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14672 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14673 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14674 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14675 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14676 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14677 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14678 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14679 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14680 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14681 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14682 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14683 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14684 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14685 (__ASSUME_CLONE_BACKWARDS): Define.
14686 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14687 __clone2 if __NR_clone2 is defined.
14688 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14689 (__ASSUME_CLONE_BACKWARDS): Likewise.
14690 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14691 (__ASSUME_CLONE_BACKWARDS): Likewise.
14692 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14693 (__ASSUME_CLONE2): Likewise.
14694 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14695 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14696 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14697 variants and the define architecture can use.
14698 (__ASSUME_CLONE_DEFAULT): Define as default.
14699 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14700 (__ASSUME_CLONE_BACKWARDS): Likewise.
14701 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14702 (__ASSUME_CLONE_BACKWARDS): Likewise.
14703 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14704 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14705
14706 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14707
14708 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14709
14710 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14711 time.
14712
14713 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14714 (do_test_limit): Likewise.
14715
14716 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14717 for every implementation.
14718 (do_test): Likewise.
14719
14720 * benchtests/bench-strncmp.c: Convert output to json.
14721
14722 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14723
14724 * io/futimens.c: Add missing start-of-file descriptive comment.
14725 * io/utime.c: Likewise.
14726 * misc/futimesat.c: Likewise.
14727 * misc/utimes.c: Likewise.
14728 * sysdeps/mach/hurd/futimesat.c: Likewise.
14729 * sysdeps/mach/hurd/utimes.c: Likewise.
14730 * sysdeps/posix/utime.c: Likewise.
14731 * sysdeps/posix/utimes.c: Likewise.
14732 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14733 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14734 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14735 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14736
14737 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14738
14739 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14740 hurd_futimes.
14741 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14742 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14743 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14744 (__futimens): Move implementation to...
14745 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14746 utime_tvalue_from_tspec): ... new helper functions.
14747 (hurd_futimens): New function.
14748 * sysdeps/mach/hurd/futimesat.c: New file.
14749 * sysdeps/mach/hurd/utimensat.c: New file.
14750
14751 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14752
14753 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14754 UTIME_OMIT): New macros.
14755 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14756 before reverting to converting time spec to time value and calling
14757 __file_utimes.
14758 * sysdeps/mach/hurd/utime-helper.c: New file.
14759 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14760 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14761 reverting to utime_tvalue_from_tval and __file_utimes.
14762 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14763 (__lutimes): Just call hurd_futimens after lookup.
14764 * sysdeps/mach/hurd/utimes.c: Likewise.
14765
14766 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14767
14768 * bits/sigaction.h: Add include guard.
14769 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14770 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14771 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14772 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14773 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14774 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14775 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14776 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14777 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14778
14779 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14780
14781 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14782 -Wmaybe-uninitialized for -Os.
14783 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14784 this disabling.
14785
14786 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14787
14788 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14789 __INO_T_MATCHES_INO64_T is defined.
14790 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14791 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14792 of definition.
14793 * dirent/alphasort64.c: Likewise.
14794 * dirent/scandir.c: Likewise.
14795 * dirent/scandir64-tail.c: Likewise.
14796 * dirent/scandir64.c: Likewise.
14797 * dirent/scandirat.c: Likewise.
14798 * dirent/scandirat64.c: Likewise.
14799 * dirent/versionsort.c: Likewise.
14800 * dirent/versionsort64.c: Likewise.
14801 * include/dirent.h: Likewise.
14802
14803 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14804 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14805 for socketpair endpoint.
14806 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14807 WRITE_BUFFER_SIZE as buffer size for sending socket.
14808 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14809 issue on system where send is implemented with sendto syscall.
14810 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14811 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14812 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14813 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14814
14815 [BZ #21269]
14816 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14817 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14818 sa_restorer for vDSO case.
14819 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14820
14821 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14822
14823 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14824 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14825 * hurd/hurd/ioctl.h: Include <mach/port.h>
14826 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14827 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14828 <mach/mach_types.h> and <mach/message.h>.
14829 (headers): Move mach/param.h to bits/mach/param.h.
14830 * sysdeps/mach/i386/mach/param.h: Move file to ...
14831 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14832 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14833 of <mach/param.h>.
14834 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14835 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14836 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14837 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14838 trivial, for C++ conformity.
14839 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14840 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14841 Process mig output through $(migheadersed).
14842 * hurd/Makefile (migheadersed): Define variable.
14843 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14844 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14845 headers.
14846 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14847 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14848 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14849 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14850 <bits/types/sigset_t.h>.
14851 [!defined __USE_GNU]: Do not #error out.
14852 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14853 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14854 Include <stddef.h> and <bits/types/sigset_t.h>
14855 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14856 instead of sighandler_t.
14857 * stdlib/errno.h (error_t): Move definition to...
14858 * bits/types/error_t.h: ... new header.
14859 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14860 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14861 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14862 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14863 * hurd/hurd.h: Include <bits/types/error_t.h>
14864 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14865 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14866 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14867 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14868 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14869 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14870 * sysdeps/mach/hurd/futimens.c: New file.
14871
14872 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14873
14874 [BZ #22918]
14875 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14876 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14877 * nscd/gai.c (__nss_hosts_database): Readd definition.
14878 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14879 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14880 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14881
14882 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14883
14884 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14885 (ifunc_one): Likewise.
14886
14887 2018-03-01 DJ Delorie <dj@delorie.com>
14888
14889 [BZ #22342]
14890 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14891 key value.
14892
14893 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14894
14895 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14896 `match_pid' parameter.
14897 (td_ta_thr_iter): Update accordingly.
14898
14899 2018-03-01 Florian Weimer <fweimer@redhat.com>
14900
14901 * nptl/Makefile (install-lib-ldscripts): Remove.
14902 (install): Remove rule.
14903 ($(inst_libdir)/libpthread.so): Likewise.
14904
14905 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14906
14907 [BZ #22896]
14908 * localedata/locales/an_ES: update month and day names,
14909 improve d_fmt, improve postal_fmt, add country_post,
14910 add country_isbn
14911
14912 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14913
14914 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14915 Ukrainian instead of Bulgarian.
14916
14917 2018-03-01 Florian Weimer <fweimer@redhat.com>
14918
14919 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14920 reference.
14921
14922 2018-03-01 Florian Weimer <fweimer@redhat.com>
14923
14924 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14925 * nptl/Makefile (routines): Add pthread_atfork.
14926 (static-only-routines): Set to pthread_atfork.
14927 (libpthread-routines): Remove pthread_atfork.
14928 (libpthread-static-only-routines): Remove.
14929 (install): Update comment.
14930 (libpthread.so): Do not install libpthread_nonshared.a.
14931 (tests): Do not link with libpthread_nonshared.a.
14932 (generated): Remove libpthread_nonshared.a.
14933 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14934 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14935 with libpthread_nonshared.a.
14936
14937 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14938
14939 [BZ #22902]
14940 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14941 (libc_feholdexcept_setroundf128): New macro.
14942 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14943
14944 [BZ #15105]
14945 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14946 libc_hidden_def.
14947 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14948 * include/inttypes.h: New file.
14949
14950 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14951
14952 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14953 -Os in two more places.
14954
14955 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14956
14957 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14958 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14959 be sorted correctly at the moment because of a bug.
14960
14961 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14962
14963 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14964 treat ñ as a primary different character, sync the collation
14965 for Spanish with CLDR.
14966 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14967 * localedata/Makefile: Add new test files.
14968 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14969 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14970 collation order.
14971 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14972 * localedata/am_ET.UTF-8.in: New test file.
14973 * localedata/az_AZ.UTF-8.in: Likewise.
14974 * localedata/be_BY.UTF-8.in: Likewise.
14975 * localedata/ber_DZ.UTF-8.in: Likewise.
14976 * localedata/ber_MA.UTF-8.in: Likewise.
14977 * localedata/bg_BG.UTF-8.in: Likewise.
14978 * localedata/br_FR.UTF-8.in: Likewise.
14979 * localedata/cmn_TW.UTF-8.in: Likewise.
14980 * localedata/crh_UA.UTF-8.in: Likewise.
14981 * localedata/csb_PL.UTF-8.in: Likewise.
14982 * localedata/cv_RU.UTF-8.in: Likewise.
14983 * localedata/cy_GB.UTF-8.in: Likewise.
14984 * localedata/dz_BT.UTF-8.in: Likewise.
14985 * localedata/eo.UTF-8.in: Likewise.
14986 * localedata/es_ES.UTF-8.in: Likewise.
14987 * localedata/fa_IR.UTF-8.in: Likewise.
14988 * localedata/fi_FI.UTF-8.in: Likewise.
14989 * localedata/fil_PH.UTF-8.in: Likewise.
14990 * localedata/fur_IT.UTF-8.in: Likewise.
14991 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14992 * localedata/ha_NG.UTF-8.in: Likewise.
14993 * localedata/ig_NG.UTF-8.in: Likewise.
14994 * localedata/ik_CA.UTF-8.in: Likewise.
14995 * localedata/kk_KZ.UTF-8.in: Likewise.
14996 * localedata/ku_TR.UTF-8.in: Likewise.
14997 * localedata/ky_KG.UTF-8.in: Likewise.
14998 * localedata/ln_CD.UTF-8.in: Likewise.
14999 * localedata/mi_NZ.UTF-8.in: Likewise.
15000 * localedata/ml_IN.UTF-8.in: Likewise.
15001 * localedata/mn_MN.UTF-8.in: Likewise.
15002 * localedata/mr_IN.UTF-8.in: Likewise.
15003 * localedata/mt_MT.UTF-8.in: Likewise.
15004 * localedata/nb_NO.UTF-8.in: Likewise.
15005 * localedata/om_KE.UTF-8.in: Likewise.
15006 * localedata/os_RU.UTF-8.in: Likewise.
15007 * localedata/ps_AF.UTF-8.in: Likewise.
15008 * localedata/ro_RO.UTF-8.in: Likewise.
15009 * localedata/ru_RU.UTF-8.in: Likewise.
15010 * localedata/sc_IT.UTF-8.in: Likewise.
15011 * localedata/se_NO.UTF-8.in: Likewise.
15012 * localedata/sq_AL.UTF-8.in: Likewise.
15013 * localedata/sv_SE.UTF-8.in: Likewise.
15014 * localedata/szl_PL.UTF-8.in: Likewise.
15015 * localedata/tg_TJ.UTF-8.in: Likewise.
15016 * localedata/tk_TM.UTF-8.in: Likewise.
15017 * localedata/tt_RU.UTF-8.in: Likewise.
15018 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15019 * localedata/ug_CN.UTF-8.in: Likewise.
15020 * localedata/uz_UZ.UTF-8.in: Likewise.
15021 * localedata/vi_VN.UTF-8.in: Likewise.
15022 * localedata/yi_US.UTF-8.in: Likewise.
15023 * localedata/yo_NG.UTF-8.in: Likewise.
15024 * localedata/zh_CN.UTF-8.in: Likewise.
15025 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15026 file and fix bugs in the collation.
15027 * localedata/locales/az_AZ: Likewise.
15028 * localedata/locales/be_BY: Likewise.
15029 * localedata/locales/ber_DZ: Likewise.
15030 * localedata/locales/ber_MA: Likewise.
15031 * localedata/locales/bg_BG: Likewise.
15032 * localedata/locales/br_FR: Likewise.
15033 * localedata/locales/br_FR@euro: Likewise.
15034 * localedata/locales/ca_ES: Likewise.
15035 * localedata/locales/cns11643_stroke: Likewise.
15036 * localedata/locales/crh_UA: Likewise.
15037 * localedata/locales/cs_CZ: Likewise.
15038 * localedata/locales/csb_PL: Likewise.
15039 * localedata/locales/cv_RU: Likewise.
15040 * localedata/locales/cy_GB: Likewise.
15041 * localedata/locales/da_DK: Likewise.
15042 * localedata/locales/dz_BT: Likewise.
15043 * localedata/locales/en_CA: Likewise.
15044 * localedata/locales/eo: Likewise.
15045 * localedata/locales/es_CU: Likewise.
15046 * localedata/locales/es_EC: Likewise.
15047 * localedata/locales/es_ES: Likewise.
15048 * localedata/locales/es_US: Likewise.
15049 * localedata/locales/et_EE: Likewise.
15050 * localedata/locales/fa_IR: Likewise.
15051 * localedata/locales/fi_FI: Likewise.
15052 * localedata/locales/fil_PH: Likewise.
15053 * localedata/locales/fur_IT: Likewise.
15054 * localedata/locales/gez_ER@abegede: Likewise.
15055 * localedata/locales/ha_NG: Likewise.
15056 * localedata/locales/hr_HR: Likewise.
15057 * localedata/locales/hsb_DE: Likewise.
15058 * localedata/locales/hu_HU: Likewise.
15059 * localedata/locales/ig_NG: Likewise.
15060 * localedata/locales/ik_CA: Likewise.
15061 * localedata/locales/is_IS: Likewise.
15062 * localedata/locales/iso14651_t1_pinyin: Likewise.
15063 * localedata/locales/kk_KZ: Likewise.
15064 * localedata/locales/ku_TR: Likewise.
15065 * localedata/locales/ky_KG: Likewise.
15066 * localedata/locales/ln_CD: Likewise.
15067 * localedata/locales/lt_LT: Likewise.
15068 * localedata/locales/lv_LV: Likewise.
15069 * localedata/locales/mi_NZ: Likewise.
15070 * localedata/locales/ml_IN: Likewise.
15071 * localedata/locales/mn_MN: Likewise.
15072 * localedata/locales/mr_IN: Likewise.
15073 * localedata/locales/mt_MT: Likewise.
15074 * localedata/locales/nb_NO: Likewise.
15075 * localedata/locales/om_KE: Likewise.
15076 * localedata/locales/os_RU: Likewise.
15077 * localedata/locales/pl_PL: Likewise.
15078 * localedata/locales/ps_AF: Likewise.
15079 * localedata/locales/ro_RO: Likewise.
15080 * localedata/locales/ru_RU: Likewise.
15081 * localedata/locales/ru_UA: Likewise.
15082 * localedata/locales/sc_IT: Likewise.
15083 * localedata/locales/se_NO: Likewise.
15084 * localedata/locales/si_LK: Likewise.
15085 * localedata/locales/sq_AL: Likewise.
15086 * localedata/locales/sv_FI: Likewise.
15087 * localedata/locales/sv_FI@euro: Likewise.
15088 * localedata/locales/sv_SE: Likewise.
15089 * localedata/locales/szl_PL: Likewise.
15090 * localedata/locales/tg_TJ: Likewise.
15091 * localedata/locales/ti_ER: Likewise.
15092 * localedata/locales/tk_TM: Likewise.
15093 * localedata/locales/tl_PH: Likewise.
15094 * localedata/locales/tr_TR: Likewise.
15095 * localedata/locales/tt_RU: Likewise.
15096 * localedata/locales/tt_RU@iqtelif: Likewise.
15097 * localedata/locales/ug_CN: Likewise.
15098 * localedata/locales/uk_UA: Likewise.
15099 * localedata/locales/uz_UZ: Likewise.
15100 * localedata/locales/uz_UZ@cyrillic: Likewise.
15101 * localedata/locales/vi_VN: Likewise.
15102 * localedata/locales/yi_US: Likewise.
15103 * localedata/locales/yo_NG: Likewise.
15104
15105 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15106
15107 * gen-locales.mk: Make test files which contain @ modifiers in their
15108 name work.
15109 * localedata/gen-locale.sh: Likewise.
15110
15111 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15112
15113 * posix/tst-fnmatch.input: Fix results for range expressions
15114 for non C locales.
15115 * posix/tst-regexloc.c: Do not use a range expression for
15116 de_DE.ISO-8859-1 locale.
15117
15118 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15119
15120 * posix/bug-regex5.c: Fix test case because with the new
15121 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15122 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15123 file.
15124
15125 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15126
15127 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15128 downloaded from ISO, the collation order of @-. and space has changed.
15129 Therefore, this test file needed to be adapted.
15130 * localedata/fr_CA.UTF-8.in: Likewise.
15131 * localedata/fr_FR.UTF-8.in: Likewise.
15132 * localedata/uk_UA.UTF-8.in: Likewise.
15133
15134 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15135
15136 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15137 order of ȥ in the new iso14651_t1_common file.
15138 * localedata/pl_PL.UTF-8.in: Likewise.
15139
15140 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15141
15142 * localedata/locales/iso14651_t1_common: Add sections for various
15143 scripts to the iso14651_t1_common file.
15144
15145 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15146
15147 * localedata/locales/iso14651_t1_common: Use the code point of a
15148 character in the fourth collation level instead of IGNORE for all
15149 entries which have IGNORE on all 4 levels.
15150
15151 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15152
15153 * localedata/locales/iso14651_t1_common: Add some convenient collation
15154 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15155 rules similar to those in CLDR.
15156
15157 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15158
15159 * localedata/locales/iso14651_t1_common: The new version of this
15160 file downloaded from ISO contained several syntax errors which
15161 are fixed by this patch.
15162
15163 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15164
15165 * localedata/locales/iso14651_t1_common: replace all <U.....>
15166 with <U000.....> because glibc understands only 4 digit or 8 digit
15167
15168 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15169
15170 * localedata/locales/iso14651_t1_common: Necessary changes
15171 to make the file downloaded from ISO usable by glibc.
15172
15173 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15174
15175 [BZ #14095]
15176 * localedata/locales/iso14651_t1_common: Update file to
15177 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15178
15179 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15180
15181 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15182 of <nptl/pthreadP.h>
15183 (thread_attr_compare): Move function to...
15184 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15185 * sysdeps/nptl/timer_routines.h: ... new header.
15186 * sysdeps/mach/hurd/gai_misc.h: New file.
15187
15188 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15189
15190 * string/strcoll_l.c: Include <libc-diag.h>.
15191 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15192 declarations of seq1 and seq2.
15193
15194 [BZ #15105]
15195 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15196 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15197
15198 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15199
15200 [BZ #22433]
15201 [BZ #22807]
15202 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15203 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15204 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15205 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15206 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15207 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15208
15209 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15210
15211 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15212 macros used in __ptrace_request.
15213
15214 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15215
15216 [BZ #22792]
15217 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15218 to $(CC).
15219 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15220 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15221 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15222 <tcb-offsets.h>.
15223
15224 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15225
15226 [BZ #15105]
15227 * ctype/ctype.c (tolower): Use libc_hidden_def.
15228 (toupper): Likewise.
15229 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15230 [!_ISOMAC] (toupper): Likewise.
15231
15232 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15233
15234 * localedata/Makefile: Remove --quiet argument when
15235 installing locales
15236
15237 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15238
15239 [BZ #17438]
15240 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15241 in d_fmt.
15242 * localedata/locales/pt_PT (LC_TIME): likewise
15243
15244 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15245
15246 [BZ #22646]
15247 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15248 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15249 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15250
15251 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15252
15253 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15254
15255 * nptl/Makefile (routines): Remove unregister-atfork.
15256 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15257 (fork_handler_alloc): Remove function.
15258 (fork_handlers, fork_handler_init): New variables.
15259 (__fork_lock): Rename to atfork_lock.
15260 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15261 to use a dynamic array to add/remove atfork handlers.
15262 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15263 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15264 Remove declaration.
15265 (fork_handler): Remove next, refcntr, and need_signal member.
15266 (__run_fork_handler_type): New enum.
15267 (__run_fork_handlers): New prototype.
15268 * nptl/register-atfork.c: Remove file.
15269 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15270
15271 * sysdeps/nptl/nptl-signals.h: Move to ...
15272 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15273 comments.
15274 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15275 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15276 unnecessary check for SIGTIMER.
15277 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15278 remove unnecessary removal of SIGTIMER.
15279 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15280 include-signals.h rename.
15281 * nptl/pthreadP.h: Likewise.
15282 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15283 __is_internal_signal instead of __nptl_is_internal_signal.
15284
15285 2018-02-22 Andrew Waterman <andrew@sifive.com>
15286
15287 [BZ # 22884]
15288 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15289 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15290 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15291 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15292
15293 2018-02-22 DJ Delorie <dj@delorie.com>
15294
15295 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15296
15297 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15298
15299 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15300 do_misaligned, not misaligned8.
15301
15302 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15303
15304 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15305 Add memcpy_thunderx2.
15306 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15307 Increment to 4.
15308 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15309 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15310 and IS_THUNDERX2PA checks.
15311 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15312 Use macro to set name appropriately.
15313 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15314 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15315 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15316 New macro.
15317 (IS_THUNDERX2): New macro.
15318
15319 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15320
15321 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15322
15323 2018-02-21 Zack Weinberg <zackw@panix.com>
15324
15325 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15326 Define here, unconditionally.
15327 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15328 * libio/libioP.h: Remove #if 0 blocks.
15329 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15330 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15331 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15332
15333 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15334 Assume weak_alias is always defined.
15335
15336 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15337 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15338 Remove #if 0 and #ifdef TODO blocks.
15339 Assume text_set_element is always defined.
15340
15341 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15342 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15343 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15344
15345 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15346 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15347 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15348 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15349 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15350 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15351 Reformat bit flags for _flags field to make occupancy clearer.
15352 Update commentary.
15353 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15354 Keep definitions consistent with those in libio/libio.h.
15355
15356 * libio/libio.h (_IO_file_flags): Remove macro.
15357 All uses changed to _flags.
15358
15359 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15360 (__HAVE_COLUMN, _IO_BE): Don't define.
15361 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15362 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15363 * libio/libioP.h (EOF): Don't define.
15364 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15365 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15366 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15367 testing _IO_UNIFIED_JUMPTABLES.
15368
15369 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15370 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15371 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15372 (_IO_size_t): Delete; all uses changed to size_t.
15373 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15374 (_IO_off_t): Delete; all uses changed to off_t.
15375 (_IO_off64_t): Delete; all uses changed to off64_t.
15376 (_IO_pid_t): Delete; all uses changed to pid_t.
15377 (_IO_uid_t): Delete; all uses changed to uid_t.
15378 (_IO_wint_t): Delete; all uses changed to wint_t.
15379 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15380 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15381 (_IO_cookie_io_functions_t): Delete; all uses changed to
15382 cookie_io_functions_t.
15383 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15384 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15385 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15386 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15387
15388 * libio/iofopncook.c: Remove unnecessary forward declarations.
15389 * libio/iolibio.h: Correct outdated commentary.
15390 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15391 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15392 Remove unnecessary casts.
15393 * stdio-common/getline.c: Use _IO_getdelim directly.
15394 Don't redefine ssize_t.
15395 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15396 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15397 Remove outdated comments.
15398 * stdio-common/vfscanf.c: Don't redefine va_list.
15399
15400 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15401 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15402 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15403 which are always true, and __cplusplus, which is always false.
15404
15405 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15406
15407 [BZ #15105]
15408 [BZ #19463]
15409 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15410 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15411 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15412 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15413 libc_hidden_proto.
15414 [!_ISOMAC] (putc_unlocked): Likewise.
15415 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15416 define inline if [__USE_EXTERN_INLINES].
15417 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15418 putc_unlocked.
15419
15420 [BZ #15105]
15421 [BZ #19463]
15422 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15423 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15424 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15425 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15426 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15427 getc_unlocked.
15428 * time/tzfile.c (__tzfile_read): Likewise.
15429
15430 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15431
15432 [BZ #22517]
15433 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15434
15435 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15436
15437 * io/fcntl.h: Fix a typo in a comment.
15438
15439 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15440
15441 [BZ #22862]
15442 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15443 define _DEFAULT_SOURCE.
15444 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15445
15446 2018-02-21 Florian Weimer <fweimer@redhat.com>
15447
15448 [BZ #20890]
15449 * elf/cache.c (save_cache): Call fsync on temporary file before
15450 renaming it.
15451 (save_aux_cache): Call fdatasync on temporary file before renaming
15452 it.
15453
15454 2018-02-21 Florian Weimer <fweimer@redhat.com>
15455
15456 [BZ #22787]
15457 * include/caller.h: Remove file.
15458 * elf/dl-caller.c: Likewise.
15459 * elf/Makefile (dl-routines): Remove dl-caller.
15460 (shared-only-routines): Do not add dl-caller.
15461 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15462 __check_caller.
15463 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15464 member.
15465 (dl_open_worker): Do not call __check_caller.
15466 (_dl_open): Do not set caller_dl_open member.
15467 * elf/rtld.c (_rtld_global_ro): Do not initialize
15468 _dl_check_caller member.
15469 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15470 _dl_check_caller member.
15471 (_dl_check_caller): Remove declaration.
15472 * sysdeps/unix/sysv/linux/dl-execstack.c
15473 (_dl_make_stack_executable): Do not call __check_caller.
15474
15475 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15476
15477 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15478 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15479
15480 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15481
15482 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15483 description.
15484
15485 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15486
15487 [BZ #16335]
15488 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15489 of 199606L, 200112L, and 200809L.
15490 (_XOPEN_SOURCE): Document special values of 600 and 700.
15491 (_ISOC11_SOURCE): Document macro.
15492 (_ATFILE_SOURCE): Likewise.
15493 (_FORTIFY_SOURCE): Likewise.
15494
15495 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15496
15497 [BZ #15105]
15498 [BZ #19463]
15499 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15500 and define as weak alias of __ferror_unlocked. Use
15501 libc_hidden_weak.
15502 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15503 libc_hidden_proto.
15504 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15505 function if [__USE_EXTERN_INLINES].
15506 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15507 ferror_unlocked.
15508
15509 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15510
15511 [BZ #6889]
15512 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15513
15514 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15515
15516 [BZ #22818]
15517 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15518 the GLIBC_2.1 version.
15519
15520 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15521
15522 [BZ #21508]
15523 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15524 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15525 intl/tst-gettext-de.po from po/de.po by removing the
15526 POT-Creation-Date line.
15527 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15528 ../po/de.po.
15529 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15530 ../po/de.po.
15531
15532 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15533
15534 * mach/Makefile (headers): Add mach/param.h.
15535 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15536 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15537 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15538 (__ptsname_r): Move implementation to...
15539 (__ptsname_internal): ... new function. Add filling the STP
15540 structure.
15541
15542 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15543
15544 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15545 idouble to 1 ULP.
15546
15547 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15548
15549 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15550 syntax.
15551
15552 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15553
15554 * nptl/Makefile (tst-mutex8-ENV): Delete.
15555 * nptl/tst-mutex8.c (check_type):
15556 Add runtime check if mutex will be elided.
15557
15558 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15559
15560 [BZ #20980]
15561 [BZ #21234]
15562 * manual/install.texi (Configuring and compiling): Describe
15563 passing CC and CFLAGS on configure command line, not as
15564 environment variables. Use @code markup on those variables.
15565 Specify what options go in CC and what go in CFLAGS. Note the
15566 requirement to compile with optimization.
15567 * INSTALL: Regenerated.
15568
15569 [BZ #18124]
15570 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15571 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15572 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15573 __sigprocmask instead of sigprocmask.
15574 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15575 Likewise.
15576 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15577 __sigsetjmp and sigprocmask.
15578
15579 [BZ #15105]
15580 * include/argz.h (argz_next): Use libc_hidden_proto.
15581 (__argz_next): Likewise.
15582 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15583 (argz_next): Use libc_hidden_weak.
15584
15585 [BZ #15105]
15586 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15587 libc_hidden_proto.
15588 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15589 libc_hidden_def.
15590
15591 [BZ #15105]
15592 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15593 libc_hidden_proto.
15594 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15595
15596 [BZ #15105]
15597 [BZ #19463]
15598 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15599 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15600 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15601 (__feof_unlocked): New declaration, and inline function if
15602 [__USE_EXTERN_INLINES].
15603 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15604 instead of feof_unlocked.
15605 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15606 * nss/nsswitch.c (nss_parse_file): Likewise.
15607 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15608 Likewise.
15609 * time/getdate.c (__getdate_r): Likewise.
15610 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15611 Define as macro to call __feof_unlocked.
15612
15613 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15614
15615 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15616
15617 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15618
15619 * math/Makefile: Remove mpexp.c and mplog.c
15620 * sysdeps/i386/fpu/mpexp.c: Delete file.
15621 * sysdeps/i386/fpu/mplog.c: Likewise.
15622 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15623 * sysdeps/ia64/fpu/mplog.c: Likewise.
15624 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15625 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15626 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15627 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15628 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15629 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15630 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15631 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15632 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15633 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15634 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15635 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15636 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15637 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15638 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15639 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15640
15641 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15642
15643 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15644
15645 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15646
15647 * sysdeps/sh/libm-test-ulps: Update.
15648
15649 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15650
15651 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15652 idouble to 1 ULP.
15653
15654 2018-02-12 Zack Weinberg <zackw@panix.com>
15655
15656 [BZ #19239]
15657 * posix/sys/types.h: Don't include sys/sysmacros.h.
15658 * misc/sys/sysmacros.h: Remove the conditional deprecation
15659 warnings for the macros defined by this header.
15660
15661 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15662
15663 * manual/probes.texi: Remove slowexp probes.
15664 * math/Makefile: Remove slowexp.
15665 * sysdeps/generic/math_private.h (__slowexp): Remove.
15666 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15667 document error bounds.
15668 * sysdeps/i386/fpu/slowexp.c: Remove.
15669 * sysdeps/ia64/fpu/slowexp.c: Remove.
15670 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15671 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15672 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15673 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15674 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15675 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15676 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15677 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15678 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15679 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15680 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15681
15682 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15683
15684 [BZ #13932]
15685 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15686 * benchtests/pow-inputs: Update comment for slow path cases.
15687 * manual/probes.texi (slowpow_p10): Delete removed probe.
15688 (slowpow_p10): Likewise.
15689 * math/Makefile: Remove halfulp.c and slowpow.c.
15690 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15691 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15692 (__halfulp): Remove.
15693 (__slowpow): Remove.
15694 * sysdeps/i386/fpu/halfulp.c: Delete file.
15695 * sysdeps/i386/fpu/slowpow.c: Likewise.
15696 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15697 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15698 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15699 improve comments and add error analysis.
15700 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15701 (power1): Remove function:
15702 (log1): Remove error argument, add error analysis.
15703 (my_log2): Remove function.
15704 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15705 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15706 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15707 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15708 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15709 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15710 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15711 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15712 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15713 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15714 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15715 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15716 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15717 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15718
15719 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15720
15721 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15722 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15723
15724 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15725
15726 [BZ #22433]
15727 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15728 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15729 and PTRACE_SETHBPREGS.
15730
15731 2018-02-10 Zack Weinberg <zackw@panix.com>
15732
15733 [BZ #22830]
15734 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15735 correctly.
15736 * malloc/tst-malloc-stats-cancellation.c: New test case.
15737 * malloc/Makefile: Add new test case.
15738
15739 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15740
15741 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15742
15743 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15744
15745 * math/Makefile (libm-narrow-fns): Add add.
15746 (libm-test-funcs-narrow): Likewise.
15747 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15748 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15749 * math/gen-auto-libm-tests.c (test_functions): Add add.
15750 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15751 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15752 (NARROW_ADD_TRIVIAL): Likewise.
15753 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15754 macro.
15755 (__daddl): Likewise.
15756 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15757 dadd.
15758 (CFLAGS-nldbl-dadd.c): New variable.
15759 (CFLAGS-nldbl-fadd.c): Likewise.
15760 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15761 __nldbl_daddl.
15762 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15763 prototype.
15764 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15765 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15766 * math/auto-libm-test-in: Add tests of add.
15767 * math/auto-libm-test-out-narrow-add: New generated file.
15768 * math/libm-test-narrow-add.inc: New file.
15769 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15770 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15771 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15772 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15773 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15774 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15775 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15776 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15777 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15778 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15779 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15780 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15781 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15782 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15783 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15784 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15785 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15786 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15787 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15788 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15789 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15790 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15791 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15792 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15793 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15794 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15795 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15796 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15797 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15798 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15799 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15800 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15805 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15806 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15807 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15808 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15809 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15810 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15811 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15812 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15813 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15814 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15815
15816 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15817 (f128-pairs): New variable.
15818 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15819 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15820 to CFLAGS.
15821 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15822 Also make tests add $(f128-loader-link) to gnulib-tests.
15823
15824 2018-02-09 DJ Delorie <dj@redhat.com>
15825
15826 [BZ #22827]
15827 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15828 64-bit ELF type for 64-bit ELF objects.
15829
15830 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15831
15832 * math/libm-test-driver.c (snan_tests_arg): New variable.
15833 * math/libm-test-support.h (snan_tests_arg): New declaration.
15834 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15835
15836 * math/Makefile (test-type-pairs): New variable.
15837 (test-type-pairs-f64xf128-yes): Likewise.
15838 (tests): Add test-narrow-macros.
15839 (libm-test-funcs-narrow): New variable.
15840 (libm-test-c-narrow): Likewise.
15841 (generated): Add $(libm-test-c-narrow).
15842 (libm-tests-base-narrow): New variable.
15843 (libm-tests-narrow): Likewise.
15844 (libm-tests): Add $(libm-tests-narrow).
15845 (libm-tests-for-type): Handle $(libm-tests-narrow).
15846 (libm-test-c-narrow-obj): New variable.
15847 ($(libm-test-c-narrow-obj)): New rule.
15848 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15849 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15850 $(o-iterator) to set dependencies and CFLAGS.
15851 * math/gen-auto-libm-tests.c: Document use for narrowing
15852 functions.
15853 (output_for_one_input_case): Take argument NARROW.
15854 (generate_output): Likewise. Update call to
15855 output_for_one_input_case.
15856 (main): Take --narrow option. Update call to generate_output.
15857 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15858 (apply_lit): Update call to _apply_lit.
15859 (apply_arglit): New function.
15860 (parse_args): Handle "a" arguments.
15861 (parse_auto_input): Handle format names using ":".
15862 * math/README.libm-test: Document "a" parameter type.
15863 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15864 (ARG_TYPE_TRUE_MIN): Likewise.
15865 (ARG_TYPE_MAX): Likwise.
15866 (ARG_MIN_EXP): Likewise.
15867 (ARG_MAX_EXP): Likewise.
15868 (ARG_MANT_DIG): Likewise.
15869 (TEST_COND_arg_ibm128): Likewise.
15870 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15871 (TEST_COND_arg_fmt): New macro.
15872 (init_max_error): Update prototype.
15873 * math/libm-test-support.c (test_ibm128): New variable.
15874 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15875 instead of using [TEST_COND_ibm128] conditional.
15876 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15877 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15878 [TEST_NARROW] (TEST_MSG): New definition.
15879 (arg_plus_zero): New macro.
15880 (arg_minus_zero): Likewise.
15881 (arg_plus_infty): Likewise.
15882 (arg_minus_infty): Likewise.
15883 (arg_qnan_value_pl): Likewise.
15884 (arg_qnan_value): Likewise.
15885 (arg_snan_value_pl): Likewise.
15886 (arg_snan_value): Likewise.
15887 (arg_max_value): Likewise.
15888 (arg_min_value): Likewise.
15889 (arg_min_subnorm_value): Likewise.
15890 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15891 (RUN_TEST_LOOP_aa_f): New macro.
15892 (TEST_SUFF): New macro.
15893 (TEST_SUFF_STR): Likewise.
15894 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15895 (TEST_COND_any_ibm128): New macro.
15896 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15897 this_func. Update call to init_max_error.
15898 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15899 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15900 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15901 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15902 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15903 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15904 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15905 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15906 * math/test-math-vector.h (TEST_NARROW): Likewise.
15907 * math/test-arg-double.h: New file.
15908 * math/test-arg-float128.h: Likewise.
15909 * math/test-arg-float32x.h: Likewise.
15910 * math/test-arg-float64.h: Likewise.
15911 * math/test-arg-float64x.h: Likewise.
15912 * math/test-arg-ldouble.h: Likewise.
15913 * math/test-math-narrow.h: Likewise.
15914 * math/test-narrow-macros.c: Likewise.
15915 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15916 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15917 test-narrow-macros-ldbl-64.
15918 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15919
15920 * math/bits/mathcalls-narrow.h: New file.
15921 * include/bits/mathcalls-narrow.h: Likewise.
15922 * math/math-narrow.h: Likewise.
15923 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15924 (__MATHCALL_NARROW_ARGS_2): Likewise.
15925 (__MATHCALL_NARROW_ARGS_3): Likewise.
15926 (__MATHCALL_NARROW_NORMAL): Likewise.
15927 (__MATHCALL_NARROW_REDIR): Likewise.
15928 (__MATHCALL_NARROW): Likewise.
15929 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15930 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15931 defined.
15932 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15933 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15934 (libm-narrow-fns): New variable.
15935 (libm-narrow-types-basic): Likewise.
15936 (libm-narrow-types-ldouble-yes): Likewise.
15937 (libm-narrow-types-float128-yes): Likewise.
15938 (libm-narrow-types-float128-alias-yes): Likewise.
15939 (libm-narrow-types): Likewise.
15940 (libm-routines): Add narrowing functions.
15941 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15942 (libc_feholdexcept_setroundf128): New macro.
15943 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15944 * sysdeps/ieee754/float128/float128_private.h: Include
15945 <math/math-narrow.h>.
15946 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15947 Undefine and redefine.
15948 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15949 (libm_alias_float_ldouble): Undefine and redefine.
15950 (libm_alias_double_ldouble): Likewise.
15951
15952 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15953
15954 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15955
15956 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15957 FPCR/FPSR.
15958
15959 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15960
15961 * manual/creature.texi: Convert references to gcc.info to gcc.
15962 * manual/stdio.texi: Likewise.
15963 * manual/string.texi: Likewise.
15964
15965 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15966
15967 [BZ #17979]
15968 * posix/bits/types.h (__int_least8_t): New typedef.
15969 (__uint_least8_t): Likewise.
15970 (__int_least16_t): Likewise.
15971 (__uint_least16_t): Likewise.
15972 (__int_least32_t): Likewise.
15973 (__uint_least32_t): Likewise.
15974 (__int_least64_t): Likewise.
15975 (__uint_least64_t): Likewise.
15976 * sysdeps/generic/stdint.h (int_least8_t): Define using
15977 __int_least8_t.
15978 (int_least16_t): Define using __int_least16_t.
15979 (int_least32_t): Define using __int_least32_t.
15980 (int_least64_t): Define using __int_least64_t.
15981 (uint_least8_t): Define using __uint_least8_t.
15982 (uint_least16_t): Define using __uint_least16_t.
15983 (uint_least32_t): Define using __uint_least32_t.
15984 (uint_least64_t): Define using __uint_least64_t.
15985 * wcsmbs/uchar.h: Include <bits/types.h>.
15986 (char16_t): Define using __uint_least16_t conditional only on
15987 [!__USE_ISOCXX11].
15988 (char32_t): Define using __uint_least32_t conditional only on
15989 [!__USE_ISOCXX11].
15990 * wcsmbs/test-char-types.c: New file.
15991 * wcsmbs/Makefile (tests): Add test-char-types.
15992
15993 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15994 version to 4.0.1.
15995
15996 2018-02-07 Zack Weinberg <zackw@panix.com>
15997
15998 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15999 Delete all contents except for definitions of _G_HAVE_MMAP and
16000 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16001 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16002 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16003 change as above.
16004
16005 * libio/libio.h: Don't include bits/_G_config.h here.
16006 Include stddef.h with __need_wchar_t defined. Include
16007 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16008 Define _IO_iconv_t here, directly.
16009 Don't define _IO_HAVE_ST_BLKSIZE.
16010 * libio/libioP.h: Include _G_config.h here. Move include of
16011 shlib-compat.h up with rest of includes. Simplify conditionals
16012 controlling definition of _IO_JUMPS_OFFSET.
16013
16014 * csu/init.c: Remove always-true #if around entire file.
16015 Don't include stdio.h. Set _IO_stdin_used to hardwired
16016 constant 0x20001, and update commentary.
16017 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16018 Replace all uses of _G_va_list with __gnuc_va_list.
16019 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16020 instead of #if _IO_HAVE_ST_BLKSIZE.
16021 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16022 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16023 not #ifdef.
16024
16025 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16026 multiple-include guard to match.
16027 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16028 into this file.
16029 Remove preprocessor conditionals that are always true and/or
16030 redundant to other preprocessor conditionals in the same nest.
16031 Include shlib-compat.h unconditionally.
16032 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16033 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16034 defined after including stdio.h.
16035 Use __BEGIN_DECLS/__END_DECLS.
16036
16037 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16038 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16039 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16040
16041 2018-02-07 Zack Weinberg <zackw@panix.com>
16042
16043 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16044 New single-type headers split from _G_config.h.
16045 * libio/bits/types/cookie_io_functions_t.h
16046 * libio/bits/types/struct_FILE.h
16047 New single-type headers split from libio.h.
16048
16049 * libio/Makefile: Install the above new headers. Don't install
16050 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16051 bits/libio-ldbl.h.
16052 * libio/_G_config.h, libio/libio.h: Delete file.
16053
16054 * libio/bits/libio.h: Remove improper-inclusion guard.
16055 Include stdio.h and don't repeat anything that it does.
16056 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16057 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16058 __io_read_fn as cookie_read_function_t,
16059 __io_write_fn as cookie_write_function_t,
16060 __io_seek_fn as cookie_seek_function_t,
16061 __io_close_fn as cookie_close_function_t,
16062 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16063 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16064 here, in the "compatibility defines" section. Remove an #if 0
16065 block. Use the "body" macros from bits/types/struct_FILE.h to
16066 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16067 and _IO_ferror_unlocked.
16068 Move prototypes of __uflow and __overflow...
16069
16070 * libio/stdio.h: ...here. Don't include bits/libio.h.
16071 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16072 directly from stdarg.h. Include bits/types/__fpos_t.h,
16073 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16074 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16075 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16076 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16077 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16078 __ssize_t, not _IO_ssize_t. Unconditionally define
16079 BUFSIZ as 8192 and EOF as (-1).
16080
16081 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16082 macros from bits/types/struct_FILE.h instead of _IO_* macros
16083 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16084 instead of _IO_ssize_t.
16085 * libio/bits/stdio2.h: Similarly.
16086
16087 * libio/iolibio.h: Add multiple-include guard.
16088 Include bits/libio.h after stdio.h.
16089 * libio/libioP.h: Add multiple-include guard.
16090 Include stdio.h and bits/libio.h before iolibio.h.
16091
16092 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16093 * include/bits/types/cookie_io_functions_t.h
16094 * include/bits/types/struct_FILE.h: New wrappers.
16095
16096 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16097 Get definitions of _G_fpos_t and _G_fpos64_t from
16098 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16099 respectively. Remove improper-inclusion guards.
16100
16101 * conform/data/stdio.h-data: Update expectations of va_list.
16102 * scripts/check-installed-headers.sh: Remove special case for
16103 libio.h and _G_config.h.
16104
16105 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16106
16107 [BZ #15105]
16108 [BZ #19463]
16109 * include/sys/sysmacros.h [!_ISOMAC]
16110 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16111 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16112 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16113 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16114 libc_hidden_proto.
16115 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16116 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16117 Likewise.
16118 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16119 Undefine and redefine to add use __gnu_dev_ prefix.
16120 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16121 Likewise.
16122 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16123 and define as hidden inline function.
16124 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16125 Likewise.
16126 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16127 Likewise.
16128 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16129 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16130 (gnu_dev_minor): Likewise.
16131 (gnu_dev_makedev): Likewise.
16132 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16133 makedev.
16134 * posix/wordexp.c (exec_comm_child): Likewise.
16135 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16136 instead of minor and __gnu_dev_major instead of major.
16137 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16138 __gnu_dev_major instead of major.
16139 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16140 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16141 instead of gnu_dev_minor.
16142 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16143 (SLAVE_P): Likewise.
16144 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16145 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16146 instead of major.
16147
16148 [BZ #21313]
16149 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16150 in another place.
16151 * locale/weightwc.h (findidx): Likewise.
16152
16153 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16154
16155 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16156 (slowlog_inexact): Likewise
16157 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16158 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16159
16160 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16161
16162 [BZ #22797]
16163 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16164 missing second underscore to parameter name.
16165
16166 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16167
16168 [BZ #14508]
16169 [BZ #15512]
16170 [BZ #17082]
16171 [BZ #20530]
16172 * bits/byteswap.h: Update file comment. Do not include
16173 <bits/byteswap-16.h>.
16174 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16175 constant.
16176 (__bswap_16): Define as inline function.
16177 (__bswap_constant_32): Reformat definition.
16178 (__bswap_32): Always define as inline function, not macro, using
16179 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16180 otherwise __bswap_constant_32.
16181 (__bswap_constant_64): Reformat definition. Do not use
16182 __extension__ here.
16183 (__bswap_64): Always define as inline function, not macro. Use
16184 __extension__ on function definition. Use __builtin_bswap64 if
16185 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16186 * string/test-endian-file-scope.c: New file.
16187 * string/test-endian-sign-conversion.c: Likewise.
16188 * string/Makefile (headers): Remove bits/byteswap-16.h.
16189 (tests): Add test-endian-file-scope and
16190 test-endian-sign-conversion.
16191 (CFLAGS-test-endian-sign-conversion.c): New variable.
16192 * bits/byteswap-16.h: Remove file.
16193 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16194 * sysdeps/ia64/bits/byteswap.h: Likewise.
16195 * sysdeps/m68k/bits/byteswap.h: Likewise.
16196 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16197 * sysdeps/s390/bits/byteswap.h: Likewise.
16198 * sysdeps/tile/bits/byteswap.h: Likewise.
16199 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16200 * sysdeps/x86/bits/byteswap.h: Likewise.
16201
16202 [BZ #17721]
16203 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16204 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16205 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16206 199901L] (__restrict): Define to restrict.
16207
16208 [BZ #19667]
16209 * string/testcopy.c: Include <support/support.h>. Do not include
16210 <malloc.h>. Use <support/test-driver.c>.
16211 (main): Rename to do_test. Make static. Use xmalloc instead of
16212 malloc.
16213
16214 [BZ #13575]
16215 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16216 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16217 (SSIZE_MAX): Define to INT_MAX.
16218 * posix/test-ssize-max.c: New file.
16219 * posix/Makefile (tests): Add test-ssize-max.
16220
16221 [BZ #19668]
16222 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16223 <support/support.h>. Do not include <malloc.h>.
16224 (query_auxv): Use xmalloc instead of malloc.
16225
16226 [BZ #14553]
16227 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16228 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16229 instead of loff_t.
16230
16231 2018-02-06 Florian Weimer <fweimer@redhat.com>
16232
16233 [BZ #18023]
16234 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16235 Use scratch_buffer instead of extend_alloca.
16236
16237 2018-02-06 Zack Weinberg <zackw@panix.com>
16238
16239 * libio/stdio.h: Don't define getc or putc as macros.
16240 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16241 not _IO_getc and _IO_putc.
16242
16243 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16244 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16245
16246 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16247
16248 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16249 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16250
16251 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16252
16253 [BZ #14890]
16254 * elf/elf.h (NT_PRFPREG): New macro.
16255 (NT_S390_VXRS_LOW): Likewise.
16256 (NT_S390_VXRS_HIGH): Likewise.
16257 (NT_S390_GS_CB): Likewise.
16258 (NT_S390_GS_BC): Likewise.
16259 (NT_S390_RI_CB): Likewise.
16260
16261 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16262 (MAP_SYNC): New macro.
16263 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16264 Likewise.
16265 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16266 (MAP_SYNC): Likewise.
16267 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16268 (MAP_SYNC): Likewise.
16269 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16270 (MAP_SYNC): Likewise.
16271 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16272 (MAP_SYNC): Likewise.
16273 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16274 (MAP_SYNC): Likewise.
16275 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16276 (MAP_SYNC): Likewise.
16277 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16278 Likewise.
16279 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16280 Likewise.
16281
16282 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16283 (MAP_SHARED_VALIDATE): New macro.
16284 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16285 (MAP_SHARED_VALIDATE): Likewise.
16286
16287 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16288
16289 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16290 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16291 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16292
16293 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16294
16295 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16296 (DT_NUM): Updated to 35.
16297
16298 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16299
16300 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16301 __builtin_expect with __glibc_likely and __glibc_unlikely.
16302 (elf_machine_rela): Likewise.
16303 (elf_machine_lazy_rel): Likewise.
16304
16305 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16306
16307 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16308 __builtin_expect with __glibc_likely and __glibc_unlikely.
16309 (elf_machine_lazy_rel): Likewise.
16310
16311 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16312
16313 [BZ #22638]
16314 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16315 SHARED.
16316 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16317
16318 2018-02-05 Andreas Schwab <schwab@suse.de>
16319
16320 [BZ #22761]
16321 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16322 string.
16323
16324 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16325
16326 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16327 not check against PTHREAD_STACK_MIN.
16328
16329 2018-02-02 Sean McKean <smckean83@gmail.com>
16330
16331 [BZ #22735]
16332 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16333
16334 2018-02-02 Florian Weimer <fweimer@redhat.com>
16335
16336 [BZ #22753]
16337 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16338 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16339 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16340 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16341 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16342 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16343 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16344 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16345 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16346 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16347 * misc/tst-preadvwritev2.c (do_test): Call it.
16348 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16349
16350 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16351
16352 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16353
16354 * benchtests/bench-memcmp.c: Print json instead of plain text.
16355
16356 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16357 every test run.
16358
16359 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16360
16361 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16362 version to 4.15.
16363 (s390_sthyi): New syscall.
16364
16365 * sysdeps/generic/ldbl-classify-compat.h: New file.
16366 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16367 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16368 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16369 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16370 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16371 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16372 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16373 <ldbl-classify-compat.h>.
16374 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16375 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16376 <ldbl-classify-compat.h>.
16377 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16378 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16379 <ldbl-classify-compat.h>.
16380 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16381 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16382 <ldbl-classify-compat.h>.
16383 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16384 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16385 <ldbl-classify-compat.h>.
16386 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16387 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16388 <ldbl-classify-compat.h>.
16389 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16390 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16391 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16392 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16393 * sysdeps/microblaze/math_private.h: Likewise.
16394 * sysdeps/nios2/math_private.h: Likewise.
16395 * sysdeps/sh/math_private.h: Likewise.
16396
16397 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16398 * sysdeps/m68k/coldfire/math_private.h: ... here.
16399 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16400 * sysdeps/tile/math_private.h: Likewise.
16401 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16402 Remove macro.
16403 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16404 Likewise.
16405
16406 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16407 Remove macro.
16408 (libc_fetestexcept): Likewise.
16409 (libc_feupdateenv_test): Likewise.
16410 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16411 (libc_fetestexcept): Likewise.
16412 (libc_feupdateenv_test): Likewise.
16413 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16414 (libc_fetestexcept): Likewise.
16415 (libc_feupdateenv_test): Likewise.
16416 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16417 (libc_fetestexcept): Likewise.
16418 (libc_feupdateenv_test): Likewise.
16419
16420 * sysdeps/generic/math_private.h
16421 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16422 New inline function.
16423 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16424 Likewise.
16425
16426 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16427 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16428 * sysdeps/generic/math_private.h
16429 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16430 inline function.
16431 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16432 Likewise.
16433 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16434 Likewise.
16435 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16436 Likewise.
16437 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16438 Likewise.
16439 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16440 Likewise.
16441 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16442 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16443 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16444 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16445 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16446 (__fegetenv): Likewise.
16447 (fesetenv): Likewise.
16448 (__fesetenv): Likewise.
16449 (feupdateenv): Likewise.
16450 (__feupdateenv): Likewise.
16451 (fegetround): Likewise.
16452 (__fegetround): Likewise.
16453 (fesetround): Likewise.
16454 (__fesetround): Likewise.
16455
16456 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16457 (feraiseexcept): New macro.
16458 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16459 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16460 Remove macro.
16461 (__feraiseexcept): Likewise.
16462 (feclearexcept): Likewise.
16463 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16464 (__feraiseexcept): Likewise.
16465 (feclearexcept): Likewise.
16466 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16467 (__feraiseexcept): Likewise.
16468 (feclearexcept): Likewise.
16469 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16470 (__feraiseexcept): Likewise.
16471 (feclearexcept): Likewise.
16472 (fetestexcept): Likewise.
16473
16474 * sysdeps/m68k/coldfire/math-tests.h: New file.
16475
16476 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16477 * sysdeps/m68k/bits/fenv.h: ... here.
16478 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16479 not define.
16480 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16481 Likewise.
16482 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16483 Likewise.
16484 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16485 Likewise.
16486 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16487 Likewise.
16488 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16489 Define to 0.
16490 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16491 (__FE_UNDEFINED): New enum constant.
16492 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16493 Do not define.
16494 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16495 Likewise.
16496 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16497 Likewise.
16498 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16499 to match generic bits/fenv.h.
16500 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16501 Do not define.
16502
16503 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16504 packed on bits.
16505 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16506 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16507 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16508 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16509
16510 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16511 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16512 Joseph Myers <joseph@codesourcery.com>
16513
16514 [BZ #21314]
16515 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16516 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16517 computation using c.
16518 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16519 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16520 computation using c.
16521
16522 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16523
16524 * version.h (RELEASE): Set to "development".
16525 (VERSION): Set to "2.27.9000".
16526 * NEWS (2.28): New section.
16527
16528 * version.h (RELEASE): Set to "stable".
16529 (VERSION): Set to "2.27".
16530 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16531
16532 * NEWS: Add the list of bugs fixed in 2.27.
16533
16534 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16535
16536 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16537 against PTHREAD_STACK_MIN.
16538
16539 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16540
16541 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16542 New entries.
16543 (Rafal Luzynski, Andreas Schwab): Update.
16544
16545 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16546
16547 [BZ #10871]
16548 * NEWS: List the languages which actually use the alternative
16549 months feature in this release. Also explain that "alt_mon" and
16550 "ab_alt_mon" are optional.
16551
16552 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16553
16554 [BZ #22765]
16555 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16556
16557 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16558
16559 * manual/install.texi (Tools for Compilation): Update the newest
16560 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16561 * INSTALL: Regenerated.
16562
16563 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16564
16565 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16566 instead of __builtin_expect.
16567
16568 2018-01-30 Florian Weimer <fweimer@redhat.com>
16569
16570 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16571 data.
16572 * nss/tst-nss-getpwent.c (do_test): Likewise.
16573
16574 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16575
16576 [BZ #10871]
16577 * localedata/locales/hr_HR (mon): Rename to...
16578 (alt_mon): This.
16579 (mon): Import from CLDR (genitive case).
16580 (d_t_fmt): Update the comment.
16581
16582 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16583
16584 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16585 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16586 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16587
16588 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16589
16590 * mach/Versions: Fix version when __mach_host_self_ was added.
16591 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16592 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16593 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16594 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16595 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16596 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16597 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16598 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16599 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16600 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16601 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16602 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16603 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16604 || to respect codestyle.
16605 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16606 (do_test_bz20181): Rename accordingly.
16607 * malloc/malloc.c: Include <assert.h>.
16608 (assert): Do not define.
16609 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16610 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16611 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16612 * sysdeps/mach/hurd/hp-timing.h: New file.
16613 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16614
16615 2018-01-29 Darius Rad <darius@bluespec.com>
16616
16617 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16618
16619 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16620
16621 * sysdeps/init_array/crti.S (.section .init_array): Add
16622 PREINIT_FUNCTION when defined.
16623 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16624 * config.h.in: Regenerate.
16625 * manual/platform.texi: Add RISC-V documenation for
16626 __riscv_flush_icache.
16627 * sysdeps/riscv/__longjmp.S: New file.
16628 * sysdeps/riscv/backtrace.c: Likewise.
16629 * sysdeps/riscv/bits/endian.h: Likewise.
16630 * sysdeps/riscv/bits/setjmp.h: Likewise.
16631 * sysdeps/riscv/bits/wordsize.h: Likewise.
16632 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16633 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16634 * sysdeps/riscv/dl-trampoline.S: Likewise.
16635 * sysdeps/riscv/gccframe.h: Likewise.
16636 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16637 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16638 * sysdeps/riscv/machine-gmon.h: Likewise.
16639 * sysdeps/riscv/memusage.h: Likewise.
16640 * sysdeps/riscv/setjmp.S: Likewise.
16641 * sysdeps/riscv/sys/asm.h: Likewise.
16642 * sysdeps/riscv/tls-macros.h: Likewise.
16643 * sysdeps/riscv/dl-tls.h: New file.
16644 * sysdeps/riscv/libc-tls.c: Likewise.
16645 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16646 * sysdeps/riscv/nptl/tls.h: Likewise.
16647 * sysdeps/riscv/stackinfo.h: Likewise.
16648 * sysdeps/riscv/bits/fenv.h: New file.
16649 * sysdeps/riscv/e_sqrtl.c: Likewise.
16650 * sysdeps/riscv/fpu_control.h: Likewise.
16651 * sysdeps/riscv/math-tests.h: Likewise.
16652 * sysdeps/riscv/nofpu/Implies: Likewise.
16653 * sysdeps/riscv/sfp-machine.h: Likewise.
16654 * sysdeps/riscv/tininess.h: Likewise.
16655 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16656 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16657 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16658 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16659 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16660 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16661 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16662 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16663 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16664 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16665 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16666 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16667 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16668 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16669 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16670 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16671 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16672 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16673 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16674 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16675 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16676 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16677 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16678 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16679 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16680 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16681 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16682 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16683 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16684 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16685 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16686 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16687 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16688 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16689 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16690 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16691 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16692 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16693 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16694 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16695 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16696 * sysdeps/riscv/rvf/math_private.h: Likewise.
16697 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16698 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16699 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16700 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16701 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16702 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16703 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16704 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16705 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16706 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16707 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16708 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16709 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16710 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16711 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16712 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16713 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16714 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16715 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16716 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16717 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16718 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16719 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16720 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16721 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16722 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16723 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16724 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16725 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16726 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16727 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16728 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16729 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16730 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16731 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16732 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16733 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16734 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16735 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16736 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16737 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16738 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16739 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16740 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16741 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16742 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16743 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16744 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16745 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16746 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16747 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16748 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16749 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16750 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16751 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16752 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16753 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16754 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16755 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16756 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16757 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16758 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16759 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16760 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16761 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16762 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16763 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16764 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16765 * sysdeps/riscv/Implies: New file.
16766 * sysdeps/riscv/Makefile: Likewise.
16767 * sysdeps/riscv/configure: Likewise.
16768 * sysdeps/riscv/configure.ac: Likewise.
16769 * sysdeps/riscv/nptl/Makefile: Likewise.
16770 * sysdeps/riscv/preconfigure: Likewise.
16771 * sysdeps/riscv/rv64/Implies-after: Likewise.
16772 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16773 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16774 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16775 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16776 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16777 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16778 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16779 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16780 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16781 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16782 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16783 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16784 (Config): Likewise.
16785
16786 2018-01-29 Florian Weimer <fweimer@redhat.com>
16787
16788 [BZ #22701]
16789 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16790 libnsl_hidden_proto.
16791 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16792 libnsl_hidden_proto.
16793 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16794 * nis/Makefile (libnsl-routines): Add nss-default only for
16795 build-obsolete-nsl.
16796 * nis/nis_defaults.c (__nis_default_ttl): Add
16797 libnsl_hidden_nolink_def.
16798 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16799 declaration.
16800 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16801 * nis/ypclnt.c (yp_maplist): Likewise.
16802
16803 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16804
16805 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16806 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16807
16808 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16809
16810 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16811 clean -dxfq for git updates when replacing sources.
16812
16813 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16814 --disable-libcilkrts unconditionally, not just for the final GCC
16815 build for Hurd.
16816
16817 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16818 version to 4.15.
16819
16820 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16821
16822 [BZ #10871]
16823 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16824 case).
16825
16826 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16827
16828 [BZ #10871]
16829 * localedata/locales/be_BY (mon): Rename to...
16830 (alt_mon): This, then synchronize with CLDR (nominative case).
16831 (abmon): Rename to...
16832 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16833 (mon): Import from CLDR (genitive case).
16834 (abmon): Likewise.
16835 * localedata/locales/be_BY@latin (mon): Rename to...
16836 (alt_mon): This.
16837 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16838
16839 * localedata/locales/be_BY@latin (lang_name): Reworded to
16840 "biełaruskaja mova".
16841
16842 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16843
16844 [BZ #10871]
16845 * localedata/locales/el_CY (mon): Renamed to...
16846 (alt_mon): This.
16847 (mon): Import from CLDR (genitive case).
16848 * localedata/locales/el_GR: Likewise.
16849
16850 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16851
16852 [BZ #10871]
16853 * localedata/locales/ru_RU (mon): Rename to...
16854 (alt_mon): This.
16855 (abmon): Rename to...
16856 (ab_alt_mon): This.
16857 (mon): Import from CLDR (genitive case).
16858 (abmon): Copy from the old content except the 5th month which is
16859 now in the genitive case, even when abbreviated.
16860 * localedata/locales/ru_UA: Likewise.
16861 * time/tst-strptime.c (day_tests): Add an actual example of
16862 a difference between %b and %Ob in Russian.
16863
16864 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16865
16866 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16867 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16868 a `c' variable.
16869 * resolv/res-close.c: Include <stdlib.h>.
16870 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16871 <sys/wait.h>, <time.h>, <sys/uio.h>.
16872 (NOT_CANCEL_H): Add inclusion guard.
16873 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16874 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16875 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16876 return 0.
16877 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16878 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16879 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16880 instead of void *.
16881 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16882 timer_ptr2id to cast struct timer_node * to void *.
16883 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16884 --disable-libcilkrts to gcc configure.
16885 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16886 and make them the default for now.
16887 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16888 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16889 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16890 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16891 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16892 MACH_IPC_COMPAT.
16893 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16894 __task_terminate would ever return successfully.
16895 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16896 to global scope.
16897 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16898 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16899 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16900 critical section to make code simpler and avoid warning.
16901 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16902 critical section to make code simpler and avoid warning.
16903 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16904 const char * instead of char *.
16905 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16906 __hurd_file_name_split, hurd_file_name_split,
16907 __hurd_directory_name_split, hurd_directory_name_split,
16908 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16909 hurd_file_name_path_lookup): Make lookup function parameter take a
16910 const char *name instead of char *name.
16911 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16912 __hurd_directory_name_split): Likewise.
16913 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16914 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16915 * sysdeps/mach/hurd/check_native.c: New file.
16916 * sysdeps/mach/hurd/check_pf.c: New file.
16917 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16918 (__freeifaddrs): Define macro to freeifaddrs.
16919 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16920 * sysdeps/mach/libmachuser.abilist: New file.
16921 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16922 (do_test_bz20181): Rename accordingly.
16923 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16924 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16925 <sys/mount.h>.
16926 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16927 version only if __USE_EXTERN_INLINES is defined.
16928 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16929 __hurd_sockfail): Likewise.
16930 (_hurd_fd_get): Always declare functions, and provide inline versions
16931 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16932 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16933 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16934 _hurd_port_set): Always declare functions, and provide inline versions
16935 only if __USE_EXTERN_INLINES and _LIBC are defined and
16936 IS_IN(libc).
16937 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16938 _hurd_critical_section_unlock): Likewise.
16939 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16940 * __hurd_threadvar_location): Likewise.
16941 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16942 _hurd_userlink_clear): Likewise.
16943 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16944 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16945 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16946 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16947 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16948 __spin_lock_locked): Likewise.
16949 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16950 __spin_lock_locked): Likewise.
16951 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16952 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16953 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16954 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16955 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16956 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16957 _POSIX_NO_TRUNC): Define to 0.
16958 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16959 check size against PTHREAD_STACK_MIN.
16960 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16961 IS_IN(libpthread)]: Include <sigsetops.h>.
16962 * mach/Makefile (user-interfaces): Add mach/gnumach.
16963 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16964 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16965 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16966 instead of invalid -1.
16967 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16968 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16969 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16970 <net/ppp_defs.h>.
16971
16972 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16973
16974 * hurd/fcntl-internal.h: New file.
16975
16976 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16977
16978 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16979
16980 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16981
16982 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16983
16984 [BZ #22701]
16985 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16986 Build only shared objects.
16987
16988 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16989
16990 * README: Update for hppa.
16991
16992 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16993
16994 * sysdeps/sparc/fpu/libm-test-ulps: Update
16995 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16996
16997 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16998
16999 Revert:
17000
17001 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17002
17003 [BZ #22563]
17004 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17005 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17006 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17007 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17008 to feature_1.
17009
17010 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17011
17012 [BZ #22563]
17013 * bits/types/__cancel_jmp_buf_tag.h: New file.
17014 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17015 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17016 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17017 * nptl/Makefile (headers): Add
17018 bits/types/__cancel_jmp_buf_tag.h.
17019 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17020 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17021 * sysdeps/nptl/pthread.h: Include
17022 <bits/types/__cancel_jmp_buf_tag.h>.
17023 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17024 __cancel_jmp_buf.
17025 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17026
17027 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17028
17029 [BZ #10871]
17030 * localedata/locales/uk_UA (mon): Renamed to...
17031 (alt_mon): This.
17032 (alt_digits): "0" removed and then renamed to...
17033 (mon): This.
17034 (date_fmt): Definition changed not to use the alternative
17035 digits hack.
17036
17037 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17038
17039 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17040 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17041 * elf/elf.h (EF_RISCV_RVC): New define.
17042 (EF_RISCV_FLOAT_ABI): Likewise.
17043 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17044 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17045 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17046 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17047 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17048 define.
17049 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17050
17051 2018-01-25 Andreas Schwab <schwab@suse.de>
17052
17053 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17054 single quotes.
17055 * sysdeps/gnu/configure: Regenerate.
17056 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17057 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17059 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17060 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17061 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17062 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17063 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17064
17065 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17066
17067 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17068 URL, and run autoconf, make it the default for now.
17069
17070 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17071
17072 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17073 soft-float ColdFire configuration.
17074
17075 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17076 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17077 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17078
17079 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17080 MicroBlaze file.
17081
17082 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17083 ....
17084 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17085 ... here.
17086 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17087 New file.
17088
17089 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17090 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17091 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17092 file.
17093
17094 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17095
17096 [BZ #22742]
17097 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17098 Rename to __reserved and add comment.
17099 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17100 Rename to __reserved.
17101
17102 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17103
17104 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17105 i686-gnu configurations.
17106 (Context.run_builds): Include mig, gnumach and hurd in components
17107 considered.
17108 (Context.checkout): Add mig, gnumach and hurd to components.
17109 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17110 hurd.
17111 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17112 (Config.build): Install gnumach headers, build mig and install
17113 hurd headers for 'gnu' OS.
17114 (Config.install_gnumach_headers): New function.
17115 (Config.install_hurd_headers): Likewise.
17116 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17117 when building for 'gnu' OS.
17118
17119 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17120
17121 * manual/tunables.texi (Hardware Capability Tunables): Fix
17122 spelling.
17123
17124 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17125
17126 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17127 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17128 (ALTMON_11, ALTMON_12): Improve documentation.
17129 * manual/time.texi (strftime): Likewise.
17130
17131 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17132
17133 [BZ #10871]
17134 * localedata/locales/pl_PL: Alternative month names added,
17135 primary month names are genitive now.
17136 * time/tst-strptime.c (day_tests): Actually use a genitive case
17137 of a month name in Polish language.
17138
17139 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17140
17141 [BZ #10871]
17142 * manual/locale.texi: Document ALTMON_1..12 constants for
17143 nl_langinfo. Specify when to use ALTMON instead of MON.
17144 * manual/time.texi (strftime, strptime): Document GNU extension
17145 permitting O modifier with %B and %b. Specify when to use
17146 %OB instead of %B.
17147
17148 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17149
17150 [BZ #10871]
17151 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17152 names, define them as the same as abbreviated month names explicitly.
17153 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17154 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17155 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17156 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17157 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17158 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17159 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17160 _NL_WABALTMON_12): New enum constants.
17161 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17162 wab_alt_mon, and ab_alt_mon_defined members.
17163 (time_output): Output ab_alt_mon and wab_alt_mon members.
17164 (time_read): Read them, initialize them as copies of abmon and wabmon
17165 respectively if they are missing, initialize ab_alt_mon_defined.
17166 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17167 * locale/programs/locfile-kw.h: Regenerate.
17168 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17169 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17170 and ru_RU.UTF-8.
17171 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17172 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17173 (__strftime_internal): Handle %Ob and %Oh formats.
17174 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17175 (__strptime_internal): Handle %Ob and %Oh formats.
17176 * time/tst-strptime.c (day_tests): Add more tests to parse different
17177 forms of month names including the new %Ob format specifier.
17178
17179 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17180
17181 [BZ #10871]
17182 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17183 define them as the same as primary full month names explicitly.
17184 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17185 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17186 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17187 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17188 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17189 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17190 _NL_WALTMON_12): New enum constants.
17191 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17192 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17193 macros.
17194 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17195 walt_mon, and alt_mon_defined members.
17196 (time_output): Output alt_mon and walt_mon members.
17197 (time_read): Read them, initialize them as copies of mon and wmon
17198 respectively if they are missing, initialize alt_mon_defined.
17199 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17200 * locale/programs/locfile-kw.h: Regenerate.
17201 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17202 * localedata/tst-langinfo.c (map): Add tests for the new constants
17203 ALTMON_1 .. ALTMON_12.
17204 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17205 and pl_PL.UTF-8.
17206 * time/strftime_l.c (f_altmonth): New macro.
17207 (__strftime_internal): Handle %OB format.
17208 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17209 (__strptime_internal): Handle %OB format.
17210 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17211 of month names including the new %OB format specifier.
17212
17213 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17214
17215 [BZ #22685]
17216 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17217 from ABORT_TRANSACTION.
17218 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17219 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17220 ABORT_TRANSACTION_IMPL): Likewise.
17221 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17222 Linux code, but remove the code that aborts transactions.
17223
17224 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17225
17226 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17227
17228 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17229
17230 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17231 in date: "2004-14-09" should be "2004-09-14".
17232 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17233 "2003-15-09" should be "2003-09-15".
17234
17235 2018-01-18 Arjun Shankar <arjun@redhat.com>
17236
17237 [BZ #22343]
17238 [BZ #22774]
17239 CVE-2018-6485
17240 CVE-2018-6551
17241 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17242 after padding.
17243 (_int_memalign): check for integer overflow before calling
17244 _int_malloc.
17245 * malloc/tst-malloc-too-large.c: New test.
17246 * malloc/Makefile: Add tst-malloc-too-large.
17247
17248 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17249
17250 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17251 in date: "2017-24-07" should be "2017-07-24".
17252 * localedata/locales/mai_IN: Likewise.
17253 * localedata/locales/mai_NP: Likewise.
17254
17255 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17256
17257 * po/ru.po: Update translations.
17258
17259 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17260
17261 [BZ #22719]
17262 * sysdeps/hppa/backtrace.c: New file.
17263
17264 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17265
17266 [BZ #22715]
17267 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17268 align La_x86_64_retval to VEC_SIZE.
17269
17270 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17271
17272 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17273 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17274
17275 2018-01-16 Florian Weimer <fweimer@redhat.com>
17276
17277 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17278 Move tst-thread-exit-clobber ...
17279 [$(CXX)] (tests-unsupported): ... to here.
17280
17281 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17282
17283 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17284 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17285 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17286 (_dl_aarch64_cap_flags): Update.
17287 (_DL_HWCAP_COUNT): Update.
17288
17289 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17290
17291 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17292 (_DL_HWCAP_LAST): Remove.
17293 (_DL_HWCAP_COUNT): Move to ...
17294 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17295 (_DL_HWCAP_COUNT): ... here.
17296
17297 2018-01-16 Florian Weimer <fweimer@redhat.com>
17298
17299 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17300 mode with GNU extensions.
17301
17302 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17303
17304 * elf/elf.h (NT_ARM_SVE): Define.
17305
17306 2018-01-15 Florian Weimer <fweimer@redhat.com>
17307
17308 [BZ #22636]
17309 * nptl/tst-minstack-throw.cc: New file.
17310 * nptl/Makefile (tests): Add tst-minstack-throw.
17311 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17312 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17313
17314 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17315
17316 * scripts/build-many-glibcs.py (Context.checkout): Default
17317 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17318 version to 1.1.0.
17319
17320 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17321
17322 [BZ #22707]
17323 * elf/elf.h (DF_1_STUB): Define.
17324 (DF_1_PIE): Define.
17325
17326 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17327
17328 [BZ #22697]
17329 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17330 Do not add 0.5 to integer or out-of-range arguments.
17331
17332 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17333
17334 * po/bg.po: Update translations.
17335 * po/cs.po: Likewise.
17336 * po/de.po: Likewise.
17337 * po/ko.po: Likewise.
17338 * po/pl.po: Likewise.
17339 * po/sv.po: Likewise.
17340 * po/uk.po: Likewise.
17341 * po/vi.po: Likewise.
17342
17343 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17344
17345 * aarch64/start.S (_start): Use __wrap_main.
17346 (__wrap_main): New local symbol.
17347
17348 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17349
17350 [BZ #22679]
17351 CVE-2018-1000001
17352 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17353 generic_getcwd if the path returned by getcwd syscall is not absolute.
17354 * io/tst-getcwd-abspath.c: New test.
17355 * io/Makefile (tests): Add tst-getcwd-abspath.
17356
17357 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17358
17359 * malloc/malloc.c (malloc_consolidate): Add size check.
17360
17361 2018-01-12 Florian Weimer <fweimer@redhat.com>
17362
17363 * support/write_message.c (write_message): Preserve errno.
17364 * support/check.c (print_failure): Likewise.
17365 * support/support_test_verify_impl.c (support_test_verify_impl):
17366 Likewise.
17367 * support/support_test_compare_failure.c
17368 (support_test_compare_failure): Likewise.
17369
17370 2018-01-12 Florian Weimer <fweimer@redhat.com>
17371
17372 [BZ #22701]
17373 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17374 Prevent installation of libnsl.so.
17375 (libnsl-inhibit-o): Do not build (or install) static libraries.
17376
17377 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17378
17379 [BZ #22657]
17380 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17381 before the day number which may produce a double space.
17382 (date_fmt): Likewise.
17383
17384 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17385
17386 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17387 instead of fegetenv.
17388
17389 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17390
17391 [BZ #22702]
17392 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17393 comment to say exceptions are discarded.
17394 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17395 __fegetenv.
17396 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17397 be enabled.
17398
17399 2018-01-11 Florian Weimer <fweimer@redhat.com>
17400
17401 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17402 and error message.
17403
17404 2018-01-11 Florian Weimer <fweimer@redhat.com>
17405
17406 [BZ #22636]
17407 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17408 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17409
17410 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17411
17412 [BZ #22693]
17413 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17414 negative arguments in test for NaN or infinity argument.
17415
17416 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17417
17418 * po/libc.pot: Regenerate.
17419
17420 2018-01-10 Florian Weimer <fweimer@redhat.com>
17421
17422 [BZ #22636]
17423 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17424 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17425
17426 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17427
17428 * hurd/hurd/fd.h: Include <fcntl.h>
17429 (__hurd_at_flags): New function.
17430 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17431 with call to __hurd_at_flags.
17432 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17433 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17434 __faccessat
17435 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17436 (__access_noerrno): Use __faccessat_common instead of access_common.
17437 (__access): Likewise.
17438 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17439 with a call to __faccessat.
17440 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17441 (__faccessat_common): ... this. Move implementation of __access into it when
17442 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17443 reauthenticate_cwdir_at helper to implement AT mechanism.
17444 (__faccessat_noerrno): New function, just calls __faccessat_common.
17445 (__faccessat): New function, just calls __faccessat_common.
17446 (faccessat): Define weak alias.
17447
17448 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17449
17450 [BZ #22691]
17451 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17452 (CFLAGS-s_fmaxmagl.c): New variable.
17453 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17454
17455 [BZ #22690]
17456 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17457 long int for arguments of possibly overflowing addition or
17458 subtraction.
17459 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17460
17461 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17462
17463 [BZ #22688]
17464 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17465 (CFLAGS-e_remainderl.c): New variable.
17466
17467 [BZ #22687]
17468 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17469 variable.
17470 (CFLAGS-s_cacoshl.c): Likewise.
17471 (CFLAGS-s_casinhl.c): Likewise.
17472 (CFLAGS-s_catanl.c): Likewise.
17473 (CFLAGS-s_catanhl.c): Likewise.
17474 (CFLAGS-s_cexpl.c): Likewise.
17475 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17476 (CFLAGS-s_csinhl.c): Likewise.
17477 (CFLAGS-s_clogl.c): Likewise.
17478 (CFLAGS-s_clog10l.c): Likewise.
17479 (CFLAGS-s_csinl.c): Likewise.
17480 (CFLAGS-s_csqrtl.c): Likewise.
17481
17482 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17483 2017-01-09 Svante Signell <svante.signell@gmail.com>
17484
17485 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17486 (_hurd_exec_paths): New function.
17487 * hurd/hurd.h (_hurd_exec): Deprecate function.
17488 (_hurd_exec_paths): Declare function.
17489 * hurd/Versions: Export _hurd_exec_paths.
17490 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17491 (__execve): Use __getcwd to build absolute path, and use
17492 _hurd_exec_paths instead of _hurd_exec.
17493 * sysdeps/mach/hurd/spawni.c: Likewise.
17494 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17495 _hurd_exec.
17496
17497 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17498
17499 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17500 test instead of failing in case of ENOENT returned by posix_openpt.
17501
17502 2018-01-08 Florian Weimer <fweimer@redhat.com>
17503
17504 resolv: Support binary labels in test framework.
17505 * support/resolv_test.c (struct to_be_freed): Remove.
17506 (struct compressed_name): New.
17507 (allocate_compressed_name, ascii_tolower)
17508 (compare_compressed_name): New functions.
17509 (struct resolv_response_builder): Update type of
17510 compression_offsets for use with tsearch. Rempve to_be_freed.
17511 (response_push_pointer_to_free): Remove function.
17512 (resolv_response_add_name): Rewrite using struct compressed_name
17513 and tsearch instead of hsearch_r.
17514 (response_builder_allocate): Remove initialization of
17515 compression_offsets.
17516 (response_builder_free): Update for removal of to_be_freed. Use
17517 tdestroy instead of hdestroy_r.
17518 * resolv/Makefile (tests): Add tst-resolv-binary.
17519 (tst-resolv-binary): Link with -lresolv -lpthread.
17520
17521 2018-01-08 Florian Weimer <fweimer@redhat.com>
17522
17523 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17524 time. Pass positive flag instead of negative flag to
17525 support_test_compare_failure.
17526 (support_test_compare_failure): Change negative parameter to
17527 positive.
17528 * support/support_test_compare_failure.c (report)
17529 (support_test_compare_failure): Likewise.
17530 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17531 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17532
17533 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17534
17535 [BZ #22637]
17536 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17537 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17538 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17539 stacksize.
17540 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17541
17542 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17543
17544 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17545 Add s_sincosf-sse2 and s_sincosf-fma.
17546 (CFLAGS-s_sincosf-fma.c): New.
17547 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17548 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17549 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17550 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17551 __sincosf is defined.
17552
17553 2018-01-08 Florian Weimer <fweimer@redhat.com>
17554
17555 * nptl/tst-thread-exit-clobber.cc: New file.
17556 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17557 C++11 mode.
17558 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17559 (tests): Add tst-thread-exit-clobber.
17560 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17561
17562 2018-01-08 Florian Weimer <fweimer@redhat.com>
17563
17564 * support/check.h (support_static_assert): Define.
17565 (TEST_COMPARE): Use it.
17566
17567 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17568
17569 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17570 [!__RLIM_T_MATCHES_RLIM64_T]
17571 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17572 __getrlimit64. Add libc_hidden_weak.
17573
17574 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17575
17576 * elf/elf.h (R_RISCV_NONE): New define.
17577 (R_RISCV_32): Likewise.
17578 (R_RISCV_64): Likewise.
17579 (R_RISCV_RELATIVE): Likewise.
17580 (R_RISCV_COPY): Likewise.
17581 (R_RISCV_JUMP_SLOT): Likewise.
17582 (R_RISCV_TLS_DTPMOD32): Likewise.
17583 (R_RISCV_TLS_DTPMOD64): Likewise.
17584 (R_RISCV_TLS_DTPREL32): Likewise.
17585 (R_RISCV_TLS_DTPREL64): Likewise.
17586 (R_RISCV_TLS_TPREL32): Likewise.
17587 (R_RISCV_TLS_TPREL64): Likewise.
17588 * Makerules (make-link-multidir): Make directories before linking into
17589 them.
17590 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17591 define.
17592 (VDSO_HASH_LINUX_4_15): Likewise.
17593 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17594 in subdirectories of lib.
17595 * nptl/Makefile (/librt.so): Always depend on
17596 "$(shared-thread-library)".
17597
17598 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17599
17600 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17601 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17602 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17603 (___tls_get_addr).
17604 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17605 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17606 "-O2 -march=i686".
17607 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17608 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17609 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17610 * sysdeps/gnu/glob-lstat-compat.c: New file.
17611 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17612 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17613
17614 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17615
17616 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17617 Reserve 16 chars to reloc_addr before calling _itoa_word.
17618
17619 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17620
17621 [BZ #22678]
17622 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17623 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17624
17625 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17626 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17627
17628 * resource/tst-getrlimit.c: Add copyright header.
17629
17630 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17631 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17632
17633 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17634 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17635 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17636 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17637 instead.
17638 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17639 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17640 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17641 RLIM64_INFINITY): Fix values to match the kernel ones.
17642 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17643 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17644 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17645 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17646 getrlimit64@@GLIBC_2_27.
17647 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17648 and setrlimit64.
17649 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17650 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17651 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17652 setrlimit, getrlimit64 and setrlimit64.
17653
17654 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17655
17656 [BZ #22648]
17657 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17658 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17659
17660 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17661
17662 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17663 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17664 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17665
17666 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17667
17668 [BZ #15479]
17669 [BZ #22666]
17670 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17671 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17672
17673 [BZ #15479]
17674 [BZ #22665]
17675 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17676 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17677 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17678 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17679
17680 2018-01-04 Florian Weimer <fweimer@redhat.com>
17681
17682 [BZ #22667]
17683 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17684 Align the stack before calling exit.
17685 * stdlib/tst-makecontext-align.c: New file.
17686 * stdlib/Makefile (tests): Add tst-makecontext-align.
17687
17688 2018-01-04 Florian Weimer <fweimer@redhat.com>
17689
17690 Add support for calling dlvsym from libc.so.
17691 * include/dlfcn.h (__libc_dlvsym): Declare.
17692 * elf/Makefile (tests-static-internal): Add
17693 tst-libc_dlvsym-static.
17694 (tests-internal): Add tst-libc_dlvsym.
17695 (modules-names): Add tst-libc_dlvsym-dso.
17696 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17697 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17698 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17699 object tst-libc_dlvsym-dso.so needs to be built before running
17700 these tests.
17701 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17702 * elf/Versions: Export __libc_dlvsym.
17703 * elf/dl-libc.c (struct do_dlvsym_args): New.
17704 (do_dlvsym, __libc_dlvsym): New functions.
17705 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17706 (_dl_open_hook2): New variable.
17707 (__libc_register_dl_open_hook): Set it.
17708 * elf/tst-libc_dlvsym-dso.c: New file.
17709 * elf/tst-libc_dlvsym-static.c: Likewise.
17710 * elf/tst-libc_dlvsym.c: Likewise.
17711 * elf/tst-libc_dlvsym.h: Likewise.
17712
17713 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17714
17715 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17716 include <sys/mount.h>.
17717
17718 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17719
17720 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17721 Add __NO_MATH_ERRNO__ check.
17722
17723 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17724
17725 * sysdeps/mips/mips32/libm-test-ulps: Update.
17726 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17727
17728 2018-01-02 Florian Weimer <fweimer@redhat.com>
17729
17730 * misc/tst-pselect.c: Add copyright header.
17731
17732 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17733
17734 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17735 comment.
17736 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17737 comment.
17738 (settrlimit): Rename into setrlimit.
17739 (__sttrlimit): Rename into __setrlimit.
17740
17741 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17742 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17743 never defined in that case.
17744
17745 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17746
17747 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17748
17749 * sysdeps/arm/libm-test-ulps: Update.
17750
17751 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17752 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17753
17754 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17755
17756 * NEWS: Add cosf and sincosf to list of optimized functions.
17757
17758 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17759
17760 [BZ #22660]
17761 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17762 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17763 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17764 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17765
17766 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17767
17768 [BZ #22433]
17769 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17770
17771 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17772 making a copy of it.
17773
17774 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17775
17776 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17777 trailing whitespace removed.
17778 * scripts/config.guess: Update to version 2018-01-01.
17779 * scripts/config.sub: Update to version 2018-01-01.
17780 * scripts/move-if-change: Update from gnulib.
17781
17782 * NEWS: Update copyright dates.
17783 * catgets/gencat.c (print_version): Likewise.
17784 * csu/version.c (banner): Likewise.
17785 * debug/catchsegv.sh: Likewise.
17786 * debug/pcprofiledump.c (print_version): Likewise.
17787 * debug/xtrace.sh (do_version): Likewise.
17788 * elf/ldconfig.c (print_version): Likewise.
17789 * elf/ldd.bash.in: Likewise.
17790 * elf/pldd.c (print_version): Likewise.
17791 * elf/sotruss.sh: Likewise.
17792 * elf/sprof.c (print_version): Likewise.
17793 * iconv/iconv_prog.c (print_version): Likewise.
17794 * iconv/iconvconfig.c (print_version): Likewise.
17795 * locale/programs/locale.c (print_version): Likewise.
17796 * locale/programs/localedef.c (print_version): Likewise.
17797 * login/programs/pt_chown.c (print_version): Likewise.
17798 * malloc/memusage.sh (do_version): Likewise.
17799 * malloc/memusagestat.c (print_version): Likewise.
17800 * malloc/mtrace.pl: Likewise.
17801 * manual/libc.texinfo: Likewise.
17802 * nptl/version.c (banner): Likewise.
17803 * nscd/nscd.c (print_version): Likewise.
17804 * nss/getent.c (print_version): Likewise.
17805 * nss/makedb.c (print_version): Likewise.
17806 * posix/getconf.c (main): Likewise.
17807 * scripts/test-installation.pl: Likewise.
17808 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17809
17810 * All files with FSF copyright notices: Update copyright dates
17811 using scripts/update-copyrights.
17812 * locale/programs/charmap-kw.h: Regenerated.
17813 * locale/programs/locfile-kw.h: Likewise.
17814
17815 2017-12-31 Zack Weinberg <zackw@panix.com>
17816
17817 * libio/bits/libio-ldbl.h: Correct check for improper
17818 inclusion. Add own multiple include guard.
17819
17820 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17821 Dmitry V. Levin <ldv@altlinux.org>
17822
17823 [BZ #22625]
17824 CVE-2017-16997
17825 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17826 string token expansion. Check for NULL pointer or empty string possibly
17827 returned by expand_dynamic_string_token.
17828 (decompose_rpath): Check for empty path after dynamic string
17829 token expansion.
17830
17831 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17832
17833 [BZ #22433]
17834 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17835
17836 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17837 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17838 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17839 and PTRACE_SYSCALL.
17840 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17841 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17842 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17843 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17844 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17845 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17846
17847 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17848 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17849 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17850 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17851 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17852 bits/ptrace-shared.h.
17853 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17854 <bits/ptrace-shared.h>.
17855 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17856 __ptrace_peeksiginfo_flags, ptrace): Remove.
17857 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17858 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17859 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17860 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17861 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17862
17863 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17864
17865 [BZ #17804]
17866 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17867 end of the loop. Improve comments.
17868
17869 2017-12-29 Zack Weinberg <zackw@panix.com>
17870
17871 [BZ #22615]
17872 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17873 might be set on success.
17874
17875 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17876
17877 [BZ #22611]
17878 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17879 is unchanged on success.
17880
17881 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17882
17883 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17884 updated.
17885 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17886 expand_dynamic_string_token): Likewise.
17887 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17888 is_path argument.
17889
17890 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17891 contains ':'.
17892
17893 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17894 is set and name contains ':', and all code depending on these checks.
17895
17896 2017-12-24 Zack Weinberg <zackw@panix.com>
17897
17898 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17899 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17900 respectively.
17901 * libio/libio.h: Rename the original version of this file to
17902 libio/bits/libio.h. Error out if not included by stdio.h or the
17903 stub libio.h.
17904 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17905 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17906 if not included by bits/libio.h or the stub _G_config.h.
17907 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17908 sysdeps/unix/sysv/linux/bits. Error out if not included by
17909 bits/libio.h or the stub _G_config.h.
17910 * libio/stdio.h: Include bits/libio.h, not libio.h.
17911 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17912 well as libio.h and _G_config.h.
17913
17914 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17915 * libio/strfile.h, stdio-common/vfscanf.c
17916 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17917 Include stdio.h, not _G_config.h nor libio.h.
17918 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17919 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17920
17921 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17922
17923 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17924
17925 [BZ #22347]
17926 * stdlib/getrandom.c (getrandom): Fix comment.
17927 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17928
17929 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17930
17931 [BZ #21161]
17932 * manual/arith.texi (strtoul): Fix a typo.
17933
17934 [BZ #22596]
17935 * manual/arith.texi (finite): Fix the description of the return
17936 value.
17937
17938 2017-12-22 Eric Blake <ebb9@byu.net>
17939
17940 Avoid gcc warnings on cygwin
17941 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17942 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17943 Avoid unused variable.
17944
17945 2017-12-22 Florian Weimer <fweimer@redhat.com>
17946
17947 * io/Makefile (routines): Add copy_file_range.
17948 (tests): Add tst-copy_file_range.
17949 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17950 * io/Versions (GLIBC_2.27): Export copy_file_range.
17951 * io/copy_file_range-compat.c: New file.
17952 * io/copy_file_range.c: Likewise.
17953 * io/tst-copy_file_range-compat.c: Likewise.
17954 * io/tst-copy_file_range.c: Likewise.
17955 * manual/llio.texi (Copying File Data): New section.
17956 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17957 * support/Makefile (libsupport-routines): Add support-xfstat,
17958 xftruncate, xlseek.
17959 * support/support-xfstat.c: New file.
17960 * support/xftruncate.c: Likewise.
17961 * support/xlseek.c: Likewise.
17962 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17963 * sysdeps/unix/sysv/linux/**.abilist: Update.
17964 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17965
17966 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17967
17968 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17969 disable-multi-arch variant to aarch64-linux-gnu.
17970
17971 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17972
17973 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17974 trailing whitespace removed.
17975 * scripts/config.guess: Update to version 2017-12-17.
17976 * scripts/config.sub: Update to version 2017-11-23.
17977 * scripts/install-sh: Update to version 2017-09-23.17.
17978 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17979
17980 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17981
17982 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17983 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17984 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17985 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17986 * sysdeps/tile/crtn.S: Likewise.
17987 * sysdeps/tile/dl-start.S (_start): Likewise.
17988 * sysdeps/tile/dl-trampoline.S: Likewise.
17989 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17990 * sysdeps/tile/start.S (_start): Likewise.
17991 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17992 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17993 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17994 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17995 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17996 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17997 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17998
17999 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18000 comment.
18001 * sysdeps/tile/preconfigure: Remove tilegx folder.
18002 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18003 * sysdeps/tile/Implies: ... here.
18004 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18005 * sysdeps/tile/Makefile: ... here.
18006 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18007 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18008 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18009 * sysdeps/tile/bits/wordsize.h: ... here.
18010 * sysdeps/tile/tilegx/*: Move to ...
18011 * sysdeps/tile/*: ... here.
18012 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18013 * sysdeps/tile/tilegx32/Implies: ... here.
18014 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18015 * sysdeps/tile/tilegx64/Implies: ... here.
18016 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18017 to ...
18018 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18019 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18020 * sysdeps/unix/sysv/linux/tile/*: ... here.
18021 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18022 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18023 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18024 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18025
18026 * README: Remove tilepro-*-linux-gnu from supported architecture.
18027 * scripts/build-many-glibcs.py: Likewise.
18028 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18029 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18030 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18031 elf_machine_matches_host, elf_machine_dynamic,
18032 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18033 howto, elf_machine_rela): Likewise.
18034 * sysdeps/tile/dl-start.S (_start): Likewise.
18035 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18036 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18037 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18038 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18039 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18040 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18041 Likewise.
18042 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18043 * sysdeps/tile/preconfigure: Likewise.
18044 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18045 POINTER_CHK_GUARD): Likewise.
18046 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18047 * sysdeps/tile/start.S (_start): Likewise.
18048 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18049 Likewise.
18050 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18051 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18052 CMOVNEZ): Remove.
18053 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18054 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18055 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18056 Likewise.
18057 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18058 * sysdeps/tile/tilepro/Implies: Remove file.
18059 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18060 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18061 * sysdeps/tile/tilepro/memchr.c: Likewise.
18062 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18063 * sysdeps/tile/tilepro/memset.c: Likewise.
18064 * sysdeps/tile/tilepro/memusage.h: Likewise.
18065 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18066 * sysdeps/tile/tilepro/strchr.c: Likewise.
18067 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18068 * sysdeps/tile/tilepro/strlen.c: Likewise.
18069 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18070 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18071 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18072 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18073 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18074 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18075 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18076 Likewise.
18077 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18078 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18079 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18080 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18081 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18082 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18083 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18084 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18085 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18086 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18087 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18088 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18089 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18090 tilepro mention in comment.
18091
18092 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18093 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18094 * nptl/pthread_join_common.c: New file: common function used on
18095 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18096 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18097 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18098 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18099 (cleanup): Move definition to pthread_join_common.c.
18100 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18101 Remove superflous checks.
18102 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18103 Likewise.
18104
18105 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18106
18107 * sysdeps/aarch64/libm-test-ulps: Update.
18108
18109 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18110
18111 * sysdeps/aarch64/memset.S (MEMSET): Define.
18112
18113 2017-12-20 Florian Weimer <fweimer@redhat.com>
18114
18115 [BZ #22635]
18116 nptl: Provide full implementation of pthread_self in libc.so.
18117 * nptl/Makefile (routines): Add pthread_self.
18118 (libpthread-routines): Replace pthread_self with
18119 compat-pthread_self.
18120 * nptl/forward.c (pthread_self): Remove.
18121 * nptl/nptl-init.c (pthread_functions): Do not initialize
18122 ptr_pthread_self.
18123 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18124 * nptl/compat-pthread_self.c: New file.
18125 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18126 Remove ptr_pthread_self.
18127
18128 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18129
18130 * posix/regcomp.c: Fix spelling in comments.
18131 * posix/regex.h: Likewise.
18132 * posix/regex_internal.c: Likewise.
18133 * posix/regexec.c: Likewise.
18134
18135 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18136
18137 [BZ #22377]
18138 * math/Makefile [C++] (tests): Add test for iseqsig.
18139 * math/math.h [C++] (iseqsig): New implementation, which does
18140 not rely on __MATH_TG/__builtin_types_compatible_p.
18141 * math/test-math-iseqsig.cc: New file.
18142 * sysdeps/powerpc/powerpc64le/Makefile
18143 (CFLAGS-test-math-iseqsig.cc): New variable.
18144
18145 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18146
18147 * elf/dl-load.c (is_trusted_path): Remove.
18148 (fillin_rpath): Remove check_trusted argument and its use,
18149 all callers changed.
18150
18151 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18152
18153 [BZ #22630]
18154 * Makeconfig (link-pie-before-libc): Replace -pie with
18155 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18156 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18157 (tst-dlopen-aout-no-pie): New.
18158 (LDFLAGS-tst-prelink): Removed.
18159 (tst-prelink-no-pie): New.
18160 (LDFLAGS-tst-main1): Removed.
18161 (tst-main1-no-pie): New.
18162 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18163 (tst-gmon-no-pie): New.
18164
18165 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18166
18167 * manual/install.texi: Document that --enable-static-pie
18168 implies PIE.
18169 * INSTALL: Regenerated.
18170
18171 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18172
18173 [BZ #21309]
18174 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18175 unsigned.
18176
18177 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18178
18179 Revert:
18180
18181 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18182
18183 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18184
18185 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18186
18187 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18188 <errno.h>. Include "eexp.tbl".
18189 (half): New constant.
18190 (one): Likewise.
18191 (__ieee754_exp): Rewrite.
18192 (__slowexp): Remove prototype.
18193 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18194 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18195 * sysdeps/i386/fpu/slowexp.c: Likewise.
18196 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18197 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18198 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18199 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18200 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18201 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18202 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18203 comment.
18204 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18205 (CPPFLAGS-slowexp.c): Remove variable.
18206 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18207 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18208 (CFLAGS-slowexp-fma.c): Remove variable.
18209 (CFLAGS-slowexp-fma4.c): Likewise.
18210 (CFLAGS-slowexp-avx.c): Likewise.
18211 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18212 define as macro.
18213 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18214 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18215 * math/Makefile (type-double-routines): Remove slowexp.
18216 * manual/probes.texi (slowexp_p6): Remove.
18217 (slowexp_p32): Likewise.
18218
18219 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18220
18221 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18222 arithmetic.
18223
18224 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18225
18226 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18227
18228 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18229
18230 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18231
18232 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18233 <errno.h>. Include "eexp.tbl".
18234 (half): New constant.
18235 (one): Likewise.
18236 (__ieee754_exp): Rewrite.
18237 (__slowexp): Remove prototype.
18238 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18239 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18240 * sysdeps/i386/fpu/slowexp.c: Likewise.
18241 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18242 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18243 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18244 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18245 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18246 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18247 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18248 comment.
18249 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18250 (CPPFLAGS-slowexp.c): Remove variable.
18251 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18252 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18253 (CFLAGS-slowexp-fma.c): Remove variable.
18254 (CFLAGS-slowexp-fma4.c): Likewise.
18255 (CFLAGS-slowexp-avx.c): Likewise.
18256 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18257 define as macro.
18258 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18259 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18260 * math/Makefile (type-double-routines): Remove slowexp.
18261 * manual/probes.texi (slowexp_p6): Remove.
18262 (slowexp_p32): Likewise.
18263
18264 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18265 James Clarke <jrtc27@jrtc27.com>
18266
18267 [BZ #22603]
18268 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18269 addition.
18270
18271 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18272
18273 [BZ #22605]
18274 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18275 code.
18276
18277 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18278
18279 [BZ #22563]
18280 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18281 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18282 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18283 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18284 to feature_1.
18285
18286 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18287
18288 [BZ #22563]
18289 * bits/types/__cancel_jmp_buf_tag.h: New file.
18290 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18291 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18292 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18293 * nptl/Makefile (headers): Add
18294 bits/types/__cancel_jmp_buf_tag.h.
18295 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18296 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18297 * sysdeps/nptl/pthread.h: Include
18298 <bits/types/__cancel_jmp_buf_tag.h>.
18299 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18300 __cancel_jmp_buf.
18301 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18302
18303 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18304
18305 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18306 --enable-static-pie variants to x86_64, x32 and i686.
18307
18308 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18309
18310 [BZ #22631]
18311 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18312 argument for attrubutes. All callers changed.
18313 (__inline_mathop1): Likewise. All callers changed.
18314 (__inline_mathop): Likewise. All callers changed.
18315 [__USE_MISC] (scalbn): Use __inline_forward instead of
18316 __inline_forward_c.
18317 [__USE_ISOC99] (scalbln): Likewise.
18318 [__USE_ISOC99] (nearbyint): Likewise.
18319 [__USE_ISOC99] (lrint): Likewise.
18320 [__USE_MISC] (scalbnf): Likewise.
18321 [__USE_ISOC99] (scalblnf): Likewise.
18322 [__USE_ISOC99] (nearbyintf): Likewise.
18323 [__USE_ISOC99] (lrintf): Likewise.
18324 [__USE_MISC] (scalbnl): Likewise.
18325 [__USE_ISOC99] (scalblnl): Likewise.
18326 [__USE_ISOC99] (nearbyintl): Likewise.
18327 [__USE_ISOC99] (lrintl): Likewise.
18328 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18329 __inline_mathop and __m81_defun changed.
18330
18331 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18332 CPU or FPU for ARM hard-float configurations.
18333
18334 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18335
18336 * nptl/tst-attr3.c: Include <libc-diag.h>.
18337 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18338
18339 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18340
18341 * string/tester.c (test_strncat): Also disable -Warray-bounds
18342 warnings for two tests.
18343
18344 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18345
18346 [BZ #22614]
18347 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18348 $(cc-pie-default) == yes.
18349 * config.make.in (cc-pie-default): New.
18350 * configure.ac (libc_cv_pie_default): Renamed to ...
18351 (libc_cv_cc_pie_default): This.
18352 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18353 * configure: Regenerated.
18354
18355 2017-12-18 Florian Weimer <fweimer@redhat.com>
18356
18357 [BZ #20204]
18358 ld.so: Harden dl-libc/libdl hooks.
18359 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18360 (rtld_active): New function.
18361 * dlfcn/dladdr.c (__dladdr): Call it.
18362 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18363 * dlfcn/dlclose.c (__dlcose): Likewise.
18364 * dlfcn/dlerror.c (__dlerror): Likewise.
18365 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18366 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18367 * dlfcn/dlopen.c (__dlopen): Likewise.
18368 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18369 * dlfcn/dlsym.c (__dlsym): Likewise.
18370 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18371 * libio/vtables.c (_IO_vtable_check): Likewise.
18372 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18373 (__libc_dlclose): Likewise.
18374 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18375 assignment.
18376
18377 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18378
18379 [BZ #22446]
18380 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18381 buffers for readlink input and output.
18382
18383 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18384
18385 [BZ #22624]
18386 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18387 inhibit_stack_protector.
18388
18389 [BZ #22624]
18390 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18391 inhibit_stack_protector.
18392
18393 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18394
18395 [BZ #22627]
18396 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18397 code and invocation.
18398
18399 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18400
18401 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18402
18403 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18404
18405 [BZ #22505]
18406 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18407
18408 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18409
18410 * sysdeps/s390/fpu/libm-test-ulps: Update.
18411
18412 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18413
18414 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18415
18416 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18417
18418 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18419 constants to s_sincosf.h file.
18420 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18421 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18422 implementation.
18423 * sysdeps/ieee754/flt-32/s_sincosf.h:
18424 New file.
18425
18426 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18427
18428 [BZ #14681]
18429 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18430 before mtrace.
18431
18432 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18433
18434 [BZ #19574]
18435 * INSTALL: Regenerated.
18436 * Makeconfig (real-static-start-installed-name): New.
18437 (pic-default): Updated for --enable-static-pie.
18438 (pie-default): New for --enable-static-pie.
18439 (default-pie-ldflag): Likewise.
18440 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18441 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18442 Replace $(static-start-installed-name) with
18443 $(real-static-start-installed-name).
18444 (+prectorT): Updated for --enable-static-pie.
18445 (+postctorT): Likewise.
18446 (CFLAGS-.o): Add $(pie-default).
18447 (CFLAGS-.op): Likewise.
18448 * NEWS: Mention --enable-static-pie.
18449 * config.h.in (ENABLE_STATIC_PIE): New.
18450 * configure.ac (--enable-static-pie): New configure option.
18451 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18452 (have-static-pie): Likewise.
18453 Enable static PIE if linker supports --no-dynamic-linker.
18454 (ENABLE_STATIC_PIE): New AC_DEFINE.
18455 (enable-static-pie): New LIBC_CONFIG_VAR.
18456 * configure: Regenerated.
18457 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18458 gr$(start-installed-name) for --enable-static-pie.
18459 (extra-objs): Likewise.
18460 (install-lib): Likewise.
18461 (extra-objs): Add static-reloc.o and static-reloc.os
18462 ($(objpfx)$(start-installed-name)): Also depend on
18463 $(objpfx)static-reloc.o.
18464 ($(objpfx)r$(start-installed-name)): New.
18465 ($(objpfx)g$(start-installed-name)): Also depend on
18466 $(objpfx)static-reloc.os.
18467 ($(objpfx)gr$(start-installed-name)): New.
18468 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18469 in libc.a.
18470 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18471 initimage.
18472 * csu/static-reloc.c: New file.
18473 * elf/Makefile (routines): Add dl-reloc-static-pie.
18474 (elide-routines.os): Likewise.
18475 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18476 (tst-tls1-static-non-pie-no-pie): New.
18477 * elf/dl-reloc-static-pie.c: New file.
18478 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18479 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18480 STATIC_PIE_BOOTSTRAP.
18481 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18482 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18483 (tests-static): Likewise.
18484 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18485 (tst-gmon-static-no-pie): New.
18486 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18487 (CRT-tst-gmon-static-pie): Likewise.
18488 (tst-gmon-static-pie-ENV): Likewise.
18489 (tests-special): Likewise.
18490 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18491 (clean-tst-gmon-static-pie-data): Likewise.
18492 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18493 * gmon/tst-gmon-static-pie.c: New file.
18494 * manual/install.texi: Document --enable-static-pie.
18495 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18496 (_dl_get_dl_main_map): Likewise.
18497 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18498 * sysdeps/x86_64/configure.ac: Likewise.
18499 * sysdeps/i386/configure: Regenerated.
18500 * sysdeps/x86_64/configure: Likewise.
18501 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18502 (ASFLAGS-.op): Likewise.
18503
18504 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18505
18506 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18507 * posix/tst-mmap-offset.c (fname): Use /tmp.
18508 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18509
18510 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18511
18512 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18513
18514 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18515
18516 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18517 errno.
18518
18519 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18520
18521 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18522 --with-float=hard for arm-linux-gnueabihf configurations.
18523
18524 [BZ #14121]
18525 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18526 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18527 ($(mo-installed)): Use $(objpfx)%.mo.
18528 (realclean): Remove rule.
18529
18530 * po/Makefile (linguas): Remove rule and dependencies.
18531 (linguas.mo): Likewise.
18532 (.PHONY): Do not depend on linguas and linguas.mo.
18533 (podir): Remove variable.
18534 (pofiles): Likewise.
18535 [$(pofiles)] (%.po): Remove rule.
18536
18537 * sysdeps/sparc/sparc32/Makefile
18538 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18539 start-of-line whitespace in argument of echo.
18540 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18541 with whitespace. Generate __wrap_.udiv alias.
18542 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18543 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18544 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18545 * sysdeps/sparc/sparc32/urem.S: Likewise.
18546
18547 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18548
18549 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18550 for aligned inputs.
18551
18552 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18553
18554 * benchtests/bench-strcmp.c: Print output in JSON format.
18555
18556 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18557
18558 2017-12-14 Florian Weimer <fweimer@redhat.com>
18559
18560 [BZ #22607]
18561 CVE-2017-1000409
18562 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18563 the expanded path string.
18564
18565 2017-12-14 Florian Weimer <fweimer@redhat.com>
18566
18567 [BZ #22606]
18568 CVE-2017-1000408
18569 * elf/dl-load.c (system_dirs): Update comment.
18570 (nsystem_dirs_len): Use array_length.
18571 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18572
18573 2017-12-14 Florian Weimer <fweimer@redhat.com>
18574
18575 Simplify compiling most of support/ outside of glibc.
18576 * support/check_addrinfo.c: Include <string.h>.
18577 * support/check_dns_packet.c: Likewise.
18578 * support/check_hostent.c: Likewise.
18579 * support/support_can_chroot.c: Include <support/xunistd.h>.
18580 * support/support_format_addrinfo.c: Include <stdlib.h>
18581 * support/support_format_dns_packet.c: Include <stdbool.h>.
18582 * support/support_format_hostent.c: Include <stdlib.h>.
18583 * support/support_format_netent.c: Likewise.
18584 * support/support_write_string.c: Include <support/xunistd.h>.
18585 * support/xdlfcn.c: Include <stddef.h>.
18586
18587 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18588
18589 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18590
18591 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18592 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18593
18594 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18595 (sysdeps_routines): Add memset-niagara7.
18596 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18597 Likewise.
18598 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18599 file.
18600 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18601 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18602 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18603 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18604 Add niagara7 option.
18605 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18606 memset.
18607
18608 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18609 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18610 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18611 Likewise.
18612 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18613 New file.
18614 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18615 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18616 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18617 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18618 and __memmove_niagara7.
18619 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18620 Add niagara7 option.
18621 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18622 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18623 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18624 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18625 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18626
18627 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18628
18629 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18630 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18631 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18632 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18633
18634 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18635 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18636 _dl_sparc_cap_flags array.
18637 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18638
18639 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18640
18641 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18642 time whenever possible.
18643
18644 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18645
18646 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18647 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18648
18649 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18650
18651 * soft-fp/fmadf4.c: Move to ....
18652 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18653 * soft-fp/fmasf4.c: Move to ....
18654 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18655 * soft-fp/fmatf4.c: Move to ....
18656 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18657 * sysdeps/ieee754/soft-fp/Makefile: New file.
18658 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18659 * sysdeps/arm/preconfigure: Regenerated.
18660 * sysdeps/arm/nofpu/Implies: New file.
18661 * sysdeps/arm/s_fma.c: Remove file.
18662 * sysdeps/arm/s_fmaf.c: Likewise.
18663 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18664 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18665 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18666 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18667 * sysdeps/microblaze/s_fma.c: Remove file.
18668 * sysdeps/microblaze/s_fmaf.c: Likewise.
18669 * sysdeps/mips/mips32/nofpu/Implies: New file.
18670 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18671 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18672 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18673 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18674 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18675 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18676 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18677 implementation.
18678 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18679 * sysdeps/nios2/s_fma.c: Remove file.
18680 * sysdeps/nios2/s_fmaf.c: Likewise.
18681 * sysdeps/sh/nofpu/Implies: New file.
18682 * sysdeps/sh/s_fma.c: Remove file.
18683 * sysdeps/sh/s_fmaf.c: Likewise.
18684 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18685 * sysdeps/tile/s_fma.c: Remove file.
18686 * sysdeps/tile/s_fmaf.c: Likewise.
18687
18688 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18689
18690 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18691 Add s_cosf-sse2 and s_cosf-fma.
18692 (CFLAGS-s_cosf-fma.c): New.
18693 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18694 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18695 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18696
18697 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18698
18699 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18700
18701 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18702
18703 * libio/Makefile (tests): Add tst-bz22415.
18704 (tst-bz22415-ENV): New rule.
18705 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18706 (tests-special): Add tst-bz22415-mem.out.
18707 ($(objpfx)tst-bz22415-mem.out): New rule.
18708 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18709 in case of a successful seek operation.
18710 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18711 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18712 buffer is required.
18713 * libio/tst-bz22415.c: New test.
18714
18715 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18716
18717 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18718
18719 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18720 __IPC_64 to 0 to avoid IPC_64 being set.
18721
18722 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18723
18724 [BZ #22593]
18725 * math/bits/mathcalls.h (nextafter): Remove const.
18726 (nexttoward): Likewise.
18727
18728 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18729
18730 * configure.ac (--with-fp): Remove configure option.
18731 (with_fp_cond): New variable.
18732 (libc_cv_with_fp): New configure test. Use this variable instead
18733 of with_fp.
18734 * configure: Regenerated.
18735 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18736 * manual/install.texi (Configuring and compiling): Remove
18737 --without-fp.
18738 * INSTALL: Regenerated.
18739 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18740 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18741 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18742 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18743 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18744 use --without-fp to configure glibc.
18745
18746 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18747
18748 * manual/locale.texi (nl_langinfo): Fix a typo.
18749
18750 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18751
18752 [BZ #22588]
18753 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18754
18755 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18756
18757 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18758 (CFLAGS-argp-parse.c): Likewise.
18759 (CFLAGS-argp-fmtstream.c): Likewise.
18760 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18761 (CPPFLAGS-sha512-crypt.c): Likewise.
18762 (CPPFLAGS-md5-crypt.c): Likewise.
18763 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18764 (CFLAGS-stack_chk_fail_local.c): Likewise.
18765 (CFLAGS-backtrace.c): Likewise.
18766 (CFLAGS-sprintf_chk.c): Likewise.
18767 (CFLAGS-snprintf_chk.c): Likewise.
18768 (CFLAGS-vsprintf_chk.c): Likewise.
18769 (CFLAGS-vsnprintf_chk.c): Likewise.
18770 (CFLAGS-asprintf_chk.c): Likewise.
18771 (CFLAGS-vasprintf_chk.c): Likewise.
18772 (CFLAGS-obprintf_chk.c): Likewise.
18773 (CFLAGS-dprintf_chk.c): Likewise.
18774 (CFLAGS-vdprintf_chk.c): Likewise.
18775 (CFLAGS-printf_chk.c): Likewise.
18776 (CFLAGS-fprintf_chk.c): Likewise.
18777 (CFLAGS-vprintf_chk.c): Likewise.
18778 (CFLAGS-vfprintf_chk.c): Likewise.
18779 (CFLAGS-gets_chk.c): Likewise.
18780 (CFLAGS-fgets_chk.c): Likewise.
18781 (CFLAGS-fgets_u_chk.c): Likewise.
18782 (CFLAGS-fread_chk.c): Likewise.
18783 (CFLAGS-fread_u_chk.c): Likewise.
18784 (CFLAGS-swprintf_chk.c): Likewise.
18785 (CFLAGS-vswprintf_chk.c): Likewise.
18786 (CFLAGS-wprintf_chk.c): Likewise.
18787 (CFLAGS-fwprintf_chk.c): Likewise.
18788 (CFLAGS-vwprintf_chk.c): Likewise.
18789 (CFLAGS-vfwprintf_chk.c): Likewise.
18790 (CFLAGS-fgetws_chk.c): Likewise.
18791 (CFLAGS-fgetws_u_chk.c): Likewise.
18792 (CFLAGS-read_chk.c): Likewise.
18793 (CFLAGS-pread_chk.c): Likewise.
18794 (CFLAGS-pread64_chk.c): Likewise.
18795 (CFLAGS-recv_chk.c): Likewise.
18796 (CFLAGS-recvfrom_chk.c): Likewise.
18797 (CFLAGS-tst-longjmp_chk.c): Likewise.
18798 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18799 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18800 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18801 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18802 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18803 (CFLAGS-tst-chk1.c): Likewise.
18804 (CFLAGS-tst-chk2.c): Likewise.
18805 (CFLAGS-tst-chk3.c): Likewise.
18806 (CFLAGS-tst-chk4.cc): Likewise.
18807 (CFLAGS-tst-chk5.cc): Likewise.
18808 (CFLAGS-tst-chk6.cc): Likewise.
18809 (CFLAGS-tst-lfschk1.c): Likewise.
18810 (CFLAGS-tst-lfschk2.c): Likewise.
18811 (CFLAGS-tst-lfschk3.c): Likewise.
18812 (CFLAGS-tst-lfschk4.cc): Likewise.
18813 (CFLAGS-tst-lfschk5.cc): Likewise.
18814 (CFLAGS-tst-lfschk6.cc): Likewise.
18815 (CFLAGS-tst-ssp-1.c): Likewise.
18816 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18817 (CFLAGS-scandir64.c): Likewise.
18818 (CFLAGS-scandir-tail.c): Likewise.
18819 (CFLAGS-scandir64-tail.c): Likewise.
18820 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18821 (CFLAGS-dl-tunables.c): Likewise.
18822 (CFLAGS-dl-runtime.c): Likewise.
18823 (CFLAGS-dl-lookup.c): Likewise.
18824 (CFLAGS-dl-iterate-phdr.c): Likewise.
18825 (CFLAGS-vismain.c): Likewise.
18826 (CFLAGS-tst-linkall-static.c): Likewise.
18827 (CFLAGS-tst-linkall-static.c): Likewise.
18828 (CPPFLAGS-dl-load.c): Likewise.
18829 (CFLAGS-ldconfig.c): Likewise.
18830 (CFLAGS-dl-cache.c): Likewise.
18831 (CFLAGS-cache.c): Likewise.
18832 (CFLAGS-rtld.c): Likewise.
18833 (CFLAGS-multiload.c): Likewise.
18834 (CFLAGS-filtmod1.c): Likewise.
18835 (CFLAGS-tst-align.c): Likewise.
18836 (CFLAGS-tst-align2.c): Likewise.
18837 (CFLAGS-tst-alignmod.c): Likewise.
18838 (CFLAGS-tst-alignmod2.c): Likewise.
18839 (CPPFLAGS-tst-execstack.c): Likewise.
18840 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18841 (CFLAGS-tst-latepthreadmod.c): Likewise.
18842 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18843 (CFLAGS-getgrnam_r.c): Likewise.
18844 (CFLAGS-getgrent_r.c): Likewise.
18845 (CFLAGS-getgrent.c): Likewise.
18846 (CFLAGS-fgetgrent.c): Likewise.
18847 (CFLAGS-fgetgrent_r.c): Likewise.
18848 (CFLAGS-putgrent.c): Likewise.
18849 (CFLAGS-initgroups.c): Likewise.
18850 (CFLAGS-getgrgid.c): Likewise.
18851 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18852 (CFLAGS-getsgent.c): Likewise.
18853 (CFLAGS-fgetsgent.c): Likewise.
18854 (CFLAGS-fgetsgent_r.c): Likewise.
18855 (CFLAGS-putsgent.c): Likewise.
18856 (CFLAGS-getsgnam.c): Likewise.
18857 (CFLAGS-getsgnam_r.c): Likewise.
18858 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18859 (CFLAGS-iconv_charmap.c): Likewise.
18860 (CFLAGS-dummy-repertoire.c): Likewise.
18861 (CFLAGS-charmap.c): Likewise.
18862 (CFLAGS-linereader.c): Likewise.
18863 (CFLAGS-simple-hash.c): Likewise.
18864 (CFLAGS-gconv_conf.c): Likewise.
18865 (CFLAGS-iconvconfig.c): Likewise.
18866 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18867 (CFLAGS-gethstbyad.c): Likewise.
18868 (CFLAGS-gethstbynm_r.c): Likewise.
18869 (CFLAGS-gethstbynm.c): Likewise.
18870 (CFLAGS-gethstbynm2_r.c): Likewise.
18871 (CFLAGS-gethstbynm2.c): Likewise.
18872 (CFLAGS-gethstent_r.c): Likewise.
18873 (CFLAGS-gethstent.c): Likewise.
18874 (CFLAGS-rcmd.c): Likewise.
18875 (CFLAGS-getnetbynm_r.c): Likewise.
18876 (CFLAGS-getnetbynm.c): Likewise.
18877 (CFLAGS-getnetbyad_r.c): Likewise.
18878 (CFLAGS-getnetbyad.c): Likewise.
18879 (CFLAGS-getnetent_r.c): Likewise.
18880 (CFLAGS-getnetent.c): Likewise.
18881 (CFLAGS-getaliasent_r.c): Likewise.
18882 (CFLAGS-getaliasent.c): Likewise.
18883 (CFLAGS-getrpcent_r.c): Likewise.
18884 (CFLAGS-getrpcent.c): Likewise.
18885 (CFLAGS-getservent_r.c): Likewise.
18886 (CFLAGS-getservent.c): Likewise.
18887 (CFLAGS-getprtent_r.c): Likewise.
18888 (CFLAGS-getprtent.c): Likewise.
18889 (CFLAGS-either_ntoh.c): Likewise.
18890 (CFLAGS-either_hton.c): Likewise.
18891 (CFLAGS-getnetgrent.c): Likewise.
18892 (CFLAGS-getnetgrent_r.c): Likewise.
18893 (CFLAGS-tst-checks-posix.c): Likewise.
18894 (CFLAGS-tst-sockaddr.c): Likewise.
18895 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18896 (CFLAGS-tst-translit.c): Likewise.
18897 (CFLAGS-tst-gettext2.c): Likewise.
18898 (CFLAGS-tst-codeset.c): Likewise.
18899 (CFLAGS-tst-gettext3.c): Likewise.
18900 (CFLAGS-tst-gettext4.c): Likewise.
18901 (CFLAGS-tst-gettext5.c): Likewise.
18902 (CFLAGS-tst-gettext6.c): Likewise.
18903 * io/Makefile (CFLAGS-open.c): Likewise.
18904 (CFLAGS-open64.c): Likewise.
18905 (CFLAGS-creat.c): Likewise.
18906 (CFLAGS-creat64.c): Likewise.
18907 (CFLAGS-fcntl.c): Likewise.
18908 (CFLAGS-poll.c): Likewise.
18909 (CFLAGS-ppoll.c): Likewise.
18910 (CFLAGS-lockf.c): Likewise.
18911 (CFLAGS-statfs.c): Likewise.
18912 (CFLAGS-fstatfs.c): Likewise.
18913 (CFLAGS-statvfs.c): Likewise.
18914 (CFLAGS-fstatvfs.c): Likewise.
18915 (CFLAGS-fts.c): Likewise.
18916 (CFLAGS-fts64.c): Likewise.
18917 (CFLAGS-ftw.c): Likewise.
18918 (CFLAGS-ftw64.c): Likewise.
18919 (CFLAGS-lockf.c): Likewise.
18920 (CFLAGS-posix_fallocate.c): Likewise.
18921 (CFLAGS-posix_fallocate64.c): Likewise.
18922 (CFLAGS-fallocate.c): Likewise.
18923 (CFLAGS-fallocate64.c): Likewise.
18924 (CFLAGS-read.c): Likewise.
18925 (CFLAGS-write.c): Likewise.
18926 (CFLAGS-test-stat.c): Likewise.
18927 (CFLAGS-test-lfs.c): Likewise.
18928 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18929 (CFLAGS-fputc.c): Likewise.
18930 (CFLAGS-fputwc.c): Likewise.
18931 (CFLAGS-freopen64.c): Likewise.
18932 (CFLAGS-freopen.c): Likewise.
18933 (CFLAGS-fseek.c): Likewise.
18934 (CFLAGS-fseeko64.c): Likewise.
18935 (CFLAGS-fseeko.c): Likewise.
18936 (CFLAGS-ftello64.c): Likewise.
18937 (CFLAGS-ftello.c): Likewise.
18938 (CFLAGS-fwide.c): Likewise.
18939 (CFLAGS-genops.c): Likewise.
18940 (CFLAGS-getc.c): Likewise.
18941 (CFLAGS-getchar.c): Likewise.
18942 (CFLAGS-getwc.c): Likewise.
18943 (CFLAGS-getwchar.c): Likewise.
18944 (CFLAGS-iofclose.c): Likewise.
18945 (CFLAGS-iofflush.c): Likewise.
18946 (CFLAGS-iofgetpos64.c): Likewise.
18947 (CFLAGS-iofgetpos.c): Likewise.
18948 (CFLAGS-iofgets.c): Likewise.
18949 (CFLAGS-iofgetws.c): Likewise.
18950 (CFLAGS-iofputs.c): Likewise.
18951 (CFLAGS-iofputws.c): Likewise.
18952 (CFLAGS-iofread.c): Likewise.
18953 (CFLAGS-iofsetpos64.c): Likewise.
18954 (CFLAGS-iofsetpos.c): Likewise.
18955 (CFLAGS-ioftell.c): Likewise.
18956 (CFLAGS-iofwrite.c): Likewise.
18957 (CFLAGS-iogetdelim.c): Likewise.
18958 (CFLAGS-iogetline.c): Likewise.
18959 (CFLAGS-iogets.c): Likewise.
18960 (CFLAGS-iogetwline.c): Likewise.
18961 (CFLAGS-ioputs.c): Likewise.
18962 (CFLAGS-ioseekoff.c): Likewise.
18963 (CFLAGS-ioseekpos.c): Likewise.
18964 (CFLAGS-iosetbuffer.c): Likewise.
18965 (CFLAGS-iosetvbuf.c): Likewise.
18966 (CFLAGS-ioungetc.c): Likewise.
18967 (CFLAGS-ioungetwc.c): Likewise.
18968 (CFLAGS-oldfileops.c): Likewise.
18969 (CFLAGS-oldiofclose.c): Likewise.
18970 (CFLAGS-oldiofgetpos64.c): Likewise.
18971 (CFLAGS-oldiofgetpos.c): Likewise.
18972 (CFLAGS-oldiofsetpos64.c): Likewise.
18973 (CFLAGS-oldiofsetpos.c): Likewise.
18974 (CFLAGS-peekc.c): Likewise.
18975 (CFLAGS-putc.c): Likewise.
18976 (CFLAGS-putchar.c): Likewise.
18977 (CFLAGS-putwc.c): Likewise.
18978 (CFLAGS-putwchar.c): Likewise.
18979 (CFLAGS-rewind.c): Likewise.
18980 (CFLAGS-wfileops.c): Likewise.
18981 (CFLAGS-wgenops.c): Likewise.
18982 (CFLAGS-oldiofopen.c): Likewise.
18983 (CFLAGS-iofopen.c): Likewise.
18984 (CFLAGS-iofopen64.c): Likewise.
18985 (CFLAGS-oldtmpfile.c): Likewise.
18986 (CFLAGS-tst_putwc.c): Likewise.
18987 * locale/Makefile (CFLAGS-md5.c): Likewise.
18988 (CFLAGS-charmap.c): Likewise.
18989 (CFLAGS-locfile.c): Likewise.
18990 (CFLAGS-charmap-dir.c): Likewise.
18991 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18992 (CFLAGS-getpt.c): Likewise.
18993 (CFLAGS-pt_chown.c): Likewise.
18994 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18995 (CFLAGS-obstack.c): Likewise.
18996 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18997 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18998 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18999 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19000 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19001 (CFLAGS-test-tgmath.c): Likewise.
19002 (CFLAGS-test-tgmath2.c): Likewise.
19003 (CFLAGS-test-tgmath-ret.c): Likewise.
19004 (CFLAGS-test-powl.c): Likewise.
19005 (CFLAGS-test-snan.c): Likewise.
19006 (CFLAGS-test-signgam-finite.c): Likewise.
19007 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19008 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19009 (CFLAGS-test-signgam-uchar.c): Likewise.
19010 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19011 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19012 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19013 (CFLAGS-test-signgam-uint.c): Likewise.
19014 (CFLAGS-test-signgam-uint-init.c): Likewise.
19015 (CFLAGS-test-signgam-uint-static.c): Likewise.
19016 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19017 (CFLAGS-test-signgam-ullong.c): Likewise.
19018 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19019 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19020 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19021 (CFLAGS-test-math-cxx11.cc): Likewise.
19022 (CFLAGS-test-math-isinff.cc): Likewise.
19023 (CFLAGS-test-math-iszero.cc): Likewise.
19024 (CFLAGS-test-math-issignaling.cc): Likewise.
19025 (CFLAGS-test-math-iscanonical.cc): Likewise.
19026 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19027 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19028 (CFLAGS-test-flt-eval-method.c): Likewise.
19029 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19030 (CFLAGS-test-finite-macros.c): Likewise.
19031 * misc/Makefile (CFLAGS-select.c): Likewise.
19032 (CFLAGS-tsearch.c): Likewise.
19033 (CFLAGS-lsearch.c): Likewise.
19034 (CFLAGS-pselect.c): Likewise.
19035 (CFLAGS-readv.c): Likewise.
19036 (CFLAGS-writev.c): Likewise.
19037 (CFLAGS-preadv.c): Likewise.
19038 (CFLAGS-preadv64.c): Likewise.
19039 (CFLAGS-pwritev.c): Likewise.
19040 (CFLAGS-pwritev64.c): Likewise.
19041 (CFLAGS-preadv2.c): Likewise.
19042 (CFLAGS-preadv64v2.c): Likewise.
19043 (CFLAGS-pwritev2.c): Likewise.
19044 (CFLAGS-pwritev64v2.c): Likewise.
19045 (CFLAGS-usleep.c): Likewise.
19046 (CFLAGS-syslog.c): Likewise.
19047 (CFLAGS-error.c): Likewise.
19048 (CFLAGS-getpass.c): Likewise.
19049 (CFLAGS-mkstemp.c): Likewise.
19050 (CFLAGS-mkstemp64.c): Likewise.
19051 (CFLAGS-getsysstats.c): Likewise.
19052 (CFLAGS-getusershell.c): Likewise.
19053 (CFLAGS-err.c): Likewise.
19054 (CFLAGS-tst-tsearch.c): Likewise.
19055 (CFLAGS-msync.c): Likewise.
19056 (CFLAGS-fdatasync.c): Likewise.
19057 (CFLAGS-fsync.c): Likewise.
19058 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19059 (CFLAGS-unwind.c): Likewise.
19060 (CFLAGS-unwind-forcedunwind.c): Likewise.
19061 (CFLAGS-pthread_cancel.c): Likewise.
19062 (CFLAGS-pthread_setcancelstate.c): Likewise.
19063 (CFLAGS-pthread_setcanceltype.c): Likewise.
19064 (CFLAGS-cancellation.c): Likewise.
19065 (CFLAGS-libc-cancellation.c): Likewise.
19066 (CFLAGS-pthread_exit.c): Likewise.
19067 (CFLAGS-forward.c): Likewise.
19068 (CFLAGS-pthread_testcancel.c): Likewise.
19069 (CFLAGS-pthread_join.c): Likewise.
19070 (CFLAGS-pthread_timedjoin.c): Likewise.
19071 (CFLAGS-pthread_once.c): Likewise.
19072 (CFLAGS-pthread_cond_wait.c): Likewise.
19073 (CFLAGS-sem_wait.c): Likewise.
19074 (CFLAGS-sem_timedwait.c): Likewise.
19075 (CFLAGS-fcntl.c): Likewise.
19076 (CFLAGS-lockf.c): Likewise.
19077 (CFLAGS-pread.c): Likewise.
19078 (CFLAGS-pread64.c): Likewise.
19079 (CFLAGS-pwrite.c): Likewise.
19080 (CFLAGS-pwrite64.c): Likewise.
19081 (CFLAGS-wait.c): Likewise.
19082 (CFLAGS-waitpid.c): Likewise.
19083 (CFLAGS-sigwait.c): Likewise.
19084 (CFLAGS-msgrcv.c): Likewise.
19085 (CFLAGS-msgsnd.c): Likewise.
19086 (CFLAGS-tcdrain.c): Likewise.
19087 (CFLAGS-open.c): Likewise.
19088 (CFLAGS-open64.c): Likewise.
19089 (CFLAGS-pause.c): Likewise.
19090 (CFLAGS-recv.c): Likewise.
19091 (CFLAGS-send.c): Likewise.
19092 (CFLAGS-accept.c): Likewise.
19093 (CFLAGS-sendto.c): Likewise.
19094 (CFLAGS-connect.c): Likewise.
19095 (CFLAGS-recvfrom.c): Likewise.
19096 (CFLAGS-recvmsg.c): Likewise.
19097 (CFLAGS-sendmsg.c): Likewise.
19098 (CFLAGS-close.c): Likewise.
19099 (CFLAGS-read.c): Likewise.
19100 (CFLAGS-write.c): Likewise.
19101 (CFLAGS-nanosleep.c): Likewise.
19102 (CFLAGS-sigsuspend.c): Likewise.
19103 (CFLAGS-msync.c): Likewise.
19104 (CFLAGS-fdatasync.c): Likewise.
19105 (CFLAGS-fsync.c): Likewise.
19106 (CFLAGS-pt-system.c): Likewise.
19107 (CFLAGS-tst-cleanup2.c): Likewise.
19108 (CFLAGS-tst-cleanupx2.c): Likewise.
19109 (CFLAGS-flockfile.c): Likewise.
19110 (CFLAGS-ftrylockfile.c): Likewise.
19111 (CFLAGS-funlockfile.c): Likewise.
19112 (CFLAGS-tst-initializers1.c): Likewise.
19113 (CFLAGS-tst-initializers1-c89.c): Likewise.
19114 (CFLAGS-tst-initializers1-c99.c): Likewise.
19115 (CFLAGS-tst-initializers1-c11.c): Likewise.
19116 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19117 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19118 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19119 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19120 (CFLAGS-nscd_getgr_r.c): Likewise.
19121 (CFLAGS-nscd_gethst_r.c): Likewise.
19122 (CFLAGS-nscd_getai.c): Likewise.
19123 (CFLAGS-nscd_initgroups.c): Likewise.
19124 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19125 (CFLAGS-pause.c): Likewise.
19126 (CFLAGS-pread.c): Likewise.
19127 (CFLAGS-pread64.c): Likewise.
19128 (CFLAGS-pwrite.c): Likewise.
19129 (CFLAGS-pwrite64.c): Likewise.
19130 (CFLAGS-sleep.c): Likewise.
19131 (CFLAGS-wait.c): Likewise.
19132 (CFLAGS-waitid.c): Likewise.
19133 (CFLAGS-waitpid.c): Likewise.
19134 (CFLAGS-getopt.c): Likewise.
19135 (CFLAGS-wordexp.c): Likewise.
19136 (CFLAGS-sysconf.c): Likewise.
19137 (CFLAGS-pathconf.c): Likewise.
19138 (CFLAGS-fpathconf.c): Likewise.
19139 (CFLAGS-spawn.c): Likewise.
19140 (CFLAGS-spawnp.c): Likewise.
19141 (CFLAGS-spawni.c): Likewise.
19142 (CFLAGS-glob.c): Likewise.
19143 (CFLAGS-glob64.c): Likewise.
19144 (CFLAGS-getconf.c): Likewise.
19145 (CFLAGS-nanosleep.c): Likewise.
19146 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19147 (CFLAGS-getpwent.c): Likewise.
19148 (CFLAGS-getpw.c): Likewise.
19149 (CFLAGS-fgetpwent_r.c): Likewise.
19150 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19151 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19152 (CFLAGS-mq_timedreceive.c): Likewise.
19153 (CFLAGS-mq_timedsend.c): Likewise.
19154 (CFLAGS-clock_nanosleep.c): Likewise.
19155 (CFLAGS-librt-cancellation.c): Likewise.
19156 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19157 (CFLAGS-getspent.c): Likewise.
19158 (CFLAGS-fgetspent.c): Likewise.
19159 (CFLAGS-fgetspent_r.c): Likewise.
19160 (CFLAGS-putspent.c): Likewise.
19161 (CFLAGS-getspnam.c): Likewise.
19162 (CFLAGS-getspnam_r.c): Likewise.
19163 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19164 (CFLAGS-sigsuspend.c): Likewise.
19165 (CFLAGS-sigtimedwait.c): Likewise.
19166 (CFLAGS-sigwait.c): Likewise.
19167 (CFLAGS-sigwaitinfo.c): Likewise.
19168 (CFLAGS-sigreturn.c): Likewise.
19169 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19170 (CFLAGS-vfwprintf.c): Likewise.
19171 (CFLAGS-tmpfile.c): Likewise.
19172 (CFLAGS-tmpfile64.c): Likewise.
19173 (CFLAGS-tempname.c): Likewise.
19174 (CFLAGS-psignal.c): Likewise.
19175 (CFLAGS-vprintf.c): Likewise.
19176 (CFLAGS-cuserid.c): Likewise.
19177 (CFLAGS-errlist.c): Likewise.
19178 (CFLAGS-siglist.c): Likewise.
19179 (CFLAGS-scanf15.c): Likewise.
19180 (CFLAGS-scanf17.c): Likewise.
19181 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19182 (CFLAGS-msort.c): Likewise.
19183 (CFLAGS-qsort.c): Likewise.
19184 (CFLAGS-system.c): Likewise.
19185 (CFLAGS-fmtmsg.c): Likewise.
19186 (CFLAGS-strfmon.c): Likewise.
19187 (CFLAGS-strfmon_l.c): Likewise.
19188 (CFLAGS-strfromd.c): Likewise.
19189 (CFLAGS-strfromf.c): Likewise.
19190 (CFLAGS-strfroml.c): Likewise.
19191 (CFLAGS-tst-bsearch.c): Likewise.
19192 (CFLAGS-tst-qsort.c): Likewise.
19193 (CFLAGS-tst-makecontext2.c): Likewise.
19194 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19195 (CFLAGS-xnlm_prot.c): Likewise.
19196 (CFLAGS-xrstat.c): Likewise.
19197 (CFLAGS-xyppasswd.c): Likewise.
19198 (CFLAGS-xklm_prot.c): Likewise.
19199 (CFLAGS-xrex.c): Likewise.
19200 (CFLAGS-xsm_inter.c): Likewise.
19201 (CFLAGS-xmount.c): Likewise.
19202 (CFLAGS-xrusers.c): Likewise.
19203 (CFLAGS-xspray.c): Likewise.
19204 (CFLAGS-xnfs_prot.c): Likewise.
19205 (CFLAGS-xrquota.c): Likewise.
19206 (CFLAGS-xkey_prot.c): Likewise.
19207 (CFLAGS-auth_unix.c): Likewise.
19208 (CFLAGS-key_call.c): Likewise.
19209 (CFLAGS-pmap_rmt.c): Likewise.
19210 (CFLAGS-clnt_perr.c): Likewise.
19211 (CFLAGS-openchild.c): Likewise.
19212 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19213 (CFLAGS-msgsnd.c): Likewise.
19214 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19215 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19216 (CFLAGS-tzset.c): Likewise.
19217 (CFLAGS-getdate.c): Likewise.
19218 (CFLAGS-test_time.c): Likewise.
19219 (CPPFLAGS-tst-tzname.c): Likewise.
19220 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19221 (CFLAGS-zic.c): Likewise.
19222 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19223 (CFLAGS-wcswidth.c): Likewise.
19224 (CFLAGS-wcstol.c): Likewise.
19225 (CFLAGS-wcstoul.c): Likewise.
19226 (CFLAGS-wcstoll.c): Likewise.
19227 (CFLAGS-wcstoull.c): Likewise.
19228 (CFLAGS-wcstod.c): Likewise.
19229 (CFLAGS-wcstold.c): Likewise.
19230 (CFLAGS-wcstof128.c): Likewise.
19231 (CFLAGS-wcstof.c): Likewise.
19232 (CFLAGS-wcstol_l.c): Likewise.
19233 (CFLAGS-wcstoul_l.c): Likewise.
19234 (CFLAGS-wcstoll_l.c): Likewise.
19235 (CFLAGS-wcstoull_l.c): Likewise.
19236 (CFLAGS-wcstod_l.c): Likewise.
19237 (CFLAGS-wcstold_l.c): Likewise.
19238 (CFLAGS-wcstof128_l.c): Likewise.
19239 (CFLAGS-wcstof_l.c): Likewise.
19240 (CPPFLAGS-tst-wchar-h.c): Likewise.
19241 (CPPFLAGS-wcstold_l.c): Likewise.
19242
19243 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19244
19245 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19246
19247 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19248 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19249
19250 * manual/tunables.texi (Hardware Capability Tunables): Document
19251 glibc.tune.cached_memopt.
19252 * sysdeps/powerpc/cpu-features.c: New file.
19253 * sysdeps/powerpc/cpu-features.h: New file.
19254 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19255 _dl_powerpc_cpu_features.
19256 * sysdeps/powerpc/dl-tunables.list: New file.
19257 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19258 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19259 (INIT_ARCH): Initialize use_aligned_memopt.
19260 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19261 IS_IN(rtld))]: Restrict dl_platform_init availability and
19262 initialize CPU features used by tunables.
19263 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19264 Add memcpy-power8-cached.
19265 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19266 __memcpy_power8_cached.
19267 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19268 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19269 New file.
19270
19271 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19272
19273 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19274 (CFLAGS-noinl-tester.c): Likewise.
19275 (CFLAGS-tst-strlen.c): Likewise.
19276 (CFLAGS-stratcliff.c): Likewise.
19277 (CFLAGS-test-ffs.c): Likewise.
19278 (CFLAGS-tst-inlcall.c): Likewise.
19279 (CFLAGS-tst-xbzero-opt.c): Likewise.
19280 (CFLAGS-memcpy.c): Likewise.
19281 (CFLAGS-wordcopy.c): Likewise.
19282
19283 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19284
19285 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19286 Store r15 on stack and add cfi rule.
19287 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19288 Likewise.
19289
19290 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19291
19292 [BZ #22577]
19293 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19294 call.
19295
19296 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19297
19298 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19299 Add s_sinf-sse2 and s_sinf-fma.
19300 (CFLAGS-s_sinf-fma.c): New.
19301 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19302 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19303 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19304
19305 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19306
19307 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19308
19309 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19310
19311 [BZ #22568]
19312 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19313 part of result to imaginary part of argument if it is zero and the
19314 real part of the argument is not finite.
19315 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19316 of result to real part of argument if it is zero and the imaginary
19317 part of the argument is not finite.
19318
19319 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19320
19321 [BZ #22524]
19322 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19323 and to the list of locales to be built for testing.
19324 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19325 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19326 and build the collation rules upon that.
19327
19328 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19329
19330 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19331 * manual/math.texi (Mathematics): Document support for _Float32.
19332 * math/Makefile (test-types): Add float32.
19333 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19334 * stdlib/Versions (GLIBC_2.27): Likewise.
19335 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19336 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19337 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19338 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19339 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19340 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19341 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19342 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19343 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19344 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19345 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19346 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19347 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19348 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19349 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19350 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19351 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19352 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19353 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19354 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19355 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19356 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19357 Likewise.
19358 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19359 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19360 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19361 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19362 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19363 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19364 Likewise.
19365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19366 Likewise.
19367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19368 Likewise.
19369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19370 Likewise.
19371
19372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19373 Likewise.
19374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19375 Likewise.
19376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19377 Likewise.
19378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19379 Likewise.
19380 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19381 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19382 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19383 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19384 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19385 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19386 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19387 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19388 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19389 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19390 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19391 Likewise.
19392 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19393 Likewise.
19394 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19395 Likewise.
19396 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19397 Likewise.
19398 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19399 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19400 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19401 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19402 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19403 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19404 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19405 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19406
19407 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19408
19409 * stdlib/strtof.c: Include <bits/floatn.h>
19410 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19411 and later undefine as macro. Define as weak alias if
19412 [!USE_WIDE_CHAR].
19413 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19414 and later undefine as macro. Define as weak alias if
19415 [USE_WIDE_CHAR].
19416 * stdlib/strtof_l.c: Include <bits/floatn.h>
19417 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19418 and later undefine as macro. Define as weak alias if
19419 [!USE_WIDE_CHAR].
19420 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19421 and later undefine as macro. Define as weak alias if
19422 [USE_WIDE_CHAR].
19423
19424 * stdlib/strfromf.c: Include <bits/floatn.h>.
19425 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19426 and later undefine as macro and define as weak alias.
19427
19428 * math/test-float32.h: New file.
19429
19430 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19431 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19432 (libm_alias_float_other_r): Create f32 alias.
19433 (libm_alias_float_r): Use semicolon before call to
19434 libm_alias_float_other_r.
19435
19436 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19437 second argument to libm_alias_float_other.
19438 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19439 second argument to libm_alias_float_other.
19440 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19441 argument to libm_alias_float_other.
19442
19443 [BZ #22561]
19444 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19445 real part of result for argument 0 + i * NaN.
19446 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19447 results for tests of 0 + i * NaN.
19448
19449 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19450
19451 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19452
19453 2017-12-06 David S. Miller <davem@davemloft.net>
19454
19455 * sysdeps/sparc/fpu/libm-test-ulps: Update
19456 exp_{downward,towardzero,upward} ulps.
19457
19458 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19459
19460 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19461 variables static.
19462
19463 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19464 (Y0_2D): Likewise.
19465 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19466 (Y0_2D): Likewise.
19467 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19468 (Y0_2D): Likewise.
19469 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19470 (Y0_2D): Likewise.
19471
19472 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19473
19474 [BZ #22515]
19475 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19476 and to the list of locales to be built for testing.
19477 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19478 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19479 and build the collation rules upon that.
19480
19481 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19482
19483 * NEWS: Add sinf to list of optimized functions.
19484
19485 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19486
19487 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19488 (__HAVE_FLOAT32X): Likewise.
19489 * manual/math.texi (Mathematics): Document support for _Float64
19490 and _Float32x.
19491 * math/Makefile (test-types): Add float64 and float32x.
19492 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19493 functions.
19494 * stdlib/Versions (GLIBC_2.27): Likewise.
19495 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19496 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19497 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19498 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19499 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19500 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19501 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19502 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19503 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19504 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19505 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19506 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19507 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19508 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19509 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19510 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19511 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19512 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19513 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19514 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19515 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19516 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19517 Likewise.
19518 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19519 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19520 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19521 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19522 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19524 Likewise.
19525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19526 Likewise.
19527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19528 Likewise.
19529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19530 Likewise.
19531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19532 Likewise.
19533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19534 Likewise.
19535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19536 Likewise.
19537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19538 Likewise.
19539 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19540 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19541 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19542 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19543 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19544 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19545 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19546 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19547 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19548 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19549 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19550 Likewise.
19551 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19552 Likewise.
19553 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19554 Likewise.
19555 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19556 Likewise.
19557 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19558 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19559 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19560 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19561 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19562 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19563 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19564 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19565
19566 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19567
19568 * bits/floatn-common.h: Include <bits/long-double.h>.
19569 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19570 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19571 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19572 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19573 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19574 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19575 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19576 (__builtin_huge_valf64): Use __builtin_huge_vall.
19577 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19578 (__builtin_inff64): Use __builtin_infl.
19579 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19580 (__builtin_nanf64): Use __builtin_nanl.
19581 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19582 (__builtin_nansf64): Use __builtin_nansl.
19583
19584 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19585 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19586 Carlos O'Donnell <carlos@redhat.com>
19587
19588 * elf/dl-tunables.list: Add elision parameters.
19589 * manual/tunables.texi: Add entries about elision tunable.
19590 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19591 Add callback functions to dynamically enable/disable elision.
19592 Add multiple callbacks functions to set elision parameters.
19593 Deleted __libc_enable_secure check.
19594 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19595 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19596 * configure: Regenerated.
19597 * configure.ac: Option enable_lock_elision was deleted.
19598 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19599 * config.make.in: Remove references to enable_lock_elision.
19600 * manual/install.texi: Elision configure option was removed.
19601 * INSTALL: Regenerated to remove enable_lock_elision.
19602 * nptl/Makefile:
19603 Disable elision so it can verify error case for destroying a mutex.
19604 * sysdeps/powerpc/nptl/elide.h:
19605 Cleanup ENABLE_LOCK_ELISION check.
19606 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19607 * sysdeps/s390/configure: Regenerated.
19608 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19609 * nptl/tst-mutex8.c:
19610 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19611 * sysdeps/powerpc/powerpc32/sysdep.h:
19612 Deleted all ENABLE_LOCK_ELISION checks.
19613 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19614 * sysdeps/powerpc/sysdep.h: Likewise.
19615 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19616 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19617 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19618 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19619 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19620 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19621 enable-lock-elision.
19622
19623 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19624
19625 * stdlib/strtod.c: Include <bits/floatn.h>.
19626 (BUILD_DOUBLE): New macro.
19627 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19628 (strtof64): Define and later undefine as macro. Define as weak
19629 alias if [!USE_WIDE_CHAR].
19630 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19631 (wcstof64): Define and later undefine as macro. Define as weak
19632 alias if [USE_WIDE_CHAR].
19633 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19634 (strtof32x): Define and later undefine as macro. Define as weak
19635 alias if [!USE_WIDE_CHAR].
19636 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19637 (wcstof32x): Define and later undefine as macro. Define as weak
19638 alias if [USE_WIDE_CHAR].
19639 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19640 (BUILD_DOUBLE): New macro.
19641 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19642 (strtof64_l): Define and later undefine as macro. Define as weak
19643 alias if [!USE_WIDE_CHAR].
19644 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19645 (wcstof64_l): Define and later undefine as macro. Define as weak
19646 alias if [USE_WIDE_CHAR].
19647 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19648 (strtof32x_l): Define and later undefine as macro. Define as weak
19649 alias if [!USE_WIDE_CHAR].
19650 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19651 (wcstof32x_l): Define and later undefine as macro. Define as weak
19652 alias if [USE_WIDE_CHAR].
19653
19654 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19655
19656 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19657 (reduced): Use ones as double instead of integer.
19658
19659 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19660
19661 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19662
19663 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19664
19665 * stdlib/strfromd.c: Include <bits/floatn.h>.
19666 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19667 and later undefine as macro and define as weak alias.
19668 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19669 Likewise.
19670
19671 * math/test-float32x.h: New file.
19672 * math/test-float64.h: Likewise.
19673
19674 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19675 (libm_alias_double_other_r_f64): New macro.
19676 (libm_alias_double_other_r_f32x): Likewise.
19677 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19678 libm_alias_double_other_r_f32x.
19679 (libm_alias_double_r): Use semicolon before call to
19680 libm_alias_double_other_r.
19681 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19682 <bits/floatn.h>.
19683 (libm_alias_double_other_r_f64): New macro.
19684 (libm_alias_double_other_r_f32x): Likewise.
19685 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19686 libm_alias_double_other_r_f32x.
19687
19688 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19689
19690 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19691 int.
19692 (SINF_FUNC): Likewise. Replace floor with simple casts.
19693
19694 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19695
19696 [BZ #22517]
19697 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19698 and to the list of locales to be built for testing.
19699 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19700 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19701 and build the collation rules upon that.
19702
19703 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19704
19705 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19706 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19707 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19708 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19709 instead of __insn__xxx.
19710 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19711 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19712 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19713 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19714 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19715 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19716
19717 2017-12-05 Florian Weimer <fweimer@redhat.com>
19718
19719 Linux: Implement interfaces for memory protection keys
19720 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19721 xsignal, xsysconf.
19722 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19723 * support/xunistd.h (xsysconf): Declare.
19724 * support/xraise.c: New file.
19725 * support/xsigaction.c: Likewise.
19726 * support/xsignal.c: Likewise.
19727 * support/xsysconf.c: Likewise.
19728 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19729 pkey_set, pkey_get, pkey_mprotect.
19730 [misc] (tests): Add tst-pkey.
19731 (tst-pkey): Link with -lpthread.
19732 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19733 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19734 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19735 (PKEY_DISABLE_WRITE): Define.
19736 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19737 Declare.
19738 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19739 (SEGV_PKUERR): Add.
19740 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19741 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19742 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19743 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19744 Add.
19745 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19746 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19747 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19748 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19749 * sysdeps/unix/sysv/linux/**.abilist: Update.
19750
19751 2017-12-05 Florian Weimer <fweimer@redhat.com>
19752
19753 * support/tst-test_compare.c (subprocess): Use long long instead
19754 of long argument for consistent type width across 32-bit and
19755 64-bit architectures.
19756 (do_test): Adjust expected output.
19757
19758 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19759
19760 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19761 (cosf): Define using libm_alias_float.
19762 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19763 (fabsf): Define using libm_alias_float.
19764 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19765 (fmaf): Define using libm_alias_float.
19766 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19767 (rintf): Define using libm_alias_float.
19768 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19769 (sinf): Define using libm_alias_float.
19770 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19771 <libm-alias-float.h>.
19772 (modff): Define using libm_alias_float.
19773 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19774 <libm-alias-float.h>.
19775 (logbf): Define using libm_alias_float.
19776 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19777 <libm-alias-float.h>.
19778 (ceilf): Define using libm_alias_float.
19779 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19780 <libm-alias-float.h>.
19781 (copysignf): Define using libm_alias_float.
19782 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19783 <libm-alias-float.h>.
19784 (floorf): Define using libm_alias_float.
19785 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19786 <libm-alias-float.h>.
19787 (llrintf): Define using libm_alias_float.
19788 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19789 <libm-alias-float.h>.
19790 (llroundf): Define using libm_alias_float.
19791 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19792 <libm-alias-float.h>.
19793 (lrintf): Define using libm_alias_float.
19794 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19795 <libm-alias-float.h>.
19796 (lroundf): Define using libm_alias_float.
19797 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19798 <libm-alias-float.h>.
19799 (nearbyintf): Define using libm_alias_float.
19800 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19801 <libm-alias-float.h>.
19802 (rintf): Define using libm_alias_float.
19803 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19804 <libm-alias-float.h>.
19805 (roundf): Define using libm_alias_float.
19806 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19807 <libm-alias-float.h>.
19808 (truncf): Define using libm_alias_float.
19809 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19810 Include <libm-alias-float.h>.
19811 (ceilf): Define using libm_alias_float.
19812 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19813 Include <libm-alias-float.h>.
19814 (copysignf): Define using libm_alias_float.
19815 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19816 Include <libm-alias-float.h>.
19817 (floorf): Define using libm_alias_float.
19818 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19819 Include <libm-alias-float.h>.
19820 (llrintf): Define using libm_alias_float.
19821 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19822 Include <libm-alias-float.h>.
19823 (llroundf): Define using libm_alias_float.
19824 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19825 Include <libm-alias-float.h>.
19826 (logbf): Define using libm_alias_float.
19827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19828 Include <libm-alias-float.h>.
19829 (lrintf): Define using libm_alias_float.
19830 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19831 Include <libm-alias-float.h>.
19832 (lroundf): Define using libm_alias_float.
19833 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19834 Include <libm-alias-float.h>.
19835 (modff): Define using libm_alias_float.
19836 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19837 Include <libm-alias-float.h>.
19838 (roundf): Define using libm_alias_float.
19839 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19840 Include <libm-alias-float.h>.
19841 (truncf): Define using libm_alias_float.
19842 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19843 <libm-alias-float.h>.
19844 (llrintf): Define using libm_alias_float.
19845 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19846 <libm-alias-float.h>.
19847 (llroundf): Define using libm_alias_float.
19848 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19849 <libm-alias-float.h>.
19850 (ceilf): Define using libm_alias_float.
19851 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19852 <libm-alias-float.h>.
19853 (floorf): Define using libm_alias_float.
19854 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19855 <libm-alias-float.h>.
19856 (llroundf): Define using libm_alias_float.
19857 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19858 <libm-alias-float.h>.
19859 (lroundf): Define using libm_alias_float.
19860 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19861 <libm-alias-float.h>.
19862 (roundf): Define using libm_alias_float.
19863 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19864 <libm-alias-float.h>.
19865 (truncf): Define using libm_alias_float.
19866 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19867 <libm-alias-float.h>.
19868 (copysignf): Define using libm_alias_float.
19869 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19870 <libm-alias-float.h>.
19871 (llrintf): Define using libm_alias_float.
19872 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19873 <libm-alias-float.h>.
19874 (llroundf): Define using libm_alias_float.
19875 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19876 <libm-alias-float.h>.
19877 (lrintf): Define using libm_alias_float.
19878 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19879 <libm-alias-float.h>.
19880 (lroundf): Define using libm_alias_float.
19881 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19882 <libm-alias-float.h>.
19883 (ceilf): Define using libm_alias_float.
19884 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19885 <libm-alias-float.h>.
19886 (copysignf): Define using libm_alias_float.
19887 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19888 <libm-alias-float.h>.
19889 (cosf): Define using libm_alias_float.
19890 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19891 <libm-alias-float.h>.
19892 (floorf): Define using libm_alias_float.
19893 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19894 <libm-alias-float.h>.
19895 (llrintf): Define using libm_alias_float.
19896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19897 <libm-alias-float.h>.
19898 (llroundf): Define using libm_alias_float.
19899 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19900 <libm-alias-float.h>.
19901 (logbf): Define using libm_alias_float.
19902 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19903 <libm-alias-float.h>.
19904 (modff): Define using libm_alias_float.
19905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19906 <libm-alias-float.h>.
19907 (roundf): Define using libm_alias_float.
19908 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19909 <libm-alias-float.h>.
19910 (sinf): Define using libm_alias_float.
19911 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19912 <libm-alias-float.h>.
19913 (truncf): Define using libm_alias_float.
19914 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19915 <libm-alias-float.h>.
19916 (ceilf): Define using libm_alias_float.
19917 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19918 <libm-alias-float.h>.
19919 (copysignf): Define using libm_alias_float.
19920 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19921 <libm-alias-float.h>.
19922 (floorf): Define using libm_alias_float.
19923 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19924 <libm-alias-float.h>.
19925 (llrintf): Define using libm_alias_float.
19926 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19927 <libm-alias-float.h>.
19928 (llroundf): Define using libm_alias_float.
19929 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19930 <libm-alias-float.h>.
19931 (nearbyintf): Define using libm_alias_float.
19932 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19933 <libm-alias-float.h>.
19934 (rintf): Define using libm_alias_float.
19935 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19936 <libm-alias-float.h>.
19937 (roundf): Define using libm_alias_float.
19938 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19939 <libm-alias-float.h>.
19940 (truncf): Define using libm_alias_float.
19941 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19942 <libm-alias-float.h>.
19943 (ceilf): Define using libm_alias_float.
19944 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19945 <libm-alias-float.h>.
19946 (floorf): Define using libm_alias_float.
19947 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19948 <libm-alias-float.h>.
19949 (llroundf): Define using libm_alias_float.
19950 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19951 <libm-alias-float.h>.
19952 (roundf): Define using libm_alias_float.
19953 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19954 <libm-alias-float.h>.
19955 (truncf): Define using libm_alias_float.
19956 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19957 <libm-alias-float.h>.
19958 (copysignf): Define using libm_alias_float.
19959 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19960 <libm-alias-float.h>.
19961 (llrintf): Define using libm_alias_float.
19962 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19963 <libm-alias-float.h>.
19964 (llroundf): Define using libm_alias_float.
19965 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19966 <libm-alias-float.h>.
19967 (cosf): Define using libm_alias_float.
19968 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19969 <libm-alias-float.h>.
19970 (llrintf): Define using libm_alias_float.
19971 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19972 <libm-alias-float.h>.
19973 (llroundf): Define using libm_alias_float.
19974 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19975 <libm-alias-float.h>.
19976 (sinf): Define using libm_alias_float.
19977
19978 2017-12-04 Florian Weimer <fweimer@redhat.com>
19979
19980 * support/check.h (TEST_COMPARE): Define.
19981 (support_test_compare_failure): Declare.
19982 * support/Makefile (libsupport-routines): Add
19983 support_test_compare_failure.
19984 (tests): Add tst-test_compare.
19985 * support /support_test_compare_failure.c: New file.
19986 * support/tst-test_compare.c: Likewise.
19987
19988 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19989
19990 [BZ #22527]
19991 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19992 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19993 available, this rewrite of the collation rules does reproduce
19994 the test file in the same order.
19995
19996 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19997
19998 [BZ #10580]
19999 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20000 digraphs in the month and day names. Using single code points for
20001 digraphs is deprecated. While there are dedicated Unicode
20002 codepoints, for the digraphs, these are included for backwards
20003 compatibility and modern texts use a sequence of Basic Latin
20004 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20005 This makes the month and day names agree exactly with CLDR now,
20006 CLDR does not use the single code points for the digraphs either.
20007
20008 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20009
20010 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20011
20012 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20013
20014 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20015 of floor.
20016
20017 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20018
20019 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20020 Define only for libc.so.
20021
20022 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20023
20024 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20025 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20026 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20027 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20028 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20029
20030 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20031
20032 [BZ #5997]
20033 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20034
20035 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20036
20037 [BZ libc/19170]
20038 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20039 PREINIT_FUNCTION_WEAK is nonzero.
20040 (gmon_initializer): New function. Put procedure label for it in
20041 .init_array section.
20042 (_init): Don't call PREINIT_FUNCTION.
20043 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20044 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20045 value when map argument is null.
20046
20047 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20048 depi instruction from PIC pc-relative sequence.
20049 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20050 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20051 (elf_machine_load_address): Likewise.
20052 (elf_machine_runtime_setup): Likewise.
20053
20054 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20055
20056 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20057 <libm-alias-double.h>.
20058 (logb): Define using libm_alias_double.
20059 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20060 <libm-alias-double.h>.
20061 (copysign): Define using libm_alias_double.
20062 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20063 <libm-alias-double.h>.
20064 (llrint): Define using libm_alias_double.
20065 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20066 <libm-alias-double.h>.
20067 (llround): Define using libm_alias_double.
20068 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20069 <libm-alias-double.h>.
20070 (lrint): Define using libm_alias_double.
20071 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20072 <libm-alias-double.h>.
20073 (lround): Define using libm_alias_double.
20074 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20075 Include <libm-alias-double.h>.
20076 (copysign): Define using libm_alias_double.
20077 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20078 Include <libm-alias-double.h>.
20079 (llrint): Define using libm_alias_double.
20080 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20081 Include <libm-alias-double.h>.
20082 (llround): Define using libm_alias_double.
20083 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20084 <libm-alias-double.h>.
20085 (logb): Define using libm_alias_double.
20086 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20087 Include <libm-alias-double.h>.
20088 (lrint): Define using libm_alias_double.
20089 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20090 Include <libm-alias-double.h>.
20091 (lround): Define using libm_alias_double.
20092 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20093 <libm-alias-double.h>.
20094 (llrint): Define using libm_alias_double.
20095 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20096 <libm-alias-double.h>.
20097 (llround): Define using libm_alias_double.
20098 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20099 <libm-alias-double.h>.
20100 (llround): Define using libm_alias_double.
20101 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20102 <libm-alias-double.h>.
20103 (lround): Define using libm_alias_double.
20104 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20105 <libm-alias-double.h>.
20106 (copysign): Define using libm_alias_double.
20107 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20108 <libm-alias-double.h>.
20109 (llrint): Define using libm_alias_double.
20110 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20111 <libm-alias-double.h>.
20112 (llround): Define using libm_alias_double.
20113 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20114 <libm-alias-double.h>.
20115 (lrint): Define using libm_alias_double.
20116 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20117 <libm-alias-double.h>.
20118 (lround): Define using libm_alias_double.
20119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20120 <libm-alias-double.h>.
20121 (copysign): Define using libm_alias_double.
20122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20123 <libm-alias-double.h>.
20124 (llrint): Define using libm_alias_double.
20125 (lrint): Likewise.
20126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20127 <libm-alias-double.h>.
20128 (llround): Define using libm_alias_double.
20129 (lround): Likewise.
20130 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20131 <libm-alias-double.h>.
20132 (logb): Define using libm_alias_double.
20133 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20134 <libm-alias-double.h>.
20135 (copysign): Define using libm_alias_double.
20136 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20137 <libm-alias-double.h>.
20138 (llrint): Define using libm_alias_double.
20139 (lrint): Likewise.
20140 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20141 <libm-alias-double.h>.
20142 (llround): Define using libm_alias_double.
20143 (lround): Likewise.
20144 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20145 <libm-alias-double.h>.
20146 (llround): Define using libm_alias_double.
20147 (lround): Likewise.
20148 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20149 <libm-alias-double.h>.
20150 (copysign): Define using libm_alias_double.
20151 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20152 <libm-alias-double.h>.
20153 (llrint): Define using libm_alias_double.
20154 (lrint): Likewise.
20155 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20156 <libm-alias-double.h>.
20157 (llround): Define using libm_alias_double.
20158 (lround): Likewise.
20159 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20160 <libm-alias-double.h>.
20161 (llrint): Define using libm_alias_double.
20162 (lrint): Likewise.
20163 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20164 <libm-alias-double.h>.
20165 (llround): Define using libm_alias_double.
20166 (lround): Likewise.
20167
20168 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20169
20170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20171 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20172 compat symbol based on llround.
20173
20174 * sysdeps/powerpc/power7/fpu/s_logb.c
20175 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20176 symbol based on __logb, not on logb.
20177 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20178 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20180 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20181
20182 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20183 (rint): Define using libm_alias_double.
20184 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20185 <libm-alias-double.h>.
20186 (modf): Define using libm_alias_double.
20187 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20188 <libm-alias-double.h>.
20189 (ceil): Define using libm_alias_double.
20190 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20191 <libm-alias-double.h>.
20192 (floor): Define using libm_alias_double.
20193 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20194 <libm-alias-double.h>.
20195 (nearbyint): Define using libm_alias_double.
20196 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20197 <libm-alias-double.h>.
20198 (rint): Define using libm_alias_double.
20199 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20200 <libm-alias-double.h>.
20201 (round): Define using libm_alias_double.
20202 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20203 <libm-alias-double.h>.
20204 (trunc): Define using libm_alias_double.
20205 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20206 <libm-alias-double.h>.
20207 (ceil): Define using libm_alias_double.
20208 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20209 Include <libm-alias-double.h>.
20210 (floor): Define using libm_alias_double.
20211 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20212 <libm-alias-double.h>.
20213 (modf): Define using libm_alias_double.
20214 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20215 Include <libm-alias-double.h>.
20216 (round): Define using libm_alias_double.
20217 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20218 Include <libm-alias-double.h>.
20219 (trunc): Define using libm_alias_double.
20220 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20221 <libm-alias-double.h>.
20222 (ceil): Define using libm_alias_double.
20223 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20224 <libm-alias-double.h>.
20225 (floor): Define using libm_alias_double.
20226 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20227 <libm-alias-double.h>.
20228 (round): Define using libm_alias_double.
20229 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20230 <libm-alias-double.h>.
20231 (trunc): Define using libm_alias_double.
20232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20233 <libm-alias-double.h>.
20234 (ceil): Define using libm_alias_double.
20235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20236 <libm-alias-double.h>.
20237 (floor): Define using libm_alias_double.
20238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20239 <libm-alias-double.h>.
20240 (modf): Define using libm_alias_double.
20241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20242 <libm-alias-double.h>.
20243 (round): Define using libm_alias_double.
20244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20245 <libm-alias-double.h>.
20246 (trunc): Define using libm_alias_double.
20247 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20248 <libm-alias-double.h>.
20249 (ceil): Define using libm_alias_double.
20250 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20251 <libm-alias-double.h>.
20252 (floor): Define using libm_alias_double.
20253 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20254 <libm-alias-double.h>.
20255 (nearbyint): Define using libm_alias_double.
20256 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20257 <libm-alias-double.h>.
20258 (rint): Define using libm_alias_double.
20259 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20260 <libm-alias-double.h>.
20261 (round): Define using libm_alias_double.
20262 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20263 <libm-alias-double.h>.
20264 (trunc): Define using libm_alias_double.
20265 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20266 <libm-alias-double.h>.
20267 (ceil): Define using libm_alias_double.
20268 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20269 <libm-alias-double.h>.
20270 (floor): Define using libm_alias_double.
20271 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20272 <libm-alias-double.h>.
20273 (round): Define using libm_alias_double.
20274 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20275 <libm-alias-double.h>.
20276 (trunc): Define using libm_alias_double.
20277
20278 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20279 (fabs): Define using libm_alias_double.
20280 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20281 (fma): Define using libm_alias_double.
20282 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20283 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20284 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20285 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20286
20287 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20288
20289 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20290
20291 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20292 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20293 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20294
20295 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20296 due redirect macro.
20297
20298 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20299
20300 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20301
20302 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20303
20304 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20305 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20306 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20307 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20308
20309 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20310 (libm-sysdep_routines): Add s_nearbyintf-generic and
20311 s_nearbyint-generic.
20312 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20313 New file.
20314 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20315 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20316 Likewise.
20317 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20318 Likewise.
20319 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20320 file.
20321 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20322 Likewise.
20323
20324 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20325 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20326 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20327 file.
20328 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20329 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20330 Likewise.
20331 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20332 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20333 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20334
20335 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20336 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20337 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20338 file.
20339 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20340 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20341 Likewise.
20342 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20343 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20344 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20345
20346 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20347 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20348 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20349 file.
20350 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20351 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20352 Likewise.
20353 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20354 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20355 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20356
20357 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20358 (sysdep_calls): New rule.
20359 (sysdep_routines): Use sysdep_calls as base.
20360 (libm-sysdep_routines): Add generic rule for symbols shared with
20361 libc. Add s_copysign-generic and s_copysign-generic objects.
20362 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20363 New file.
20364 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20365 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20366 Likewise.
20367 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20368 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20369 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20370
20371 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20372
20373 [BZ #22519]
20374 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20375 the list of locales to be built for testing.
20376 * localedata/is_IS.UTF-8.in: New file.
20377 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20378 on iso14651_t1.
20379
20380 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20381
20382 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20383 <libm-alias-float.h>.
20384 (fabsf): Define using libm_alias_float.
20385
20386 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20387
20388 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20389
20390 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20391
20392 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20393 <libm-alias-float.h>.
20394 (fabsf): Define using libm_alias_float.
20395 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20396 <libm-alias-float.h>.
20397 (lrintf): Define using libm_alias_float.
20398 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20399 <libm-alias-float.h>.
20400 (rintf): Define using libm_alias_float.
20401
20402 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20403 <libm-alias-double.h>.
20404 (fabs): Define using libm_alias_double.
20405 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20406 <libm-alias-double.h>.
20407 (lrint): Define using libm_alias_double.
20408 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20409 <libm-alias-double.h>.
20410 (rint): Define using libm_alias_double.
20411
20412 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20413 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20414 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20415 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20416 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20417 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20418 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20419 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20420 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20421 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20422 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20423 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20424 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20425 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20426 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20427 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20428 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20429 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20430 s_atan_template.c.
20431 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20432 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20433 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20434 s_ceil_template.c.
20435 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20436 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20437 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20438 s_cos_template.c.
20439 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20440 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20441 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20442 s_expm1_template.c.
20443 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20444 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20445 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20446 s_fabs_template.c.
20447 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20448 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20449 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20450 s_floor_template.c.
20451 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20452 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20453 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20454 s_frexp_template.c.
20455 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20456 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20457 s_lrint_template.c.
20458 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20459 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20460 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20461 s_modf_template.c.
20462 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20463 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20464 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20465 s_nearbyint_template.c.
20466 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20467 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20468 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20469 s_remquo_template.c.
20470 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20471 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20472 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20473 s_rint_template.c.
20474 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20475 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20476 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20477 s_sin_template.c.
20478 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20479 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20480 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20481 s_sincos_template.c.
20482 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20483 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20484 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20485 s_tan_template.c.
20486 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20487 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20488 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20489 s_tanh_template.c.
20490 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20491 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20492 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20493 s_trunc_template.c.
20494 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20495 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20496 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20497 s_atan.c instead of including s_atan.c.
20498 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20499 s_atanf.c instead of including s_atanf.c.
20500 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20501 s_atanl.c instead of including s_atanl.c.
20502 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20503 instead of s_atan.c.
20504 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20505 instead of s_atanf.c.
20506 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20507 instead of s_atanl.c.
20508
20509 * scripts/update-copyrights: Do not handle intl/plural.c
20510 specially.
20511
20512 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20513
20514 [BZ #22432]
20515 * configure.ac (BISON): Require to be present.
20516 * configure: Regenerated.
20517 * intl/Makefile (generated): Add plural.c.
20518 [$(BISON) != no]: Make code unconditional.
20519 (plural.c): Change rule to $(objpfx)plural.c.
20520 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20521 * intl/plural.c: Remove.
20522 * manual/install.texi (Tools for Compilation): Document bison as
20523 required.
20524 * INSTALL: Regenerated.
20525
20526 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20527
20528 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20529 <libm-alias-double.h>.
20530 (llrint): Define using libm_alias_double.
20531 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20532 <libm-alias-float.h>.
20533 (llrintf): Define using libm_alias_float.
20534 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20535 <libm-alias-ldouble.h>.
20536 (llrintl): Define using libm_alias_ldouble.
20537
20538 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20539 declare_mgen_alias instead of weak_alias.
20540 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20541 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20542 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20543
20544 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20545
20546 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20547 Add add_n-generic.
20548 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20549 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20550 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20551
20552 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20553 Add submul_1-generic.
20554 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20555 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20556 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20557
20558 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20559 Add addmul_1-generic.
20560 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20561 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20562 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20563
20564 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20565 Add sub_n-generic.
20566 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20567 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20568 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20569
20570 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20571 Add mul_1-generic.
20572 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20573 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20574 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20575
20576 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20577
20578 According to CLDR, collation rules for Serbian and Bosnian
20579 should be the same as for Croatian.
20580
20581 [BZ #22534]
20582 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20583 and to the list of locales to be built for testing.
20584 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20585 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20586 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20587 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20588
20589 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20590
20591 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20592 to make test case pass.
20593 * localedata/hr_HR.UTF-8.in: Add more test strings.
20594
20595 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20596
20597 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20598
20599 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20600
20601 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20602 the list of locales to built for testing.
20603 * localedata/hr_HR.UTF-8.in: New file.
20604
20605 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20606
20607 [BZ #10580]
20608 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20609 iso14651_t1.
20610 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20611 CLDR (except use ligatures for the digraphs, CLDR does not use
20612 the ligatures), add first_workday, some fixes in the date and time
20613 formats.
20614 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20615 for Đ and đ.
20616 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20617 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20618 Add int_p_cs_precedes and int_n_cs_precedes.
20619 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20620 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20621 LC_MONETARY now).
20622 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20623 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20624 name_miss.
20625 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20626 and lang_lib. Change postal_fmt.
20627
20628 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20629
20630 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20631 <setjmp.h>.
20632 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20633 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20634 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20635 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20636 * sysdeps/generic/setjmpP.h: New file.
20637 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20638 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20639 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20640 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20641 Add jmp_buf-ssp.sym.
20642 (tests): Add tst-saved_mask-1.
20643
20644 2017-11-30 Arjun Shankar <arjun@redhat.com>
20645
20646 [BZ #22375]
20647 CVE-2017-17426
20648 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20649 instead of request2size.
20650
20651 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20652
20653 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20654 (__lllrint): Remove alias.
20655 (lllrint): Likewise.
20656 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20657 (__lllrintf): Likewise.
20658 (lllrintf): Likewise.
20659
20660 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20661 <libm-alias-float.h>.
20662 (copysignf): Define using libm_alias_float.
20663 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20664 <libm-alias-float.h>.
20665 (fabsf): Define using libm_alias_float.
20666 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20667 Include <libm-alias-float.h>.
20668 (copysignf): Define using libm_alias_float.
20669 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20670 <libm-alias-float.h>.
20671 (fabsf): Define using libm_alias_float.
20672 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20673 <libm-alias-float.h>.
20674 (fdimf): Define using libm_alias_float.
20675 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20676 <libm-alias-float.h>.
20677 (fmaf): Define using libm_alias_float.
20678 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20679 <libm-alias-float.h>.
20680 (llrintf): Define using libm_alias_float.
20681 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20682 Include <libm-alias-float.h>.
20683 (nearbyintf): Define using libm_alias_float.
20684 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20685 <libm-alias-float.h>.
20686 (rintf): Define using libm_alias_float.
20687 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20688 <libm-alias-float.h>.
20689 (llrintf): Define using libm_alias_float.
20690 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20691 <libm-alias-float.h>.
20692 (lrintf): Define using libm_alias_float.
20693 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20694 <libm-alias-float.h>.
20695 (nearbyintf): Define using libm_alias_float.
20696 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20697 <libm-alias-float.h>.
20698 (rintf): Define using libm_alias_float.
20699 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20700 <libm-alias-float.h>.
20701 (ceilf): Define using libm_alias_float.
20702 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20703 <libm-alias-float.h>.
20704 (floorf): Define using libm_alias_float.
20705 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20706 <libm-alias-float.h>.
20707 (fmaf): Define using libm_alias_float.
20708 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20709 <libm-alias-float.h>.
20710 (lrintf): Define using libm_alias_float.
20711 (llrintf): Likewise.
20712 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20713 <libm-alias-float.h>.
20714 (nearbyintf): Define using libm_alias_float.
20715 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20716 <libm-alias-float.h>.
20717 (rintf): Define using libm_alias_float.
20718 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20719 <libm-alias-float.h>.
20720 (truncf): Define using libm_alias_float.
20721 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20722 <libm-alias-float.h>.
20723 (copysignf): Define using libm_alias_float.
20724 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20725 <libm-alias-float.h>.
20726 (fabsf): Define using libm_alias_float.
20727 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20728 <libm-alias-float.h>.
20729 (lrintf): Define using libm_alias_float.
20730 (llrintf): Likewise.
20731 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20732 <libm-alias-float.h>.
20733 (nearbyintf): Define using libm_alias_float.
20734 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20735 <libm-alias-float.h>.
20736 (rintf): Define using libm_alias_float.
20737
20738 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20739
20740 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20741 <libm-alias-double.h>.
20742 (copysign): Define using libm_alias_double.
20743 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20744 <libm-alias-double.h>.
20745 (fabs): Define using libm_alias_double.
20746 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20747 Include <libm-alias-double.h>.
20748 (copysign): Define using libm_alias_double.
20749 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20750 <libm-alias-double.h>.
20751 (fabs): Define using libm_alias_double.
20752 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20753 <libm-alias-double.h>.
20754 (fdim): Define using libm_alias_double.
20755 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20756 <libm-alias-double.h>.
20757 (fma): Define using libm_alias_double.
20758 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20759 <libm-alias-double.h>.
20760 (llrint): Define using libm_alias_double.
20761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20762 Include <libm-alias-double.h>.
20763 (nearbyint): Define using libm_alias_double.
20764 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20765 <libm-alias-double.h>.
20766 (rint): Define using libm_alias_double.
20767 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20768 <libm-alias-double.h>.
20769 (fabs): Define using libm_alias_double.
20770 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20771 <libm-alias-double.h>.
20772 (llrint): Define using libm_alias_double.
20773 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20774 <libm-alias-double.h>.
20775 (nearbyint): Define using libm_alias_double.
20776 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20777 <libm-alias-double.h>.
20778 (rint): Define using libm_alias_double.
20779 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20780 <libm-alias-double.h>.
20781 (ceil): Define using libm_alias_double.
20782 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20783 <libm-alias-double.h>.
20784 (floor): Define using libm_alias_double.
20785 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20786 <libm-alias-double.h>.
20787 (fma): Define using libm_alias_double.
20788 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20789 <libm-alias-double.h>.
20790 (lrint): Define using libm_alias_double.
20791 (llrint): Likewise.
20792 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20793 <libm-alias-double.h>.
20794 (nearbyint): Define using libm_alias_double.
20795 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20796 <libm-alias-double.h>.
20797 (rint): Define using libm_alias_double.
20798 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20799 <libm-alias-double.h>.
20800 (trunc): Define using libm_alias_double.
20801 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20802 <libm-alias-double.h>.
20803 (copysign): Define using libm_alias_double.
20804 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20805 <libm-alias-double.h>.
20806 (fabs): Define using libm_alias_double.
20807 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20808 <libm-alias-double.h>.
20809 (lrint): Define using libm_alias_double.
20810 (llrint): Likewise.
20811 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20812 <libm-alias-double.h>.
20813 (nearbyint): Define using libm_alias_double.
20814 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20815 <libm-alias-double.h>.
20816 (rint): Define using libm_alias_double.
20817
20818 [BZ #22229]
20819 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20820 <math_ldbl_opt.h>.
20821 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20822
20823 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20824 SPARC --disable-multi-arch glibc variants.
20825
20826 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20827 <libm-alias-float.h>.
20828 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20829 if [SHARED].
20830 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20831 <libm-alias-float.h>.
20832 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20833 if [SHARED].
20834 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20835 <libm-alias-float.h>.
20836 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20837 if [SHARED].
20838 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20839 <libm-alias-float.h>.
20840 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20841 if [SHARED].
20842 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20843 <libm-alias-float.h>.
20844 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20845 if [SHARED].
20846 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20847 <libm-alias-float.h>.
20848 (ceilf): Define using libm_alias_float.
20849 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20850 <libm-alias-float.h>.
20851 (floorf): Define using libm_alias_float.
20852 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20853 <libm-alias-float.h>.
20854 (fmaf): Define using libm_alias_float.
20855 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20856 <libm-alias-float.h>.
20857 (nearbyintf): Define using libm_alias_float.
20858 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20859 <libm-alias-float.h>.
20860 (rintf): Define using libm_alias_float.
20861 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20862 <libm-alias-float.h>.
20863 (truncf): Define using libm_alias_float.
20864 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20865 (copysignf): Define using libm_alias_float.
20866 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20867 (cosf): Define using libm_alias_float.
20868 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20869 (fabsf): Define using libm_alias_float.
20870 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20871 (fmaxf): Define using libm_alias_float.
20872 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20873 (fminf): Define using libm_alias_float.
20874 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20875 (llrintf): Define using libm_alias_float.
20876 [!__ILP32__] (lrintf): Likewise.
20877 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20878 (sincosf): Define using libm_alias_float.
20879 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20880 (sinf): Define using libm_alias_float.
20881 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20882 (lrintf): Define using libm_alias_float.
20883
20884 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20885 <libm-alias-double.h>.
20886 (atan): Define using libm_alias_double.
20887 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20888 <libm-alias-double.h>.
20889 (ceil): Define using libm_alias_double.
20890 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20891 <libm-alias-double.h>.
20892 (floor): Define using libm_alias_double.
20893 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20894 <libm-alias-double.h>.
20895 (fma): Define using libm_alias_double.
20896 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20897 <libm-alias-double.h>.
20898 (nearbyint): Define using libm_alias_double.
20899 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20900 <libm-alias-double.h>.
20901 (rint): Define using libm_alias_double.
20902 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20903 <libm-alias-double.h>.
20904 (sin): Define using libm_alias_double.
20905 (cos): Likewise.
20906 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20907 <libm-alias-double.h>.
20908 (tan): Define using libm_alias_double.
20909 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20910 <libm-alias-double.h>.
20911 (trunc): Define using libm_alias_double.
20912 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20913 (copysign): Define using libm_alias_double.
20914 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20915 (fabs): Define using libm_alias_double.
20916 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20917 (fmax): Define using libm_alias_double.
20918 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20919 (fmin): Define using libm_alias_double.
20920 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20921 (llrint): Define using libm_alias_double.
20922 [!__ILP32__] (lrint): Likewise.
20923 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20924 (lrint): Define using libm_alias_double.
20925
20926 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20927
20928 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20929 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20930 objects.
20931 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20932 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20933 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20934 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20935 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20936 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20937
20938 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20939 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20940 objects.
20941 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20942 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20943 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20944 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20945 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20946 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20947
20948 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20949 (libm-sysdep_routines): Add s_nearbyint-generic and
20950 s_nearbyintf-generic objects.
20951 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20952 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20953 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20954 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20955 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20956 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20957
20958 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20959 Add s_finitef-generic and s_finite-generic objects.
20960 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20961 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20962 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20963 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20964 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20965 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20966
20967 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20968 Add s_isinff-generic and s_isinf-generic objects.
20969 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20970 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20971 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20972 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20973 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20974 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20975
20976 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20977 Add s_isnanf-generic and s_isnan-generic objects.
20978 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20979 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20980 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20981 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20982 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20983 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20984
20985 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20986 macro.
20987 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20988 rule.
20989 (sysdep_routines): Use sysdep_calls as base.
20990 (libm-sysdep_routines): Add generic rule for symbols shared with
20991 libc. Add s_signbit-generic and s_signbitf-generic objects.
20992 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20993 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20994 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20995 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20996 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20997 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20998
20999 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21000
21001 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21002 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21003 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21004 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21005 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21006 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21007 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21008 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21009 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21010 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21011 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21012 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21013 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21014 libm_alias_float_r.
21015 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21016 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21017 (logf): Likewise.
21018 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21019 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21020 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21021 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21022 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21023 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21024 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21025 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21026 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21027 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21028 libm_alias_float.
21029 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21030 (cosf): Likewise.
21031 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21032 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21033 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21034 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21035 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21036 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21037 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21038 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21039 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21040 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21041 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21042 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21043 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21044 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21045 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21046 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21047 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21048 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21049 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21050 libm_alias_float.
21051 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21052 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21053 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21054 * sysdeps/ia64/fpu/w_lgammaf_main.c
21055 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21056 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21057
21058 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21059 Alexandre Oliva <aoliva@redhat.com>
21060
21061 [BZ #17750]
21062 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21063 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21064 accents sorting.
21065 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21066 sorting.
21067 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21068 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21069 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21070 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21071 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21072 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21073 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21074 instead of “ifdef DIACRIT_BACKWARD”.
21075
21076 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21077
21078 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21079 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21080 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21081 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21082 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21083 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21084 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21085 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21086 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21087 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21088 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21089 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21090 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21091 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21092 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21093 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21094 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21095 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21096 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21097 ($(have-as-vis3) == yes): Remove conditional.
21098 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21099 Likewise.
21100 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21101 file.
21102 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21103 file.
21104 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21105 file.
21106 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21107 file.
21108 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21109 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21110 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21111 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21112 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21113 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21114 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21115 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21116
21117 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21118
21119 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21120 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21121 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21122 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21123 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21124 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21125 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21126 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21127 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21128 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21129 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21130 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21131 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21132 libm_alias_double_r.
21133 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21134 (log): Likewise.
21135 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21136 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21137 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21138 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21139 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21140 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21141 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21142 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21143 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21144 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21145 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21146 libm_alias_double.
21147 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21148 (cos): Likewise.
21149 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21150 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21151 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21152 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21153 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21154 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21155 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21156 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21157 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21158 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21159 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21160 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21161 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21162 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21163 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21164 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21165 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21166 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21167 libm_alias_double.
21168 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21169 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21170 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21171 * sysdeps/ia64/fpu/w_lgamma_main.c
21172 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21173 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21174
21175 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21176
21177 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21178 address of $global$ into %dp register earlier. Use pc-relative
21179 instruction sequence for PIC case.
21180
21181 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21182
21183 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21184 (asinhf): Define using libm_alias_float.
21185 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21186 (atanf): Define using libm_alias_float.
21187 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21188 (cbrtf): Define using libm_alias_float.
21189 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21190 (ceilf): Define using libm_alias_float.
21191 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21192 (copysignf): Define using libm_alias_float.
21193 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21194 (expm1f): Define using libm_alias_float.
21195 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21196 (fabsf): Define using libm_alias_float.
21197 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21198 (floorf): Define using libm_alias_float.
21199 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21200 (fmaxf): Define using libm_alias_float.
21201 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21202 (fminf): Define using libm_alias_float.
21203 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21204 (frexpf): Define using libm_alias_float.
21205 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21206 (llrintf): Define using libm_alias_float.
21207 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21208 (logbf): Define using libm_alias_float.
21209 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21210 (lrintf): Define using libm_alias_float.
21211 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21212 (nearbyintf): Define using libm_alias_float.
21213 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21214 (remquof): Define using libm_alias_float.
21215 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21216 (rintf): Define using libm_alias_float.
21217 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21218 (truncf): Define using libm_alias_float.
21219 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21220 <libm-alias-float.h>.
21221 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21222 if [SHARED].
21223 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21224 <libm-alias-float.h>.
21225 (expf): Define using libm_alias_float, or libm_alias_float_other
21226 if [SHARED].
21227 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21228 <libm-alias-float.h>.
21229 (log2f): Define using libm_alias_float, or libm_alias_float_other
21230 if [SHARED].
21231 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21232 <libm-alias-float.h>.
21233 (logf): Define using libm_alias_float, or libm_alias_float_other
21234 if [SHARED].
21235 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21236 <libm-alias-float.h>.
21237 (powf): Define using libm_alias_float, or libm_alias_float_other
21238 if [SHARED].
21239 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21240 <libm-alias-float.h>.
21241 (cosf): Define using libm_alias_float.
21242 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21243 <libm-alias-float.h>.
21244 (sincosf): Define using libm_alias_float.
21245 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21246 <libm-alias-float.h>.
21247 (sinf): Define using libm_alias_float.
21248 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21249 (fmaxf): Define using libm_alias_float.
21250 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21251 (fminf): Define using libm_alias_float.
21252 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21253 <libm-alias-float.h>.
21254 (fmaf): Define using libm_alias_float.
21255
21256 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21257 (asinh): Define using libm_alias_double.
21258 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21259 (atan): Define using libm_alias_double.
21260 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21261 (cbrt): Define using libm_alias_double.
21262 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21263 (ceil): Define using libm_alias_double.
21264 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21265 (copysign): Define using libm_alias_double.
21266 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21267 (expm1): Define using libm_alias_double.
21268 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21269 (fabs): Define using libm_alias_double.
21270 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21271 (fdim): Define using libm_alias_double.
21272 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21273 (floor): Define using libm_alias_double.
21274 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21275 (fmax): Define using libm_alias_double.
21276 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21277 (fmin): Define using libm_alias_double.
21278 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21279 (frexp): Define using libm_alias_double.
21280 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21281 (llrint): Define using libm_alias_double.
21282 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21283 (logb): Define using libm_alias_double.
21284 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21285 (lrint): Define using libm_alias_double.
21286 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21287 (nearbyint): Define using libm_alias_double.
21288 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21289 (remquo): Define using libm_alias_double.
21290 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21291 (rint): Define using libm_alias_double.
21292 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21293 (trunc): Define using libm_alias_double.
21294 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21295 (fmax): Define using libm_alias_double.
21296 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21297 (fmin): Define using libm_alias_double.
21298 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21299 (fma): Define using libm_alias_double.
21300
21301 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21302
21303 [BZ #22370]
21304 * elf/dl-hwcaps.c (ROUND): Removed.
21305 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21306 and ELF_NOTE_NEXT_OFFSET.
21307 * elf/dl-load.c (ROUND): Removed.
21308 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21309 * elf/readelflib.c (ROUND): Removed.
21310 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21311 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21312 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21313 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21314
21315 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21316
21317 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21318 [!__fmaf] (fmaf): Define using libm_alias_float.
21319
21320 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21321 [!__fma] (fma): Define using libm_alias_double.
21322 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21323
21324 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21325
21326 [BZ #22336]
21327 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21328 and implement the collation rules for cs from CLDR on top of that.
21329 * Makefile: Add cs_CZ.UTF-8 to test-input.
21330 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21331
21332 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21333
21334 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21335
21336 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21337 Icarus Sparry <icarus.w.sparry@intel.com>
21338
21339 * benchtests/Makefile:Add BENCHSET to allow subsets of
21340 benchmarks to be run.
21341 * benchtests/README: Add documentation for: Running subsets of
21342 benchmarks.
21343
21344 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21345
21346 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21347 range of tests names.
21348
21349 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21350 result from property and remove "max", min" and "mean" from
21351 required properties based on benchtests/bench-skeleton.c.
21352
21353 2017-11-28 Florian Weimer <fweimer@redhat.com>
21354
21355 [BZ #20826]
21356 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21357 due to Internet requirement.
21358 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21359 tst-getaddrinfo5.
21360 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21361
21362 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21363
21364 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21365 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21366 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21367 (sysdep_routines): Add memset-ultra1.
21368 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21369 file.
21370 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21371 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21372 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21373 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21374 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21375 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21376 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21377 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21378
21379 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21380 file.
21381 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21382 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21383 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21384 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21385 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21386 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21387 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21388 macro.
21389 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21390 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21391 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21392 (sysdep_routines): Add memcpy-ultra1.
21393 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21394 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21395
21396 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21397
21398 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21399 (cfloat_versions): Take function argument without trailing 'f'.
21400 Call libm_alias_float_other.
21401 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21402 * sysdeps/alpha/fpu/cargf.c: Likewise.
21403 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21404 * sysdeps/alpha/fpu/conjf.c: Likewise.
21405 * sysdeps/alpha/fpu/crealf.c: Likewise.
21406 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21407 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21408 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21409 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21410 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21411 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21412 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21413 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21414 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21415 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21416 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21417 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21418 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21419 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21420 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21421 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21422 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21423 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21424 (clog10f): Use libm_alias_float_other.
21425 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21426 (ceilf): Define using libm_alias_float.
21427 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21428 (copysignf): Define using libm_alias_float.
21429 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21430 (fabsf): Define using libm_alias_float.
21431 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21432 (floorf): Define using libm_alias_float.
21433 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21434 (fmaxf): Define using libm_alias_float.
21435 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21436 (fminf): Define using libm_alias_float.
21437 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21438 (lrintf): Define using libm_alias_float.
21439 (llrintf): Likewise.
21440 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21441 (lroundf): Define using libm_alias_float.
21442 (llroundf): Likewise.
21443 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21444 (rintf): Define using libm_alias_float.
21445 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21446 (truncf): Define using libm_alias_float.
21447
21448 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21449 (ceilf): Define using libm_alias_float.
21450 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21451 (floorf): Define using libm_alias_float.
21452 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21453 (fmaf): Define using libm_alias_float.
21454 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21455 (fmaxf): Define using libm_alias_float.
21456 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21457 (fminf): Define using libm_alias_float.
21458 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21459 (llrintf): Define using libm_alias_float.
21460 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21461 (llroundf): Define using libm_alias_float.
21462 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21463 (lrintf): Define using libm_alias_float.
21464 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21465 (lroundf): Define using libm_alias_float.
21466 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21467 <libm-alias-float.h>.
21468 (nearbyintf): Define using libm_alias_float.
21469 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21470 (rintf): Define using libm_alias_float.
21471 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21472 (roundf): Define using libm_alias_float.
21473 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21474 (truncf): Define using libm_alias_float.
21475
21476 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21477 (ceil): Define using libm_alias_double.
21478 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21479 (copysign): Define using libm_alias_double.
21480 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21481 (fabs): Define using libm_alias_double.
21482 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21483 (floor): Define using libm_alias_double.
21484 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21485 (fmax): Define using libm_alias_double.
21486 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21487 (fmin): Define using libm_alias_double.
21488 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21489 (lrint): Define using libm_alias_double.
21490 (llrint): Likewise.
21491 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21492 (lround): Define using libm_alias_double.
21493 (llround): Likewise.
21494 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21495 (rint): Define using libm_alias_double.
21496 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21497 (trunc): Define using libm_alias_double.
21498
21499 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21500 (libm_alias_double_r): Add semicolon after weak_alias call.
21501
21502 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21503
21504 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21505 (ceil): Define using libm_alias_double.
21506 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21507 (floor): Define using libm_alias_double.
21508 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21509 (fma): Define using libm_alias_double.
21510 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21511 (fmax): Define using libm_alias_double.
21512 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21513 (fmin): Define using libm_alias_double.
21514 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21515 (llrint): Define using libm_alias_double.
21516 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21517 (llround): Define using libm_alias_double.
21518 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21519 (lrint): Define using libm_alias_double.
21520 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21521 (lround): Define using libm_alias_double.
21522 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21523 (nearbyint): Define using libm_alias_double.
21524 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21525 (rint): Define using libm_alias_double.
21526 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21527 (round): Define using libm_alias_double.
21528 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21529 (trunc): Define using libm_alias_double.
21530
21531 2017-11-27 Florian Weimer <fweimer@redhat.com>
21532
21533 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21534 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21535 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21536 (tests): Add tst-mlock2.
21537 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21538 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21539 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21540 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21541 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21542 for mlock. Document mlock2.
21543
21544 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21545
21546 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21547 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21548 Likewise.
21549 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21550 Likewise.
21551 * sysdeps/x86/Makeconfig: New file.
21552 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21553 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21554 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21555 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21556 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21557 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21558 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21559 Likewise.
21560 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21561 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21562 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21563 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21564 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21565 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21566 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21567 * manual/math.texi (Mathematics): Document support for _Float64x.
21568 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21569 * stdlib/Versions (GLIBC_2.27): Likewise.
21570 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21571 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21572 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21573 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21574 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21575 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21576 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21577 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21578 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21579 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21580 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21581 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21582 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21583 Likewise.
21584 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21585 Likewise.
21586 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21587 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21588 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21589 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21590 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21591 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21592 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21593 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21594 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21595 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21596 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21597 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21598 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21599 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21600
21601 2017-11-27 Andreas Schwab <schwab@suse.de>
21602
21603 * elf/Makefile (dl-routines): Add dl-sort-maps.
21604 * elf/dl-sort-maps.c: New file.
21605 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21606 (_dl_sort_maps): Declare.
21607 * elf/dl-fini.c (_dl_sort_fini): Remove.
21608 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21609 * elf/dl-close.c (_dl_close_worker): Likewise.
21610 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21611 open-coding it.
21612 * elf/dl-open.c (dl_open_worker): Likewise.
21613
21614 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21615
21616 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21617 using libm_alias_float128.
21618 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21619 Likewise.
21620 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21621 Likewise.
21622 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21623 (setpayloadsigf128): Likewise.
21624 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21625 Likewise.
21626 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21627 Likewise.
21628
21629 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21630 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21631 -mfloat128 to CFLAGS.
21632 ($(foreach
21633 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21634 Likewise.
21635 (CFLAGS-libm-test-support-float64x.c): New variable.
21636 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21637 $(f128-loader-link) to gnulib-tests.
21638
21639 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21640 (libm_alias_float128_other_r): If
21641 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21642 alias.
21643 (libm_alias_float128_r): Add semicolon after weak_alias call.
21644 * sysdeps/generic/libm-alias-ldouble.h
21645 (libm_alias_ldouble_other_r_f128): New macro.
21646 (libm_alias_ldouble_other_r_f64x): Likewise.
21647 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21648 and libm_alias_ldouble_other_r_f64x.
21649 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21650 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21651 (libm_alias_ldouble_other_r_f128): New macro.
21652 (libm_alias_ldouble_other_r_f64x): Likewise.
21653 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21654 and libm_alias_ldouble_other_r_f64x.
21655
21656 * stdlib/strfroml.c: Always include <stdlib.h>.
21657 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21658 undefine as macro and define as weak alias.
21659 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21660 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21661 <stdlib.h>.
21662 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21663 Define and later undefine as macro and define as weak alias.
21664
21665 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21666 Define and later undefine as macro. Define as weak alias if
21667 [!USE_WIDE_CHAR].
21668 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21669 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21670 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21671 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21672 Define and later undefine as macro. Define as weak alias if
21673 [!USE_WIDE_CHAR].
21674 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21675 Define and later undefine as macro. Define as weak alias if
21676 [USE_WIDE_CHAR].
21677 * sysdeps/ieee754/float128/strtof128_l.c
21678 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21679 Define and later undefine as macro. Define as weak alias if
21680 [!USE_WIDE_CHAR].
21681 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21682 Define and later undefine as macro. Define as weak alias if
21683 [USE_WIDE_CHAR].
21684 * sysdeps/ieee754/ldbl-128/strtold_l.c
21685 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21686 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21687 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21688 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21689 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21690 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21691 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21692 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21693 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21694 * sysdeps/ieee754/ldbl-96/strtold_l.c
21695 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21696 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21697 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21698 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21699
21700 * math/test-float64x.h: New file.
21701 * math/Makefile (type-float64x-yes): New variable.
21702 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21703
21704 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21705 function-like macro.
21706 (min_of_type_): Likewise.
21707 (min_of_type_l): Likewise.
21708 (min_of_type_f128): Likewise.
21709 (min_of_type): Pass () as last argument of __MATH_TG.
21710
21711 * stdlib/tst-strtod-round-skeleton.c
21712 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21713 headers.
21714
21715 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21716 for combinations of long double with _Float64 and _Float64x.
21717
21718 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21719 (__DECL_SIMD_cosf32): Likewise.
21720 (__DECL_SIMD_cosf64): Likewise.
21721 (__DECL_SIMD_cosf32x): Likewise.
21722 (__DECL_SIMD_cosf64x): Likewise.
21723 (__DECL_SIMD_cosf128x): Likewise.
21724 (__DECL_SIMD_sinf16): Likewise.
21725 (__DECL_SIMD_sinf32): Likewise.
21726 (__DECL_SIMD_sinf64): Likewise.
21727 (__DECL_SIMD_sinf32x): Likewise.
21728 (__DECL_SIMD_sinf64x): Likewise.
21729 (__DECL_SIMD_sinf128x): Likewise.
21730 (__DECL_SIMD_sincosf16): Likewise.
21731 (__DECL_SIMD_sincosf32): Likewise.
21732 (__DECL_SIMD_sincosf64): Likewise.
21733 (__DECL_SIMD_sincosf32x): Likewise.
21734 (__DECL_SIMD_sincosf64x): Likewise.
21735 (__DECL_SIMD_sincosf128x): Likewise.
21736 (__DECL_SIMD_logf16): Likewise.
21737 (__DECL_SIMD_logf32): Likewise.
21738 (__DECL_SIMD_logf64): Likewise.
21739 (__DECL_SIMD_logf32x): Likewise.
21740 (__DECL_SIMD_logf64x): Likewise.
21741 (__DECL_SIMD_logf128x): Likewise.
21742 (__DECL_SIMD_expf16): Likewise.
21743 (__DECL_SIMD_expf32): Likewise.
21744 (__DECL_SIMD_expf64): Likewise.
21745 (__DECL_SIMD_expf32x): Likewise.
21746 (__DECL_SIMD_expf64x): Likewise.
21747 (__DECL_SIMD_expf128x): Likewise.
21748 (__DECL_SIMD_powf16): Likewise.
21749 (__DECL_SIMD_powf32): Likewise.
21750 (__DECL_SIMD_powf64): Likewise.
21751 (__DECL_SIMD_powf32x): Likewise.
21752 (__DECL_SIMD_powf64x): Likewise.
21753 (__DECL_SIMD_powf128x): Likewise.
21754
21755 * stdlib/Versions (libc): Move entries for wcstof128 and
21756 wcstof128_l to ....
21757 * wcsmbs/Versions (libc): ... here.
21758 Include <float128-abi.h>.
21759
21760 2017-11-24 Florian Weimer <fweimer@redhat.com>
21761
21762 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21763 bits/mman-shared.h.
21764 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21765 <bits/mman-shared.h>.
21766 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21767 to ...
21768 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21769 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21770 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21771 <bits/mman-shared.h>.
21772
21773 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21774
21775 [BZ #22457]
21776 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21777 posix_memalign/free.
21778 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21779
21780 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21781
21782 [BZ #22469]
21783 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21784 and implement the collation rules for pl from CLDR on top of that.
21785 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21786 of locales to be built for testing.
21787 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21788
21789 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21790
21791 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21792 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21793 libm_alias_ldouble_other.
21794 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21795 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21796 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21797 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21798 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21799 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21800 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21801 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21802 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21803 libm_alias_ldouble_r.
21804 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21805 libm_alias_ldouble_other.
21806 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21807 (log10l): Likewise.
21808 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21809 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21810 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21811 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21812 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21813 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21814 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21815 (atan2l): Likewise.
21816 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21817 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21818 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21819 libm_alias_ldouble.
21820 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21821 (cosl): Likewise.
21822 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21823 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21824 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21825 (expl): Likewise.
21826 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21827 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21828 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21829 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21830 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21831 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21832 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21833 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21834 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21835 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21836 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21837 libm_alias_ldouble.
21838 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21839 libm_alias_ldouble_other.
21840 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21841 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21842 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21843 libm_alias_ldouble.
21844 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21845 libm_alias_ldouble_other.
21846 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21847 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21848 * sysdeps/ia64/fpu/w_lgammal_main.c
21849 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21850 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21851
21852 2017-11-23 Florian Weimer <fweimer@redhat.com>
21853
21854 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21855 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21856 alike. Remove freeres marker.
21857 * malloc/arena.c (arena_thread_freeres): Call
21858 tcache_thread_shutdown.
21859
21860 2017-11-23 Florian Weimer <fweimer@redhat.com>
21861
21862 [BZ #22459]
21863 Export nscd hash function as __nss_hash.
21864 * include/nss.h (__nss_hash): Declare.
21865 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21866 symbol.
21867 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21868 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21869 of __nscd_hash.
21870 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21871 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21872 * nss/Makefiles (routines): Add nss_hash.
21873 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21874 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21875 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21876 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21877
21878 2017-11-23 Florian Weimer <fweimer@redhat.com>
21879
21880 [BZ #22478]
21881 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21882 Return error code, not -1.
21883 * signal/tst-sigwait-eintr.c: New file.
21884 * signal/Makefile (tests): Add tst-sigwait-eintr.
21885
21886 2017-11-23 Florian Weimer <fweimer@redhat.com>
21887
21888 Linux: Add memfd_create system call wrapper
21889 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21890 tst-memfd_create.
21891 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21892 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21893 [__USE_GNU] (memfd_create): Declare.
21894 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21895 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21896 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21897 * sysdeps/unix/sysv/linux/**.abilist: Update.
21898 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21899
21900 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21901
21902 * localedata/gen-locale.sh: Fix typo in variable name.
21903
21904 * resolv/res_debug.c (p_secstodate): Condition definition on
21905 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21906 directly as __p_secstodate, and as a compat symbol. Do not use
21907 libresolv_hidden_def.
21908 * resolv/resolv.h (p_secstodate): Remove macro and function
21909 declaration.
21910 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21911 using p_secstodate.
21912 * include/resolv.h (__p_secstodate): Do not use
21913 libresolv_hidden_proto.
21914 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21915 (tests-internal): ... here.
21916 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21917 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21918 and declare and use __p_secstodate and use compat_symbol_reference
21919 in that case.
21920 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21921 implementation returning 77.
21922
21923 [BZ #22463]
21924 * resolv/res_debug.c: Include <libc-diag.h>.
21925 (p_secstodate): Assert time_t at least as wide as u_long. On
21926 overflow, use integer seconds since the epoch as output, or use
21927 "<overflow>" as output and set errno to EOVERFLOW if integer
21928 seconds since the epoch would be 14 or more characters.
21929 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21930 for sprintf call.
21931 * resolv/tst-p_secstodate.c: New file.
21932 * resolv/Makefile (tests): Add tst-p_secstodate.
21933 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21934
21935 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21936 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21937 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21938
21939 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21940
21941 * posix/regcomp.c (init_word_char): Add comments.
21942
21943 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21944
21945 [BZ #22447]
21946 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21947 strlen to compute length of ut_user and set trailing NUL byte of
21948 result explicitly.
21949
21950 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21951
21952 [BZ #15537]
21953 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21954 using “copy "iso14651_t1"” and then implementing the
21955 collation rules for lv from CLDR on top of that.
21956 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21957 of locales to be built for testing.
21958 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21959 sorting.
21960
21961 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21962
21963 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21964 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21965 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21966 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21967 [__USE_MISC] (MADV_HWPOISON): New macro.
21968 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21969
21970 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21971
21972 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21973 -Wmissing-braces on GCC 4.9.
21974
21975 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21976
21977 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21978 * sysdeps/s390/s390-32/start.S (_start): Likewise
21979 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21980 (thread_start): Likewise.
21981 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21982 (thread_start): Likewise.
21983 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21984 (__makecontext_ret): Likewise.
21985 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21986 (__makecontext_ret): Likewise.
21987
21988 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21989
21990 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21991 __wcschrnul): Remove attribute_hidden.
21992
21993 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21994
21995 regex: don't assume uint64_t or uint32_t
21996 This avoids -Werror=overflow errors for 32-bit systems in
21997 the 64-bit case. Problem reported by Joseph Myers in:
21998 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21999 Also, when this code is used in Gnulib it ports to platforms
22000 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22001 them, and on some 32-bit compilers there is no uint64_t.
22002 Problem reported by Gianluigi Tiesi in:
22003 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22004 * posix/regcomp.c (init_word_char): Don't assume that the types
22005 uint64_t and uint32_t exist. Adapted from Gnulib patch
22006 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22007 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22008
22009 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22010
22011 * sysdeps/aarch64/memset-reg.h: New file.
22012 * sysdeps/aarch64/memset.S: Use it.
22013 (__memset): Rename to MEMSET macro.
22014 [ZVA_MACRO]: Use zva_macro.
22015 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22016 Add memset_generic and memset_falkor.
22017 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22018 (__libc_ifunc_impl_list): Add memset ifuncs.
22019 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22020 local variable zva_size.
22021 * sysdeps/aarch64/multiarch/memset.c: New file.
22022 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22023 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22024 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22025 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22026 (DCZID_DZP_MASK): New macro.
22027 (DCZID_BS_MASK): Likewise.
22028 (init_cpu_features): Read and set zva_size.
22029 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22030 (struct cpu_features): New member zva_size.
22031
22032 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22033 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22034 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22035
22036 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22037 backwards. Fix timing computation.
22038 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22039 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22040 on memset by N at a time. Fix timing computation.
22041
22042 2017-11-20 Florian Weimer <fweimer@redhat.com>
22043
22044 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22045 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22046
22047 2017-11-19 Florian Weimer <fweimer@redhat.com>
22048
22049 manual: Document mprotect
22050 * manual/memory.texi (Memory Protection): New section.
22051 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22052 documentation of PROT_* flags and reference the Memory Protection
22053 section instead.
22054
22055 2017-11-19 Florian Weimer <fweimer@redhat.com>
22056
22057 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22058 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22059 (Scatter-Gather): ... to here. Remove misleading comment.
22060
22061 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22062
22063 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22064 style.
22065
22066 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22067 when /proc/<pid>/setgroups does not exist.
22068
22069 2017-11-18 Florian Weimer <fweimer@redhat.com>
22070
22071 * sysdeps/unix/sysv/linux/tst-ttyname.c
22072 (become_root_in_mount_ns): Remove.
22073 (do_in_chroot_1): Call support_enter_mount_namespace.
22074 (do_in_chroot_2): Likewise.
22075 (do_test): Call support_become_root early.
22076
22077 2017-11-18 Florian Weimer <fweimer@redhat.com>
22078
22079 * support/namespace.h (support_enter_mount_namespace): Declare.
22080 * support/support_enter_mount_namespace.c: New file.
22081 * support/Makefile (libsupport-routines): Add
22082 support_enter_mount_namespace.
22083
22084 2017-11-18 Florian Weimer <fweimer@redhat.com>
22085
22086 * support/temp_file.c (support_create_temp_directory): Use
22087 test_dir and do not rely on the presence of the XXXXXX suffix.
22088 * support/temp_file.h (support_create_temp_directory): Update
22089 comment.
22090 * support/tst-xreadlink.c (do_test): Adjust.
22091 * support/support_chroot.c (support_chroot_create): Likewise.
22092
22093 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22094
22095 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22096 macro.
22097 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22098 htm-no-suspend.
22099
22100 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22101
22102 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22103 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22104 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22105 (ceill): Define using libm_alias_ldouble.
22106 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22107 <libm-alias-ldouble.h>.
22108 (copysignl): Define using libm_alias_ldouble.
22109 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22110 (fabsl): Define using libm_alias_ldouble.
22111 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22112 (floorl): Define using libm_alias_ldouble.
22113 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22114 (fmaxl): Define using libm_alias_ldouble.
22115 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22116 (fminl): Define using libm_alias_ldouble.
22117 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22118 (llrintl): Define using libm_alias_ldouble.
22119 (lrintl): Likewise.
22120 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22121 <libm-alias-ldouble.h>.
22122 (nearbyintl): Define using libm_alias_ldouble.
22123 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22124 (truncl): Define using libm_alias_ldouble.
22125 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22126 <libm-alias-ldouble.h>.
22127 (lrintl): Define using libm_alias_ldouble.
22128
22129 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22130 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22131 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22132 (asinhl): Define using libm_alias_ldouble.
22133 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22134 (atanl): Define using libm_alias_ldouble.
22135 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22136 (cbrtl): Define using libm_alias_ldouble.
22137 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22138 (ceill): Define using libm_alias_ldouble.
22139 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22140 (copysignl): Define using libm_alias_ldouble.
22141 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22142 (fabsl): Define using libm_alias_ldouble.
22143 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22144 (floorl): Define using libm_alias_ldouble.
22145 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22146 (fmaxl): Define using libm_alias_ldouble.
22147 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22148 (fminl): Define using libm_alias_ldouble.
22149 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22150 (frexpl): Define using libm_alias_ldouble.
22151 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22152 (llrintl): Define using libm_alias_ldouble.
22153 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22154 (logbl): Define using libm_alias_ldouble.
22155 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22156 (lrintl): Define using libm_alias_ldouble.
22157 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22158 (nearbyintl): Define using libm_alias_ldouble.
22159 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22160 (nextafterl): Define using libm_alias_ldouble.
22161 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22162 (remquol): Define using libm_alias_ldouble.
22163 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22164 (rintl): Define using libm_alias_ldouble.
22165 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22166 (truncl): Define using libm_alias_ldouble.
22167 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22168 (fmaxl): Define using libm_alias_ldouble.
22169 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22170 (fminl): Define using libm_alias_ldouble.
22171
22172 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22173 to C syntax instead of availability and properties of types.
22174 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22175 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22176 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22177 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22178 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22179 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22180
22181 2017-11-17 Florian Weimer <fweimer@redhat.com>
22182
22183 support_become_root: Enable file creation in namespaces.
22184 * support/support_become_root.c (setup_mapping): New function.
22185 (support_become_root): Call it.
22186
22187 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22188
22189 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22190 macro.
22191
22192 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22193
22194 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22195 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22196
22197 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22198
22199 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22200
22201 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22202 version to 4.14.
22203
22204 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22205
22206 * INSTALL: Fix botched up regeneration.
22207
22208 * NEWS: Update sourceare link to https.
22209 * configure.ac: Likewise.
22210 * crypt/md5test-giant.c: Likewise.
22211 * dlfcn/bug-atexit1.c: Likewise.
22212 * dlfcn/bug-atexit2.c: Likewise.
22213 * localedata/README: Likewise.
22214 * malloc/tst-mallocfork.c: Likewise.
22215 * manual/install.texi: Likewise.
22216 * nptl/tst-pthread-getattr.c: Likewise.
22217 * stdio-common/tst-fgets.c: Likewise.
22218 * stdio-common/tst-fwrite.c: Likewise.
22219 * sunrpc/Makefile: Likewise.
22220 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22221 * wcsmbs/tst-mbrtowc2.c: Likewise.
22222 * configure: Regenerate.
22223 * INSTALL: Regenerate.
22224
22225 2017-11-15 Martin Sebor <msebor@redhat.com>
22226
22227 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22228 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22229 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22230
22231 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22232
22233 [BZ #22145]
22234 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22235 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22236
22237 [BZ #22145]
22238 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22239 Defer is_pty check until end of the function.
22240 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22241
22242 [BZ #22145]
22243 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22244 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22245 (ttyname): Likewise.
22246 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22247 (__ttyname_r): Likewise.
22248
22249 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22250 int to bool.
22251
22252 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22253
22254 * manual/terminal.texi (Is It a Terminal):
22255 Mention ENODEV for ttyname and ttyname_r.
22256
22257 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22258
22259 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22260 constant and macro.
22261
22262 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22263 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22264 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22265 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22266 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22267 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22268
22269 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22270
22271 * signal/sigrelse.c (sigrelse): Optimize implementation.
22272
22273 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22274 (__sigpause): Rely on __sigsuspend to implement single thread
22275 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22276
22277 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22278
22279 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22280 kernel version to 4.14.
22281
22282 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22283
22284 [BZ #22442]
22285 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22286 Check if ifname is too long.
22287
22288 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22289
22290 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22291
22292 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22293
22294 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22295 was accidentally lost.
22296
22297 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22298
22299 * localedata/locales/az_IR: Add standard copyright header.
22300
22301 2017-11-15 Florian Weimer <fweimer@redhat.com>
22302
22303 [BZ #22439]
22304 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22305 not just the top one. Output a new "subheaps" statistic.
22306
22307 2017-11-15 Florian Weimer <fweimer@redhat.com>
22308
22309 [BZ #22408]
22310 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22311 under the per-arena lock.
22312 * malloc/Makefile (tests): Add tst-malloc_info.
22313 (tst-malloc_info): Link with libpthread.
22314 * malloc/tst-malloc_info.c: New file.
22315
22316 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22317
22318 [BZ #21660]
22319 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22320 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22321 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22322 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22323 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22324 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22325 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22326 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22327 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22328 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22329 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22330 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22331 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22332 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22333 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22334 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22335 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22336 (__floating_type): Likewise.
22337 (__real_integer_type): Likewise.
22338 (__complex_integer_type): Likewise.
22339 (__expr_is_real): Likewise.
22340 (__tgmath_real_type_sub): Likewise.
22341 (__tgmath_real_type): Likewise.
22342 (__tgmath_complex_type_sub): Likewise.
22343 (__tgmath_complex_type): Likewise.
22344 (__TGMATH_F128): Likewise.
22345 (__TGMATH_CF128): Likewise.
22346 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22347 new macros.
22348 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22349 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22350 Likewise.
22351 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22352 Likewise.
22353 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22354 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22355 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22356 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22357 Likewise.
22358 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22359 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22360 Likewise.
22361 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22362 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22363 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22364 Likewise.
22365 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22366 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22367 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22368 (cimag): Likewise.
22369 (creal): Likewise.
22370
22371 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22372
22373 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22374 for stpncpy calls for GCC 8.
22375 (test_strncat): Disable -Wstringop-truncation warning for strncat
22376 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22377 strncat call for GCC 7.
22378 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22379 calls for GCC 8.
22380 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22381 trailing NUL.
22382
22383 * string/bug-strncat1.c: Include <libc-diag.h>.
22384 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22385
22386 2017-11-13 Claude Paroz <claude@2xlibre.net>
22387
22388 [BZ #22387]
22389 * localedata/locales/aa_DJ: Improved readibility by replacing
22390 <Uxxxx> sequences in the ASCII printable range by their ASCII
22391 character equivalents.
22392 * localedata/locales/aa_ER: Likewise.
22393 * localedata/locales/aa_ER@saaho: Likewise.
22394 * localedata/locales/aa_ET: Likewise.
22395 * localedata/locales/af_ZA: Likewise.
22396 * localedata/locales/agr_PE: Likewise.
22397 * localedata/locales/ak_GH: Likewise.
22398 * localedata/locales/am_ET: Likewise.
22399 * localedata/locales/anp_IN: Likewise.
22400 * localedata/locales/ar_AE: Likewise.
22401 * localedata/locales/ar_BH: Likewise.
22402 * localedata/locales/ar_DZ: Likewise.
22403 * localedata/locales/ar_EG: Likewise.
22404 * localedata/locales/ar_IN: Likewise.
22405 * localedata/locales/ar_IQ: Likewise.
22406 * localedata/locales/ar_JO: Likewise.
22407 * localedata/locales/ar_KW: Likewise.
22408 * localedata/locales/ar_LB: Likewise.
22409 * localedata/locales/ar_LY: Likewise.
22410 * localedata/locales/ar_MA: Likewise.
22411 * localedata/locales/ar_OM: Likewise.
22412 * localedata/locales/ar_QA: Likewise.
22413 * localedata/locales/ar_SA: Likewise.
22414 * localedata/locales/ar_SD: Likewise.
22415 * localedata/locales/ar_SS: Likewise.
22416 * localedata/locales/ar_SY: Likewise.
22417 * localedata/locales/ar_TN: Likewise.
22418 * localedata/locales/ar_YE: Likewise.
22419 * localedata/locales/as_IN: Likewise.
22420 * localedata/locales/ast_ES: Likewise.
22421 * localedata/locales/ayc_PE: Likewise.
22422 * localedata/locales/az_AZ: Likewise.
22423 * localedata/locales/az_IR: Likewise.
22424 * localedata/locales/be_BY: Likewise.
22425 * localedata/locales/be_BY@latin: Likewise.
22426 * localedata/locales/bem_ZM: Likewise.
22427 * localedata/locales/ber_DZ: Likewise.
22428 * localedata/locales/ber_MA: Likewise.
22429 * localedata/locales/bg_BG: Likewise.
22430 * localedata/locales/bhb_IN: Likewise.
22431 * localedata/locales/bho_IN: Likewise.
22432 * localedata/locales/bi_VU: Likewise.
22433 * localedata/locales/bn_BD: Likewise.
22434 * localedata/locales/bn_IN: Likewise.
22435 * localedata/locales/bo_CN: Likewise.
22436 * localedata/locales/bo_IN: Likewise.
22437 * localedata/locales/br_FR: Likewise.
22438 * localedata/locales/brx_IN: Likewise.
22439 * localedata/locales/bs_BA: Likewise.
22440 * localedata/locales/byn_ER: Likewise.
22441 * localedata/locales/ca_AD: Likewise.
22442 * localedata/locales/ca_ES: Likewise.
22443 * localedata/locales/ca_FR: Likewise.
22444 * localedata/locales/ca_IT: Likewise.
22445 * localedata/locales/ce_RU: Likewise.
22446 * localedata/locales/chr_US: Likewise.
22447 * localedata/locales/cmn_TW: Likewise.
22448 * localedata/locales/crh_UA: Likewise.
22449 * localedata/locales/cs_CZ: Likewise.
22450 * localedata/locales/csb_PL: Likewise.
22451 * localedata/locales/cv_RU: Likewise.
22452 * localedata/locales/cy_GB: Likewise.
22453 * localedata/locales/da_DK: Likewise.
22454 * localedata/locales/de_AT: Likewise.
22455 * localedata/locales/de_BE: Likewise.
22456 * localedata/locales/de_CH: Likewise.
22457 * localedata/locales/de_DE: Likewise.
22458 * localedata/locales/de_IT: Likewise.
22459 * localedata/locales/de_LI: Likewise.
22460 * localedata/locales/de_LU: Likewise.
22461 * localedata/locales/doi_IN: Likewise.
22462 * localedata/locales/dv_MV: Likewise.
22463 * localedata/locales/dz_BT: Likewise.
22464 * localedata/locales/el_CY: Likewise.
22465 * localedata/locales/el_GR: Likewise.
22466 * localedata/locales/en_AG: Likewise.
22467 * localedata/locales/en_AU: Likewise.
22468 * localedata/locales/en_BW: Likewise.
22469 * localedata/locales/en_CA: Likewise.
22470 * localedata/locales/en_DK: Likewise.
22471 * localedata/locales/en_GB: Likewise.
22472 * localedata/locales/en_HK: Likewise.
22473 * localedata/locales/en_IE: Likewise.
22474 * localedata/locales/en_IL: Likewise.
22475 * localedata/locales/en_IN: Likewise.
22476 * localedata/locales/en_NG: Likewise.
22477 * localedata/locales/en_NZ: Likewise.
22478 * localedata/locales/en_PH: Likewise.
22479 * localedata/locales/en_SG: Likewise.
22480 * localedata/locales/en_US: Likewise.
22481 * localedata/locales/en_ZA: Likewise.
22482 * localedata/locales/en_ZM: Likewise.
22483 * localedata/locales/en_ZW: Likewise.
22484 * localedata/locales/eo: Likewise.
22485 * localedata/locales/es_AR: Likewise.
22486 * localedata/locales/es_BO: Likewise.
22487 * localedata/locales/es_CL: Likewise.
22488 * localedata/locales/es_CO: Likewise.
22489 * localedata/locales/es_CR: Likewise.
22490 * localedata/locales/es_CU: Likewise.
22491 * localedata/locales/es_DO: Likewise.
22492 * localedata/locales/es_EC: Likewise.
22493 * localedata/locales/es_ES: Likewise.
22494 * localedata/locales/es_GT: Likewise.
22495 * localedata/locales/es_HN: Likewise.
22496 * localedata/locales/es_MX: Likewise.
22497 * localedata/locales/es_NI: Likewise.
22498 * localedata/locales/es_PA: Likewise.
22499 * localedata/locales/es_PE: Likewise.
22500 * localedata/locales/es_PR: Likewise.
22501 * localedata/locales/es_PY: Likewise.
22502 * localedata/locales/es_SV: Likewise.
22503 * localedata/locales/es_US: Likewise.
22504 * localedata/locales/es_UY: Likewise.
22505 * localedata/locales/es_VE: Likewise.
22506 * localedata/locales/et_EE: Likewise.
22507 * localedata/locales/eu_ES: Likewise.
22508 * localedata/locales/eu_ES@euro: Likewise.
22509 * localedata/locales/fa_IR: Likewise.
22510 * localedata/locales/ff_SN: Likewise.
22511 * localedata/locales/fi_FI: Likewise.
22512 * localedata/locales/fil_PH: Likewise.
22513 * localedata/locales/fo_FO: Likewise.
22514 * localedata/locales/fr_BE: Likewise.
22515 * localedata/locales/fr_CA: Likewise.
22516 * localedata/locales/fr_CH: Likewise.
22517 * localedata/locales/fr_FR: Likewise.
22518 * localedata/locales/fr_LU: Likewise.
22519 * localedata/locales/fur_IT: Likewise.
22520 * localedata/locales/fy_DE: Likewise.
22521 * localedata/locales/fy_NL: Likewise.
22522 * localedata/locales/ga_IE: Likewise.
22523 * localedata/locales/gd_GB: Likewise.
22524 * localedata/locales/gez_ER: Likewise.
22525 * localedata/locales/gez_ET: Likewise.
22526 * localedata/locales/gl_ES: Likewise.
22527 * localedata/locales/gu_IN: Likewise.
22528 * localedata/locales/gv_GB: Likewise.
22529 * localedata/locales/ha_NG: Likewise.
22530 * localedata/locales/hak_TW: Likewise.
22531 * localedata/locales/he_IL: Likewise.
22532 * localedata/locales/hi_IN: Likewise.
22533 * localedata/locales/hif_FJ: Likewise.
22534 * localedata/locales/hne_IN: Likewise.
22535 * localedata/locales/hr_HR: Likewise.
22536 * localedata/locales/hsb_DE: Likewise.
22537 * localedata/locales/ht_HT: Likewise.
22538 * localedata/locales/hu_HU: Likewise.
22539 * localedata/locales/hy_AM: Likewise.
22540 * localedata/locales/i18n: Likewise.
22541 * localedata/locales/ia_FR: Likewise.
22542 * localedata/locales/id_ID: Likewise.
22543 * localedata/locales/ig_NG: Likewise.
22544 * localedata/locales/ik_CA: Likewise.
22545 * localedata/locales/is_IS: Likewise.
22546 * localedata/locales/it_CH: Likewise.
22547 * localedata/locales/it_IT: Likewise.
22548 * localedata/locales/iu_CA: Likewise.
22549 * localedata/locales/ja_JP: Likewise.
22550 * localedata/locales/ka_GE: Likewise.
22551 * localedata/locales/kk_KZ: Likewise.
22552 * localedata/locales/kl_GL: Likewise.
22553 * localedata/locales/kn_IN: Likewise.
22554 * localedata/locales/ko_KR: Likewise.
22555 * localedata/locales/kok_IN: Likewise.
22556 * localedata/locales/ks_IN: Likewise.
22557 * localedata/locales/ks_IN@devanagari: Likewise.
22558 * localedata/locales/ku_TR: Likewise.
22559 * localedata/locales/kw_GB: Likewise.
22560 * localedata/locales/ky_KG: Likewise.
22561 * localedata/locales/lb_LU: Likewise.
22562 * localedata/locales/lg_UG: Likewise.
22563 * localedata/locales/li_BE: Likewise.
22564 * localedata/locales/li_NL: Likewise.
22565 * localedata/locales/lij_IT: Likewise.
22566 * localedata/locales/ln_CD: Likewise.
22567 * localedata/locales/lo_LA: Likewise.
22568 * localedata/locales/lt_LT: Likewise.
22569 * localedata/locales/lv_LV: Likewise.
22570 * localedata/locales/lzh_TW: Likewise.
22571 * localedata/locales/mag_IN: Likewise.
22572 * localedata/locales/mai_IN: Likewise.
22573 * localedata/locales/mg_MG: Likewise.
22574 * localedata/locales/mhr_RU: Likewise.
22575 * localedata/locales/mi_NZ: Likewise.
22576 * localedata/locales/mk_MK: Likewise.
22577 * localedata/locales/ml_IN: Likewise.
22578 * localedata/locales/mn_MN: Likewise.
22579 * localedata/locales/mni_IN: Likewise.
22580 * localedata/locales/mr_IN: Likewise.
22581 * localedata/locales/ms_MY: Likewise.
22582 * localedata/locales/mt_MT: Likewise.
22583 * localedata/locales/my_MM: Likewise.
22584 * localedata/locales/nan_TW: Likewise.
22585 * localedata/locales/nan_TW@latin: Likewise.
22586 * localedata/locales/nb_NO: Likewise.
22587 * localedata/locales/nds_DE: Likewise.
22588 * localedata/locales/nds_NL: Likewise.
22589 * localedata/locales/ne_NP: Likewise.
22590 * localedata/locales/nhn_MX: Likewise.
22591 * localedata/locales/niu_NU: Likewise.
22592 * localedata/locales/niu_NZ: Likewise.
22593 * localedata/locales/nl_AW: Likewise.
22594 * localedata/locales/nl_BE: Likewise.
22595 * localedata/locales/nl_NL: Likewise.
22596 * localedata/locales/nn_NO: Likewise.
22597 * localedata/locales/nr_ZA: Likewise.
22598 * localedata/locales/nso_ZA: Likewise.
22599 * localedata/locales/oc_FR: Likewise.
22600 * localedata/locales/om_ET: Likewise.
22601 * localedata/locales/om_KE: Likewise.
22602 * localedata/locales/or_IN: Likewise.
22603 * localedata/locales/os_RU: Likewise.
22604 * localedata/locales/pa_IN: Likewise.
22605 * localedata/locales/pa_PK: Likewise.
22606 * localedata/locales/pap_AW: Likewise.
22607 * localedata/locales/pap_CW: Likewise.
22608 * localedata/locales/pl_PL: Likewise.
22609 * localedata/locales/ps_AF: Likewise.
22610 * localedata/locales/pt_BR: Likewise.
22611 * localedata/locales/pt_PT: Likewise.
22612 * localedata/locales/quz_PE: Likewise.
22613 * localedata/locales/raj_IN: Likewise.
22614 * localedata/locales/ro_RO: Likewise.
22615 * localedata/locales/ru_RU: Likewise.
22616 * localedata/locales/ru_UA: Likewise.
22617 * localedata/locales/rw_RW: Likewise.
22618 * localedata/locales/sa_IN: Likewise.
22619 * localedata/locales/sat_IN: Likewise.
22620 * localedata/locales/sc_IT: Likewise.
22621 * localedata/locales/sd_IN: Likewise.
22622 * localedata/locales/sd_IN@devanagari: Likewise.
22623 * localedata/locales/se_NO: Likewise.
22624 * localedata/locales/sgs_LT: Likewise.
22625 * localedata/locales/shs_CA: Likewise.
22626 * localedata/locales/si_LK: Likewise.
22627 * localedata/locales/sid_ET: Likewise.
22628 * localedata/locales/sk_SK: Likewise.
22629 * localedata/locales/sl_SI: Likewise.
22630 * localedata/locales/sm_WS: Likewise.
22631 * localedata/locales/so_DJ: Likewise.
22632 * localedata/locales/so_ET: Likewise.
22633 * localedata/locales/so_KE: Likewise.
22634 * localedata/locales/so_SO: Likewise.
22635 * localedata/locales/sq_AL: Likewise.
22636 * localedata/locales/sq_MK: Likewise.
22637 * localedata/locales/sr_ME: Likewise.
22638 * localedata/locales/sr_RS: Likewise.
22639 * localedata/locales/sr_RS@latin: Likewise.
22640 * localedata/locales/ss_ZA: Likewise.
22641 * localedata/locales/st_ZA: Likewise.
22642 * localedata/locales/sv_FI: Likewise.
22643 * localedata/locales/sv_SE: Likewise.
22644 * localedata/locales/sw_KE: Likewise.
22645 * localedata/locales/sw_TZ: Likewise.
22646 * localedata/locales/szl_PL: Likewise.
22647 * localedata/locales/ta_IN: Likewise.
22648 * localedata/locales/ta_LK: Likewise.
22649 * localedata/locales/tcy_IN: Likewise.
22650 * localedata/locales/te_IN: Likewise.
22651 * localedata/locales/tg_TJ: Likewise.
22652 * localedata/locales/th_TH: Likewise.
22653 * localedata/locales/the_NP: Likewise.
22654 * localedata/locales/ti_ER: Likewise.
22655 * localedata/locales/ti_ET: Likewise.
22656 * localedata/locales/tig_ER: Likewise.
22657 * localedata/locales/tk_TM: Likewise.
22658 * localedata/locales/tl_PH: Likewise.
22659 * localedata/locales/tn_ZA: Likewise.
22660 * localedata/locales/to_TO: Likewise.
22661 * localedata/locales/tpi_PG: Likewise.
22662 * localedata/locales/tr_CY: Likewise.
22663 * localedata/locales/tr_TR: Likewise.
22664 * localedata/locales/ts_ZA: Likewise.
22665 * localedata/locales/tt_RU: Likewise.
22666 * localedata/locales/tt_RU@iqtelif: Likewise.
22667 * localedata/locales/ug_CN: Likewise.
22668 * localedata/locales/uk_UA: Likewise.
22669 * localedata/locales/unm_US: Likewise.
22670 * localedata/locales/ur_IN: Likewise.
22671 * localedata/locales/ur_PK: Likewise.
22672 * localedata/locales/uz_UZ: Likewise.
22673 * localedata/locales/uz_UZ@cyrillic: Likewise.
22674 * localedata/locales/ve_ZA: Likewise.
22675 * localedata/locales/vi_VN: Likewise.
22676 * localedata/locales/wa_BE: Likewise.
22677 * localedata/locales/wae_CH: Likewise.
22678 * localedata/locales/wal_ET: Likewise.
22679 * localedata/locales/wo_SN: Likewise.
22680 * localedata/locales/xh_ZA: Likewise.
22681 * localedata/locales/yi_US: Likewise.
22682 * localedata/locales/yo_NG: Likewise.
22683 * localedata/locales/yue_HK: Likewise.
22684 * localedata/locales/yuw_PG: Likewise.
22685 * localedata/locales/zh_CN: Likewise.
22686 * localedata/locales/zh_HK: Likewise.
22687 * localedata/locales/zh_SG: Likewise.
22688 * localedata/locales/zh_TW: Likewise.
22689 * localedata/locales/zu_ZA: Likewise.
22690
22691 2017-11-13 Florian Weimer <fweimer@redhat.com>
22692
22693 * support/next_to_fault.h, support/next_to_fault.c: New files.
22694 * support/Makefile (libsupport-routines): Add next_to_fault.
22695 * resolv/tst-inet_pton.c (struct next_to_fault)
22696 (next_to_fault_allocate, next_to_fault_free): Remove.
22697 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22698
22699 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22700
22701 * elf/dl-support.c: Include <dl-procruntime.c>.
22702 * include/link.h: Include <link_map.h>.
22703 * sysdeps/generic/dl-procruntime.c: New file.
22704 * sysdeps/generic/link_map.h: Likewise.
22705 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22706 the writable ld.so namespace.
22707
22708 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22709
22710 timezone: pacify GCC -Wstringop-truncation
22711 Problem reported by Martin Sebor in:
22712 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22713 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22714
22715 2017-11-12 Florian Weimer <fweimer@redhat.com>
22716
22717 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22718 tst-xreadlink.
22719 (tests): Add tst-xreadlink.
22720 * support/support.h (xstrndup): Declare.
22721 * support/xunistd.h (xunlink, xreadlink): Declare.
22722 * support/temp_file.h (support_create_temp_directory): Declare.
22723 * support/temp_file.c (support_create_temp_directory): New function.
22724 * support/support_chroot.c (support_chroot_create): Use it.
22725 * support/xreadlink.c: New file.
22726 * support/xstrndup.c: Likewise.
22727 * support/xunlink.c: Likewise.
22728 * support/tst-xreadlink.c: Likewise.
22729
22730 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22731
22732 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22733
22734 2017-11-11 Florian Weimer <fweimer@redhat.com>
22735
22736 [BZ #22409]
22737 [BZ #22412]
22738 * resolv/res_comp.c (printable_string, binary_hnok)
22739 (binary_leading_dash): New functions.
22740 (res_hnok): Reimplement using these functions and ns_name_pton.
22741 (res_ownok): Likewise.
22742 (res_mailok): Reimplement using printable_string, ns_name_pton and
22743 binary_hnok.
22744 (res_dnok): Reimplement using printable_string and ns_name_pton.
22745 * resolv/tst-res_hnok.c (tests): Add additional tests.
22746 (LETTERDIGITS, PRINTABLE): Define.
22747 (do_test): Adjust one_char results.
22748
22749 2017-11-11 Florian Weimer <fweimer@redhat.com>
22750
22751 [BZ #22413]
22752 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22753 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22754
22755 2017-11-11 Florian Weimer <fweimer@redhat.com>
22756
22757 * resolv/tst-ns_name_pton.c: New file.
22758 * resolv/Makefile (tests): Add tst-ns_name_pton.
22759 (tst-ns_name_pton): Link against libresolv.
22760
22761 2017-11-11 Florian Weimer <fweimer@redhat.com>
22762
22763 * resolv/tst-res_hnok.c: New file.
22764 * resolv/Makefile (tests): Add tst-res_hnok.
22765 (tst-res_hnok): Link against libresolv.
22766
22767 2017-11-11 Florian Weimer <fweimer@redhat.com>
22768
22769 * resolv/tst-resolv-network.c: Use test framework instead explicit
22770 main function.
22771
22772 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22773
22774 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22775 <jmp_buf-macros.h>.
22776 [!_ISOMAC] (STR_HELPER): New.
22777 [!_ISOMAC] (STR): Likewise.
22778 [!_ISOMAC] (TEST_SIZE): Likewise.
22779 [!_ISOMAC] (TEST_ALIGN): Likewise.
22780 [!_ISOMAC] (TEST_OFFSET): Likewise.
22781 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22782 field offsets of jmp_buf as well as sigjmp_buf.
22783 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22784 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22785 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22786 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22787 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22788 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22789 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22790 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22791 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22792 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22793 Likewise.
22794 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22795 Likewise.
22796 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22798 Likewise.
22799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22800 Likewise.
22801 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22802 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22803 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22804 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22805 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22806 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22807 Likewise.
22808 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22809 Likewise.
22810 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22811 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22812 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22813
22814 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22815
22816 * include/float.h
22817 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22818 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22819 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22820 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22821 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22822 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22823 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22824 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22825 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22826 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22827 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22828 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22829 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22830 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22831 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22832 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22833 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22834 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22835 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22836 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22837 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22838 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22839 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22840 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22841 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22842 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22843 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22844 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22845 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22846 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22847 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22848 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22849 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22850 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22851 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22852 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22853 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22854 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22855 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22856 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22857 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22858 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22859 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22860 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22861 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22862 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22863 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22864 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22865 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22866 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22867 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22868 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22869 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22870 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22871 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22872 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22873 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22874 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22875 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22876 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22877 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22878 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22879 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22880 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22881 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22882 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22883 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22884 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22885 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22886 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22887 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22888 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22889 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22890 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22891 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22892 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22893 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22894 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22895 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22896 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22897 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22898 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22899 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22900 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22901 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22902 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22903 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22904 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22905
22906 * stdlib/tst-strtod.h (F16): New macro.
22907 (F32): Likewise.
22908 (F64): Likewise.
22909 (F32X): Likewise.
22910 (F64X): Likewise.
22911 (F128X): Likewise.
22912 (IF_FLOAT16): Likewise.
22913 (IF_FLOAT32): Likewise.
22914 (IF_FLOAT64): Likewise.
22915 (IF_FLOAT32X): Likewise.
22916 (IF_FLOAT64X): Likewise.
22917 (IF_FLOAT128X): Likewise.
22918 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22919 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22920 (STRTOD_TEST_FOREACH): Likewise.
22921 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22922 (CHOOSE_f64): Likewise.
22923 (CHOOSE_f32x): Likewise.
22924 (CHOOSE_f64x): Likewise.
22925
22926 2017-11-07 Andreas Schwab <schwab@suse.de>
22927
22928 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22929
22930 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22931
22932 [BZ #22403]
22933 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22934 to be escaped.
22935 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22936 to be escaped.
22937
22938 2017-11-07 Claude Paroz <claude@2xlibre.net>
22939
22940 [BZ #22403]
22941 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22942 to be escaped.
22943 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22944 to be escaped.
22945 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22946 to be escaped.
22947
22948 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22949
22950 [BZ #22298]
22951 * nptl/allocatestack.c (allocate_stack): Check if
22952 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22953 __PTHREAD_MUTEX_HAVE_PREV is defined.
22954 * nptl/descr.h (pthread): Likewise.
22955 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22956 Likewise.
22957 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22958 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22959 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22960 * sysdeps/nptl/bits/thread-shared-types.h
22961 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22962 defines.
22963 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22964 of __WORDSIZE for internal layout.
22965 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22966 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22967 instead of __WORDSIZE whether to use an union for __spins and __list
22968 fields.
22969 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22970 case.
22971 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22972 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22973 defines.
22974 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22975 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22976 Likewise.
22977 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22978 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22979 Likewise.
22980 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22981 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22982 Likewise.
22983 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22984 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22985 Likewise.
22986 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22987 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22988 Likewise.
22989 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22990 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22991 Likewise.
22992 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22993 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22994 Likewise.
22995 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22996 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22997 Likewise.
22998 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22999 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23000 Likewise.
23001 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23002 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23003 Likewise.
23004 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23005 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23006 Likewise.
23007 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23008 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23009 Likewise.
23010 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23011 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23012 Likewise.
23013 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23014 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23015 Likewise.
23016
23017 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23018 New macros.
23019 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23020 checks for expected input type size.
23021 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23022 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23023 Likewise.
23024 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23025 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23026 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23027 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23028 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23029 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23030 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23031 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23032 superflous runtime assert check.
23033 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23034 Likewise.
23035 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23036 Likewise.
23037 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23038 Likewise.
23039 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23040 Likewise.
23041 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23042 Likewise.
23043 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23044 Likewise.
23045 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23046 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23047 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23048 Likewise.
23049 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23050 Likewise.
23051 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23052 Likewise.
23053 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23054 Likewise.
23055 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23056 Likewise.
23057 * nptl/pthread_attr_setinheritsched.c
23058 (__pthread_attr_setinheritsched): Likewise.
23059 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23060 Likewise.
23061 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23062 Likewise.
23063 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23064 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23065 __old_pthread_attr_setstack): Likewise.
23066 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23067 Likewise.
23068 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23069 Likewise.
23070 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23071 Likewise.
23072 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23073 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23074 Likewise.
23075 * nptl/tst-typesizes.c: Remove file.
23076
23077 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23078 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23079 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23080 checks for internal pthread_mutex_t offsets.
23081 * sysdeps/aarch64/nptl/pthread-offsets.h
23082 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23083 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23084 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23085 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23086 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23087 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23088 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23089 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23090 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23091 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23092 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23093 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23094 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23095 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23096 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23097 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23098 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23099 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23100
23101 2017-11-07 Florian Weimer <fweimer@redhat.com>
23102
23103 * bits/mman-linux.h: Move ...
23104 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23105 comment.
23106 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23107 outdated comment.
23108
23109 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23110
23111 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23112 Redefine STRNLEN as __strnlen_power8.
23113
23114 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23115
23116 * signal/sighold.c (sighold): Optimize implementation.
23117
23118 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23119 __NR_rt_sigqueueinfo.
23120
23121 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23122 __sigtimedwait.
23123 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23124 assume __NR_rt_sigtimedwait.
23125 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23126 and add LIBC_CANCEL_HANDLED for cancellation marking.
23127 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23128
23129 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23130 (sysdeps_routines): Add memchr_noneon.
23131 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23132 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23133 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23134 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23135 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23136 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23137 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23138
23139 * sysdeps/arm/arm-ifunc.h: New file.
23140 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23141 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23142 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23143 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23144 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23145 (__memcpy_neon): Avoid create hidden alias.
23146 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23147 (__memcpy_vfp): Likewise.
23148 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23149 (sysdep_routines): Add memcpy_arm.
23150 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23151
23152 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23153
23154 [BZ #22362]
23155 * Makerules (make-link-multidir): New.
23156 * config.make.in (multidir): New.
23157 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23158 * configure: Regenerated.
23159 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23160 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23161 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23162 New target.
23163
23164 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23165
23166 [BZ #22402]
23167 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23168 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23169
23170 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23171
23172 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23173 to be escaped.
23174
23175 2017-11-04 Florian Weimer <fweimer@redhat.com>
23176
23177 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23178
23179 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23180
23181 * math/math.h [__HAVE_DISTINCT_FLOAT16
23182 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23183 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23184 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23185 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23186 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23187 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23188 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23189 (__MATH_TG_F32): New macro.
23190 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23191 (__MATH_TG_F64X): Likewise.
23192 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23193 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23194
23195 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23196
23197 * po/de.po: Update translations.
23198 * po/ru.po: Likewise.
23199
23200 2017-11-03 Florian Weimer <fweimer@redhat.com>
23201
23202 * manual/filesys.texi (Hard Links): Document linkat.
23203
23204 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23205
23206 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23207 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23208 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23209 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23210 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23211 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23212 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23213 the same as _Float128.
23214 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23215 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23216 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23217
23218 * stdlib/stdlib.h
23219 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23220 Declare.
23221 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23222 Likewise.
23223 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23224 Likewise.
23225 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23226 (strtof32x): Likewise.
23227 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23228 (strtof64x): Likewise.
23229 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23230 (strtof128x): Likewise.
23231 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23232 (strfromf16): Likewise.
23233 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23234 (strfromf32): Likewise.
23235 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23236 (strfromf64): Likewise.
23237 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23238 (strfromf32x): Likewise.
23239 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23240 (strfromf64x): Likewise.
23241 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23242 (strfromf128x): Likewise.
23243 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23244 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23245 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23246 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23247 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23248 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23249
23250 2017-11-03 Richard Henderson <rth@twiddle.net>
23251
23252 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23253
23254 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23255
23256 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23257
23258 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23259
23260 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23261 DT_TLSDESC_GOT initialization.
23262 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23263 (_dl_tlsdesc_resolve_hold): Likewise.
23264 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23265 (_dl_tlsdesc_resolve_hold): Likewise.
23266 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23267 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23268
23269 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23270
23271 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23272
23273 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23274
23275 [BZ #18572]
23276 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23277 non-lazily for R_ARM_TLS_DESC.
23278
23279 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23280
23281 [BZ #17078]
23282 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23283 R_ARM_TLS_DESC case.
23284 (elf_machine_lazy_rel): Remove the prelink check.
23285
23286 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23287
23288 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23289 DT_TLSDESC_GOT initialization.
23290 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23291 (_dl_tlsdesc_resolve_rela): Likewise.
23292 (_dl_tlsdesc_resolve_hold): Likewise.
23293 (_dl_tlsdesc_undefweak): Remove ldar.
23294 (_dl_tlsdesc_dynamic): Likewise.
23295 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23296 (_dl_tlsdesc_resolve_rela): Likewise.
23297 (_dl_tlsdesc_resolve_hold): Likewise.
23298 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23299 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23300 (_dl_tlsdesc_resolve_rela): Likewise.
23301 (_dl_tlsdesc_resolve_hold): Likewise.
23302
23303 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23304
23305 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23306 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23307
23308 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23309
23310 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23311 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23312
23313 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23314
23315 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23316 Declare.
23317 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23318 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23319 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23320 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23321 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23322 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23323 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23324 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23325 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23326 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23327 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23328
23329 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23330
23331 [BZ #22382]
23332 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23333 * localedata/locales/tpi_PG: Add standard header.
23334
23335 2017-11-02 Florian Weimer <fweimer@redhat.com>
23336
23337 test-errno-linux: quotactl can fail with EPERM in containers.
23338 * sysdeps/unix/sysv/linux/test-errno-linux.c
23339 (LIST, LIST_FORWARD): New macros.
23340 (check_error_in_list): New function.
23341 (test_wrp_rv): Accept list of permitted error codes.
23342 (test_wrp_rv2): Remove.
23343 (test_wrp): Call test_wrp_rv with list of error codes.
23344 (test_wrp2): Accept list of error codes.
23345 (do_test): Adjust. Allow EPERM for quotactl.
23346
23347 2017-11-02 Florian Weimer <fweimer@redhat.com>
23348
23349 * stdio-common/bug16.c (do_test): Use array_length.
23350 * stdio-common/errlist.c (_sys_nerr): Likewise.
23351 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23352 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23353 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23354 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23355 (do_test): Use array_length.
23356 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23357 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23358 * stdio-common/tst-printf-round.c (do_test): Likewise.
23359 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23360 (CHECK): Use array_length.
23361 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23362 * stdio-common/tstscanf.c (main): Likewise.
23363 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23364
23365 2017-11-02 Florian Weimer <fweimer@redhat.com>
23366
23367 Add array_length and array_end macros.
23368 * include/array_length.h: New file.
23369
23370 2017-11-02 Florian Weimer <fweimer@redhat.com>
23371
23372 [BZ #22332]
23373 * posix/tst-glob-tilde.c (do_noescape): New variable.
23374 (one_test): Process it.
23375 (do_test): Set do_noescape. Add unescaping test case.
23376
23377 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23378
23379 * math/complex.h
23380 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23381 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23382 with appropriate macros defined and undefined.
23383 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23384 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23385 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23386 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23387 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23388 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23389 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23390 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23391 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23392 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23393
23394 * math/complex.h
23395 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23396 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23397 that for long double. Do not condition define and undefine of
23398 _Mdouble_complex_ on [__CFLOAT128].
23399
23400 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23401
23402 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23403 of <sysdeps/generic/sysdep.h>.
23404 (ALIGNARG): Removed.
23405 (ASM_SIZE_DIRECTIVE): Likewise.
23406 (ENTRY): Likewise.
23407 (END): Likewise.
23408 (ENTRY_CHK): Likewise.
23409 (END_CHK): Likewise.
23410 (syscall_error): Likewise.
23411 (mcount): Likewise.
23412 (PSEUDO_END): Likewise.
23413 (L): Likewise.
23414 (atom_text_section): Likewise.
23415 * sysdeps/x86/sysdep.h: New file.
23416 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23417 of <sysdeps/generic/sysdep.h>.
23418 (ALIGNARG): Removed.
23419 (ASM_SIZE_DIRECTIVE): Likewise.
23420 (ENTRY): Likewise.
23421 (END): Likewise.
23422 (ENTRY_CHK): Likewise.
23423 (END_CHK): Likewise.
23424 (syscall_error): Likewise.
23425 (mcount): Likewise.
23426 (PSEUDO_END): Likewise.
23427 (L): Likewise.
23428 (atom_text_section): Likewise.
23429
23430 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23431
23432 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23433 category of LC_CTYPE set to "i18n:2012".
23434 * localedata/locales/i18n_ctype: Regenerate.
23435
23436 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23437
23438 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23439 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23440 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23441 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23442
23443 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23444 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23445 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23446 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23447
23448 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23449
23450 * math/complex.h
23451 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23452 New macro.
23453 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23454 Likewise.
23455 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23456 Likewise.
23457 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23458 (CMPLXF32X): Likewise.
23459 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23460 (CMPLXF64X): Likewise.
23461 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23462 (CMPLXF128X): Likewise.
23463
23464 * math/math.h
23465 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23466 (__MATH_EVAL_FMT2): Define to add 0.0f.
23467
23468 2017-10-31 Alan Modra <amodra@gmail.com>
23469
23470 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23471 include sysdep.h.
23472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23481 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23482 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23485 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23486 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23487 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23488 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23489 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23490 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23491 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23492 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23493 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23494 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23495 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23496 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23497 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23498 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23499 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23500 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23501 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23502 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23503 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23504 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23505 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23506 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23507 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23508 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23509 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23510 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23511 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23512 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23513 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23514 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23515 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23516 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23517 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23518 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23519 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23520 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23521 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23522 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23523 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23524 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23525 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23526 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23527 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23528 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23529 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23530 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23531 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23532 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23533 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23534 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23535 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23536 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23537 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23538 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23539 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23540 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23541
23542 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23543 include sysdep.h and math_ldbl_opt.h.
23544
23545 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23546 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23547 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23548 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23549 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23550 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23551 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23552 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23553 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23554 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23556 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23557 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23558 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23559 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23560 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23561 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23563 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23564 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23565 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23566 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23567 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23568 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23569 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23570 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23571
23572 2017-10-31 Alan Modra <amodra@gmail.com>
23573
23574 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23575 string/strncase_l.c, not string/strncase.c.
23576 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23577 (libc_hidden_def): Redefine.
23578
23579 2017-10-31 Alan Modra <amodra@gmail.com>
23580
23581 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23582 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23583 (__strcasecmp): Don't define.
23584
23585 2017-10-31 Alan Modra <amodra@gmail.com>
23586
23587 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23588 IS_IN (libc).
23589 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23590 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23591 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23592
23593 2017-10-31 Alan Modra <amodra@gmail.com>
23594
23595 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23596 USE_AS_STPNCPY.
23597
23598 2017-10-31 Alan Modra <amodra@gmail.com>
23599
23600 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23601 Redefine only when SHARED.
23602
23603 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23604
23605 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23606 Include <bits/math-finite.h> with appropriate macros defined and
23607 undefined.
23608 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23609 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23610 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23611 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23612 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23613
23614 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23615 [!_Mlong_double_] (_Mlong_double_): Likewise.
23616 [!_Mfloat16_] (_Mfloat16_): Likewise.
23617 [!_Mfloat32_] (_Mfloat32_): Likewise.
23618 [!_Mfloat64_] (_Mfloat64_): Likewise.
23619 [!_Mfloat128_] (_Mfloat128_): Likewise.
23620 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23621 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23622 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23623 (_Mdouble_): Define without indirection through those macros.
23624 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23625 [!_Mfloat128_] (_Mfloat128_): Likewise.
23626 [_Mlong_double_] (_Mlong_double_): Likewise.
23627 (_Mdouble_): Define without indirection through those macros.
23628 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23629 not add -D_Mlong_double_=double.
23630 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23631 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23632
23633 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23634
23635 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23636
23637 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23638
23639 * sysdeps/x86/libc-start.c: Reformat.
23640
23641 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23642
23643 [BZ #22353]
23644 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23645 (1): Renamed to ...
23646 (L(Src0)): This.
23647 (L(Src1)): New.
23648 (L(Src2)): Likewise.
23649 (L(1)): Renamed to ...
23650 (L(Src3)): This.
23651
23652 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23653
23654 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23655 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23656 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23657 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23658 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23659 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23660 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23661 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23662 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23663 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23664 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23665 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23666 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23667 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23668 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23669 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23670 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23671 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23672 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23673 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23674 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23675 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23676 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23677 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23678 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23679 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23680 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23681 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23682 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23683 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23684 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23685 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23686 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23687 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23688 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23689 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23690 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23691 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23692 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23693 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23694 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23695 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23696 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23697 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23698 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23699 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23700 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23701 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23702 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23703 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23704 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23705 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23706 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23707 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23708 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23709 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23710 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23711 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23712 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23713 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23714 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23715 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23716 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23717 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23718 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23719 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23720
23721 2017-10-30 Florian Weimer <fweimer@redhat.com>
23722
23723 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23724 always defined.
23725 * io/tst-mkdirat.c (do_test): Likewise.
23726 * io/tst-mkfifoat.c (do_test): Likewise.
23727 * io/tst-mknodat.c (do_test): Likewise.
23728 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23729 * locale/programs/locale.c (select_dirs): Likewise.
23730 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23731 * posix/bug-glob2.c (my_readdir): Likewise.
23732 * posix/tst-dir.c (main): Likewise.
23733 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23734 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23735
23736 2017-10-30 Florian Weimer <fweimer@redhat.com>
23737
23738 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23739 just __USE_GNU.
23740
23741 2017-10-30 Florian Weimer <fweimer@redhat.com>
23742
23743 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23744 Convert to support/test-driver.c.
23745 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23746 New macro parameters.
23747 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23748 * posix/tst-gnuglob.c: New file.
23749 * posix/tst-gnuglob64.c: Likewise.
23750 * posix/Makefile (tests): Add tst-gnuglob64.
23751
23752 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23753
23754 [BZ #19485]
23755 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23756 and use a better translation for March in “mon”.
23757 * localedata/locales/csb_PL: Use more ASCII to improve the
23758 readability of the source.
23759
23760 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23761
23762 [BZ #13953]
23763 * localedata/locales/km_KH: Use ASCII as much
23764 as possible for better readability of the source and
23765 remove useless comments.
23766 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23767 was commented out and apparently wrong anyway because it was
23768 using Lao characters. If Buddhist era should be used
23769 for km_KH, a native speaker should write the correct formaat
23770 for Khmer.
23771 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23772 (According to CLDR, the first weekday for Cambodia is Sunday).
23773 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23774 (These were using Lao characters which must be wrong. If we get
23775 the correct data from a native speaker, we could add it back, until
23776 then it is better not to have name_mr and name_mrs at all than
23777 having it wrong).
23778
23779 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23780
23781 * locale/loadlocale.c: Correct size of
23782 _nl_value_type_LC_<category> arrays.
23783
23784 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23785
23786 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23787 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23788 with appropriate macros defined and undefined.
23789 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23790 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23791 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23792 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23793 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23794
23795 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23796
23797 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23798 "-O2 -march=i586".
23799
23800 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23801
23802 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23803 with lowercase letters to make it agree with CLDR.
23804
23805 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23806
23807 [BZ #15260]
23808 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23809 first letters of yesstr and nostr in yesexpr and noexpr,
23810 not for the full words.
23811 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23812 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23813 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23814 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23815 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23816 first letters of yesstr and nostr in yesexpr and noexpr,
23817 until now only English was matched in yesexpr and noexpr.
23818 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23819 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23820 fil but not for tl. As tl and fil are very similar, using fil
23821 is probably better than using English.
23822
23823 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23824
23825 [BZ #21706]
23826 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23827 in yesstr and nostr.
23828
23829 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23830
23831 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23832 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23833 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23834 Likewise.
23835 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23836 Likewise.
23837 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23838 Likewise.
23839 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23840 Likewise.
23841 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23842 (SNANF128X): Likewise.
23843
23844 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23845 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23846 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23847 (HUGE_VAL_F32): Likewise.
23848 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23849 (HUGE_VAL_F64): Likewise.
23850 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23851 (HUGE_VAL_F32X): Likewise.
23852 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23853 (HUGE_VAL_F64X): Likewise.
23854 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23855 (HUGE_VAL_F128X): Likewise.
23856
23857 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23858
23859 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23860 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23861 for the br_FR locale.
23862
23863 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23864
23865 [BZ #21706]
23866 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23867
23868 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23869
23870 * locale/programs/record-status.h: Define globals, and function
23871 prototypes. Move function bodies...
23872 * locale/programs/record-status.c: ... to here. New file.
23873 * iconv/Makefile (iconv_prog-modules): Add record-status.
23874 * locale/Makefile (lib-modules): Likewise.
23875 * iconv/iconv_prog.c: Remove verbose.
23876 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23877 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23878 record a warning about ASCII compatibility.
23879 * locale/programs/ld-monetary.c (monetary_finish): If
23880 warn_int_curr_symbol is true then record a warning about the symbol
23881 not being in our ISO 4217 list.
23882 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23883 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23884 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23885 (OPT_NO_WARN): Define.
23886 (OPT_WARN): Define.
23887 (options): Add entry for --no-warnings, and --warnings.
23888 (set_warnings): New function to enable/disable warnings.
23889 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23890 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23891 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23892 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23893 Pass flags to generate_locale.
23894 (generate_locale): Accept new flag argument and pass it to localedef
23895 invocation.
23896 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23897 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23898
23899 * localedata/Makefile (test-input-data): Use full file name.
23900 * localedata/da_DK.in: Rename to...
23901 * localedata/da_DK.ISO-8859-1.in: ...this.
23902 * localedata/de_DE.in: Rename to...
23903 * localedata/de_DE.ISO-8859-1.in: ...this.
23904 * localedata/en_US.in: Rename to...
23905 * localedata/en_US.ISO-8859-1.in: ...this.
23906 * localedata/fr_FR.in: Rename to...
23907 * localedata/fr_FR.UTF-8.in: ... this.
23908 * localedata/hr_HR.in: Rename to...
23909 * localedata/hr_HR.ISO-8859-2.in: ...this.
23910 * localedata/hu_HU.in: Rename to...
23911 * localedata/hu_HU.UTF-8.in: ...this.
23912 * localedata/si_LK.in: Rename to...
23913 * localedata/si_LK.UTF-8.in: ...this.
23914 * localedata/sv_SE.in: Rename to...
23915 * localedata/sv_SE.ISO-8859-1.in: ...this.
23916 * localedata/tr_TR.in: Rename to...
23917 * localedata/tr_TR.UTF-8.in: ...this.
23918 * localedata/uk_UA.in: Rename to...
23919 * localedata/uk_UA.UTF-8.in: ...this.
23920 * localedata/sort-test.sh: Test file is locale name with the
23921 suffix.
23922
23923 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23924 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23925 file.
23926 * localedata/locales/i18n_ctype: Regenerate.
23927 * localedata/locales/tr_TR: Likewise.
23928 * localedata/locales/translit_circle: Likewise.
23929 * localedata/locales/translit_cjk_compat: Likewise.
23930 * localedata/locales/translit_combining: Likewise.
23931 * localedata/locales/translit_compat: Likewise.
23932 * localedata/locales/translit_font: Likewise.
23933 * localedata/locales/translit_fraction: Likewise.
23934
23935 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23936
23937 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23938 lxvd2x/stxvd2x with lvx/stvx.
23939 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23940
23941 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23942
23943 * include/alloc_buffer.h: Replace "if if " with "if " in
23944 comments.
23945 * sysdeps/mips/memcpy.S: Likkewise.
23946 * sysdeps/mips/memset.S: Likewise.
23947 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23948 Likewise.
23949 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23950 Likewise.
23951 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23952 Likewise.
23953
23954 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23955
23956 [BZ #15261]
23957 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23958 yesexpr and noexpr.
23959 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23960 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23961 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23962 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23963 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23964 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23965 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23966
23967 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23968
23969 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23970 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23971 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23972 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23973 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23974 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23975 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23976 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23977 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23978 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23979 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23980 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23981
23982 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23983
23984 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23985 as possible for better readability of the source.
23986 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23987 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23988 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23989 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23990 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23991 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23992 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23993 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23994 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23995 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23996 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23997 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23998 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23999 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24000 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24001 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24002 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24003 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24004 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24005 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24006 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24007 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24008 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24009 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24010 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24011 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24012 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24013 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24014 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24015 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24016 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24017 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24018 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24019 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24020 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24021 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24022 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24023 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24024 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24025 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24026 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24027 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24028 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24029 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24030 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24031 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24032 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24033 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24034 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24035 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24036 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24037 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24038 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24039 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24040 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24041 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24042 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24043 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24044 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24045 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24046 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24047 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24048 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24049 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24050 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24051 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24052 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24053 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24054 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24055 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24056 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24057 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24058 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24059 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24060 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24061 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24062 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24063 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24064 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24065 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24066 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24067 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24068 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24069 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24070 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24071 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24072 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24073 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24074 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24075 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24076 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24077 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24078 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24079 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24080 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24081 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24082 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24083 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24084 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24085 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24086 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24087 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24088 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24089 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24090 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24091 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24092 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24093 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24094 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24095 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24096 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24097 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24098 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24099 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24100 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24101 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24102 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24103 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24104 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24105 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24106 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24107 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24108 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24109 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24110 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24111 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24112 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24113 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24114 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24115 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24116 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24117 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24118 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24119 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24120 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24121 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24122 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24123 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24124 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24125 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24126 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24127 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24128 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24129 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24130 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24131 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24132 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24133 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24134 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24135 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24136 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24137 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24138 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24139 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24140 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24141 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24142 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24143 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24144 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24145 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24146 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24147 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24148 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24149 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24150 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24151 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24152 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24153 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24154 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24155 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24156 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24157 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24158 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24159 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24160
24161 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24162
24163 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24164 (Use first letters of yesstr and nostr correctly instead of using
24165 full words).
24166
24167 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24168
24169 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24170 (Use first letters of yesstr and nostr correctly).
24171
24172 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24173
24174 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24175 also check for the first characters of yesstr and nostr.
24176 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24177 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24178
24179 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24180
24181 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24182 also check for Chinese characters.
24183
24184 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24185
24186 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24187 match also for the contents of yesstr and nostr. As the first letter
24188 of yesstr and nostr is equal, checking only for the first letter
24189 is not enough.
24190
24191 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24192
24193 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24194 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24195
24196 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24197
24198 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24199 of main contributor.
24200
24201 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24202
24203 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24204 instead of using English.
24205
24206 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24207
24208 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24209 by including the first letters of nostr and yesexpr in the regexp.
24210 Also make it more readable by using ASCII where possible.
24211
24212 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24213
24214 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24215 the first letter of nostr in the regexp. It agrees with CLDR now.
24216 Also make it more readable by using ASCII where possible.
24217
24218 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24219
24220 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24221 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24222 these strings contain a U+17D6 (which somewhat looks like a colon)
24223 instead of a real colon to separate the full words for “yes”
24224 and “no” from the single letter responses.
24225
24226 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24227
24228 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24229 it agree with CLDR (include the first letter of yesstr).
24230 Also make it more readable by using ASCII where possible.
24231
24232 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24233
24234 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24235 and improve yesexpr and noexpr. The yesstr and nostr apparently
24236 came from CLDR. And CLDR has a bug there: these strings contain
24237 a U+0903 (which looks like a colon) instead of a real colon
24238 to separate the full words for “yes” and “no” from the single
24239 letter responses.
24240
24241 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24242
24243 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24244 letters of the full yesstr and nostr in yesexpr and noexpr.
24245
24246 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24247
24248 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24249 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24250 * localedata/locales/an_ES: Make source more readable by using ASCII
24251 where possible.
24252
24253 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24254
24255 [BZ #20952]
24256 * localedata/locales/yuw_PG: New file.
24257 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24258 * locale/iso-639.def: Add Yau (Uruwa).
24259
24260 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24261
24262 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24263
24264 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24265
24266 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24267 (__libc_realloc): Likewise.
24268 (_mid_memalign): Likewise.
24269 (__libc_calloc): Likewise.
24270
24271 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24272
24273 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24274 by adding the generic +1 and -0 as in all other locales.
24275 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24276 day names and make it more readable by using ASCII where possible.
24277
24278 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24279
24280 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24281 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24282
24283 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24284
24285 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24286 WNOHANG in waitpid call.
24287
24288 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24289
24290 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24291 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24292
24293 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24294 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24295 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24296 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24297 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24298 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24299 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24300 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24301 variables.
24302
24303 2017-10-23 Michael Collison <michael.collison@arm.com>
24304
24305 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24306 with __builtin_sqrt.
24307 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24308 with __builtin_sqrtf.
24309 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24310 with __builtin_ceil.
24311 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24312 with __builtin_ceilf.
24313 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24314 with __builtin_floor.
24315 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24316 with __builtin_floorf.
24317 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24318 with __builtin_fma.
24319 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24320 with __builtin_fmaf.
24321 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24322 with __builtin_fmax.
24323 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24324 with __builtin_fmaxf.
24325 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24326 with __builtin_fmin.
24327 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24328 with __builtin_fminf.
24329 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24330 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24331 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24332 with builtin_rint and conversion to int.
24333 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24334 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24335 with builtin_llround.
24336 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24337 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24338 with builtin_rint and conversion to long int.
24339 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24340 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24341 with builtin_lround.
24342 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24343 with builtin_lroundf.
24344 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24345 statements with __builtin_nearbyint.
24346 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24347 statements with __builtin_nearbyintf.
24348 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24349 with __builtin_rint.
24350 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24351 with __builtin_rintf.
24352 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24353 with __builtin_round.
24354 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24355 with __builtin_roundf.
24356 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24357 with __builtin_trunc.
24358 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24359 with __builtin_truncf.
24360 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24361 and s_l[l]round[f].c too.
24362
24363 2017-10-23 Alan Modra <amodra@gmail.com>
24364
24365 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24366 Adjust stack after restoring regs. Add missing LR cfi_restore.
24367
24368 2017-10-23 Alan Modra <amodra@gmail.com>
24369
24370 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24371 Move LR save and frame setup/teardown and LR restore to
24372 immediately around memset call. Provide cfi.
24373
24374 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24375
24376 * sysdeps/i386/fpu/e_powf.S: Removed.
24377 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24378 * sysdeps/i386/fpu/w_powf.c: Likewise.
24379 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24380 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24381 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24382 Add e_powf-sse2.
24383 (CFLAGS-e_powf-sse2.c): New.
24384 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24385 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24386
24387 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24388
24389 * sysdeps/i386/fpu/e_log2f.S: Removed.
24390 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24391 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24392 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24393 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24394 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24395 Add e_log2f-sse2.
24396 (CFLAGS-e_log2f-sse2.c): New.
24397 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24398 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24399
24400 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24401
24402 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24403 Add e_powf-fma.
24404 (CFLAGS-e_powf-fma.c): New.
24405 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24406 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24407
24408 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24409
24410 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24411 Add e_log2f-fma.
24412 (CFLAGS-e_log2f-fma.c): New.
24413 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24414 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24415
24416 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24417
24418 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24419 Add e_logf-fma.
24420 (CFLAGS-e_logf-fma.c): New.
24421 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24422 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24423
24424 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24425
24426 * sysdeps/i386/fpu/e_logf.S: Removed.
24427 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24428 * sysdeps/i386/fpu/w_logf.c: Likewise.
24429 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24430 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24431 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24432 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24433 Add e_logf-sse2.
24434 (CFLAGS-e_logf-sse2.c): New.
24435 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24436 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24437
24438 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24439
24440 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24441 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24442 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24443 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24444 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24445 Add e_exp2f-sse2.
24446 (CFLAGS-e_exp2f-sse2.c): New.
24447 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24448 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24449
24450 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24451
24452 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24453 Add e_exp2f-fma.
24454 (CFLAGS-e_exp2f-fma.c): New.
24455 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24456 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24457
24458 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24459
24460 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24461 * sysdeps/i386/fpu/e_expf.S: Likewise.
24462 * sysdeps/i386/fpu/math_errf.c: Likewise.
24463 * sysdeps/i386/fpu/w_expf.c: Likewise.
24464 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24465 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24466 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24467 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24468 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24469 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24470 Remove e_expf-ia32.
24471 (CFLAGS-e_expf-sse2.c): New.
24472 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24473 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24474
24475 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24476
24477 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24478 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24479 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24480 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24481 e_expf.c.
24482 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24483 New.
24484 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24485 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24486 Renamed to ...
24487 (__redirect_expf): This.
24488 (SYMBOL_NAME): Changed to expf.
24489 (__ieee754_expf): Renamed to ...
24490 (__expf): This.
24491 (__GI___expf): This.
24492 (__ieee754_expf): Add strong_alias.
24493 (__expf_finite): Likewise.
24494 (__expf): New.
24495 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24496
24497 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24498
24499 [BZ #22332]
24500 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24501 unescaping.
24502
24503 2017-10-21 Florian Weimer <fweimer@redhat.com>
24504
24505 * posix/Makefile (tests): Add tst-glob-tilde.
24506 (tests-special): Add tst-glob-tilde-mem.out
24507 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24508 (tst-glob-tilde-mem.out): Add mtrace check.
24509 * posix/tst-glob-tilde.c: New file.
24510
24511 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24512
24513 * bits/floatn-common.h: New file.
24514 * math/Makefile (headers): Add bits/floatn-common.h.
24515 * bits/floatn.h: Include <bits/floatn-common.h>.
24516 * sysdeps/ia64/bits/floatn.h: Likewise.
24517 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24518 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24519 * sysdeps/powerpc/bits/floatn.h: Likewise.
24520 * sysdeps/x86/bits/floatn.h: Likewise.
24521
24522 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24523
24524 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24525 indicates whether compiler emits an warning for alias for
24526 functions with incompatible types.
24527
24528 [BZ #22273]
24529 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24530 the auxiliary process is terminated by a signal before calling _exit
24531 or execve.
24532
24533 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24534
24535 [BZ #21265]
24536 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24537 New.
24538 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24539 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24540 and bit_arch_XSAVEC_Usable if needed.
24541 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24542 and bit_arch_Use_dl_runtime_resolve_opt.
24543 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24544 Removed.
24545 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24546 (bit_arch_Prefer_No_AVX512): Updated.
24547 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24548 (bit_arch_XSAVEC_Usable): New.
24549 (STATE_SAVE_OFFSET): Likewise.
24550 (STATE_SAVE_MASK): Likewise.
24551 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24552 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24553 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24554 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24555 (index_arch_XSAVEC_Usable): New.
24556 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24557 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24558 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24559 is enabled.
24560 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24561 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24562 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24563 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24564 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24565 _dl_runtime_resolve_xsavec.
24566 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24567 Removed.
24568 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24569 instead of VEC_SIZE.
24570 (REGISTER_SAVE_BND0): Removed.
24571 (REGISTER_SAVE_BND1): Likewise.
24572 (REGISTER_SAVE_BND3): Likewise.
24573 (REGISTER_SAVE_RAX): Always defined to 0.
24574 (VMOV): Removed.
24575 (_dl_runtime_resolve_avx): Likewise.
24576 (_dl_runtime_resolve_avx_slow): Likewise.
24577 (_dl_runtime_resolve_avx_opt): Likewise.
24578 (_dl_runtime_resolve_avx512): Likewise.
24579 (_dl_runtime_resolve_avx512_opt): Likewise.
24580 (_dl_runtime_resolve_sse): Likewise.
24581 (_dl_runtime_resolve_sse_vex): Likewise.
24582 (USE_FXSAVE): New.
24583 (_dl_runtime_resolve_fxsave): Likewise.
24584 (USE_XSAVE): Likewise.
24585 (_dl_runtime_resolve_xsave): Likewise.
24586 (USE_XSAVEC): Likewise.
24587 (_dl_runtime_resolve_xsavec): Likewise.
24588 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24589 Removed.
24590 (_dl_runtime_resolve_avx512_opt): Likewise.
24591 (_dl_runtime_resolve_avx): Likewise.
24592 (_dl_runtime_resolve_avx_opt): Likewise.
24593 (_dl_runtime_resolve_sse): Likewise.
24594 (_dl_runtime_resolve_sse_vex): Likewise.
24595 (_dl_runtime_resolve_fxsave): New.
24596 (_dl_runtime_resolve_xsave): Likewise.
24597 (_dl_runtime_resolve_xsavec): Likewise.
24598
24599 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24600
24601 [BZ #22320]
24602 CVE-2017-15670
24603 * posix/glob.c (__glob): Fix one-byte overflow.
24604
24605 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24606
24607 * malloc/malloc.c (sysdep-cancel.h): Add include.
24608
24609 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24610
24611 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24612
24613 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24614
24615 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24616 (tests): Remove $(objpfx)ga_test depdendency.
24617 * resolv/ga_test.c: Remove file.
24618
24619 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24620
24621 [BZ #18812]
24622 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24623 * localedata/locales/kab_DZ: New file.
24624
24625 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24626
24627 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24628 _dl_relocate_static_pie instead of _dl_start to compute load
24629 address in static PIE.
24630
24631 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24632
24633 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24634
24635 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24636
24637 [BZ #13605]
24638 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24639 * localedata/locales/shn_MM: New file.
24640
24641 2017-10-20 Florian Weimer <fweimer@redhat.com>
24642
24643 [BZ #22321]
24644 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24645 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24646 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24647 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24648 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24649 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24650
24651 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24652
24653 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24654
24655 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24656
24657 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24658
24659 [BZ #22322]
24660 * sysdeps/mips/bits/long-double.h: Move to ....
24661 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24662
24663 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24664
24665 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24666
24667 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24668 H.J. Lu <hongjiu.lu@intel.com>
24669
24670 [BZ #22299]
24671 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24672 GLRO(dl_platform) to NULL.
24673 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24674 (modules-names): Add tst-platformmod-1 and
24675 x86_64/tst-platformmod-2.
24676 (CFLAGS-tst-platform-1.c): New.
24677 (CFLAGS-tst-platformmod-1.c): Likewise.
24678 (CFLAGS-tst-platformmod-2.c): Likewise.
24679 (LDFLAGS-tst-platformmod-2.so): Likewise.
24680 ($(objpfx)tst-platform-1): Likewise.
24681 ($(objpfx)tst-platform-1.out): Likewise.
24682 (tst-platform-1-ENV): Likewise.
24683 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24684 * sysdeps/x86_64/tst-platform-1.c: New file.
24685 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24686 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24687
24688 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24689
24690 [BZ #13994]
24691 * locale/iso-639.def: Add Karbi.
24692 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24693 * localedata/locales/mjw_IN: New file.
24694
24695 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24696
24697 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24698 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24699 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24700 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24701 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24702 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24703 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24704 <bits/floatn.h>.
24705 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24706 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24707 * manual/math.texi (Mathematics): Document additional architecture
24708 support for _Float128.
24709 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24710 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24711 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24712 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24713 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24714 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24715 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24716 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24717 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24718 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24719 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24720 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24721 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24722 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24723 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24724
24725 2017-10-18 Renlin Li <renlin.li@arm.com>
24726
24727 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24728 _DYNAMIC symbol to calculate load address.
24729
24730 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24731
24732 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24733 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24734 summary bits.
24735 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24736 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24737
24738 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24739
24740 [BZ #16777]
24741 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24742 and improve readability by using more ASCII.
24743 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24744 and improve readability by using more ASCII.
24745
24746 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24747
24748 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24749 not all targets support atomics on bool.
24750
24751 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24752
24753 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24754 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24755 __f128.
24756 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24757 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24758 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24759 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24760 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24761 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24762
24763 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24764
24765 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24766 defines.
24767
24768 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24769
24770 [BZ #22159]
24771 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24772 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24773 (do_check_remalloced_chunk): Fix build bug.
24774 (do_check_malloc_state): Add assert that checks arena->top.
24775 (malloc_consolidate): Remove initialization.
24776 (int_mallinfo): Remove call to malloc_consolidate.
24777 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24778
24779 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24780
24781 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24782 (have_fastchunks): Remove.
24783 (clear_fastchunks): Remove.
24784 (set_fastchunks): Remove.
24785 (malloc_state): Add have_fastchunks.
24786 (malloc_init_state): Use have_fastchunks.
24787 (do_check_malloc_state): Remove incorrect invariant checks.
24788 (_int_malloc): Use have_fastchunks.
24789 (_int_free): Likewise.
24790 (malloc_consolidate): Likewise.
24791
24792 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24793
24794 * malloc/malloc.c (tcache_put): Inline.
24795 (tcache_get): Inline.
24796
24797 2017-10-17 Jordi Mallach <jordi@gnu.org>
24798
24799 Aurelien Jarno <aurelien@aurel32.net>
24800 [BZ #2522]
24801 * localedata/locales/ca_ES@valencia: New file.
24802 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24803
24804 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24805
24806 [BZ #22296]
24807 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24808 < 6.x
24809
24810 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24811
24812 * scripts/build-many-glibcs.py (Context.add_all_configs):
24813 Add arm-linux-gnueabihf multiarch extra_glibcs.
24814
24815 * sysdeps/generic/ifunc-init.h: New file.
24816 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24817
24818 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24819
24820 [BZ #22019]
24821 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24822 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24823 * stdlib/tst-strfmon_l.c: adapt test case.
24824
24825 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24826
24827 * sysdeps/generic/float128-abi.h: New file.
24828 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24829 non-__prefixed symbols to ....
24830 * math/Versions: ... here. Include <float128-abi.h>.
24831 * stdlib/Versions ... and here. Include <float128-abi.h>
24832
24833 2017-10-16 Florian Weimer <fweimer@redhat.com>
24834
24835 * version.h (VERSION): Switch to ".9000" as the development
24836 version suffix.
24837
24838 2017-10-16 Florian Weimer <fweimer@redhat.com>
24839
24840 [BZ #22050]
24841 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24842 compat_symbol_reference to access non-default version.
24843
24844 2017-10-16 Florian Weimer <fweimer@redhat.com>
24845
24846 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24847
24848 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24849
24850 * include/shlib-compat.h (compat_symbol_reference): Update
24851 comment.
24852
24853 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24854
24855 * math/Makefile (test-types): Add
24856 $(type-float128-$(float128-alias-fcts)).
24857 * math/test-float128.h (TYPE_STR): Define conditional on
24858 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24859 (ULP_IDX): Likewise.
24860 (ULP_I_IDX): Likewise.
24861
24862 * stdlib/strtold.c: Include <bits/floatn.h>
24863 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24864 and later undefine as macro. Define as weak alias if
24865 [!USE_WIDE_CHAR].
24866 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24867 and later undefine as macro. Define as weak alias if
24868 [USE_WIDE_CHAR].
24869 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24870 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24871 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24872 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24873 Define and later undefine as macro. Define as weak alias if
24874 [USE_WIDE_CHAR].
24875 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24876 <bits/floatn.h>.
24877 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24878 Define and later undefine as macro. Define as weak alias if
24879 [!USE_WIDE_CHAR].
24880 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24881 Define and later undefine as macro. Define as weak alias if
24882 [USE_WIDE_CHAR].
24883
24884 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24885
24886 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24887 record_verbose messages.
24888
24889 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24890
24891 [BZ #22052]
24892 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24893 to silence -O3 -Wall warning with GCC 7.
24894
24895 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24896
24897 * Makeconfig (+link-static-before-libc): Use the first of
24898 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24899 * gmon/Makefile (tests): Add tst-gmon-static.
24900 (tests-static): Likewise.
24901 (CFLAGS-tst-gmon-static.c): New.
24902 (CRT-tst-gmon-static): Likewise.
24903 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24904 (tst-gmon-static-ENV): Likewise.
24905 (tests-special): Likewise.
24906 ($(objpfx)tst-gmon-static.out): Likewise.
24907 (clean-tst-gmon-static-data): Likewise.
24908 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24909 * gmon/tst-gmon-static-gprof.sh: New file.
24910 * gmon/tst-gmon-static.c: Likewise.
24911
24912 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24913
24914 [BZ #22295]
24915 * locale/programs/linereader.c (get_string): Don't warn on
24916 non-symbolic character.
24917
24918 [BZ #22294]
24919 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24920 int_curr_symbol.
24921
24922 [BZ #22292]
24923 * locale/programs/record-status.h: New file
24924 * locale/programs/locale.c: Add comment.
24925 * locale/programs/charmap-dir.c: Don't include error.h.
24926 (charmap_opendir): Use record_error.
24927 * locale/programs/charmap.c: Don't include error.h.
24928 (charmap_read): Use record_error, and record_warning.
24929 (parse_charmap): Likewise.
24930 * locale/programs/ld-address.c: Don't include error.h.
24931 (address_finish): Use record_error, and record_warning.
24932 * locale/programs/ld-collate.c: Don't include error.h.
24933 (collate_finish): Use record_error, and record_error_at_line.
24934 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24935 (ctype_class_new): Likewise.
24936 (ctype_map_new): Likewise.
24937 (set_one_default): Likewise.
24938 (set_class_defaults): Likewise.
24939 (translit_flatten): Likewise.
24940 (allocate_arrays): Use record_error, and record_verbose.
24941 * locale/programs/ld-identification.c: Don't include error.h.
24942 (indentation_finish): Use record_error and record_warning.
24943 * locale/programs/ld-measurement.c: Don't include error.h.
24944 (measurement_finish): Use record_error.
24945 * locale/programs/ld-messages.c
24946 (message_finish): Likewise.
24947 * locale/programs/ld-monetary.c
24948 (monetary_finish): Likewise.
24949 * locale/programs/ld-name.c (name_finish): Use record_error
24950 and record_warning.
24951 * locale/programs/ld-numeric.c
24952 (numeric_finish): Use record_error.
24953 * locale/programs/ld-paper.c: Don't include error.h.
24954 (paper_finish): Use record_error.
24955 * locale/programs/ld-telephone.c: Don't include error.h.
24956 (telephone_finish): Use record_error.
24957 * locale/programs/ld-time.c (time_finish): Likewise.
24958 * locale/programs/linereader.h (lr_error): Make inline func.
24959 * locale/programs/localedef.c: Define recorded_warning_count,
24960 and recorded_error_count.
24961 (main): Use record_error. Use recorded_error_count and
24962 recorded_warning_count to issue correct error returns.
24963 (add_to_readlist): Use record_error.
24964 (find_locale): Likewise.
24965 (load_locale): Likewise.
24966 * locale/programs/localedef.h: Remove be_quiet
24967 and WITH_CUR_LOCALE.
24968 * locale/programs/locarchive.c (compare_from_file): Use
24969 record_error.
24970 * locale/programs/locfile.c (write_locale_data): Use
24971 record_error.
24972 * locale/programs/repertoire.c: Dont include error.h.
24973 (repertoire_complain): Use record_error.
24974 * localedata/tst-fmon.sh: Expect failures from localedef.
24975 * localedata/tst-locale.sh: Likewise.
24976 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24977
24978 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24979 (REPORTS): Likewise.
24980 (check): Likewise.
24981 (i18n): Rename to...
24982 (i18n_ctype): ...this.
24983 (i18n-report): Rename to...
24984 (i18n_ctype-report): ...this.
24985 * localedata/locales/i18n_ctype: Regenerate.
24986 * localedata/locales/i18n: copy i18n_ctype.
24987
24988 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24989
24990 * stdlib/strfroml.c: Include <bits/floatn.h>.
24991 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24992 Define before include of <stdlib.h> and undefine afterwards, then
24993 define as weak alias.
24994
24995 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24996 Undefine and restore default definition. Use
24997 libm_alias_ldouble_other.
24998
24999 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25000
25001 [BZ #22153]
25002 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25003 in coredumps.
25004
25005 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25006
25007 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25008 Assign sym_map to be map for local symbols, as TLS relocations
25009 use sym_map to determine whether the symbol is defined and to
25010 extract the TLS information.
25011 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25012 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25013
25014 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25015
25016 [BZ #22189]
25017 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25018 (math_force_eval): Add powerpc version.
25019
25020 [BZ #22142]
25021 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25022 -DBL_MAX.
25023 (do_test): Likewise.
25024 * stdio-common/tst-printf.sh: Likewise.
25025 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25026 ifdef clause in order to set the carry bit right. Replace r0 by
25027 0 without changing the behavior.
25028
25029 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25030
25031 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25032 <libm-alias-ldouble.h>.
25033 (fabsl): Define using libm_alias_ldouble.
25034 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25035 <libm-alias-ldouble.h>.
25036 (fabsl): Define using libm_alias_ldouble.
25037
25038 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25039 Remove conditional code.
25040
25041 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25042 Rename to __clog10_internal_l.
25043 (__clog10_internal_l): Define aliases using
25044 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25045 with __clog10.
25046
25047 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25048
25049 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25050 * benchtests/sincosf-inputs: New file.
25051 * benchtests/cosf-inputs: New file.
25052 * benchtests/sinf-inputs: New file.
25053
25054 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25055
25056 * posix/tst-spawn.c (do_test): Wait for both children.
25057
25058 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25059
25060 [BZ #22284]
25061 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25062 tests-pie): Add tst-gmon-pie.
25063 (CFLAGS-tst-gmon-pie.c): New.
25064 (CRT-tst-gmon-pie): Likewise.
25065 (tst-gmon-pie-ENV): Likewise.
25066 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25067 ($(objpfx)tst-gmon-pie.out): Likewise.
25068 (clean-tst-gmon-pie-data): Likewise.
25069 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25070 * gmon/gmon.c [PIC]: Include <link.h>.
25071 [PIC] (callback): New function.
25072 (write_hist): Add an argument for load address. Subtract load
25073 address from PCs.
25074 (write_call_graph): Likewise.
25075 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25076 it to write_hist and write_call_graph.
25077 * gmon/tst-gmon-pie.c: New file.
25078
25079 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25080
25081 * math/Makefile (test-types-basic): New variable.
25082 (test-types): Likewise.
25083 (libm-test-support): Use $(test-types) instead of $(types).
25084 (libm-tests-base-normal): Likewise.
25085 (libm-tests-base-finite): Likewise.
25086 (libm-tests-base-inline): Likewise.
25087 (generated): Likewise.
25088 ($(objpfx)libm-test-support-$(t).c): Likewise.
25089 (libm-tests-for-type iterator): Likewise.
25090 (libm-test-support iterator): Likewise.
25091 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25092 (ulp_idx): Use ULP_IDX.
25093 * math/test-ldouble.h: Include <float.h>.
25094 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25095 (ULP_IDX): New macro.
25096 (ULP_I_IDX): Likewise.
25097 * math/test-double.h (ULP_IDX): Likewise.
25098 (ULP_I_IDX): Likewise.
25099 * math/test-float.h (ULP_IDX): Likewise.
25100 (ULP_I_IDX): Likewise.
25101 * math/test-float128.h (ULP_IDX): Likewise.
25102 (ULP_I_IDX): Likewise.
25103
25104 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25105
25106 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25107 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25108 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25109 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25110 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25111 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25112 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25113 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25114 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25115 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25116 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25117 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25118 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25119 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25120 (SINGLE_THREAD_BY_GLOBAL): Define.
25121 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25122 Likewise.
25123 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25124 Likewise.
25125 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25126 Likewise.
25127 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25128 Likewise.
25129 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25130 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25131 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25132 Likewise.
25133
25134 2017-10-11 Andreas Schwab <schwab@suse.de>
25135
25136 * nis/Makefile (aux): Remove.
25137 * nscd/Makefile (aux): Add nscd_hash.
25138 (nscd-modules): Likewise.
25139 ($(objpfx)nscd): Don't depend on libnsl.
25140 * nscd/nscd_hash.c: New file.
25141 * nscd/nscd_hash.h: Likewise.
25142 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25143 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25144 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25145 instead of <nis/rpcsvc/nis.h>.
25146 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25147
25148 2017-10-11 Florian Weimer <fweimer@redhat.com>
25149
25150 [BZ #22078]
25151 Avoid large NSS buffers with many addresses, aliases.
25152 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25153 using dynarrays and struct alloc_buffer.
25154 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25155 (tst-nss-files-hosts-multi): Link with -ldl.
25156 * nss/tst-nss-files-hosts-multi.c: New file.
25157
25158 2017-10-11 Florian Weimer <fweimer@redhat.com>
25159
25160 [BZ #18023]
25161 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25162 scratch_buffer. Eliminate gotos.
25163
25164 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25165
25166 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25167 libm_alias_ldouble_other.
25168 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25169 undefine and redefine.
25170 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25171 (exp10l): Do not define here.
25172 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25173 (weak_alias): Undefine and redefine.
25174 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25175 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25176 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25177 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25178
25179 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25180 [!__fma] (fma): Define using libm_alias_double.
25181 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25182 [!__fmaf] (fmaf): Define using libm_alias_float.
25183 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25184 (fmal): Define using libm_alias_ldouble.
25185
25186 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25187
25188 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25189 New macro.
25190 (libm_alias_double_other): Likewise.
25191 (libm_alias_double_r): Use libm_alias_double_other_r.
25192 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25193 New macro.
25194 (libm_alias_float_other): Likewise.
25195 (libm_alias_float_r): Use libm_alias_float_other_r.
25196 * sysdeps/generic/libm-alias-float128.h
25197 (libm_alias_float128_other_r): New macro.
25198 (libm_alias_float128_other): Likewise.
25199 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25200 * sysdeps/generic/libm-alias-ldouble.h
25201 (libm_alias_ldouble_other_r): New macro.
25202 (libm_alias_ldouble_other): Likewise.
25203 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25204 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25205 (libm_alias_double_other_r): New macro.
25206 (libm_alias_double_other): Likewise.
25207 (libm_alias_double_r): Use libm_alias_double_other_r.
25208 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25209 (libm_alias_ldouble_other_r): New macro.
25210 (libm_alias_ldouble_other): Likewise.
25211 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25212 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25213 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25214 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25215 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25216 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25217 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25218 * math/w_exp2f.c: Use libm_alias_float_other.
25219 * math/w_expf.c: Likewise.
25220 * math/w_log2f.c: Likewise.
25221 * math/w_logf.c: Likewise.
25222 * math/w_powf.c: Likewise.
25223 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25224 [!__exp2f]: Use libm_alias_float_other.
25225 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25226 [!__expf]: Use libm_alias_float_other.
25227 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25228 [!__log2f]: Use libm_alias_float_other.
25229 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25230 [!__logf]: Use libm_alias_float_other.
25231 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25232 [!__powf]: Use libm_alias_float_other.
25233
25234 2017-10-10 Florian Weimer <fweimer@redhat.com>
25235
25236 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25237 function.
25238 (_nss_files_gethostbyname3_r): Call it.
25239
25240 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25241
25242 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25243 error. Remove default definition of declare_mgen_alias.
25244 [!declare_mgen_alias_r]: Likewise.
25245 * sysdeps/generic/math-type-macros-double.h
25246 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25247 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25248 (declare_mgen_alias_r): Likewise.
25249 * sysdeps/generic/math-type-macros-float128.h
25250 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25251 * sysdeps/generic/math-type-macros-ldouble.h
25252 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25253 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25254 macro.
25255 (declare_mgen_alias_r_s): Likewise.
25256 (declare_mgen_alias_r): Likewise.
25257 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25258 (lgamma_r): Define using libm_alias_double_r.
25259 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25260 (lgammaf_r): Define using libm_alias_float_r.
25261 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25262 (lgammal_r): Define using libm_alias_ldouble_r.
25263 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25264 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25265
25266 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25267
25268 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25269 extern declaration.
25270
25271 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25272
25273 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25274
25275 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25276
25277 [BZ #21326]
25278 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25279 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25280 * math/Makefile (test-math-cxx11): New test.
25281 * math/test-math-cxx11.cc: New file.
25282
25283 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25284
25285 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25286
25287 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25288 call to allocate the slave pty file descriptor.
25289
25290 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25291
25292 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25293 [!__fma] (fma): Define using libm_alias_double.
25294 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25295 [!__fma] (fma): Define using libm_alias_double.
25296
25297 * sysdeps/ieee754/float128/float128_private.h: Include
25298 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25299 (libm_alias_ldouble_r): Undefine and redefine.
25300 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25301 <libm-alias-ldouble.h>.
25302 (asinhl): Define using libm_alias_ldouble.
25303 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25304 <libm-alias-ldouble.h>.
25305 (atanl): Define using libm_alias_ldouble.
25306 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25307 <libm-alias-ldouble.h>.
25308 (cbrtl): Define using libm_alias_ldouble.
25309 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25310 <libm-alias-ldouble.h>.
25311 (ceill): Define using libm_alias_ldouble.
25312 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25313 <libm-alias-ldouble.h>.
25314 (copysignl): Define using libm_alias_ldouble.
25315 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25316 <libm-alias-ldouble.h>.
25317 (cosl): Define using libm_alias_ldouble.
25318 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25319 <libm-alias-ldouble.h>.
25320 (erfl): Define using libm_alias_ldouble.
25321 (erfcl): Likewise.
25322 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25323 <libm-alias-ldouble.h>.
25324 (expm1l): Define using libm_alias_ldouble.
25325 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25326 <libm-alias-ldouble.h>.
25327 (fabsl): Define using libm_alias_ldouble.
25328 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25329 <libm-alias-ldouble.h>.
25330 (floorl): Define using libm_alias_ldouble.
25331 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25332 <libm-alias-ldouble.h>.
25333 (fmal): Define using libm_alias_ldouble.
25334 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25335 <libm-alias-ldouble.h>.
25336 (frexpl): Define using libm_alias_ldouble.
25337 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25338 libm_alias_ldouble.
25339 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25340 <libm-alias-ldouble.h>.
25341 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25342 libm_alias_ldouble.
25343 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25344 <libm-alias-ldouble.h>.
25345 (getpayloadl): Define using libm_alias_ldouble.
25346 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25347 <libm-alias-ldouble.h>.
25348 (llrintl): Define using libm_alias_ldouble.
25349 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25350 <libm-alias-ldouble.h>.
25351 (llroundl): Define using libm_alias_ldouble.
25352 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25353 <libm-alias-ldouble.h>.
25354 (logbl): Define using libm_alias_ldouble.
25355 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25356 <libm-alias-ldouble.h>.
25357 (lrintl): Define using libm_alias_ldouble.
25358 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25359 <libm-alias-ldouble.h>.
25360 (lroundl): Define using libm_alias_ldouble.
25361 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25362 <libm-alias-ldouble.h>.
25363 (modfl): Define using libm_alias_ldouble.
25364 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25365 <libm-alias-ldouble.h>.
25366 (nearbyintl): Define using libm_alias_ldouble.
25367 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25368 <libm-alias-ldouble.h>.
25369 (nextafterl): Define using libm_alias_ldouble.
25370 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25371 <libm-alias-ldouble.h>.
25372 (nextupl): Define using libm_alias_ldouble.
25373 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25374 <libm-alias-ldouble.h>.
25375 (remquol): Define using libm_alias_ldouble.
25376 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25377 <libm-alias-ldouble.h>.
25378 (rintl): Define using libm_alias_ldouble.
25379 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25380 <libm-alias-ldouble.h>.
25381 (roundevenl): Define using libm_alias_ldouble.
25382 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25383 <libm-alias-ldouble.h>.
25384 (roundl): Define using libm_alias_ldouble.
25385 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25386 using libm_alias_ldouble.
25387 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25388 <libm-alias-ldouble.h>.
25389 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25390 Define using libm_alias_ldouble.
25391 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25392 <libm-alias-ldouble.h>.
25393 (sincosl): Define using libm_alias_ldouble.
25394 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25395 <libm-alias-ldouble.h>.
25396 (sinl): Define using libm_alias_ldouble.
25397 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25398 <libm-alias-ldouble.h>.
25399 (tanhl): Define using libm_alias_ldouble.
25400 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25401 <libm-alias-ldouble.h>.
25402 (tanl): Define using libm_alias_ldouble.
25403 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25404 <libm-alias-ldouble.h>.
25405 (totalorderl): Define using libm_alias_ldouble.
25406 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25407 <libm-alias-ldouble.h>.
25408 (totalordermagl): Define using libm_alias_ldouble.
25409 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25410 <libm-alias-ldouble.h>.
25411 (truncl): Define using libm_alias_ldouble.
25412 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25413 libm_alias_ldouble.
25414 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25415 libm_alias_ldouble.
25416 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25417 <libm-alias-ldouble.h>.
25418 (weak_alias): Do not undefine and redefine.
25419 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25420 (copysignl): Define with long_double_symbol only if [IS_IN
25421 (libc)].
25422 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25423 <libm-alias-ldouble.h>.
25424 (weak_alias): Do not undefine and redefine.
25425 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25426 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25427 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25428 <libm-alias-ldouble.h>.
25429 (weak_alias): Do not undefine and redefine.
25430 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25431 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25432 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25433 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25434 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25435 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25436 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25437 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25438 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25439 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25440 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25441 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25442 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25443 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25444 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25445 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25446 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25447 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25448 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25449 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25450 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25451 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25452 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25453 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25454 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25455 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25456
25457 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25458
25459 [BZ #22111]
25460 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25461 (tcache_thread_freeres): Set tcache_shutting_down before
25462 freeing the tcache.
25463 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25464 * malloc/tst-malloc-tcache-leak.c: New file.
25465
25466 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25467
25468 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25469 back to powerpc32 file.
25470 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25471 (memrchr): Add __memrchr_power8 to ifunc list.
25472 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25473 extra bytes for unaligned inputs.
25474
25475 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25476
25477 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25478 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25479 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25480 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25481 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25482
25483 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25484
25485 * sysdeps/arm/libm-test-ulps: Update.
25486
25487 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25488 <libm-alias-ldouble.h>.
25489 (asinhl): Define using libm_alias_ldouble.
25490 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25491 <libm-alias-ldouble.h>.
25492 (cbrtl): Define using libm_alias_ldouble.
25493 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25494 <libm-alias-ldouble.h>.
25495 (copysignl): Define using libm_alias_ldouble.
25496 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25497 <libm-alias-ldouble.h>.
25498 (cosl): Define using libm_alias_ldouble.
25499 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25500 <libm-alias-ldouble.h>.
25501 (erfl): Define using libm_alias_ldouble.
25502 (erfcl): Likewise.
25503 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25504 <libm-alias-ldouble.h>.
25505 (fmal): Define using libm_alias_ldouble.
25506 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25507 <libm-alias-ldouble.h>.
25508 (frexpl): Define using libm_alias_ldouble.
25509 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25510 libm_alias_ldouble.
25511 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25512 <libm-alias-ldouble.h>.
25513 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25514 libm_alias_ldouble.
25515 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25516 <libm-alias-ldouble.h>.
25517 (getpayloadl): Define using libm_alias_ldouble.
25518 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25519 <libm-alias-ldouble.h>.
25520 (llrintl): Define using libm_alias_ldouble.
25521 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25522 <libm-alias-ldouble.h>.
25523 (llroundl): Define using libm_alias_ldouble.
25524 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25525 <libm-alias-ldouble.h>.
25526 (lrintl): Define using libm_alias_ldouble.
25527 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25528 <libm-alias-ldouble.h>.
25529 (lroundl): Define using libm_alias_ldouble.
25530 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25531 <libm-alias-ldouble.h>.
25532 (modfl): Define using libm_alias_ldouble.
25533 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25534 <libm-alias-ldouble.h>.
25535 (nextupl): Define using libm_alias_ldouble.
25536 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25537 <libm-alias-ldouble.h>.
25538 (remquol): Define using libm_alias_ldouble.
25539 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25540 <libm-alias-ldouble.h>.
25541 (roundevenl): Define using libm_alias_ldouble.
25542 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25543 <libm-alias-ldouble.h>.
25544 (roundl): Define using libm_alias_ldouble.
25545 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25546 using libm_alias_ldouble.
25547 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25548 <libm-alias-ldouble.h>.
25549 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25550 <libm-alias-ldouble.h>.
25551 (setpayloadsigl): Define using libm_alias_ldouble.
25552 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25553 <libm-alias-ldouble.h>.
25554 (sincosl): Define using libm_alias_ldouble.
25555 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25556 <libm-alias-ldouble.h>.
25557 (sinl): Define using libm_alias_ldouble.
25558 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25559 <libm-alias-ldouble.h>.
25560 (tanhl): Define using libm_alias_ldouble.
25561 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25562 <libm-alias-ldouble.h>.
25563 (tanl): Define using libm_alias_ldouble.
25564 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25565 <libm-alias-ldouble.h>.
25566 (totalorderl): Define using libm_alias_ldouble.
25567 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25568 <libm-alias-ldouble.h>.
25569 (totalordermagl): Define using libm_alias_ldouble.
25570 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25571 libm_alias_ldouble.
25572 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25573 libm_alias_ldouble.
25574
25575 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25576
25577 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25578 memmove_falkor.
25579 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25580 (__libc_ifunc_impl_list): Likewise.
25581 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25582 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25583
25584 * benchtests/bench-memmove-walk.c: New file.
25585 * benchtests/Makefile (string-benchset): Add it.
25586
25587 * benchtests/bench-memset-walk.c: New file.
25588 * benchtests/Makefile (string-benchset): Add it.
25589
25590 * benchtests/bench-memcpy-walk.c: New file.
25591 * benchtests/Makefile (string-benchset): Add it.
25592
25593 2017-10-05 Florian Weimer <fweimer@redhat.com>
25594
25595 nscd: Eliminate compilation time dependency in the build output.
25596 * nscd/nscd_stat.c (STATDATA_VERSION)
25597 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25598 (STATDATA_VERSION_FULL): New macro definitions.
25599 (compilation): Remove.
25600 (struct statdata): Adjust version member.
25601 (send_stats): Set version from STATDATA_VERSION_FULL.
25602 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25603
25604 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25605
25606 * configure.ac (--enable-add-ons): Remove option.
25607 (machine): Do not mention add-ons in comment.
25608 (LIBC_PRECONFIGURE): Likewise.
25609 (add_ons): Remove variable and sanity checks and logic to locate
25610 add-ons.
25611 (add_ons_automatic): Remove variable.
25612 (configured_add_ons): Likewise.
25613 (add_ons_sfx): Likewise.
25614 (add_ons_pfx): Likewise.
25615 (add_on_subdirs): Likewise.
25616 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25617 consideration of add-ons in Implies handling.
25618 (sysdeps_add_ons): Likewise.
25619 * configure: Regenerated.
25620 * libidn/configure.ac: Remove.
25621 * libidn/configure: Likewise.
25622 * sysdeps/unix/inet/configure.ac: New file.
25623 * sysdeps/unix/inet/configure: New generated file.
25624 * sysdeps/unix/inet/Subdirs: Add libidn.
25625 * Makeconfig (sysdeps-srcdirs): Remove variable.
25626 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25627 ($(common-objpfx)config.status): Do not depend on add-on files.
25628 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25629 comment.
25630 (all-subdirs): Do not include $(add-on-subdirs).
25631 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25632 * config.make.in (add-ons): Remove variable.
25633 (add-on-subdirs): Likewise.
25634 (sysdeps-add-ons): Likewise.
25635 * manual/Makefile (add-chapters): Remove.
25636 ($(objpfx)texis): Do not depend on $(add-chapters).
25637 (nonexamples): Do not handle $(add-chapters).
25638 (examples): Do not handle $(add-ons).
25639 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25640 libc-texinfo.sh.
25641 * manual/install.texi (Installation): Do not mention add-ons.
25642 (--enable-add-ons): Do not document configure option.
25643 * INSTALL: Regenerated.
25644 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25645 * manual/maint.texi (Hierarchy Conventions): Do not mention
25646 add-ons.
25647 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25648 --enable-add-ons.
25649 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25650 add-ons.
25651 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25652 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25653
25654 2017-10-05 Andreas Schwab <schwab@suse.de>
25655
25656 [BZ #15142]
25657 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25658 (_IO_flush_all_lockp): Always lock list_all_lock.
25659 (_IO_flush_all_linebuffered): Likewise.
25660 (_IO_unbuffer_all): Likewise.
25661
25662 2017-10-05 Florian Weimer <fweimer@redhat.com>
25663
25664 [BZ #15436]
25665 Do not flush stdio streams on abort.
25666 * stdlib/abort.c (fflush): Remove macro definition.
25667 (abort): Remove stages related to stdio flushing.
25668
25669 2017-10-05 Florian Weimer <fweimer@redhat.com>
25670
25671 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25672
25673 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25674
25675 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25676
25677 2017-10-05 Florian Weimer <fweimer@redhat.com>
25678
25679 * support/support_format_hostent.c (support_format_hostent): Add
25680 more error information for NETDB_INTERNAL.
25681
25682 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25683
25684 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25685 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25686 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25687 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25688 AC_DEFINE if multi-arch is enabled.
25689 * sysdeps/i386/configure: Regenerated.
25690
25691 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25692
25693 * Makeconfig (+link-static-before-libc): Use
25694 $(DEFAULT-LDFLAGS-$(@F)).
25695 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25696 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25697 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25698
25699 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25700
25701 * elf/Makefile (tests): Add tst-main1.
25702 (modules-names): Add tst-main1mod.
25703 ($(objpfx)tst-main1): New.
25704 (CRT-tst-main1): Likewise.
25705 (LDFLAGS-tst-main1): Likewise.
25706 (LDLIBS-tst-main1): Likewise.
25707 (tst-main1mod.so-no-z-defs): Likewise.
25708 * elf/tst-main1.c: New file.
25709 * elf/tst-main1mod.c: Likewise.
25710
25711 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25712
25713 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25714
25715 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25716
25717 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25718 (fma): Define using libm_alias_double.
25719 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25720 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25721 <math_ldbl_opt.h>.
25722 (fmal): Do not define as compat symbol here.
25723 * sysdeps/alpha/fpu/s_fma.c: New file.
25724
25725 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25726
25727 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25728
25729 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25730
25731 [BZ #22229]
25732 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25733 <math_ldbl_opt.h>
25734 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25735 and libc.
25736 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25737 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25738 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25739 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25740 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25741 Include <math_ldbl_opt.h>
25742 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25743 and libc.
25744 (compat_symbol): Undefine and redefine.
25745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25746 <math_ldbl_opt.h>
25747 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25748 (compat_symbol): Undefine and redefine.
25749 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25750 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25751 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25752 GLIBC_2_1 for libm.
25753 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25754 GLIBC_2.0 copysignl symbol.
25755 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25756 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25757
25758 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25759
25760 2017-10-04 Florian Weimer <fweimer@redhat.com>
25761
25762 * scripts/check-local-headers.sh: Ignore nspr4 header file
25763 directory in addition to nspr.
25764
25765 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25766
25767 [BZ #17956]
25768 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25769 * configure: Regenerate.
25770 * crypt/Makefile (nss-cpp-flags): New variable.
25771 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25772 (CPPFLAGS-md5-crypt.c): Use it.
25773 * scripts/check-local-headers.sh: Ignore nspr header file
25774 directory.
25775
25776 2017-10-04 Andreas Schwab <schwab@suse.de>
25777
25778 * nis/Makefile (services): Remove compat.
25779 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25780 ($(objpfx)libnss_compat.so): Remove rule.
25781 * nis/Versions (libnss_compat): Remove.
25782 * nss/Makefile (services): Add compat.
25783 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25784 * nss/Versions (libnss_compat): Define.
25785 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25786 Don't include <rpc/types.h>. Replace bool_t by bool.
25787 * nss/nss_compat/compat-initgroups.c: Likewise.
25788 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25789 instead of <rpcsrv/ypclnt.h>.
25790 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25791 yp_get_default_domain.
25792 * nss/nss_compat/compat-pwd.c: Likewise.
25793 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25794 yp_get_default_domain.
25795 * nss/nss_compat/nisdomain.c: New file.
25796 * nss/nss_compat/nisdomain.h: Likewise.
25797
25798 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25799
25800 [BZ #22244]
25801 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25802 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25803
25804 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25805
25806 [BZ #22243]
25807 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25808 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25809
25810 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25811
25812 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25813 "movl main@GOTOFF(%ebx), %eax".
25814
25815 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25816
25817 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25818 allow undefined _DYNAMIC in PIE libc.a.
25819 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25820 Likewse.
25821
25822 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25823
25824 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25825 check _DYNAMIC.
25826
25827 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25828
25829 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25830 check _DYNAMIC.
25831
25832 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25833
25834 * math/test-math-iscanonical.cc (error): Replace bool with int.
25835
25836 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25837
25838 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25839 (modf): Define using libm_alias_double, only if [!__modf].
25840 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25841 <libm-alias-double.h>.
25842 (modf): Define using libm_alias_double, only if [!__modf].
25843 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25844 compat symbol here.
25845 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25846 (weak_alias): Do not undefine and redefine.
25847 (strong_alias): Likewise.
25848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25849 (weak_alias): Likewise.
25850 (strong_alias): Likewise.
25851
25852 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25853 (logb): Define using libm_alias_double, only if [!__logb].
25854 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25855 <libm-alias-double.h>.
25856 (logb): Define using libm_alias_double, only if [!__logb].
25857 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25858 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25859 (weak_alias): Do not undefine and redefine.
25860 (strong_alias): Likewise.
25861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25862 (weak_alias): Likewise.
25863 (strong_alias): Likewise.
25864
25865 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25866
25867 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25868 Check SHARED instead PIC.
25869
25870 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25871
25872 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25873 [!__fmaf] (fmaf): Define using libm_alias_float.
25874
25875 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25876 (frexp): Define using libm_alias_double.
25877 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25878 <libm-alias-double.h>.
25879 (frexp): Define using libm_alias_double.
25880 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25881 compat symbol here.
25882
25883 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25884
25885 [BZ #22235]
25886 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25887 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25888 (CFLAGS-test-math-iscanonical.cc): New variable.
25889 * math/test-math-iscanonical.cc: New file.
25890 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25891 Provide a C++ implementation based on function overloading,
25892 rather than using __MATH_TG, which uses C-only builtins.
25893 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25894 Likewise.
25895 * sysdeps/powerpc/powerpc64le/Makefile
25896 (CFLAGS-test-math-iscanonical.cc): New variable.
25897
25898 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25899
25900 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25901 (ceil): Define using libm_alias_double.
25902 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25903 (floor): Define using libm_alias_double.
25904 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25905 <libm-alias-double.h>.
25906 (llround): Define using libm_alias_double.
25907 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25908 <libm-alias-double.h>.
25909 (lround): Define using libm_alias_double.
25910 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25911 <libm-alias-double.h>.
25912 (nearbyint): Define using libm_alias_double.
25913 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25914 <libm-alias-double.h>.
25915 (remquo): Define using libm_alias_double.
25916 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25917 (rint): Define using libm_alias_double.
25918 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25919 (round): Define using libm_alias_double.
25920 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25921 (trunc): Define using libm_alias_double.
25922 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25923 <libm-alias-double.h>.
25924 (ceil): Define using libm_alias_double.
25925 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25926 <libm-alias-double.h>.
25927 (floor): Define using libm_alias_double.
25928 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25929 <libm-alias-double.h>.
25930 (llround): Define using libm_alias_double.
25931 [_LP64] (lround): Likewise.
25932 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25933 <libm-alias-double.h>.
25934 [!_LP64] (lround): Define using libm_alias_double.
25935 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25936 <libm-alias-double.h>.
25937 (nearbyint): Define using libm_alias_double.
25938 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25939 <libm-alias-double.h>.
25940 (remquo): Define using libm_alias_double.
25941 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25942 <libm-alias-double.h>.
25943 (rint): Define using libm_alias_double.
25944 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25945 <libm-alias-double.h>.
25946 (round): Define using libm_alias_double.
25947 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25948 <libm-alias-double.h>.
25949 (trunc): Define using libm_alias_double.
25950 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25951 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25952 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25953 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25954 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25955 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25956 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25957 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25958 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25959
25960 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25961
25962 * math/w_remainder.c: New file.
25963 * math/w_remainderf.c: New file.
25964 * math/w_remainderl.c: New file.
25965
25966 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25967
25968 * elf/rtld.c (BOOTSTRAP_MAP): New.
25969 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25970 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25971 Likewise.
25972 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25973 Likewise.
25974 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25975 Likewise.
25976
25977 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25978
25979 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25980 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25981 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25982 rtld_hidden_data_ver): Define to empty.
25983 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25984 __assert_perror_fail): Likewise.
25985 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25986 (__rewinddir): Likewise.
25987 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25988 (__profile_frequency): Likewise.
25989 * include/setjmp.h (__sigsetjmp): Likewise.
25990 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25991 __libc_sigaction): Likewise.
25992 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25993 not set hidden attribute.
25994 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25995 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25996 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25997 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25998 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25999 __fxstatat64): Likewise.
26000 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26001 (__uname): Likewise.
26002 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26003 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26004 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26005 (NO_RTLD_HIDDEN): Set.
26006 * sysdeps/mach/hurd/configure: Refresh.
26007 * config.h.in: Refresh.
26008
26009 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26010
26011 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26012 (atan): Define using libm_alias_double.
26013 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26014 (tan): Define using libm_alias_double.
26015 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26016 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26017
26018 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26019 define as weak alias of __atan. Do not define any aliases if
26020 [__atan].
26021 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26022 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26023 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26024 as weak alias of __tan. Do not define any aliases if [__tan].
26025 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26026 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26027 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26028 __atan.
26029 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26030 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26031 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26032 and define as weak alias of __atan.
26033 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26034 __atan.
26035 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26036 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26037 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26038 define as weak alias of __tan.
26039
26040 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26041
26042 * math/w_lgamma.c: New file.
26043 * math/w_lgammaf.c: New file.
26044 * math/w_lgammal.c: New file.
26045
26046 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26047
26048 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26049 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26050 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26051 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26052 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26053 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26054 * sysdeps/i386/fpu/w_log2f.c: New file.
26055 * sysdeps/i386/fpu/w_logf.c: New file.
26056 * sysdeps/i386/fpu/w_powf.c: New file.
26057 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26058 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26059 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26060
26061 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26062 H.J. Lu <hongjiu.lu@intel.com>
26063
26064 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26065 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26066 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26067 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26068 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26069 the new expf code.
26070 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26071 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26072 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26073 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26074 * sysdeps/i386/fpu/w_exp2f.c: New file.
26075 * sysdeps/i386/fpu/w_expf.c: New file.
26076 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26077 * sysdeps/x86_64/fpu/w_expf.c: New file.
26078
26079 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26080
26081 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26082 (log2f): Likewise.
26083 (powf): Likewise.
26084 * math/w_log2f.c: New file.
26085 * math/w_logf.c: New file.
26086 * math/w_powf.c: New file.
26087 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26088 * math/w_logf_compat.c (__logf_compat): Likewise.
26089 * math/w_powf_compat.c (__powf_compat): Likewise.
26090 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26091 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26092 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26093 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26094 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26095 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26096 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26097 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26098 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26099 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26100 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26101 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26102 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26103 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26104 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26106 Likewise.
26107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26108 Likewise.
26109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26110 Likewise.
26111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26112 Likewise.
26113 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26114 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26115 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26116 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26117 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26118 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26119 Likewise.
26120 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26121 Likewise.
26122 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26123 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26124 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26125
26126 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26127
26128 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26129 (sysdep_routines): Add memrchr_power8.
26130 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26131 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26132 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26133 New file.
26134 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26135 (memrchr): Add __memrchr_power8 to ifunc list.
26136 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26137
26138 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26139
26140 [BZ #18822]
26141 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26142 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26143 libc_hidden_def.
26144 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26145 (__posix_fallocate64_l64): Likewise.
26146
26147 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26148
26149 [BZ #18822]
26150 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26151 (__sched_setaffinity_new): Add libc_hidden_proto and
26152 libc_hidden_def.
26153
26154 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26155
26156 [BZ #18822]
26157 * include/glob.h (__glob64): Add libc_hidden_proto.
26158 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26159 libc_hidden_def.
26160
26161 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26162
26163 [BZ #18822]
26164 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26165 attribute_hidden.
26166
26167 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26168
26169 [BZ #18822]
26170 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26171
26172 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26173
26174 [BZ #18822]
26175 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26176 libc_hidden_def.
26177
26178 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26179
26180 [BZ #18822]
26181 * csu/version.c (__libc_print_version): Add attribute_hidden.
26182
26183 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26184
26185 [BZ #18822]
26186 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26187
26188 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26189
26190 [BZ #18822]
26191 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26192
26193 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26194
26195 [BZ #18822]
26196 * nscd/nscd_helper.c (__nis_hash): New prototype.
26197
26198 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26199
26200 [BZ #18822]
26201 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26202 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26203 libc_hidden_def.
26204 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26205 * termios/tcgetattr.c (__tcgetattr): Likewise.
26206
26207 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26208
26209 [BZ #18822]
26210 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26211 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26212 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26213 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26214 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26215
26216 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26217
26218 [BZ #18822]
26219 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26220
26221 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26222
26223 [BZ #18822]
26224 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26225 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26226
26227 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26228
26229 [BZ #18822]
26230 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26231
26232 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26233
26234 [BZ #18822]
26235 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26236 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26237
26238 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26239
26240 [BZ #18822]
26241 * include/ifreq.h: New file.
26242 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26243 (__ifreq): Likewise.
26244 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26245 (__ifreq): Likewise.
26246
26247 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26248
26249 [BZ #18822]
26250 * include/idna.h: New file.
26251 * inet/getnameinfo.c: Include <idna.h> instead of
26252 <libidn/idna.h>.
26253 (__idna_to_unicode_lzlz): Removed.
26254 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26255 <libidn/idna.h>.
26256 (__idna_to_ascii_lz): Removed.
26257 (__idna_to_unicode_lzlz): Likewise.
26258
26259 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26260
26261 [BZ #18822]
26262 * include/plural-exp.h: New file.
26263 * intl/plural-exp.c: Include <plural-exp.h> instead of
26264 "plural-exp.h".
26265
26266 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26267
26268 [BZ #18822]
26269 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26270 "getsourcefilter.h".
26271 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26272 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26273 "getsourcefilter.h".
26274 (__get_sol): Removed.
26275
26276 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26277
26278 [BZ #18822]
26279 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26280 to ...
26281 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26282
26283 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26284
26285 [BZ #18822]
26286 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26287 attribute_hidden.
26288
26289 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26290
26291 [BZ #18822]
26292 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26293
26294 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26295
26296 [BZ #18822]
26297 * include/search.h (__tdestroy): Add libc_hidden_proto.
26298 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26299
26300 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26301
26302 [BZ #18822]
26303 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26304
26305 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26306
26307 [BZ #18822]
26308 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26309 attribute_hidden.
26310
26311 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26312
26313 [BZ #18822]
26314 * include/signal.h (__kill): Add libc_hidden_proto.
26315 (__sigblock): Likewise.
26316 (__sigprocmask): Likewise.
26317 (__sigaltstack): Likewise.
26318 * signal/kill.c (__kill): Add libc_hidden_def.
26319 * signal/sigblock.c (__sigblock): Likewise.
26320 * signal/sigprocmask.c (__sigprocmask): Likewise.
26321 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26322 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26323 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26324 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26325 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26326 Likewise.
26327 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26328 Likewise.
26329 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26330 (__sigprocmask): Likewise.
26331 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26332 Likewise.
26333 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26334 (__sigprocmask): Likewise.
26335 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26336 Likewise.
26337
26338 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26339
26340 [BZ #18822]
26341 * include/string.h (__strsep): Add libc_hidden_proto.
26342 * string/strsep.c (__strsep): Add libc_hidden_def.
26343
26344 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26345
26346 [BZ #18822]
26347 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26348 attribute_hidden.
26349 (__spawni): Likewise.
26350
26351 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26352
26353 [BZ #18822]
26354 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26355 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26356 libc_hidden_def.
26357
26358 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26359
26360 [BZ #18822]
26361 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26362
26363 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26364
26365 [BZ #18822]
26366 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26367 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26368 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26369 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26370 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26371 Likewise.
26372 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26373 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26374
26375 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26376
26377 [BZ #18822]
26378 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26379 (__dcigettext): Likewise.
26380
26381 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26382
26383 [BZ #18822]
26384 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26385 libc_hidden_proto.
26386 (__get_nprocs): Likewise.
26387 (__get_phys_pages): Likewise.
26388 (__get_avphys_pages): Likewise.
26389 (__get_child_max): Add attribute_hidden.
26390 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26391 (__get_nprocs): Likewise.
26392 (__get_phys_pages): Likewise.
26393 (__get_avphys_pages): Likewise.
26394 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26395 libc_hidden_def.
26396 (__get_nprocs): Likewise.
26397 (__get_phys_pages): Likewise.
26398 (__get_avphys_pages): Likewise.
26399 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26400 libc_hidden_def.
26401 (__get_nprocs_conf): Likewise.
26402 (__get_phys_pages): Likewise.
26403 (__get_avphys_pages): Likewise.
26404
26405 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26406
26407 [BZ #18822]
26408 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26409 attribute_hidden.
26410 (__netlink_close): Likewise.
26411 (__netlink_free_handle): Likewise.
26412 (__netlink_request): Likewise.
26413
26414 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26415
26416 [BZ #18822]
26417 * include/rpc/rpc.h (__rpc_thread_variables): Add
26418 attribute_hidden.
26419 (__rpc_thread_svc_cleanup): Likewise.
26420 (__rpc_thread_clnt_cleanup): Likewise.
26421 (__rpc_thread_key_cleanup): Likewise.
26422
26423 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26424
26425 [BZ #18822]
26426 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26427 (__writev): Likewise.
26428 * misc/readv.c (__readv): Add libc_hidden_def.
26429 * misc/writev.c (__writev): Likewise.
26430 * sysdeps/posix/readv.c (__readv): Likewise.
26431 * sysdeps/posix/writev.c (__writev): Likewise.
26432 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26433 (__readv): Likewise.
26434 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26435 (__writev): Likewise.
26436
26437 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26438
26439 [BZ #18822]
26440 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26441 (__regcomp): Add libc_hidden_proto.
26442 (__regexec): Likewise.
26443 (__regfree): Likewise.
26444 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26445 (__regfree): Likewise.
26446 * posix/regexec.c (__regexec): Likewise.
26447
26448 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26449
26450 [BZ #18822]
26451 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26452 (__getutent): Likewise.
26453 (__getutid): Likewise.
26454 (__getutline): Likewise.
26455 (__pututline): Likewise.
26456 (__getutent_r): Likewise.
26457 (__getutid_r): Likewise.
26458 (__getutline_r): Likewise.
26459 (__utmpname): Add attribute_hidden.
26460 (__setutent): Likewise.
26461 (__endutent): Likewise.
26462 * login/getutent.c (__getutent): Add libc_hidden_def.
26463 * login/getutent_r.c (__getutent_r): Likewise.
26464 (__pututline): Likewise.
26465 * login/getutid.c (__getutid): Likewise.
26466 * login/getutid_r.c (__getutid_r): Likewise.
26467 * login/getutline.c (__getutline): Likewise.
26468 * login/getutline_r.c (__getutline_r): Likewise.
26469 * login/updwtmp.c (__updwtmp): Likewise.
26470
26471 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26472
26473 [BZ #18822]
26474 * include/dirent.h (__opendir): Always add attribute_hidden.
26475 (__fdopendir): Likewise.
26476 (__closedir): Likewise.
26477 (__readdir): Likewise.
26478 (__readdir64): Add libc_hidden_proto.
26479 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26480 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26481 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26482 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26483 New alias.
26484
26485 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26486
26487 [BZ #18822]
26488 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26489 * include/netdb.h (__gethostbyaddr_r): Likewise.
26490 (__gethostbyname_r): Likewise.
26491 (__gethostbyname2_r): Likewise.
26492 (__getnetbyaddr_r): Likewise.
26493 (__getnetbyname_r): Likewise.
26494 (__getservbyname_r): Likewise.
26495 (__getservbyport_r): Likewise.
26496 (__getprotobyname_r): Likewise.
26497 (__getprotobynumber_r): Likewise.
26498 (__getnetgrent_r): Likewise.
26499 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26500 (__getrpcbynumber_r): Likewise.
26501 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26502
26503 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26504
26505 [BZ #18822]
26506 * include/stdio.h (__fcloseall): Add attribute_hidden.
26507 (__getline): Likewise.
26508 (__path_search): Likewise.
26509 (__gen_tempname): Likewise.
26510 (__libc_message): Likewise.
26511 (__flockfile): Likewise.
26512 (__funlockfile): Likewise.
26513 (__fxprintf): Likewise.
26514 (__fxprintf_nocancel): Likewise.
26515
26516 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26517
26518 [BZ #18822]
26519 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26520 (__sgetsgent_r): Likewise.
26521
26522 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26523
26524 [BZ #18822]
26525 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26526 (__statfs64): Likewise.
26527 (__fstatfs64): Likewise.
26528 * include/sys/statvfs.h (__statvfs64): Likewise.
26529 (__fstatvfs64): Likewise.
26530 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26531 (__statfs_filesize_max): Likewise.
26532 (__statfs_symlinks): Likewise.
26533 (__statfs_chown_restricted): Likewise.
26534
26535 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26536
26537 [BZ #18822]
26538 * include/time.h (__tzstring): Add attribute_hidden.
26539 (__tzfile_read): Likewise.
26540 (__tzfile_compute): Likewise.
26541 (__tzfile_default): Likewise.
26542 (__tzset_parse_tz): Likewise.
26543 (__offtime): Likewise.
26544 (__asctime_r): Likewise.
26545 (__tzset): Likewise.
26546 (__tz_convert): Likewise.
26547 (__getdate_r): Likewise.
26548 (__getclktck): Likewise.
26549
26550 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26551
26552 [BZ #18822]
26553 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26554 (__nscd_unmap): Likewise.
26555 (__nscd_cache_search): Likewise.
26556 (__nscd_get_nl_timestamp): Likewise.
26557 (__nscd_getpwnam_r): Likewise.
26558 (__nscd_getpwuid_r): Likewise.
26559 (__nscd_getgrnam_r): Likewise.
26560 (__nscd_getgrgid_r): Likewise.
26561 (__nscd_gethostbyname_r): Likewise.
26562 (__nscd_gethostbyname2_r): Likewise.
26563 (__nscd_gethostbyaddr_r): Likewise.
26564 (__nscd_getai): Likewise.
26565 (__nscd_getgrouplist): Likewise.
26566 (__nscd_getservbyname_r): Likewise.
26567 (__nscd_getservbyport_r): Likewise.
26568 (__nscd_innetgr): Likewise.
26569 (__nscd_setnetgrent): Likewise.
26570
26571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26572
26573 [BZ #18822]
26574 * include/gmp.h: Declare internal functions only if _ISOMAC is
26575 undefined.
26576 (__mpn_extract_double): Add attribute_hidden.
26577 (__mpn_extract_long_double): Likewise.
26578 (__mpn_extract_float128): Likewise.
26579 (__mpn_construct_float): Likewise.
26580 (__mpn_construct_double): Likewise.
26581 (__mpn_construct_long_double): Likewise.
26582 (__mpn_construct_float128): Likewise.
26583 (mpn_add_1): Likewise.
26584 (mpn_addmul_1): Likewise.
26585 (mpn_add_n): Likewise.
26586 (mpn_cmp): Likewise.
26587 (mpn_divrem): Likewise.
26588 (mpn_lshift): Likewise.
26589 (mpn_mul): Likewise.
26590 (mpn_mul_1): Likewise.
26591 (mpn_rshift): Likewise.
26592 (mpn_sub_1): Likewise.
26593 (mpn_submul_1): Likewise.
26594 (mpn_sub_n): Likewise.
26595
26596 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26597
26598 [BZ #18822]
26599 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26600 (__wcscat): Likewise.
26601 (__btowc): Likewise.
26602 (__wcrtomb): Likewise.
26603 (__mbsrtowcs): Likewise.
26604 (__wcsrtombs): Likewise.
26605 (__mbsnrtowcs): Likewise.
26606 (__wcsnrtombs): Likewise.
26607 (__wcsncpy): Likewise.
26608 (__wcpncpy): Likewise.
26609 (__wmemcpy): Likewise.
26610 (__wmempcpy): Likewise.
26611 (__wmemmove): Likewise.
26612 (__wcschrnul): Likewise.
26613 (__vfwscanf): Likewise.
26614 (__vswprintf): Likewise.
26615 (__fwprintf): Likewise.
26616 (__vfwprintf): Likewise.
26617
26618 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26619
26620 [BZ #18822]
26621 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26622 (__getgrgid_r): Likewise.
26623 (__getgrnam_r): Likewise.
26624 * include/pwd.h (__getpwuid_r): Likewise.
26625 (__getpwnam_r): Likewise.
26626 (__fgetpwent_r): Likewise.
26627 * include/shadow.h (__getspnam_r): Likewise.
26628 (__sgetspent_r): Likewise.
26629 (__fgetspent_r): Likewise.
26630
26631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26632
26633 [BZ #18822]
26634 * include/unistd.h (__access): Add attribute_hidden.
26635 (__lseek64): Likewise.
26636 (__libc_pread64): Likewise.
26637 (__pipe2): Likewise.
26638 (__sleep): Likewise.
26639 (__chdir): Likewise.
26640 (__fchdir): Likewise.
26641 (__getcwd): Likewise.
26642 (__rmdir): Likewise.
26643 (__execvpe): Likewise.
26644 (__execve): Likewise.
26645 (__setsid): Likewise.
26646 (__getuid): Likewise.
26647 (__geteuid): Likewise.
26648 (__getgid): Likewise.
26649 (__getegid): Likewise.
26650 (__getgroups): Likewise.
26651 (__group_member): Likewise.
26652 (__ttyname_r): Likewise.
26653 (__isatty): Likewise.
26654 (__readlink): Likewise.
26655 (__unlink): Likewise.
26656 (__gethostname): Likewise.
26657 (__profil): Likewise.
26658 (__getdtablesize): Likewise.
26659 (__brk): Likewise.
26660 (__ftruncate): Likewise.
26661 (__ftruncate64): Likewise.
26662
26663 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26664
26665 [BZ #18822]
26666 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26667 * argp/argp-fs-xinl.c: Likewise.
26668 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26669 * argp/argp-parse.c: Include <argp.h>.
26670 * argp/argp-xinl.c: Likewise.
26671 * include/argp-fmtstream.h: New file.
26672 * include/argp.h (__argp_error): Add attribute_hidden.
26673 (__argp_failure): Likewise.
26674 (__argp_input): Likewise.
26675 (__argp_state_help): Likewise.
26676
26677 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26678
26679 [BZ #18822]
26680 * include/wchar.h (____wcstof_l_internal): New prototype.
26681 (____wcstod_l_internal): Likewise.
26682 (____wcstold_l_internal): Likewise.
26683 (____wcstol_l_internal): Likewise.
26684 (____wcstoul_l_internal): Likewise.
26685 (____wcstoll_l_internal): Likewise.
26686 (____wcstoull_l_internal): Likewise.
26687 (____wcstof128_l_internal): Likewise.
26688 * sysdeps/ieee754/float128/wcstof128.c
26689 (____wcstof128_l_internal): Removed.
26690 * sysdeps/ieee754/float128/wcstof128_l.c
26691 (____wcstof128_l_internal): Likewise.
26692 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26693 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26694 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26695 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26696 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26697 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26698 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26699 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26700 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26701 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26702
26703 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26704
26705 [BZ #18822]
26706 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26707 instead of <sys/statvfs.h>.
26708 (__internal_statvfs): Removed.
26709 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26710 instead of <sys/statvfs.h>.
26711 (__internal_statvfs64): Removed.
26712 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26713 "internal_statvfs.h" instead of <sys/statvfs.h>.
26714 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26715 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26716 instead of <sys/statvfs.h>.
26717 (__internal_statvfs): Removed.
26718 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26719 instead of <sys/statvfs.h>.
26720 (__internal_statvfs64): Removed.
26721
26722 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26723
26724 [BZ #18822]
26725 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26726 (__gconv_close): Likewise.
26727 (__gconv): Likewise.
26728 (__gconv_find_transform): Likewise.
26729 (__gconv_lookup_cache): Likewise.
26730 (__gconv_compare_alias_cache): Likewise.
26731 (__gconv_load_cache): Likewise.
26732 (__gconv_get_path): Likewise.
26733 (__gconv_close_transform): Likewise.
26734 (__gconv_release_cache): Likewise.
26735 (__gconv_find_shlib): Likewise.
26736 (__gconv_release_shlib): Likewise.
26737 (__gconv_get_builtin_trans): Likewise.
26738 (__gconv_compare_alias): Likewise.
26739 * include/dlfcn.h (_dlerror_run): Likewise.
26740 * include/stdio.h (__fortify_fail_abort): Likewise.
26741 * include/time.h (__tz_compute): Likewise.
26742 (__strptime_internal): Likewise.
26743 * intl/gettextP.h (_nl_find_domain): Likewise.
26744 (_nl_load_domain): Likewise.
26745 (_nl_find_msg): Likewise.
26746 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26747 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26748 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26749 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26750 (__gai_find_request): Likewise.
26751 (__gai_remove_request): Likewise.
26752 (__gai_notify): Likewise.
26753 (__gai_notify_only): Likewise.
26754 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26755 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26756 (_dl_non_dynamic_init): Likewise.
26757 (_dl_aux_init): Likewise.
26758 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26759 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26760 Likewise.
26761 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26762 (__wcsmbs_clone_conv): Likewise.
26763 (__wcsmbs_named_conv): Likewise.
26764
26765 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26766
26767 [BZ #18822]
26768 * include/stdlib.h (__random): Add attribute_hidden.
26769 (__random_r): Likewise.
26770 (__srandom_r): Likewise.
26771 (__initstate_r): Likewise.
26772 (__setstate_r): Likewise.
26773 (__erand48_r): Likewise.
26774 (__nrand48_r): Likewise.
26775 (__jrand48_r): Likewise.
26776 (__srand48_r): Likewise.
26777 (__seed48_r): Likewise.
26778 (__lcong48_r): Likewise.
26779 (__drand48_iterate): Likewise.
26780 (__setenv): Likewise.
26781 (__unsetenv): Likewise.
26782 (__clearenv): Likewise.
26783 (__ptsname_r): Likewise.
26784 (__posix_openpt): Likewise.
26785 (__add_to_environ): Likewise.
26786 (__realpath): Add libc_hidden_proto.
26787 (__ecvt_r): Likewise.
26788 (__fcvt_r): Likewise.
26789 (__qecvt_r): Likewise.
26790 (__qfcvt_r): Likewise.
26791 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26792 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26793
26794 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26795
26796 [BZ #18822]
26797 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26798 * include/time.h (__mktime_internal): Likewise.
26799 * libio/iolibio.h (__fopen_internal): Likewise.
26800
26801 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26802
26803 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26804 pointer in frame.
26805 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26806 Correct offset used to restore PIC register.
26807
26808 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26809
26810 [BZ libc/22165]
26811 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26812 code to load address of __getcontext_ret when generating PIC code.
26813
26814 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26815
26816 * elf/Makefile (tests-static-internal): Add
26817 tst-tls1-static-non-pie.
26818 (LDFLAGS-tst-tls1-static-non-pie): New.
26819 * elf/tst-tls1-static-non-pie.c: New file.
26820
26821 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26822
26823 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26824 (asinh): Define using libm_alias_double.
26825 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26826 (cbrt): Define using libm_alias_double.
26827 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26828 <libm-alias-double.h>.
26829 (copysign): Define using libm_alias_double.
26830 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26831 (erf): Define using libm_alias_double.
26832 (erfc): Likewise.
26833 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26834 (expm1): Define using libm_alias_double.
26835 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26836 (fabs): Define using libm_alias_double.
26837 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26838 libm_alias_double.
26839 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26840 <libm-alias-double.h>.
26841 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26842 libm_alias_double.
26843 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26844 <libm-alias-double.h>.
26845 (getpayload): Define using libm_alias_double.
26846 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26847 <libm-alias-double.h>.
26848 (llrint): Define using libm_alias_double.
26849 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26850 (lrint): Define using libm_alias_double.
26851 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26852 <libm-alias-double.h>.
26853 (nextup): Define using libm_alias_double.
26854 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26855 <libm-alias-double.h>.
26856 (roundeven): Define using libm_alias_double.
26857 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26858 libm_alias_double.
26859 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26860 <libm-alias-double.h>.
26861 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26862 using libm_alias_double.
26863 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26864 (cos): Define using libm_alias_double.
26865 (sin): Likewise.
26866 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26867 <libm-alias-double.h>.
26868 (sincos): Define using libm_alias_double.
26869 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26870 (tanh): Define using libm_alias_double.
26871 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26872 <libm-alias-double.h>.
26873 (totalorder): Define using libm_alias_double.
26874 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26875 <libm-alias-double.h>.
26876 (totalordermag): Define using libm_alias_double.
26877 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26878 libm_alias_double.
26879 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26880 libm_alias_double.
26881 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26882 <libm-alias-double.h>.
26883 (getpayload): Define using libm_alias_double.
26884 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26885 <libm-alias-double.h>.
26886 (roundeven): Define using libm_alias_double.
26887 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26888 <libm-alias-double.h>.
26889 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26890 <libm-alias-double.h>.
26891 (totalorder): Define using libm_alias_double.
26892 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26893 <libm-alias-double.h>.
26894 (totalordermag): Define using libm_alias_double.
26895 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26896 libc compat symbol here.
26897 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26898 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26899 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26900 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26901 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26902 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26903 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26904 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26905 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26906 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26907
26908 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26909
26910 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26911 _dl_relocate_static_pie instead of _dl_start to compute load
26912 address in static PIE. Return 0 if _DYNAMIC is undefined for
26913 static executable.
26914
26915 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26916
26917 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26918 _DYNAMIC is undefined for static executable.
26919
26920 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26921
26922 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26923
26924 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26925
26926 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26927
26928 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26929
26930 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26931 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26932 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26933 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26934 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26935 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26936 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26937 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26938 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26939 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26940 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26941 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26942 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26943 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26944 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26945 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26946 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26947
26948 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26949
26950 * math/bits/cmathcalls.h (cimag): Remove inline.
26951 (creal): Remove inline.
26952 (conj): Remove inline.
26953
26954 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26955
26956 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26957 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26958 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26959 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26960 (issignalingf_inline): Likewise.
26961 (POWF_LOG2_TABLE_BITS): Likewise.
26962 (POWF_LOG2_POLY_ORDER): Likewise.
26963 (POWF_SCALE_BITS): Likewise.
26964 (POWF_SCALE): Likewise.
26965 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26966 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26967 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26968
26969 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26970
26971 * math/Makefile (type-float-routines): Add e_log2f_data.
26972 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26973 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26974 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26975 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26976 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26977 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26978 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26979
26980 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26981
26982 * math/Makefile (type-float-routines): Add e_logf_data.
26983 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26984 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26985 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26986 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26987 * sysdeps/i386/fpu/e_logf_data.c: New file.
26988 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26989 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26990
26991 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26992
26993 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26994 undefined _DYNAMIC in PIE libc.a.
26995 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26996 Likewse.
26997
26998 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26999
27000 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27001 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27002 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27003 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27004 (__signbit): Remove.
27005 (__signbitl): Remove.
27006 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27007 (__signbit): Remove.
27008 (__signbitl): Remove.
27009 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27010 (__signbit): Remove.
27011 (__signbitl): Remove.
27012 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27013 (__signbit): Remove.
27014 (__signbitl): Remove.
27015 * sysdeps/tile/bits/mathinline.h: Delete file.
27016 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27017 (__signbit): Remove.
27018 (__signbitl): Remove.
27019
27020 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27021
27022 * math/math.h: Improve handling of C99 isgreater macros.
27023 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27024 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27025 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27026 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27027 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27028
27029 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27030
27031 * sysdeps/aarch64/libm-test-ulps: Update.
27032
27033 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27034
27035 [BZ #22225]
27036 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27037 math_opt_barrier on argument when doing arithmetic on it.
27038 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27039 Likewise. Use math_force_eval not math_opt_barrier after
27040 arithmetic.
27041 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27042 math_opt_barrier on argument when doing arithmetic on it.
27043 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27044 Likewise.
27045
27046 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27047
27048 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27049 libc_hidden_def.
27050 (__freeifaddrs): Likewise.
27051
27052 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27053
27054 * include/dirent.h (__dirfd): New declaration.
27055 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27056 alias.
27057 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27058 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27059 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27060 * include/unistd.h (__revoke): New declaration.
27061 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27062 alias.
27063 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27064 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27065 revoke.
27066 * include/dirent.h (__seekdir): New declaration.
27067 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27068 redefine as weak alias.
27069 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27070 of seekdir.
27071 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27072 and use libc_hidden_def on them.
27073 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27074 them.
27075 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27076 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27077 instead of getifaddrs and freeifaddrs.
27078
27079 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27080
27081 [BZ #18822]
27082 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27083 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27084 (__dso_handle): Remove declaration.
27085 * dlfcn/tstatexit.c (__dso_handle): Removed.
27086 (main): Don't check __dso_handle.
27087 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27088 (main): Don't check __dso_handle.
27089 * include/dso_handle.h: New file.
27090 * malloc/mtrace.c: Include <dso_handle.h>.
27091 (mtrace): Pass __dso_handle directly.
27092 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27093 (__dso_handle): Remove declaration.
27094 (__pthread_atfork): Pass __dso_handle directly.
27095 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27096 (__dso_handle): Removed.
27097 * posix/wordexp-test.c: Include <dso_handle.h>.
27098 (__dso_handle): Remove declaration.
27099 (__app_register_atfork): Pass __dso_handle directly.
27100 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27101 (__dso_handle): Remove declaration.
27102 (at_quick_exit): Pass __dso_handle directly.
27103 * stdlib/atexit.c: Include <dso_handle.h>.
27104 (__dso_handle): Remove declaration.
27105 (atexit): Pass __dso_handle directly.
27106 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27107 (__dso_handle): Removed.
27108
27109 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27110
27111 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27112 using VDSO.
27113
27114 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27115
27116 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27117 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27118 values to correct default value for given type.
27119
27120 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27121
27122 [BZ #22101]
27123 * elf/Makefile (tests): Add tst-debug1.
27124 ($(objpfx)tst-debug1): New.
27125 ($(objpfx)tst-debug1.out): Likewise.
27126 ($(objpfx)tst-debug1mod1.so): Likewise.
27127 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27128 with p_filesz == 0.
27129 * elf/tst-debug1.c: New file.
27130
27131 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27132
27133 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27134 Define using __ifunc.
27135
27136 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27137
27138 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27139 exp2f() values.
27140
27141 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27142
27143 [BZ #22156]
27144 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27145
27146 2017-09-26 Florian Weimer <fweimer@redhat.com>
27147
27148 * resolv/Makefile (tests-internal): Fix typo in comment.
27149
27150 2017-09-26 Florian Weimer <fweimer@redhat.com>
27151
27152 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27153
27154 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27155
27156 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27157 Use an union instead of a max_align_t array for __space,
27158 so that __space is the same size on all platforms.
27159 * malloc/scratch_buffer_grow_preserve.c
27160 (__libc_scratch_buffer_grow_preserve): Likewise.
27161
27162 [BZ #22183]
27163 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27164 version to 2.
27165 * posix/Makefile (routines): Add glob-lstat-compat and
27166 glob64-lstat-compat.
27167 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27168 * posix/glob-lstat-compat.c: New file.
27169 * posix/glob64-lstat-compat.c: Likewise.
27170 * posix/tst-glob_lstat_compat.c: Likewise.
27171 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27172 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27173 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27174 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27175 Likewise.
27176 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27177 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27178 * posix/glob.c (glob_lstat): New function.
27179 (glob): Rename to __glob and add versioned symbol to 2.27.
27180 (glob_in_dir): Use glob_lstat.
27181 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27182 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27183 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27184 2.27.
27185 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27186 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27187 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27188 gl_lstat on glob call.
27189 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27190 and glob64 symbols.
27191 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27192 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27193 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27194 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27195 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27196 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27197 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27198 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27199 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27200 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27201 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27202 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27203 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27204 Likewise.
27205 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27207 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27208 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27209 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27210 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27211 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27212 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27213 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27214 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27215 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27216 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27217
27218 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27219
27220 * configure.ac (AS): Require binutils 2.25 or later.
27221 * configure: Regenerated.
27222
27223 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27224
27225 [BZ #22207]
27226 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27227 VM size.
27228
27229 2017-09-25 DJ Delorie <dj@redhat.com>
27230
27231 [BZ #22161]
27232 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27233 resetting timeout.
27234
27235 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27236
27237 * sysdeps/ieee754/dbl-64/sincos32.h
27238 [SINCCOS32_H]: Remove define.
27239 [SINCOS32_H]: Define.
27240
27241 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27242
27243 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27244 (exp2f): Likewise.
27245 * math/w_exp2f.c: New file.
27246 * math/w_expf.c: New file.
27247 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27248 * math/w_expf_compat.c (__expf_compat): Likewise.
27249 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27250 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27251 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27252 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27253 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27254 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27255 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27256 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27257 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27258 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27259 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27260 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27261 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27262 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27264 Likewise.
27265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27266 Likewise.
27267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27268 Likewise.
27269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27270 Likewise.
27271 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27272 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27273 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27274 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27275 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27276 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27277 Likewise.
27278 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27279 Likewise.
27280 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27281 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27282 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27283
27284 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27285
27286 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27287 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27288 (roundtoint, converttoint): Likewise.
27289 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27290 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27291 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27292 * sysdeps/ieee754/flt-32/math_config.h: New file.
27293 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27294 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27295 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27296 * sysdeps/i386/fpu/math_errf.c: New file.
27297 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27298 * sysdeps/ia64/fpu/math_errf.c: New file.
27299 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27300 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27301
27302 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27303
27304 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27305 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27306 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27307 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27308 to make sure that these symbols are defined.
27309 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27310 of <limits.h>
27311 (__need_NULL): Do not define.
27312 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27313 alignment.
27314 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27315 CMGROUP_MAX, cmsgcred): Do not define.
27316 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27317 NULL.
27318 * bits/socket.h: Likewise.
27319 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27320 __gettimeofday instead of gettimeofday.
27321 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27322 instead of settimeofday.
27323
27324 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27325
27326 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27327 (asinhf): Define using libm_alias_float.
27328 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27329 (atanf): Define using libm_alias_float.
27330 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27331 (cbrtf): Define using libm_alias_float.
27332 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27333 (ceilf): Define using libm_alias_float.
27334 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27335 <libm-alias-float.h>.
27336 (copysignf): Define using libm_alias_float.
27337 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27338 (cosf): Define using libm_alias_float.
27339 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27340 (erff): Define using libm_alias_float.
27341 (erfcf): Likewise.
27342 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27343 (expm1f): Define using libm_alias_float.
27344 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27345 (fabsf): Define using libm_alias_float.
27346 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27347 (floorf): Define using libm_alias_float.
27348 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27349 (frexpf): Define using libm_alias_float.
27350 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27351 libm_alias_float.
27352 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27353 <libm-alias-float.h>.
27354 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27355 libm_alias_float.
27356 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27357 <libm-alias-float.h>.
27358 (getpayloadf): Define using libm_alias_float.
27359 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27360 <libm-alias-float.h>.
27361 (llrintf): Define using libm_alias_float.
27362 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27363 <libm-alias-float.h>.
27364 (llroundf): Define using libm_alias_float.
27365 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27366 (logbf): Define using libm_alias_float.
27367 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27368 (lrintf): Define using libm_alias_float.
27369 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27370 (lroundf): Define using libm_alias_float.
27371 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27372 (modff): Define using libm_alias_float.
27373 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27374 <libm-alias-float.h>.
27375 (nearbyintf): Define using libm_alias_float.
27376 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27377 <libm-alias-float.h>.
27378 (nextafterf): Define using libm_alias_float.
27379 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27380 <libm-alias-float.h>.
27381 (nextupf): Define using libm_alias_float.
27382 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27383 <libm-alias-float.h>.
27384 (remquof): Define using libm_alias_float.
27385 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27386 (rintf): Define using libm_alias_float.
27387 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27388 <libm-alias-float.h>.
27389 (roundevenf): Define using libm_alias_float.
27390 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27391 (roundf): Define using libm_alias_float.
27392 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27393 using libm_alias_float.
27394 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27395 <libm-alias-float.h>.
27396 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27397 Define using libm_alias_float.
27398 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27399 <libm-alias-float.h>.
27400 (sincosf): Define using libm_alias_float.
27401 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27402 (sinf): Define using libm_alias_float.
27403 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27404 (tanf): Define using libm_alias_float.
27405 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27406 (tanhf): Define using libm_alias_float.
27407 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27408 <libm-alias-float.h>.
27409 (totalorderf): Define using libm_alias_float.
27410 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27411 <libm-alias-float.h>.
27412 (totalordermagf): Define using libm_alias_float.
27413 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27414 (truncf): Define using libm_alias_float.
27415 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27416 libm_alias_float.
27417 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27418 libm_alias_float.
27419
27420 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27421
27422 [BZ #22146]
27423 math/math.h: Let fpclassify use the builtin in C++ mode, even
27424 when optimazing for size.
27425
27426 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27427
27428 * csu/Makefile (generated): Do not add version-info.h.
27429 (before-compile): Likewise.
27430 (all-Banner-files): Remove variable.
27431 ($(objpfx)version-info.h): Remove rule.
27432 * csu/version.c (banner): Do not include "version-info.h".
27433 * libidn/Banner: Remove.
27434 * manual/contrib.texi (Simon Josefsson): New entry.
27435
27436 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27437
27438 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27439 Remove conditionals on LDBL_MANT_DIG.
27440 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27441 (__ieee754_lgammal_r): Likewise.
27442
27443 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27444
27445 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27446 _Float128 and L().
27447 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27448 _Float128 and L(). Replace _Float128 with long double and L(x)
27449 with xL, throughout the file.
27450 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27451 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27452 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27453 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27454
27455 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27456
27457 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27458 sysdeps/ieee754/ldbl-128ibm.
27459 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27460 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27461 of including it. Keep _Float128 and L() intact. These will be
27462 reviewed by a separate patch.
27463 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27464 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27465 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27466 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27467
27468 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27469
27470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27471 (__finitef128): Define to __redirect___finitef128.
27472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27473 (__isinff128): Define to __redirect___isinff128.
27474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27475 (__isnanf128): Define to __redirect___isnanf128.
27476
27477 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27478
27479 * sysdeps/powerpc/powerpc64le/Makefile
27480 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27481 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27482
27483 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27484 Carlos O'Donell <carlos@redhat.com>
27485
27486 [BZ #22180]
27487 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27488 * stdlib/test-dlclose-exit-race.c: New file.
27489 * stdlib/test-dlclose-exit-race-helper.c: New file.
27490 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27491
27492 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27493
27494 * crypt/Banner: Remove file.
27495 * nptl/Banner: Likewise.
27496 * resolv/Banner: Likewise.
27497 * soft-fp/Banner: Likewise.
27498 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27499 ($(objpfx)version.d): Remove dependency on banner.h.
27500 ($(objpfx)version.os): Likewise.
27501 * nptl/version.c (banner): Do not include banner.h.
27502 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27503 Jelinek and BIND code.
27504
27505 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27506 Carlos O'Donell <carlos@redhat.com>
27507
27508 * support/xdlfcn.h: New file.
27509 * support/xdlfcn.c: New file.
27510 * support/Makefile (libsupport-routines): Add xdlfcn.
27511 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27512
27513 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27514
27515 [BZ #20142]
27516 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27517 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27518 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27519 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27520 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27521 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27522 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27523 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27524
27525 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27526 Ricky Zhou <rickyz@google.com>
27527 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27528
27529 [BZ #14333]
27530 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27531 Remove atomics.
27532 (__new_exitfn): Fail registration when we finished at_exit processing.
27533 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27534 * stdlib/on_exit.c (__on_exit): Likewise.
27535 * stdlib/exit.c (__exit_funcs_done): New variable.
27536 (__run_exit_handlers): Use __exit_funcs_lock.
27537 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27538 declarations.
27539 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27540 (test-cxa_atexit-race, test-on_exit-race): New tests.
27541 * stdlib/test-atexit-race-common.c: New file.
27542 * stdlib/test-atexit-race.c: New file.
27543 * stdlib/test-at_quick_exit-race.c: New file.
27544 * stdlib/test-cxa_atexit-race.c: New file.
27545 * stdlib/test-on_exit-race.c: New file.
27546
27547 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27548
27549 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27550 * benchtests/exp2f-inputs: Copy of expf-inputs.
27551 * benchtests/log2f-inputs: Copy of logf-inputs.
27552
27553 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27554
27555 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27556 Explicitly take address of first element of array arguments in
27557 call to INLINE_SYSCALL.
27558
27559 2017-09-19 Andreas Schwab <schwab@suse.de>
27560
27561 [BZ #22134]
27562 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27563 execveat first.
27564 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27565 unimplemented.
27566 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27567 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27568 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27569 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27570 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27571 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27572 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27573 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27574 * posix/Makefile (tests): Add tst-fexecve.
27575 * posix/tst-fexecve.c: New file.
27576
27577 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27578
27579 * benchtests/Makefile: Add logf benchmark.
27580 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27581
27582 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27583
27584 * benchtests/Makefile: Add expf benchmark.
27585 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27586
27587 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27588
27589 * csu/Makefile: Add -funwind-tables to libc-start.c.
27590 * debug/Makefile: Add -funwind-tables to backtrace.c.
27591 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27592 * sysdeps/arm/Makefile: Likewise.
27593 * sysdeps/i386/Makefile: Likewise.
27594 * sysdeps/m68k/Makefile: Likewise.
27595 * sysdeps/mips/Makefile: Likewise.
27596 * sysdeps/nios2/Makefile: Likewise.
27597 * sysdeps/sh/Makefile: Likewise.
27598 * sysdeps/sparc/Makefile: Likewise.
27599
27600 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27601
27602 * benchtests/Makefile (bench-math): Add trunc and truncf.
27603 (CFLAGS-bench-trunc.c): New variable.
27604 (CFLAGS-bench-truncf.c): Likewise.
27605 * benchtests/trunc-inputs: New file.
27606 * benchtests/truncf-inputs: Likewise.
27607
27608 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27609
27610 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27611
27612 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27613
27614 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27615 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27616 redefine.
27617 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27618 (exp10l): Define as weak alias.
27619 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27620 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27621 and redefine.
27622 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27623 (remainderl): Define as weak alias.
27624
27625 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27626 (fmal): Define using libm_alias_ldouble.
27627 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27628 (acoshl): Define using libm_alias_ldouble.
27629 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27630 (acosl): Define using libm_alias_ldouble.
27631 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27632 (asinl): Define using libm_alias_ldouble.
27633 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27634 (atan2l): Define using libm_alias_ldouble.
27635 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27636 (atanhl): Define using libm_alias_ldouble.
27637 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27638 (coshl): Define using libm_alias_ldouble.
27639 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27640 (exp10l): Define using libm_alias_ldouble.
27641 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27642 (exp2l): Define using libm_alias_ldouble.
27643 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27644 (expl): Define using libm_alias_ldouble.
27645 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27646 (fmodl): Define using libm_alias_ldouble.
27647 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27648 (hypotl): Define using libm_alias_ldouble.
27649 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27650 (j0l): Define using libm_alias_ldouble.
27651 (y0l): Likewise.
27652 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27653 (j1l): Define using libm_alias_ldouble.
27654 (y1l): Likewise.
27655 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27656 (jnl): Define using libm_alias_ldouble.
27657 (ynl): Likewise.
27658 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27659 (log10l): Define using libm_alias_ldouble.
27660 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27661 (log2l): Define using libm_alias_ldouble.
27662 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27663 (logl): Define using libm_alias_ldouble.
27664 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27665 (powl): Define using libm_alias_ldouble.
27666 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27667 (remainderl): Define using libm_alias_ldouble.
27668 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27669 (sinhl): Define using libm_alias_ldouble.
27670 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27671 (sqrtl): Define using libm_alias_ldouble.
27672 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27673 (tgammal): Define using libm_alias_ldouble.
27674 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27675 (exp10l): Do not use long_double_symbol here.
27676 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27677 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27678 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27679 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27680 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27681 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27682 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27683 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27684 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27685 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27686 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27687 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27688 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27689 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27690 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27691 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27692 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27693 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27694 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27695 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27696 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27697 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27698
27699 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27700
27701 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27702 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27703
27704 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27705
27706 * io/read.c (read): Add libc_hidden_weak.
27707 * sysdeps/mach/hurd/read.c (read): Likewise.
27708 * io/write.c (write): Likewise.
27709 * sysdeps/mach/hurd/write.c (write): Likewise.
27710 * io/pread64.c (__pread64): Likewise.
27711 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27712 * posix/pread64.c (__pread64): Add libc_hidden_def.
27713
27714 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27715
27716 * benchtests/scripts/compare_strings.py: New option -g.
27717 (draw_graph): Print a message that a graph is being generated.
27718 (process_results): Generate graph only if -g is passed.
27719 (main): Process option -g.
27720
27721 * benchtests/scripts/compare_strings.py (process_results):
27722 Better spacing for output.
27723
27724 * benchtests/scripts/compare_strings.py: Use argparse.
27725 * benchtests/README: Document existence of compare_strings.py.
27726
27727 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27728
27729 * math/s_fma.c: Include <libm-alias-double.h>.
27730 (fma): Define using libm_alias_double.
27731 * math/s_nextafter.c: Include <libm-alias-double.h>.
27732 (nextafter): Define using libm_alias_double.
27733 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27734 (acos): Define using libm_alias_double.
27735 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27736 (aocsh): Define using libm_alias_double.
27737 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27738 (asin): Define using libm_alias_double.
27739 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27740 (atan2): Define using libm_alias_double.
27741 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27742 (atanh): Define using libm_alias_double.
27743 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27744 (cosh): Define using libm_alias_double.
27745 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27746 (exp10): Define using libm_alias_double.
27747 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27748 (exp2): Define using libm_alias_double.
27749 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27750 (exp): Define using libm_alias_double.
27751 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27752 (fmod): Define using libm_alias_double.
27753 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27754 (hypot): Define using libm_alias_double.
27755 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27756 (j0): Define using libm_alias_double.
27757 (y0): Likewise.
27758 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27759 (j1): Define using libm_alias_double.
27760 (y1): Likewise.
27761 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27762 (jn): Define using libm_alias_double.
27763 (yn): Likewise.
27764 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27765 (log10): Define using libm_alias_double.
27766 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27767 (log2): Define using libm_alias_double.
27768 * math/w_log_compat.c: Include <libm-alias-double.h>.
27769 (log): Define using libm_alias_double.
27770 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27771 (pow): Define using libm_alias_double.
27772 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27773 (remainder): Define using libm_alias_double.
27774 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27775 (sinh): Define using libm_alias_double.
27776 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27777 (sqrt): Define using libm_alias_double.
27778 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27779 (tgamma): Define using libm_alias_double.
27780 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27781 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27782 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27783 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27784 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27785 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27786 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27787 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27788 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27789 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27790 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27791 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27792 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27793 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27794 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27795 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27796 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27797 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27798 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27799 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27800 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27801 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27802 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27803 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27804 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27805
27806 * math/e_acoshl.c: Remove.
27807 * math/e_acosl.c: Likewise.
27808 * math/e_asinl.c: Likewise.
27809 * math/e_atan2l.c: Likewise.
27810 * math/e_atanhl.c: Likewise.
27811 * math/e_coshl.c: Likewise.
27812 * math/e_expl.c: Likewise.
27813 * math/e_fmodl.c: Likewise.
27814 * math/e_gammal_r.c: Likewise.
27815 * math/e_hypotl.c: Likewise.
27816 * math/e_j0l.c: Likewise.
27817 * math/e_j1l.c: Likewise.
27818 * math/e_jnl.c: Likewise.
27819 * math/e_lgammal_r.c: Likewise.
27820 * math/e_log10l.c: Likewise.
27821 * math/e_log2l.c: Likewise.
27822 * math/e_logl.c: Likewise.
27823 * math/e_powl.c: Likewise.
27824 * math/e_rem_pio2l.c: Likewise.
27825 * math/e_sinhl.c: Likewise.
27826 * math/e_sqrtf128.c: Likewise.
27827 * math/e_sqrtl.c: Likewise.
27828 * math/k_cosl.c: Likewise.
27829 * math/k_sinl.c: Likewise.
27830 * math/k_tanl.c: Likewise.
27831 * math/s_asinhl.c: Likewise.
27832 * math/s_atanl.c: Likewise.
27833 * math/s_cbrtl.c: Likewise.
27834 * math/s_erfl.c: Likewise.
27835 * math/s_expm1l.c: Likewise.
27836 * math/s_log1pl.c: Likewise.
27837 * math/s_tanhl.c: Likewise.
27838
27839 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27840
27841 [BZ #21745]
27842 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27843 [$(subdir) = math] (sysdep_calls): New variable. Has the
27844 previous contents of sysdep_routines, but re-sorted..
27845 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27846 sysdep_calls.
27847 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27848 defined in sysdep_calls and replace by the respective m_* names.
27849 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27850 (compat_symbol): Undefine to avoid duplicated compat symbols in
27851 libc.
27852
27853 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27854
27855 * math/s_fmaf.c: Include <libm-alias-float.h>.
27856 (fmaf): Define using libm_alias_float.
27857 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27858 (acosf): Define using libm_alias_float.
27859 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27860 (acoshf): Define using libm_alias_float.
27861 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27862 (asinf): Define using libm_alias_float.
27863 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27864 (atan2f): Define using libm_alias_float.
27865 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27866 (atanhf): Define using libm_alias_float.
27867 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27868 (coshf): Define using libm_alias_float.
27869 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27870 (exp10f): Define using libm_alias_float.
27871 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27872 (fmodf): Define using libm_alias_float.
27873 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27874 (hypotf): Define using libm_alias_float.
27875 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27876 (j0f): Define using libm_alias_float.
27877 (y0f): Likewise.
27878 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27879 (j1f): Define using libm_alias_float.
27880 (y1f): Likewise.
27881 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27882 (jnf): Define using libm_alias_float.
27883 (ynf): Likewise.
27884 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27885 (log10f): Define using libm_alias_float.
27886 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27887 (log2f): Define using libm_alias_float.
27888 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27889 (logf): Define using libm_alias_float.
27890 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27891 (powf): Define using libm_alias_float.
27892 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27893 (remainderf): Define using libm_alias_float.
27894 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27895 (sinhf): Define using libm_alias_float.
27896 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27897 (sqrtf): Define using libm_alias_float.
27898 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27899 (tgammaf): Define using libm_alias_float.
27900
27901 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27902
27903 * include/math.h (roundeven): Change hidden_proto call to
27904 __roundeven.
27905 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27906 alias.
27907 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27908 (y0): Rename to __y0 and define as weak alias.
27909 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27910 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27911 alias.
27912 (y0f): Rename to __y0f and define as weak alias.
27913 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27914 alias.
27915 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27916 (y1): Rename to __y1 and define as weak alias.
27917 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27918 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27919 alias.
27920 (y1f): Rename to __y1f and define as weak alias.
27921 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27922 alias.
27923 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27924 (yn): Rename to __yn and define as weak alias.
27925 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27926 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27927 alias.
27928 (ynf): Rename to __ynf and define as weak alias.
27929 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27930 (fromfp): Define as weak alias.
27931 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27932 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27933 (fromfpx): Define as weak alias.
27934 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27935 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27936 __getpayload and define as weak alias.
27937 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27938 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27939 __roundeven and define as weak alias.
27940 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27941 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27942 __setpayload.
27943 (setpayload): Define as weak alias.
27944 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27945 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27946 __setpayloadsig.
27947 (setpayloadsig): Define as weak alias.
27948 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27949 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27950 __totalorder and define as weak alias.
27951 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27952 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27953 to __totalordermag and define as weak alias.
27954 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27955 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27956 (ufromfp): Define as weak alias.
27957 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27958 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27959 __ufromfpx.
27960 (ufromfpx): Define as weak alias.
27961 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27962 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27963 Rename to __getpayload and define as weak alias.
27964 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27965 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27966 Rename to __roundeven and define as weak alias.
27967 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27968 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27969 Rename to __totalorder and define as weak alias.
27970 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27971 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27972 (totalordermag): Rename to __totalordermag and define as weak
27973 alias.
27974 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27975 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27976 macro.
27977 (__roundevenl): Likewise.
27978 (__totalorderl): Likewise.
27979 (__totalordermagl): Likewise
27980 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27981 __fromfpf128.
27982 (fromfpf128): Define as weak alias.
27983 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27984 __fromfpxf128.
27985 (fromfpxf128): Define as weak alias.
27986 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27987 __setpayloadf128.
27988 (setpayloadf128): Define as weak alias.
27989 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27990 __setpayloadsigf128.
27991 (setpayloadsigf128): Define as weak alias.
27992 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27993 __ufromfpf128.
27994 (ufromfpf128): Define as weak alias.
27995 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27996 __ufromfpxf128.
27997 (ufromfpxf128): Define as weak alias.
27998 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27999 (fromfpf): Define as weak alias.
28000 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28001 __fromfpxf.
28002 (fromfpxf): Define as weak alias.
28003 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28004 __getpayloadf and define as weak alias.
28005 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28006 __roundevenf and define as weak alias.
28007 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28008 __setpayloadf.
28009 (setpayloadf): Define as weak alias.
28010 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28011 __setpayloadsigf.
28012 (setpayloadsigf): Define as weak alias.
28013 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28014 __totalorderf and define as weak alias.
28015 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28016 Rename to __totalordermagf and define as weak alias.
28017 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28018 __ufromfpf.
28019 (ufromfpf): Define as weak alias.
28020 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28021 __ufromfpxf.
28022 (ufromfpxf): Define as weak alias.
28023 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28024 __fromfpl.
28025 (fromfpl): Define as weak alias.
28026 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28027 __fromfpxl.
28028 (fromfpxl): Define as weak alias.
28029 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28030 to __getpayloadl and define as weak alias.
28031 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28032 __roundevenl and define as weak alias.
28033 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28034 __setpayloadl.
28035 (setpayloadl): Define as weak alias.
28036 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28037 __setpayloadsigl.
28038 (setpayloadsigl): Define as weak alias.
28039 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28040 to __totalorderl and define as weak alias.
28041 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28042 Rename to __totalordermagl and define as weak alias.
28043 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28044 __ufromfpl.
28045 (ufromfpl): Define as weak alias.
28046 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28047 __ufromfpxl.
28048 (ufromfpxl): Define as weak alias.
28049 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28050 __fromfpl.
28051 (fromfpl): Define as weak alias.
28052 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28053 __fromfpxl.
28054 (fromfpxl): Define as weak alias.
28055 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28056 Rename to __getpayloadl and define as weak alias.
28057 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28058 to __roundevenl and define as weak alias. Call __roundeven
28059 instead of roundeven.
28060 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28061 __setpayloadl.
28062 (setpayloadl): Define as weak alias.
28063 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28064 __setpayloadsigl.
28065 (setpayloadsigl): Define as weak alias.
28066 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28067 Rename to __totalorderl and define as weak alias.
28068 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28069 Rename to __totalordermagl and define as weak alias.
28070 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28071 __ufromfpl.
28072 (ufromfpl): Define as weak alias.
28073 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28074 __ufromfpxl.
28075 (ufromfpxl): Define as weak alias.
28076 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28077 __fromfpl.
28078 (fromfpl): Define as weak alias.
28079 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28080 __fromfpxl.
28081 (fromfpxl): Define as weak alias.
28082 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28083 __getpayloadl and define as weak alias.
28084 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28085 __roundevenl and define as weak alias.
28086 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28087 __setpayloadl.
28088 (setpayloadl): Define as weak alias.
28089 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28090 __setpayloadsigl.
28091 (setpayloadsigl): Define as weak alias.
28092 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28093 __totalorderl and define as weak alias.
28094 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28095 Rename to __totalordermagl and define as weak alias.
28096 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28097 __ufromfpl.
28098 (ufromfpl): Define as weak alias.
28099 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28100 __ufromfpxl.
28101 (ufromfpxl): Define as weak alias.
28102
28103 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28104
28105 * benchtests/bench-string.h (realloc_bufs): New function.
28106 (test_init): Call it.
28107 * benchtests/bench-memset-large.c (do_test): Likewise.
28108 * benchtests/bench-memset.c (do_test): Likewise.
28109
28110 * benchtests/bench-memset-large.c: Print output in JSON
28111 format.
28112 * benchtests/bench-memset.c: Likewise.
28113
28114 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28115
28116 [BZ #21084]
28117 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28118 * iconvdata/Makefile: Add IBM858.
28119 * iconvdata/gconv-modules: Likewise.
28120 * iconvdata/tst-tables.sh: Likewise.
28121 * iconvdata/ibm858.c: New file.
28122 * localedata/charmaps/IBM858: Likewise.
28123
28124 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28125
28126 [BZ #22023]
28127 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28128 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28129
28130 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28131
28132 [BZ #22112]
28133 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28134 and add tel_int_fmt.
28135
28136 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28137
28138 * sysdeps/generic/libm-alias-float128.h: New file.
28139 * sysdeps/generic/math-type-macros-float128.h: Include
28140 <libm-alias-float128.h>.
28141 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28142
28143 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28144
28145 * sysdeps/generic/libm-alias-ldouble.h: New file.
28146 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28147 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28148 * sysdeps/generic/math-type-macros-ldouble.h: Include
28149 <libm-alias-ldouble.h>.
28150 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28151 libm_alias_ldouble.
28152
28153 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28154
28155 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28156 * math/w_exp_compat.c: ... here.
28157 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28158 * math/w_expf_compat.c: ... here.
28159 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28160 * math/w_expl_compat.c: ... here.
28161 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28162 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28163 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28164 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28165
28166 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28167
28168 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28169 redefine.
28170 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28171 macro.
28172 (ldexpl): Only define as compat symbol for libc, not libm.
28173 (scalbnl): Define as compat symbol for libc here.
28174 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28175 define for [IS_IN (libc)].
28176 (__ldexpl_2): Remove alias.
28177 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28178 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28179 name in long_double_symbol call.
28180 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28181 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28182 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28183 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28184 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28185 Remove macro.
28186 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28187 Define as compat symbol.
28188
28189 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28190
28191 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28192 * sysdeps/unix/sysv/linux/alpha/Makefile
28193 [$(subdir) = csu] (sysdep_routines): Remove rule.
28194
28195 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28196
28197 * sysdeps/generic/libm-alias-double.h: New file.
28198 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28199 * sysdeps/generic/math-type-macros-double.h: Include
28200 <libm-alias-double.h>.
28201 [declare_mgen_alias] (declare_mgen_alias): Define to use
28202 libm_alias_double.
28203 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28204 (M_LIBM_NEED_COMPAT): Remove macro.
28205 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28206 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28207 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28208 code.
28209 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28210 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28211 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28212 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28213 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28214 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28215 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28216 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28217 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28218 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28219 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28220 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28221 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28222 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28223 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28224 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28225 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28226 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28227 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28228 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28229 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28230 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28231 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28232 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28233 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28234 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28235 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28236 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28237 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28238 macro.
28239 (declare_mgen_alias): New macro.
28240 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28241 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28243 (M_LIBM_NEED_COMPAT): Remove macro.
28244 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28245 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28246 <first-versions.h>.
28247 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28248 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28249
28250 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28251
28252 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28253 (declare_mgen_alias_2): Remove.
28254 * sysdeps/generic/math-type-macros-double.h
28255 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28256 Likewise.
28257 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28258 alias.
28259 (ldexp): Define with declare_mgen_alias.
28260 (scalbn): Likewise.
28261
28262 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28263
28264 * grp/initgroups.c: Include config.h.
28265 (DEFAULT_CONFIG): New macro.
28266 (internal_getgrouplist): Use DEFAULT_CONFIG.
28267 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28268 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28269 (DEFAULT_DEFCONFIG): New macro.
28270 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28271 * nss/grp-lookup.c: Include config.h
28272 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28273 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28274 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28275 * manual/nss.texi: Update default values section.
28276
28277 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28278
28279 [BZ #21967]
28280 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28281 New.
28282 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28283 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28284 Handle MathVec_Prefer_No_AVX512.
28285 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28286 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28287 is set.
28288
28289 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28290
28291 * posix/sched_primax.c (__sched_get_priority_max): Add
28292 libc_hidden_def.
28293 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28294 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28295 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28296 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28297 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28298 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28299 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28300 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28301 Add aliases.
28302
28303 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28304
28305 * sysdeps/generic/libm-alias-float.h: New file.
28306 * sysdeps/generic/math-type-macros-float.h: Include
28307 <libm-alias-float.h>.
28308 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28309
28310 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28311
28312 [BZ #22093]
28313 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28314 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28315 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28316 (HWCAP_IMPORTANT): Likewise.
28317 (HWCAP_X86_64): New enum.
28318 (HWCAP_X86_AVX512_1): Updated.
28319 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28320 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28321 (modules-names): Add x86_64/tst-x86_64mod-1.
28322 (LDFLAGS-tst-x86_64mod-1.so): New.
28323 ($(objpfx)tst-x86_64-1): Likewise.
28324 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28325 (tst-x86_64-1-clean): Likewise.
28326 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28327 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28328
28329 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28330
28331 * po/sv.po: Update translations.
28332 * po/fr.po: Likewise.
28333
28334 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28335
28336 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28337 seconds.
28338 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28339 seconds.
28340 * elf/rtld-Rules: Fix $(error) use.
28341
28342 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28343
28344 [BZ #14925]
28345 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28346 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28347 * localedata/locales/bn_BD: “Bengali” was still used in some
28348 comments. Change it to “Bangla”.
28349
28350 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28351
28352 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28353
28354 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28355
28356 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28357 thunderx2t99p1 to list of cpu names.
28358 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28359 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28360
28361 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28362
28363 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28364 Use strcmp instead of tunable_is_name.
28365
28366 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28367
28368 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28369 (F_GET_RW_HINT): New macro.
28370 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28371 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28372 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28373 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28374 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28375 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28376 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28377 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28378 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28379
28380 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28381 (F_ADD_SEALS): New macro.
28382 [__USE_GNU] (F_GET_SEALS): Likewise.
28383 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28384 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28385 [__USE_GNU] (F_SEAL_GROW): Likewise.
28386 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28387
28388 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28389
28390 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28391 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28392 * posix/glob_internal.h (__glob_pattern_type):
28393 * posix/glob.c (glob):
28394 * posix/glob_pattern_p.c (__glob_pattern_p):
28395 Use them.
28396
28397 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28398 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28399 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28400 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28401 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28402 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28403 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28404 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28405 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28406 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28407 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28408 * sysdeps/wordsize-64/glob.c: Likewise.
28409 * sysdeps/wordsize-64/glob64.c: Likewise.
28410 * sysdeps/wordsize-64/globfree.c: Likewise.
28411 * sysdeps/wordsize-64/globfree64.c: Likewise.
28412 * sysdeps/unix/sysv/linux/glob.c: New file.
28413 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28414 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28415 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28416 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28417 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28418 adds !GLOB_NO_OLD_VERSION as an extra condition.
28419 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28420 using relative path instead of absolute one.
28421 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28422 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28423 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28424 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28425 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28426 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28427
28428 [BZ #1062]
28429 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28430 (glob): Use the same scratch buffer for both getlogin_r and
28431 getpwnam_r. Don’t require preallocation of the login name. This
28432 simplifies storage allocation, and corrects the handling of
28433 long login names.
28434
28435 [BZ #1062]
28436 * posix/glob.c (glob): Port recent patches to platforms
28437 lacking getpwnam_r.
28438 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28439 returns an error number rather than setting errno.
28440
28441 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28442 instead of GCC extension.
28443 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28444 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28445 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28446
28447 [BZ #866]
28448 [BZ #1062]
28449 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28450 * posix/bug-glob1.c: Remove file.
28451 * posix/tst-glob_symlinks.c: New file.
28452 * posix/glob.c (__lstat64): New macro.
28453 (is_dir): New function.
28454 (glob, glob_in_dir): Match symlinks even if they are dangling.
28455 (link_stat, link_exists_p): Remove. All uses removed.
28456
28457 [BZ #1062]
28458 [BZ #19971]
28459 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28460 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28461 All uses removed.
28462
28463 [BZ #1062]
28464 CVE-2017-15671
28465 * posix/Makefile (routines): Add globfree, globfree64, and
28466 glob_pattern_p.
28467 * posix/flexmember.h: New file.
28468 * posix/glob_internal.h: Likewise.
28469 * posix/glob_pattern_p.c: Likewise.
28470 * posix/globfree.c: Likewise.
28471 * posix/globfree64.c: Likewise.
28472 * sysdeps/gnu/globfree64.c: Likewise.
28473 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28474 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28475 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28476 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28477 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28478 * sysdeps/wordsize-64/globfree.c: Likewise.
28479 * sysdeps/wordsize-64/globfree64.c: Likewise.
28480 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28481 [NDEBUG): Remove comments.
28482 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28483 (dirent_type): New type. Use uint_fast8_t not
28484 uint8_t, as C99 does not require uint8_t.
28485 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28486 (struct readdir_result): Use dirent_type. Do not define skip_entry
28487 unless it is needed; this saves a byte on platforms lacking d_ino.
28488 (readdir_result_type, readdir_result_skip_entry):
28489 New functions, replacing ...
28490 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28491 these functions, which were removed. This makes the callers
28492 easier to read. All callers changed.
28493 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28494 (size_add_wrapv, glob_use_alloca): New static functions.
28495 (glob, glob_in_dir): Check for size_t overflow in several places,
28496 and fix some size_t checks that were not quite right.
28497 Remove old code using SHELL since Bash no longer
28498 uses this.
28499 (glob, prefix_array): Separate MS code better.
28500 (glob_in_dir): Remove old Amiga and VMS code.
28501 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28502 separate files.
28503 (glob_in_dir): Do not rely on undefined behavior in accessing
28504 struct members beyond their bounds. Use a flexible array member
28505 instead
28506 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28507 0/1. Caller changed.
28508 (glob): Fix memory leaks.
28509 * posix/glob64 (globfree64): Move to separate file.
28510 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28511 (globfree64): Remove hidden alias.
28512 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28513 oldglob.
28514 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28515 separate file.
28516 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28517 define.
28518 Move compat code to separate file.
28519 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28520 separate file.
28521
28522 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28523
28524 * resolv/tst-resolv-qtypes.c (domain): Changed to
28525 "const char domain[] =".
28526
28527 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28528
28529 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28530 version to 3.1.6.
28531
28532 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28533 (TCP_MD5SIG_EXT): Likewise.
28534 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28535 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28536 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28537
28538 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28539
28540 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28541
28542 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28543
28544 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28545
28546 [BZ #22100]
28547 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28548
28549 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28550
28551 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28552 before assuming that the file is empty. Avoid testing buffer content
28553 when nread == 0.
28554
28555 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28556
28557 [BZ #18858]
28558 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28559 Remove define.
28560 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28561 Likewise.
28562 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28563 Likewise.
28564 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28565 Likewise.
28566 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28567 Likewise.
28568 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28569 Likewise.
28570 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28571 Likewise.
28572
28573 2017-09-06 Florian Weimer <fweimer@redhat.com>
28574
28575 * malloc/dynarray_emplace_enlarge.c
28576 (__libc_dynarray_emplace_enlarge): Add missing else.
28577
28578 2017-09-06 Florian Weimer <fweimer@redhat.com>
28579
28580 [BZ #22096]
28581 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28582 case of failure to obtain the global conf object.
28583
28584 2017-09-06 Florian Weimer <fweimer@redhat.com>
28585
28586 [BZ #22095]
28587 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28588 dynarray allocation failure.
28589
28590 2017-09-06 Florian Weimer <fweimer@redhat.com>
28591
28592 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28593 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28594 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28595 New functions.
28596 (response): Call them. Add 'p', '6' flag processing.
28597 (test_reverse): New function.
28598 (test_get2_any): Call it.
28599 (test_no_inet6): Add 'p' test.
28600 (test_inet6): Likewise.
28601
28602 2017-09-06 Florian Weimer <fweimer@redhat.com>
28603
28604 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28605 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28606 the QNAME.
28607 (test_gai): Adjust query names. Add additional tests.
28608 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28609 test_get2. Adjust query names. Add additional tests.
28610 (test_no_inet6): New function, extracted from threadfunc.
28611 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28612 Add additional tests.
28613
28614 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28615
28616 [BZ #22070]
28617 * localedata/unicode-gen/utf8_gen.py: Set the width for
28618 characters with Prepended_Concatenation_Mark property to 1
28619 * localedata/charmaps/UTF-8: Updated using the improved script.
28620
28621 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28622
28623 [BZ #21750]
28624 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28625 use the range notation for all ranges of neighbouring characters
28626 with the same width.
28627
28628 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28629
28630 * sysdeps/generic/math-type-macros-double.h: Include
28631 <math-svid-compat.h>.
28632 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28633 * sysdeps/generic/math-type-macros-float.h: Include
28634 <math-svid-compat.h>.
28635 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28636 * sysdeps/generic/math-type-macros-ldouble.h: Include
28637 <math-svid-compat.h>.
28638 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28639 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28640 condition.
28641 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28642 * math/w_acosf_compat.c: Likewise.
28643 * math/w_acosh_compat.c: Likewise.
28644 * math/w_acoshf_compat.c: Likewise.
28645 * math/w_acoshl_compat.c: Likewise.
28646 * math/w_acosl_compat.c: Likewise.
28647 * math/w_asin_compat.c: Likewise.
28648 * math/w_asinf_compat.c: Likewise.
28649 * math/w_asinl_compat.c: Likewise.
28650 * math/w_atan2_compat.c: Likewise.
28651 * math/w_atan2f_compat.c: Likewise.
28652 * math/w_atan2l_compat.c: Likewise.
28653 * math/w_atanh_compat.c: Likewise.
28654 * math/w_atanhf_compat.c: Likewise.
28655 * math/w_atanhl_compat.c: Likewise.
28656 * math/w_cosh_compat.c: Likewise.
28657 * math/w_coshf_compat.c: Likewise.
28658 * math/w_coshl_compat.c: Likewise.
28659 * math/w_exp10_compat.c: Likewise.
28660 * math/w_exp10f_compat.c: Likewise.
28661 * math/w_exp10l_compat.c: Likewise.
28662 * math/w_exp2_compat.c: Likewise.
28663 * math/w_exp2f_compat.c: Likewise.
28664 * math/w_exp2l_compat.c: Likewise.
28665 * math/w_fmod_compat.c: Likewise.
28666 * math/w_fmodf_compat.c: Likewise.
28667 * math/w_fmodl_compat.c: Likewise.
28668 * math/w_hypot_compat.c: Likewise.
28669 * math/w_hypotf_compat.c: Likewise.
28670 * math/w_hypotl_compat.c: Likewise.
28671 * math/w_j0_compat.c: Likewise.
28672 * math/w_j0f_compat.c: Likewise.
28673 * math/w_j0l_compat.c: Likewise.
28674 * math/w_j1_compat.c: Likewise.
28675 * math/w_j1f_compat.c: Likewise.
28676 * math/w_j1l_compat.c: Likewise.
28677 * math/w_jn_compat.c: Likewise.
28678 * math/w_jnf_compat.c: Likewise.
28679 * math/w_jnl_compat.c: Likewise.
28680 * math/w_lgamma_r_compat.c: Likewise.
28681 * math/w_lgammaf_r_compat.c: Likewise.
28682 * math/w_lgammal_r_compat.c: Likewise.
28683 * math/w_log10_compat.c: Likewise.
28684 * math/w_log10f_compat.c: Likewise.
28685 * math/w_log10l_compat.c: Likewise.
28686 * math/w_log2_compat.c: Likewise.
28687 * math/w_log2f_compat.c: Likewise.
28688 * math/w_log2l_compat.c: Likewise.
28689 * math/w_log_compat.c: Likewise.
28690 * math/w_logf_compat.c: Likewise.
28691 * math/w_logl_compat.c: Likewise.
28692 * math/w_pow_compat.c: Likewise.
28693 * math/w_powf_compat.c: Likewise.
28694 * math/w_powl_compat.c: Likewise.
28695 * math/w_remainder_compat.c: Likewise.
28696 * math/w_remainderf_compat.c: Likewise.
28697 * math/w_remainderl_compat.c: Likewise.
28698 * math/w_sinh_compat.c: Likewise.
28699 * math/w_sinhf_compat.c: Likewise.
28700 * math/w_sinhl_compat.c: Likewise.
28701 * math/w_sqrt_compat.c: Likewise.
28702 * math/w_sqrtf_compat.c: Likewise.
28703 * math/w_sqrtl_compat.c: Likewise.
28704 * math/w_tgamma_compat.c: Likewise.
28705 * math/w_tgammaf_compat.c: Likewise.
28706 * math/w_tgammal_compat.c: Likewise.
28707 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28708 [LIBM_SVID_COMPAT].
28709 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28710 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28711 [LIBM_SVID_COMPAT].
28712 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28713 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28714 [LIBM_SVID_COMPAT].
28715 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28716 * sysdeps/i386/fpu/w_sqrt.c: New file.
28717 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28718 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28719 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28720 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28721 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28722 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28723 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28724 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28725 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28726 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28727 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28728 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28729 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28730 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28731 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28732 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28733 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28734 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28735 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28736 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28737 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28738 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28739 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28740 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28741 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28742 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28743 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28744 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28745 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28746 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28747 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28748 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28749 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28750 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28751 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28752 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28753 * sysdeps/ia64/fpu/w_log.c: Likewise.
28754 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28755 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28756 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28757 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28758 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28759 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28760 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28761 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28762 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28763 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28764 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28765 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28766 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28767 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28768 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28769 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28770 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28771 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28772 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28773 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28774 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28775 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28776 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28777 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28778 [LIBM_SVID_COMPAT].
28779 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28780 * sysdeps/ieee754/k_standard.c: Likewise.
28781 * sysdeps/ieee754/k_standardf.c: Likewise.
28782 * sysdeps/ieee754/k_standardl.c: Likewise.
28783 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28784 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28785 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28786 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28787 long_double_symbol call on [LIBM_SVID_COMPAT].
28788 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28789 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28790 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28791 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28792 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28793 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28794 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28795 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28796 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28797 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28798 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28799 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28800 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28801 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28802 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28803 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28804 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28805 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28806 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28807 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28808 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28809 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28810
28811 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28812
28813 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28814 * malloc/tst-mallocstate.c: Convert from test-skeleton
28815 to test-driver. Ifdef code using TEST_COMPAT macro.
28816 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28817 * math/test-matherr.c: Likewise.
28818
28819 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28820
28821 [BZ #22086]
28822 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28823 comparing word with byte-swapped constant.
28824
28825 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28826
28827 [BZ #20498]
28828 * locale/iso-639.def: add Miskito.
28829 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28830 * localedata/locales/miq_NI: New file.
28831
28832 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28833
28834 [BZ #18822]
28835 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28836 (__mkdir): Likewise.
28837 * io/chmod.c (__chmod): Add libc_hidden_def.
28838 * io/mkdir.c (__mkdir): Likewise.
28839 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28840 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28841 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28842 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28843
28844 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28845
28846 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28847 version to 4.13.
28848
28849 [BZ #22082]
28850 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28851 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28852
28853 2017-09-04 Florian Weimer <fweimer@redhat.com>
28854
28855 * math/math.h: Issue warning if log is defined.
28856
28857 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28858
28859 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28860 kernel version to 4.13.
28861
28862 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28863
28864 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28865 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28866 parameter.
28867 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28868 just <bits/types.h>.
28869 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28870 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28871 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28872 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28873 * misc/preadv2.c: Include <errno.h>.
28874 * misc/preadv64v2.c: Include <errno.h>.
28875 * misc/pwritev2.c: Include <errno.h>.
28876 * misc/pwritev64v2.c: Include <errno.h>.
28877 * sysdeps/posix/preadv2.c: Include <errno.h>.
28878 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28879 Fix <unistd.h> inclusion.
28880 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28881 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28882 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28883 __strtoul_internal): New functions.
28884 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28885 * sysdeps/posix/system.c: Include <sigsetops.h>.
28886 * sysdeps/mach/hurd/i386/Makefile
28887 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28888 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28889 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28890 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28891 __feraiseexcept_renamed to feraiseexcept instead of
28892 __GI_feraiseexcept.
28893 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28894 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28895 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28896 RWF_NOWAIT): Define to 0 if undefined already.
28897 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28898 boils down to 0.
28899 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28900 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28901
28902 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28903
28904 * manual/math.texi (pow10): Do not document.
28905 (pow10f): Likewise.
28906 (pow10l): Likewise.
28907 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28908 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28909 * math/libm-test-exp10.inc (pow10_test): Remove.
28910 (do_test): Do not call pow10.
28911 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28912 [NO_LONG_DOUBLE] (pow10l): Likewise.
28913 * math/w_exp10f_compat.c (pow10f): Likewise.
28914 * math/w_exp10l_compat.c (pow10l): Likewise.
28915 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28916 (pow10): Make into compat symbol.
28917 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28918 (pow10f): Make into compat symbol.
28919 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28920 (pow10l): Make into compat symbol.
28921 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28922 pow10.
28923 (CFLAGS-nldbl-pow10.c): Remove variable..
28924 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28925 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28926 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28927 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28928 Undefine and redefine.
28929 (pow10l): Make into compat symbol.
28930 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28931 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28932 * sysdeps/arm/libm-test-ulps: Likewise.
28933 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28934 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28935 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28936 * sysdeps/microblaze/libm-test-ulps: Likewise.
28937 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28938 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28939 * sysdeps/nios2/libm-test-ulps: Likewise.
28940 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28941 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28942 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28943 * sysdeps/sh/libm-test-ulps: Likewise.
28944 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28945 * sysdeps/tile/libm-test-ulps: Likewise.
28946 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28947
28948 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28949
28950 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28951
28952 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28953
28954 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28955 "../ChangeLog.old/ChangeLog.8".
28956 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28957 "../ChangeLog.old/ChangeLog.14".
28958
28959 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28960
28961 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28962 Threads Library.
28963
28964 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28965
28966 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28967
28968 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28969
28970 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28971 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28972
28973 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28974
28975 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28976 32 atexit handlers.
28977
28978 2017-09-01 Zack Weinberg <zackw@panix.com>
28979
28980 * math/math.h (HUGE_VAL): Improve commentary.
28981
28982 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28983 Andreas Schwab <schwab@suse.de>
28984
28985 [BZ #21530]
28986 * include/stdio.h (__gen_tempfd): New function.
28987 * stdio-common/Makefile (routines): Add gentempfd.
28988 * stdio-common/gentempfd.c: New file.
28989 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28990 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28991 unnamed file first.
28992
28993 2017-09-01 Florian Weimer <fweimer@redhat.com>
28994
28995 [BZ #21915]
28996 [BZ #21922]
28997 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28998 result to determine success or failure, not the errno value.
28999 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29000 (tst-nss-files-hosts-erange): Link with -ldl.
29001 * nss/tst-nss-files-hosts-erange.c: New file.
29002 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29003 (do_test): Add NO_DATA tests.
29004 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29005 (do_test): Call it.
29006
29007 2017-09-01 Florian Weimer <fweimer@redhat.com>
29008
29009 [BZ #21922]
29010 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29011 coming from gethostbyname2_r.
29012
29013 2017-09-01 Florian Weimer <fweimer@redhat.com>
29014
29015 * support/namespace.h (struct support_chroot_configuration): Add
29016 hosts, host_conf.
29017 (struct support_chroot): Add path_hosts, path_host_conf.
29018 * support/support_chroot.c (write_file): New function.
29019 (support_chroot_create): Call it to process /etc/resolv.conf,
29020 /etc/hosts, /etc/host.conf.
29021 (support_chroot_free): Update.
29022
29023 2017-09-01 Florian Weimer <fweimer@redhat.com>
29024
29025 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29026 status indicates it is set.
29027
29028 2017-09-01 Florian Weimer <fweimer@redhat.com>
29029
29030 [BZ #20532]
29031 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29032 function lookup failures more reliable.
29033
29034 2017-09-01 Florian Weimer <fweimer@redhat.com>
29035
29036 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29037 (getcanonname): Likewise.
29038 (gaih_inet): Likewise.
29039
29040 2017-09-01 Florian Weimer <fweimer@redhat.com>
29041
29042 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29043 (getcanonname): Likewise.
29044 (gaih_inet): Likewise.
29045
29046 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29047 Richard Henderson <rth@twiddle.net>
29048
29049 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29050 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29051 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29052 (IREG_SIZE, OREG_SIZE): New macros.
29053 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29054 (IREG_SIZE, OREG_SIZE): New macros.
29055 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29056 (IREG_SIZE): New macro.
29057 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29058 (IREG_SIZE): New macro.
29059 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29060 New includes.
29061 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29062 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29063 (__CONCATX): Handle exceptions correctly on large values that may
29064 set FE_INVALID.
29065 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29066 Initialize if not already set.
29067 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29068
29069 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29070
29071 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29072 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29073 Likewise.
29074 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29075 Likewise.
29076 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29077 Likewise.
29078 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29079 Likewise.
29080 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29081 Likewise.
29082 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29083 Likewise.
29084 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29085 Likewise.
29086 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29087 (NO_CANCELLATION): Likewise.
29088 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29089 Likewise.
29090 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29091 Likewise.
29092 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29093 Likewise.
29094 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29095 (NO_CANCELLATION): Likewise.
29096 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29097 (NO_CANCELLATION): Likewise.
29098 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29099 Likewise
29100 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29101 Likewise.
29102 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29103 Likewise.
29104 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29105 Likewise.
29106 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29107 hidden prototype.
29108 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29109 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29110
29111 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29112
29113 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29114 in resolver call.
29115
29116 2017-08-31 Florian Weimer <fweimer@redhat.com>
29117
29118 * include/libc-symbols.h (internal_function): Remove.
29119
29120 2017-08-31 Florian Weimer <fweimer@redhat.com>
29121
29122 * stdlib/fmtmsg.c (internal_addseverity): Remove
29123 internal_function.
29124
29125 2017-08-31 Florian Weimer <fweimer@redhat.com>
29126
29127 * stdio-common/printf_fp.c (group_number): Remove
29128 internal_function.
29129 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29130
29131 2017-08-31 Florian Weimer <fweimer@redhat.com>
29132
29133 * posix/fnmatch.c (internal_function): Remove definition.
29134 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29135 * posix/regcomp.c (peek_token, init_word_char)
29136 (duplicate_node_closure, fetch_token, peek_token)
29137 (peek_token_bracket, build_range_exp, build_collating_symbol):
29138 Likewise.
29139 * posix/regex_internal.c (re_string_construct_common)
29140 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29141 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29142 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29143 (re_string_translate_buffer, re_string_reconstruct)
29144 (re_string_peek_byte_case, re_string_fetch_byte_case)
29145 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29146 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29147 (re_node_set_add_intersect, re_node_set_init_union)
29148 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29149 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29150 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29151 (re_acquire_state_context): Likewise.
29152 * posix/regex_internal.h (internal_function): Remove definition.
29153 (re_string_realloc_buffers, build_wcs_buffer)
29154 (build_wcs_upper_buffer, build_upper_buffer)
29155 (re_string_translate_buffer, re_string_context_at)
29156 (re_string_char_size_at, re_string_wchar_at)
29157 (re_string_elem_size_at): Likewise.
29158 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29159 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29160 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29161 (re_search_internal, re_search_2_stub, re_search_stub)
29162 (re_copy_regs, prune_impossible_nodes, check_matching)
29163 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29164 (free_fail_stack_return, sift_states_iter_mb)
29165 (sift_states_backward, build_sifted_states)
29166 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29167 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29168 (check_subexp_limits, sift_states_bkref, merge_state_array)
29169 (find_recover_state, transit_state, merge_state_with_log)
29170 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29171 (transit_state_mb, transit_state_bkref, get_subexp)
29172 (get_subexp_sub, find_subexp_node, check_arrival)
29173 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29174 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29175 (check_node_accept_bytes, find_collation_sequence_value)
29176 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29177 (acquire_init_state_context, check_halt_node_context)
29178 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29179 (sub_epsilon_src_nodes): Likewise.
29180 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29181 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29182 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29183 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29184 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29185 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29186 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29187 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29188 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29189 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29190 (PREADV): Likewise.
29191 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29192 (PREADV): Likewise.
29193 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29194 (PWRITEV): Likewise.
29195 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29196 (PWRITEV): Likewise.
29197 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29198 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29199
29200 2017-08-31 Florian Weimer <fweimer@redhat.com>
29201
29202 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29203 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29204 Remove internal_function.
29205 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29206 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29207 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29208 (__deallocate_stack, __libc_pthread_init)
29209 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29210 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29211 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29212 Likewise.
29213 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29214 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29215 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29216 Likewise.
29217 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29218 (__pthread_mutex_unlock_usercnt): Likewise.
29219
29220 2017-08-31 Florian Weimer <fweimer@redhat.com>
29221
29222 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29223 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29224 (fts_safe_changedir): Remove internal_function.
29225 * io/ftw.c (internal_function): Remove definition.
29226 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29227
29228 2017-08-31 Florian Weimer <fweimer@redhat.com>
29229
29230 * inet/deadline.c (__deadline_current_time)
29231 (__deadline_from_timeval, __deadline_to_ms): Remove
29232 internal_function.
29233 * inet/getnameinfo.c (nrl_domainname): Likewise.
29234 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29235 * inet/inet6_option.c (add_pad): Likewise.
29236 * inet/net-internal.h (__deadline_current_time)
29237 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29238 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29239 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29240 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29241
29242 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29243
29244 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29245 include <bits/nan.h>.
29246 * math/Makefile (headers): Remove bits/nan.h.
29247 * bits/nan.h: Remove.
29248 * sysdeps/ieee754/bits/nan.h: Likewise.
29249 * sysdeps/mips/bits/nan.h: Likewise.
29250
29251 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29252 not include <bits/inf.h>.
29253 * math/Makefile (headers): Remove bits/inf.h.
29254 * bits/inf.h: Remove.
29255 * sysdeps/ieee754/bits/inf.h: Likewise.
29256
29257 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29258 bits/huge_vall.h or bits/huge_val_flt128.h.
29259 (HUGE_VAL): Define directly here.
29260 [__USE_ISOC99] (HUGE_VALF): Likewise.
29261 [__USE_ISOC99] (HUGE_VALL): Likewise.
29262 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29263 (HUGE_VAL_F128): Likewise.
29264 * math/Makefile (headers): Remove bits/huge_val.h,
29265 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29266 * bits/huge_val.h: Remove.
29267 * bits/huge_val_flt128.h: Likewise.
29268 * bits/huge_valf.h: Likewise.
29269 * bits/huge_vall.h: Likewise.
29270 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29271 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29272 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29273 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29274 * sysdeps/sh/bits/huge_val.h: Likewise.
29275 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29276 * sysdeps/x86/bits/huge_vall.h: Likewise.
29277
29278 2017-08-31 Florian Weimer <fweimer@redhat.com>
29279
29280 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29281 internal_function.
29282 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29283 Likewise.
29284 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29285 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29286 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29287 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29288 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29289 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29290 * elf/dl-libc.c (dlerror_run): Likewise.
29291 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29292 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29293 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29294 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29295 Likewise.
29296 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29297 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29298 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29299 * elf/dl-profile.c (_dl_start_profile): Likewise.
29300 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29301 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29302 Likewise.
29303 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29304 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29305 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29306 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29307 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29308 (_dl_allocate_tls_storage): Likewise.
29309 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29310 (_dl_check_all_versions): Likewise.
29311 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29312 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29313 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29314 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29315 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29316 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29317 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29318 internal_function from __dl_start.
29319 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29320 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29321 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29322 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29323 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29324 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29325 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29326 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29327 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29328 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29329 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29330 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29331 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29332 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29333 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29334 Likewise.
29335 (struct rtld_global_ro): Remove internal_function from the
29336 _dl_lookup_symbol_x member.
29337 (_dl_symbol_value): Remove. No longer defined anywhere.
29338 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29339 internal_function.
29340 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29341 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29342 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29343 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29344 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29345 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29346 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29347 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29348 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29349 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29350 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29351 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29352
29353 2017-08-31 Florian Weimer <fweimer@redhat.com>
29354
29355 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29356 Remove internal_function.
29357 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29358 Likewise.
29359 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29360 Likewise.
29361
29362 2017-08-31 Florian Weimer <fweimer@redhat.com>
29363
29364 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29365 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29366 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29367
29368 2017-08-31 Florian Weimer <fweimer@redhat.com>
29369
29370 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29371 (__gai_enqueue_request): Remove internal_function.
29372 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29373 (__gai_remove_request, __gai_notify, __gai_notify_only)
29374 (__gai_sigqueue): Likewise.
29375 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29376 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29377 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29378 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29379 Likewise.
29380
29381 2017-08-31 Florian Weimer <fweimer@redhat.com>
29382
29383 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29384 * include/dirent.h (__opendirat, __getdents, __getdents64)
29385 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29386 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29387 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29388 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29389 Likewise.
29390 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29391
29392 2017-08-31 Florian Weimer <fweimer@redhat.com>
29393
29394 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29395 internal_function.
29396 (GETCWD_RETURN_TYPE): Likewise.
29397
29398 2017-08-31 Florian Weimer <fweimer@redhat.com>
29399
29400 * include/time.h (__tz_compute, __strptime_internal): Remove
29401 internal_function.
29402 * time/strptime_l.c (__strptime_internal): Likewise.
29403 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29404
29405 2017-08-31 Florian Weimer <fweimer@redhat.com>
29406
29407 * iconv/gconv.c (__gconv): Remove internal_function.
29408 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29409 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29410 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29411 (__gconv_release_cache): Likewise.
29412 * iconv/gconv_close.c (__gconv_close): Likewise.
29413 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29414 (read_conf_file, __gconv_get_path): Likewise.
29415 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29416 (__gconv_release_step, gen_steps, increment_counter)
29417 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29418 (__gconv_close_transform, free_modules_db): Likewise.
29419 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29420 Likewise.
29421 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29422 (__gconv_find_transform, __gconv_lookup_cache)
29423 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29424 (__gconv_close_transform, __gconv_release_cache)
29425 (__gconv_loaded_object, __gconv_release_shlib)
29426 (__gconv_compare_alias): Likewise.
29427 * iconv/gconv_open.c (__gconv_open): Likewise.
29428 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29429 * iconv/iconvconfig.c (add_module): Likewise.
29430 * intl/dcigettext.c (plural_lookup, guess_category_value)
29431 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29432 * intl/eval-plural.h (plural_eval): Likewise.
29433 * intl/finddomain.c (_nl_find_domain): Likewise.
29434 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29435 (_nl_load_domain, _nl_find_msg): Likewise.
29436 (internal_function): Remove definition.
29437 * intl/loadinfo.h (internal_function): Likewise.
29438 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29439 internal_function.
29440 * intl/localealias.c (internal_function): Remove definition.
29441 (read_alias_file): Remove internal_function.
29442 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29443 * intl/plural-exp.h (internal_function): Remove definition.
29444 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29445 internal_function.
29446 * intl/plural.c: Regenerate.
29447 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29448 * locale/coll-lookup.c (__collidx_table_lookup)
29449 (__collseq_table_lookup): Likewise.
29450 * locale/coll-lookup.h (__collidx_table_lookup)
29451 (__collseq_table_lookup): Likewise.
29452 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29453 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29454 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29455 (_nl_unload_locale): Likewise.
29456 * locale/localeinfo.h (struct __locale_data): Remove
29457 internal_function from cleanup member.
29458 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29459 (_nl_remove_locale, _nl_load_locale_from_archive)
29460 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29461 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29462 (_nl_cleanup_time): Remove internal_function.
29463 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29464 (_nl_parse_alt_digit): Likewise.
29465 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29466 (_nl_select_era_entry): Likewise.
29467 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29468 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29469 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29470 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29471 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29472
29473 2017-08-31 Florian Weimer <fweimer@redhat.com>
29474
29475 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29476 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29477 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29478 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29479 Likewise.
29480 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29481 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29482 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29483 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29484 Likewise.
29485 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29486
29487 2017-08-31 Florian Weimer <fweimer@redhat.com>
29488
29489 * misc/getttyent.c (skip, value): Remove internal_function.
29490 * misc/syslog.c (openlog_internal): Likewise.
29491 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29492
29493 2017-08-31 Florian Weimer <fweimer@redhat.com>
29494
29495 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29496 (__nss_rewrite_field): Remove internal_function.
29497 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29498 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29499 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29500 * nss/nsswitch.c (nss_parse_file, nss_getline)
29501 (nss_parse_service_list, nss_new_service): Likewise.
29502 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29503 * nss/valid_field.c (__nss_valid_field): Likewise.
29504 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29505
29506 2017-08-31 Florian Weimer <fweimer@redhat.com>
29507
29508 * malloc/arena.c (__malloc_fork_lock_parent)
29509 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29510 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29511 internal_function from defintions.
29512 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29513 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29514 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29515 internal_function from declarations.
29516 * malloc/malloc.c (internal_function): Do not define.
29517 (mem2mem_check): Remove internal_function from declaration.
29518 (munmap_chunk, mremap_chunk): Remove internal_function.
29519 * malloc/mtrace.c (tr_where): Likewise.
29520
29521 2017-08-31 Florian Weimer <fweimer@redhat.com>
29522
29523 * include/rpc/pmap_clnt.h (__get_socket): Remove
29524 internal_function.
29525 * sunrpc/auth_des.c (synchronize): Likewise.
29526 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29527 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29528 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29529 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29530 (key_call): Likewise.
29531 * sunrpc/pm_getport.c (__get_socket): Likewise.
29532 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29533 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29534 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29535 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29536 (invalidate): Likewise.
29537 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29538 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29539 (set_input_fragment, get_input_bytes): Likewise.
29540
29541 2017-08-31 Florian Weimer <fweimer@redhat.com>
29542
29543 * malloc/malloc.c (_int_free): Remove locked variable and related
29544 asserts.
29545
29546 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29547
29548 [BZ #22051]
29549 * Makerules (build-module-helper-objlist): Filter out
29550 $(elf-objpfx)sofini.os.
29551 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29552 needed.
29553
29554 2017-08-31 Florian Weimer <fweimer@redhat.com>
29555
29556 * libio/fcloseall.c: Assume weak_alias is defined.
29557 * libio/feof.c: Likewise.
29558 * libio/fileno.c: Likewise.
29559 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29560 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29561 definitions.
29562 (_IO_file_open): Call __open directly.
29563 (_IO_new_file_sync): Assume ESPIPE is defined.
29564 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29565 (_IO_new_file_write): Call __write directly.
29566 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29567 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29568 * libio/genops.c: Assume _LIBC is defined.
29569 (save_for_backup): Remove internal_function.
29570 * libio/getc.c: Assume weak_alias is defined.
29571 * libio/getwc.c: Likewise.
29572 * libio/iofclose.c: Assume _LIBC is defined.
29573 * libio/iofdopen.c: Likewise.
29574 (_IO_fcntl): Remove macro definition.
29575 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29576 Call __fcntl directly.
29577 * libio/iofflush.c: Assume weak_alias is defined.
29578 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29579 defined.
29580 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29581 * libio/iofgets.c: Likewise.
29582 * libio/iofopen.c: Assume _LIBC is defined.
29583 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29584 * libio/iofputs.c: Assume weak_alias is defined.
29585 * libio/iofread.c: Likewise.
29586 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29587 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29588 * libio/ioftell.c: Assume weak_alias is defined.
29589 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29590 * libio/iofwide.c: Assume _LIBC is defined.
29591 (_IO_fwide): Drop SHARED conditional because it is implied by
29592 SHLIB_COMPAT.
29593 * libio/iofwrite.c: Assume weak_alias is defined.
29594 * libio/iogetdelim.c: Likewise.
29595 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29596 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29597 (_IO_getwline): Call __wmemcpy directly.
29598 * libio/iopopen.c: Assume _LIBC is defined.
29599 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29600 (_IO_close): Remove macro definitions.
29601 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29602 _exit directly.
29603 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29604 directly.
29605 * libio/ioputs.c: Assume weak_alias is defined.
29606 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29607 * libio/iosetbuffer.c: Assume weak_alias is defined.
29608 * libio/iosetvbuf.c: Likewise.
29609 * libio/ioungetc.c: Likewise.
29610 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29611 libc_hidden_def, libc_hidden_weak, NULL are defined.
29612 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29613 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29614 defined.
29615 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29616 definitions.
29617 (_IO_old_file_init_internal): Drop SHARED conditional because it
29618 is implied by SHLIB_COMPAT.
29619 (_IO_old_file_fopen): Call __open directly.
29620 (_IO_old_file_sync): Assume ESPIPE is defined.
29621 (_IO_old_file_write): Call __write directly.
29622 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29623 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29624 Call __fcntl directly.
29625 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29626 (_IO_old_fgetpos): Assume EIO is defined.
29627 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29628 (_IO_old_fgetpos64): Assume EIO is defined.
29629 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29630 (_IO_old_fsetpos): Assume EIO is defined.
29631 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29632 (_IO_old_fsetpos64): Assume EIO is defined.
29633 * libio/oldiopopen.c: Assume _LIBC is defined.
29634 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29635 (_IO_close): Remove macro definitions.
29636 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29637 directly.
29638 (_IO_old_proc_close): Call __close, __waitpid directly.
29639 * libio/put.c: Assume weak_alias is defined.
29640 * libio/stdfiles.c: Assume _LIBC is defined.
29641 * libio/stdio.c: Likewise.
29642 * libio/wfileops.c: Likewise.
29643 (_IO_wfile_sync): Assume ESPIPE is defined.
29644 * libio/wgenops.c: Assume _LIBC is defined.
29645 (save_for_wbackup): Remove internal_function.
29646
29647 2017-08-31 Florian Weimer <fweimer@redhat.com>
29648
29649 * malloc/malloc.c (top_check): Change return type to void. Remove
29650 internal_function.
29651 * malloc/hooks.c (top_check): Likewise.
29652 (malloc_check, realloc_check, memalign_check): Adjust.
29653
29654 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29655
29656 [BZ #21457]
29657 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29658 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29659 sigcontext and namespace requirements.
29660 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29661 * sysdeps/m68k/sys/ucontext.h: Likewise.
29662 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29663 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29664 <bits/sigcontext.h>.
29665 (__ctx): Define earlier.
29666 (mcontext_t): Define structure contents rather than using struct
29667 sigcontext.
29668 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29669 __glibc_reserved1 instead of __reserved.
29670 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29671 <bits/sigcontext.h>.
29672 (__ctx): Define earlier.
29673 (mcontext_t): Define structure contents rather than using struct
29674 sigcontext.
29675 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29676 mcontext_t instead of struct sigcontext.
29677 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29678 <bits/sigcontext.h>.
29679 (__ctx): Define earlier.
29680 (mcontext_t): Define structure contents rather than using struct
29681 sigcontext.
29682 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29683 <bits/sigcontext.h>.
29684 (__ctx): Define earlier.
29685 (mcontext_t): Define structure contents rather than using struct
29686 sigcontext.
29687 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29688 mcontext_t instead of struct sigcontext.
29689 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29690 mcontext_t instead of struct sigcontext.
29691 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29692 <bits/sigcontext.h>.
29693 (__ctx): New macro.
29694 (struct __ia64_fpreg_mcontext): New type.
29695 (mcontext_t): Define structure contents rather than using struct
29696 sigcontext.
29697 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29698 (uc_sigmask): Define using __ctx.
29699 (uc_stack): Likewise.
29700 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29701 <bits/sigcontext.h>.
29702 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29703 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29704 <bits/sigcontext.h>.
29705 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29706 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29707 <bits/sigcontext.h>.
29708 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29709 <bits/sigcontext.h>.
29710 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29711 <bits/sigcontext.h>.
29712 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29713 <bits/sigcontext.h>.
29714 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29715 <bits/sigcontext.h>.
29716 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29717 <bits/sigcontext.h>.
29718 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29719 <bits/sigcontext.h>.
29720 (__ctx): Define earlier.
29721 (mcontext_t): Define structure contents rather than using struct
29722 sigcontext.
29723 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29724 <bits/sigcontext.h>. Include <bits/types.h>.
29725 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29726 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29727 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29728 (test-xfail-UNIX98/signal.h/conform): Likewise.
29729 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29730 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29731 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29732 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29733 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29734 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29735 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29736 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29737 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29738
29739 2017-08-30 Florian Weimer <fweimer@redhat.com>
29740
29741 * malloc/dynarray_emplace_enlarge.c
29742 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29743 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29744 * malloc/tst-dynarray.c (test_long_overflow): New function.
29745 (do_test): Call it.
29746
29747 2017-08-30 Florian Weimer <fweimer@redhat.com>
29748
29749 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29750 (set_arena_corrupt): Remove definitions.
29751 (mtrim): Do not check for corrupt arena.
29752 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29753 Likewise.
29754
29755 2017-08-30 Florian Weimer <fweimer@redhat.com>
29756
29757 [BZ #21754]
29758 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29759 check_action.
29760 (ptmalloc_init): Do not set or use check_action.
29761 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29762 call to malloc_printerr. Remove return statement.
29763 (free_check): Likewise. Remove arena unlock.
29764 (top_check): Update comment. Adjust call to malloc_printerr.
29765 Remove heap repair code.
29766 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29767 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29768 (sysmalloc): Adjust call to malloc_printerr.
29769 (munmap_chunk, __libc_realloc): Likewise. Remove return
29770 statement.
29771 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29772 Remove errout label and corresponding gotos.
29773 (_int_free): Likewise. Remove arena unlock.
29774 (do_set_mallopt_check): Do not set check_action.
29775 (malloc_printerr): Adjust parameter list. Do not mark arena as
29776 corrupt.
29777 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29778 comment.
29779 * manual/probes.texi (Memory Allocation Probes): Remove
29780 memory_mallopt_check_action.
29781
29782 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29783
29784 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29785 Use pointer to uint64_t instead of long int for sp.
29786
29787 2017-08-30 Florian Weimer <fweimer@redhat.com>
29788
29789 [BZ #21754]
29790 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29791 without printing a backtrace. Do not leak any information in the
29792 error message.
29793 * manual/memory.texi (Heap Consistency Checking): Update.
29794 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29795
29796 2017-08-30 Florian Weimer <fweimer@redhat.com>
29797
29798 Do not scale NPTL tests with available number of CPUs.
29799 * nptl/tst-cond16.c (count): Set to constant value of 8.
29800 * nptl/tst-cond18.c (count): Likewise.
29801
29802 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29803
29804 [BZ #22035]
29805 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29806 Define to take a second argument that is a macro that
29807 concatentates a suffix, not the suffix itself.
29808 (__CONCAT_d): New macro.
29809 (__CONCAT_f): Likewise.
29810 (__CONCAT_l): Likewise.
29811
29812 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29813
29814 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29815 by child.
29816
29817 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29818 Aurelien Jarno <aurelien@aurel32.net>
29819 Maciej W. Rozycki <macro@imgtec.com>
29820
29821 [BZ #21956]
29822 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29823 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29824 `mips16-syscall6' and `mips16-syscall7'.
29825 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29826 (CFLAGS-mips16-syscall7.c): Remove.
29827 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29828 Remove `__mips16_syscall5', `__mips16_syscall6' and
29829 `__mips16_syscall7'.
29830 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29831 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29832 `__mips_syscall_return'.
29833 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29834 (__mips16_syscall1): Likewise.
29835 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29836 (__mips16_syscall2): Likewise.
29837 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29838 (__mips16_syscall3): Likewise.
29839 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29840 (__mips16_syscall4): Likewise.
29841 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29842 Remove.
29843 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29844 Remove.
29845 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29846 Remove.
29847 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29848 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29849 `__mips16_syscall5'. Remove prototype.
29850 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29851 `__mips16_syscall6'. Remove prototype.
29852 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29853 `__mips16_syscall7'. Remove prototype.
29854 (__nomips16, __mips16_syscall_return): Move to...
29855 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29856 (__nomips16, __mips_syscall_return): ... here.
29857 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29858 `__mips16_syscall_return' to `__mips_syscall_return'.
29859 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29860 `internal_syscall##nr'.
29861 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29862 `internal_syscall##nr'.
29863 (FORCE_FRAME_POINTER): Remove.
29864 (__mips_syscall5): New prototype.
29865 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29866 (__mips_syscall6): New prototype.
29867 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29868 (__mips_syscall7): New prototype.
29869 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29870 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29871 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29872 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29873 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29874 (sysdep_routines): Add libc-do-syscall.
29875 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29876 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29877
29878 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29879
29880 [BZ #21672]
29881 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29882 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29883 (advise_stack_range): New function.
29884 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29885 stack non required to advise_stack_range at allocatestack.c
29886
29887 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29888
29889 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29890
29891 2017-08-29 Florian Weimer <fweimer@redhat.com>
29892
29893 [BZ #22026]
29894 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29895 __end_fct. Mangle __end_fct after setting it to NULL.
29896 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29897 (modules-names, modules-names-tests): Add
29898 tst-gconv-init-failure-mod.
29899 (gconv-modules): New target.
29900 (tst-gconv-init-failure-mod.so): Link against libsupport.
29901 (tst-gconv-init-failure): Depend on gconv-modules,
29902 tst-gconv-init-failure-mod.so.
29903 * iconv/tst-gconv-init-failure-mod.c: New file.
29904 * iconv/tst-gconv-init-failure.c: Likewise.
29905 * iconv/test-gconv-modules: Likewise.
29906
29907 2017-08-29 Florian Weimer <fweimer@redhat.com>
29908
29909 [BZ #22025]
29910 * iconv/gconv_db.c (free_derivation): Remove redundant
29911 parentheses.
29912 (gen_steps): Unconditionally mangle __btowc_fct after
29913 initialization.
29914 (increment_counter): Likewise. Do not call init_fct for internal
29915 modules.
29916
29917 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29918
29919 [BZ #22028]
29920 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29921 (_MSUF_): Remove macro.
29922 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29923 Likewise.
29924 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29925 (__REDIRFROM_X): New macro.
29926 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29927 Likewise.
29928 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29929 (__REDIRTO_X): Likewise.
29930 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29931 arguments.
29932 (__MATH_REDIRCALL_2): Likewise.
29933 (__MATH_REDIRCALL_INTERNAL): Likewise.
29934 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29935 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29936 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29937 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29938 * math/test-finite-macros.c: New file.
29939 * math/Makefile (tests): Add test-finite-macros.
29940 (CFLAGS-test-finite-macros.c): New variable.
29941
29942 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29943 Jeff Law <law@redhat.com>
29944
29945 [BZ #22025]
29946 Mangle NULL pointers in iconv/gconv.
29947 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29948 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29949 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29950 is non-NULL before demangling the end_fct. Check for NULL
29951 end_fct after demangling.
29952 (__gconv_release_step): Demangle the end_fct before checking
29953 it for NULL. Remove assert on __shlibc_handle != NULL.
29954 (gen_steps): Don't check btowc_fct for NULL before mangling.
29955 Demangle init_fct before checking for NULL.
29956 (increment_counter): Likewise.
29957 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29958 end_fct for NULL before mangling.
29959 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29960 for NULL.
29961
29962 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29963
29964 [BZ #21971]
29965 * locale/iso-639.def: add Morisyen.
29966
29967 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29968
29969 [BZ #21930]
29970 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29971 (iszero): New C++ implementation that does not use
29972 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29973 signaling nans are enabled, since __builtin_types_compatible_p
29974 is a C-only feature.
29975 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29976 defined, include ieee754_float128.h for access to the union and
29977 member ieee854_float128.ieee.
29978 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29979 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29980 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29981 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29982 options of test-math-zero on powerpc64le.
29983
29984 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29985
29986 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29987 Change double to float.
29988
29989 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29990
29991 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29992 unconditional.
29993 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29994 conditional code; define contents only for [LIBM_SVID_COMPAT].
29995
29996 2017-08-28 Florian Weimer <fweimer@redhat.com>
29997
29998 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29999 (abi-lp64_be-options): Remove.
30000 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30001 (abi-hard-options): Likewise.
30002 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30003 (abi-o32_hard-options, abi-o32_soft_2008-options)
30004 (abi-o32_hard_2008-options, abi-n32_soft-options)
30005 (abi-n32_hard-options, abi-n32_soft_2008-options)
30006 (abi-n32_hard_2008-options, abi-n64_soft-options)
30007 (abi-n64_hard-options, abi-n64_soft_2008-options)
30008 (abi-n64_hard_2008-options): Likewise.
30009 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30010 (abi-64-v1-options, abi-64-v2-options): Likewise.
30011 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30012 (abi-64-options): Likewise.
30013 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30014 (abi-64-options): Likewise.
30015 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30016 (abi-64-options): Likewise.
30017 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30018 (abi-64-options, abi-x32-options): Likewise.
30019
30020 2017-08-28 Florian Weimer <fweimer@redhat.com>
30021
30022 Store supported list of SYS_* system calls in the source tree.
30023 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30024 (bits/syscall.h): Generate from list file.
30025 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30026 [$(subdir) = misc] (tests): Add tst-syscall-list.
30027 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30028 [$(subdir) = misc] (tst-syscall-list-macros.list)
30029 [$(subdir) = misc] (tst-syscall-list-nr.list)
30030 (tst-syscall-list-sys.list): Helper targets for new
30031 tst-syscall-list test.
30032 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30033 tst-syscall-list.sh.
30034 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30035 target. Do not include bits/syscall.d.
30036 [$(subdir) = misc] (generated): Do not update.
30037 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30038 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30039 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30040 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30041
30042 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30043
30044 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30045 (tst-cxa_atexit, tst-on_exit): Likewise.
30046 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30047 tst-cxa_atexit, and tst-on_exit.
30048 * stdlib/tst-atexit-common.c: New file.
30049 * stdlib/tst-atexit.c: New file.
30050 * stdlib/tst-at_quick_exit.c: New file.
30051 * stdlib/tst-cxa_atexit.c: New file.
30052 * stdlib/tst-on_exit.c: New file.
30053
30054 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30055
30056 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30057 * mach/stack_chk_fail_local.c: New file.
30058 * hurd/stack_chk_fail_local.c: New file.
30059 * mach/Machrules ($(interface-library)-routines): Add
30060 stack_chk_fail_local.
30061 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30062 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30063 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30064 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30065 * hurd/Makefile (CFLAGS-hurdstartup.o,
30066 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30067
30068 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30069
30070 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30071 (index_cpu_*, index_arch_*): Removed.
30072
30073 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30074
30075 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30076 Use uint64_t instead of unsigned long.
30077
30078 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30079
30080 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30081 [__HAVE_DISTINCT_FLOAT128].
30082
30083 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30084 of <bits/math-finite.h>.
30085 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30086 inclusion of <bits/math-finite.h>.
30087 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30088 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30089 __NO_LONG_DOUBLE_MATH].
30090 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30091 (__MATH_REDIRCALL_2): Likewise.
30092 (__MATH_REDIRCALL_INTERNAL): Likewise.
30093 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30094 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30095 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30096
30097 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30098 Remove file.
30099 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30100 Likewise.
30101 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30102 Likewise.
30103 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30104 Likewise.
30105 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30106 Likewise.
30107 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30108 Likewise.
30109 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30110 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30111 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30112 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30113 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30114 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30115 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30116 w_sqrtf_compat-ppc32.
30117
30118 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30119
30120 * math/math.h [defined __cplusplus] (issignaling): In the long
30121 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30122 is not defined. Call __issignaling, otherwise.
30123
30124 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30125
30126 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30127 syscall definitions and replace __builtin_expect with __glibc_likely.
30128 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30129 syscall.
30130 (SYSCALL_CANCELLABLE): Removedefinition
30131 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30132 definition.
30133 (PSEUDO_END): Likewise.
30134 [IS_IN (libpthread)] (CENABLE): Likewise.
30135 [IS_IN (libpthread)] (CDISABLE): Likewise.
30136 [IS_IN (libc)] (CENABLE): Likewise.
30137 [IS_IN (libc)] (CENABLE): Likewise.
30138 [IS_IN (librt)] (CDISABLE): Likewise.
30139 [IS_IN (librt)] (CDISABLE): Likewise.
30140 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30141 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30142 definition.
30143 (PSEUDO_END): Likewise.
30144 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30145 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30146 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30147 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30148 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30149 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30150 (CENABLE): Likewise.
30151 (CDISABLE): Likewise.
30152 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30153 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30154 defintion.
30155 (PSEUDO_END): Likewise.
30156 [IS_IN (libpthread)] (CENABLE): Likewise.
30157 [IS_IN (libpthread)] (CDISABLE): Likewise.
30158 [IS_IN (libc)] (CENABLE): Likewise.
30159 [IS_IN (libc)] (CENABLE): Likewise.
30160 [IS_IN (librt)] (CDISABLE): Likewise.
30161 [IS_IN (librt)] (CDISABLE): Likewise.
30162 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30163 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30164 definition.
30165 (PSEUDO_END): Likewise.
30166 [IS_IN (libpthread)] (CENABLE): Likewise.
30167 [IS_IN (libpthread)] (CDISABLE): Likewise.
30168 [IS_IN (libc)] (CENABLE): Likewise.
30169 [IS_IN (libc)] (CENABLE): Likewise.
30170 [IS_IN (librt)] (CDISABLE): Likewise.
30171 [IS_IN (librt)] (CDISABLE): Likewise.
30172 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30173 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30174 definition.
30175 (PSEUDO_END): Likewise.
30176 [IS_IN (libpthread)] (CENABLE): Likewise.
30177 [IS_IN (libpthread)] (CDISABLE): Likewise.
30178 [IS_IN (libc)] (CENABLE): Likewise.
30179 [IS_IN (libc)] (CENABLE): Likewise.
30180 [IS_IN (librt)] (CDISABLE): Likewise.
30181 [IS_IN (librt)] (CDISABLE): Likewise.
30182 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30183 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30184 definition.
30185 (PSEUDO_END): Likewise.
30186 [IS_IN (libpthread)] (CENABLE): Likewise.
30187 [IS_IN (libpthread)] (CDISABLE): Likewise.
30188 [IS_IN (libc)] (CENABLE): Likewise.
30189 [IS_IN (libc)] (CENABLE): Likewise.
30190 [IS_IN (librt)] (CDISABLE): Likewise.
30191 [IS_IN (librt)] (CDISABLE): Likewise.
30192 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30193 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30194 definition.
30195 (PSEUDO_END): Likewise.
30196 [IS_IN (libpthread)] (CENABLE): Likewise.
30197 [IS_IN (libpthread)] (CDISABLE): Likewise.
30198 [IS_IN (libc)] (CENABLE): Likewise.
30199 [IS_IN (libc)] (CENABLE): Likewise.
30200 [IS_IN (librt)] (CDISABLE): Likewise.
30201 [IS_IN (librt)] (CDISABLE): Likewise.
30202 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30203 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30204 definition.
30205 (PSEUDO_END): Likewise.
30206 [IS_IN (libpthread)] (CENABLE): Likewise.
30207 [IS_IN (libpthread)] (CDISABLE): Likewise.
30208 [IS_IN (libc)] (CENABLE): Likewise.
30209 [IS_IN (libc)] (CENABLE): Likewise.
30210 [IS_IN (librt)] (CDISABLE): Likewise.
30211 [IS_IN (librt)] (CDISABLE): Likewise.
30212 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30213 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30214 Remove definition.
30215 (PSEUDO_END): Likewise.
30216 [IS_IN (libpthread)] (CENABLE): Likewise.
30217 [IS_IN (libpthread)] (CDISABLE): Likewise.
30218 [IS_IN (libc)] (CENABLE): Likewise.
30219 [IS_IN (libc)] (CENABLE): Likewise.
30220 [IS_IN (librt)] (CDISABLE): Likewise.
30221 [IS_IN (librt)] (CDISABLE): Likewise.
30222 (SINGLE_THREAD_P): Likewise.
30223 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30224 definition.
30225 (PSEUDO_END): Likewise.
30226 [IS_IN (libpthread)] (CENABLE): Likewise.
30227 [IS_IN (libpthread)] (CDISABLE): Likewise.
30228 [IS_IN (libc)] (CENABLE): Likewise.
30229 [IS_IN (libc)] (CENABLE): Likewise.
30230 [IS_IN (librt)] (CDISABLE): Likewise.
30231 [IS_IN (librt)] (CDISABLE): Likewise.
30232 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30233 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30234 definition.
30235 (PSEUDO_END): Likewise.
30236 [IS_IN (libpthread)] (CENABLE): Likewise.
30237 [IS_IN (libpthread)] (CDISABLE): Likewise.
30238 [IS_IN (libc)] (CENABLE): Likewise.
30239 [IS_IN (libc)] (CENABLE): Likewise.
30240 [IS_IN (librt)] (CDISABLE): Likewise.
30241 [IS_IN (librt)] (CDISABLE): Likewise.
30242 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30243 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30244 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30245 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30246 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30247 definition.
30248 (PSEUDO_END): Likewise.
30249 [IS_IN (libpthread)] (CENABLE): Likewise.
30250 [IS_IN (libpthread)] (CDISABLE): Likewise.
30251 [IS_IN (libc)] (CENABLE): Likewise.
30252 [IS_IN (libc)] (CENABLE): Likewise.
30253 [IS_IN (librt)] (CDISABLE): Likewise.
30254 [IS_IN (librt)] (CDISABLE): Likewise.
30255 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30256 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30257 definition.
30258 (PSEUDO_END): Likewise.
30259 [IS_IN (libpthread)] (CENABLE): Likewise.
30260 [IS_IN (libpthread)] (CDISABLE): Likewise.
30261 [IS_IN (libc)] (CENABLE): Likewise.
30262 [IS_IN (libc)] (CENABLE): Likewise.
30263 [IS_IN (librt)] (CDISABLE): Likewise.
30264 [IS_IN (librt)] (CDISABLE): Likewise.
30265 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30266 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30267 definition.
30268 (PSEUDO_END): Likewise.
30269 [IS_IN (libpthread)] (CENABLE): Likewise.
30270 [IS_IN (libpthread)] (CDISABLE): Likewise.
30271 [IS_IN (libc)] (CENABLE): Likewise.
30272 [IS_IN (libc)] (CENABLE): Likewise.
30273 [IS_IN (librt)] (CDISABLE): Likewise.
30274 [IS_IN (librt)] (CDISABLE): Likewise.
30275 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30276 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30277 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30278 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30279 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30280 definition.
30281 (PSEUDO_END): Likewise.
30282 [IS_IN (libpthread)] (CENABLE): Likewise.
30283 [IS_IN (libpthread)] (CDISABLE): Likewise.
30284 [IS_IN (libc)] (CENABLE): Likewise.
30285 [IS_IN (libc)] (CENABLE): Likewise.
30286 [IS_IN (librt)] (CDISABLE): Likewise.
30287 [IS_IN (librt)] (CDISABLE): Likewise.
30288 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30289 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30290 definition.
30291 (PSEUDO_END): Likewise.
30292 [IS_IN (libpthread)] (CENABLE): Likewise.
30293 [IS_IN (libpthread)] (CDISABLE): Likewise.
30294 [IS_IN (libc)] (CENABLE): Likewise.
30295 [IS_IN (libc)] (CENABLE): Likewise.
30296 [IS_IN (librt)] (CDISABLE): Likewise.
30297 [IS_IN (librt)] (CDISABLE): Likewise.
30298 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30299
30300 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30301
30302 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30303
30304 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30305
30306 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30307
30308 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30309
30310 [BZ #21982]
30311 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30312 middle and outer with size_t instead of int. Repleace %d and
30313 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30314 "MAX (outer, nchars - 64)" to support unsigned outer and
30315 nchars. Also exit loop when outer == 0.
30316
30317 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30318
30319 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30320 * include/signal.h (__sigsuspend_nocancel): Likewise.
30321 * include/time.h (__nanosleep_nocancel): Likewise.
30322 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30323 * login/utmp_file.c: Include non cancellable syscall header.
30324 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30325 prototype.
30326
30327 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30328
30329 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30330 .byte sequences with AVX512F instructions.
30331 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30332 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30333 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30334 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30335 Likewise.
30336 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30337 Likewise.
30338
30339 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30340 Steve Ellcey <sellcey@cavium.com>
30341
30342 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30343 Use PTR_REG macro in cmp instruction.
30344
30345 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30346
30347 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30348 Change the return type of the ifunc resolver to match the return
30349 type of the target function.
30350
30351 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30352
30353 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30354 (preadv64): Likewise.
30355 (pwrite64(: Likewise.
30356 (pwritev64): Likewise.
30357
30358 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30359 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30360 (LOAD_ARGS_0): Likewise.
30361 (LOAD_ARGS_1): Likewise.
30362 (LOAD_ARGS_2): Likewise.
30363 (LOAD_ARGS_3): Likewise.
30364 (LOAD_ARGS_4): Likewise.
30365 (LOAD_ARGS_5): Likewise.
30366 (LOAD_ARGS_6): Likewise.
30367 (LOAD_REGS_0): Likewise.
30368 (LOAD_REGS_1): Likewise.
30369 (LOAD_REGS_2): Likewise.
30370 (LOAD_REGS_3): Likewise.
30371 (LOAD_REGS_4): Likewise.
30372 (LOAD_REGS_5): Likewise.
30373 (LOAD_REGS_6): Likewise.
30374 (ASM_ARGS_0): Likewise.
30375 (ASM_ARGS_1): Likewise.
30376 (ASM_ARGS_2): Likewise.
30377 (ASM_ARGS_3): Likewise.
30378 (ASM_ARGS_4): Likewise.
30379 (ASM_ARGS_5): Likewise.
30380 (ASM_ARGS_6): Likewise.
30381 (LOAD_ARGS_TYPES_1): Likewise.
30382 (LOAD_ARGS_TYPES_2): Likewise.
30383 (LOAD_ARGS_TYPES_3): Likewise.
30384 (LOAD_ARGS_TYPES_4): Likewise.
30385 (LOAD_ARGS_TYPES_5): Likewise.
30386 (LOAD_ARGS_TYPES_6): Likewise.
30387 (LOAD_REGS_TYPES_1): Likewise.
30388 (LOAD_REGS_TYPES_2): Likewise.
30389 (LOAD_REGS_TYPES_3): Likewise.
30390 (LOAD_REGS_TYPES_4): Likewise.
30391 (LOAD_REGS_TYPES_5): Likewise.
30392 (LOAD_REGS_TYPES_6): Likewise.
30393 (TYPEFY): New define.
30394 (ARGIFY): Likewise.
30395 (internal_syscall0): Likewise.
30396 (internal_syscall1): Likewise.
30397 (internal_syscall2): Likewise.
30398 (internal_syscall3): Likewise.
30399 (internal_syscall4): Likewise.
30400 (internal_syscall5): Likewise.
30401 (internal_syscall6): Likewise.
30402 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30403 (INTERNAL_SYSCALL_NCS): Remove define.
30404 (internal_syscall1): Add define.
30405
30406 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30407
30408 * math/w_remainder_compat.c: Remove duplicate inclusion of
30409 math-svid-compat.h.
30410 * math/w_remainderf_compat.c: Likewise.
30411 * math/w_remainderl_compat.c: Likewise.
30412
30413 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30414
30415 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30416
30417 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30418
30419 [BZ #21684]
30420 * math/tgmath.h (__floating_type): Simplify definitions.
30421 (__real_integer_type): New macro.
30422 (__complex_integer_type): Likewise.
30423 (__expr_is_real): Likewise.
30424 (__tgmath_real_type_sub): Update comment to describe handling of
30425 complex types.
30426 (__tgmath_complex_type_sub): New macro.
30427 (__tgmath_complex_type): Likewise.
30428 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30429 (__TGMATH_CF128): Use __expr_is_real.
30430 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30431 __expr_is_real.
30432 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30433 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30434 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30435 integer types.
30436
30437 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30438
30439 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30440 macro.
30441 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30442 alias.
30443 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30444 Likewise.
30445
30446 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30447 nanosleep_not_cancel with __nanosleep_nocancel.
30448 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30449 (__nanosleep_nocancel): New macro.
30450 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30451 function.
30452 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30453 macro.
30454 (__nanosleep_nocancel): New prototype.
30455
30456 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30457 pause_not_cancel with __pause_nocancel.
30458 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30459 (__pause_nocancel): New macro.
30460 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30461 macro.
30462 (__pause_nocancel): New prototype.
30463 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30464
30465 2017-08-22 Martin Sebor <msebor@redhat.com>
30466
30467 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30468 to return a pointer to the same type as the target function.
30469
30470 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30471
30472 [BZ #18822]
30473 [BZ #21986]
30474 * include/printf.h (__printf_fphex): Add attribute_hidden.
30475 (__guess_grouping): New prototype.
30476 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30477 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30478 libc_hidden_proto and libc_hidden_def.
30479 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30480 (__vstrfmon_l): Remove the third argument passed to
30481 __guess_grouping.
30482
30483 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30484
30485 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30486 definition for issignaling that does not rely on __MATH_TG,
30487 since __MATH_TG uses __builtin_types_compatible_p, which is only
30488 available in C mode.
30489 (CFLAGS-test-math-issignaling.cc): New variable.
30490 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30491 * math/test-math-issignaling.cc: New test for C++ implementation
30492 of type-generic issignaling.
30493 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30494 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30495 options of test-math-issignaling on powerpc64le.
30496
30497 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30498
30499 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30500 building libc.a.
30501 (hidden_proto): Likewise.
30502 (hidden_tls_proto): Likewise.
30503 (__hidden_proto): Likewise.
30504
30505 2017-08-22 Florian Weimer <fweimer@redhat.com>
30506
30507 math: Statically link tests of internal functionality.
30508 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30509 atest-exp2.
30510 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30511 (gmp-objs): Remove assignment.
30512 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30513
30514 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30515
30516 [BZ #21987]
30517 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30518 and copy to ...
30519 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30520 ... here.
30521 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30522 ... and here.
30523
30524 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30525 variable definitions above inclusion of ../Rules.
30526
30527 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30528
30529 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30530 case calling __builtin_unreachable.
30531
30532 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30533
30534 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30535 __waitpid_nocancel.
30536 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30537 (__waitpid_nocancel): New macro.
30538 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30539 macro.
30540 (__waitpid_nocancel): Replace macro with a function.
30541 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30542 function.
30543
30544 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30545 __fcntl_nocancel.
30546 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30547 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30548
30549 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30550 __writev_nocancel_nostatus.
30551 (write_call_graph): Likewise.
30552 (write_bb_counts): Likewise.
30553 * resolv/herror.c (herror): Likewise.
30554 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30555 macro.
30556 (__writev_nocancel_nostatus): New macro.
30557 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30558 Remove macro.
30559 (__writev_nocancel_nostatus): New function.
30560
30561 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30562
30563 Revert:
30564 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30565
30566 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30567 building libc.a.
30568 (hidden_proto): Likewise.
30569 (hidden_tls_proto): Likewise.
30570 (__hidden_proto): Likewise.
30571
30572 [BZ #21973]
30573 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30574 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30576 Likewise.
30577 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30578 Likewise.
30579 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30580 Likewise.
30581 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30582 Likewise.
30583 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30584 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30585 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30586 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30587 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30588 GLIBC_2.0 sqrtl symbol.
30589
30590 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30591 [__USE_MISC] (_LIB_VERSION): Likewise.
30592 [__USE_MISC] (struct exception): Likewise.
30593 [__USE_MISC] (matherr): Likewise.
30594 [__USE_MISC] (DOMAIN): Likewise.
30595 [__USE_MISC] (SING): Likewise.
30596 [__USE_MISC] (OVERFLOW): Likewise.
30597 [__USE_MISC] (UNDERFLOW): Likewise.
30598 [__USE_MISC] (TLOSS): Likewise.
30599 [__USE_MISC] (PLOSS): Likewise.
30600 [__USE_MISC] (HUGE): Likewise.
30601 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30602 * math/math-svid-compat.h: New file.
30603 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30604 and matherrl.
30605 * include/math.h [!_ISOMAC] (__matherr): Remove.
30606 * manual/arith.texi (FP Exceptions): Do not document matherr.
30607 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30608 (tests-internal): New variable.
30609 (install-lib): Do not add libieee.a.
30610 (non-lib.a): Likewise.
30611 (extra-objs): Do not add libieee.a and ieee-math.o.
30612 (CPPFLAGS-s_lib_version.c): Remove variable.
30613 ($(objpfx)libieee.a): Remove rule.
30614 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30615 * math/ieee-math.c: Remove.
30616 * math/libm-test-support.c (matherr): Remove.
30617 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30618 and license notices. Include <math-svid-compat.h> and
30619 <shlib-compat.h>.
30620 (matherr): Undefine as macro. Use compat_symbol_reference.
30621 (_LIB_VERSION): Likewise.
30622 * math/test-matherr-2.c: New file.
30623 * math/test-matherr-3.c: Likewise.
30624 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30625 declaration.
30626 (__kernel_standard_f): Likewise.
30627 (__kernel_standard_l): Likewise.
30628 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30629 <math_private.h>. Include <math-svid-compat.h>.
30630 (_LIB_VERSION): Undefine as macro.
30631 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30632 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30633 [LIBM_SVID_COMPAT], use compat_symbol.
30634 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30635 <math_private.h>. Include <math-svid-compat.h>.
30636 (matherr): Undefine as macro.
30637 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30638 compat_symbol.
30639 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30640 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30641 compat_symbol_reference.
30642 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30643 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30644 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30645 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30646 (MATHERR_D): Remove declaration.
30647 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30648 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30649 [LIBM_BUILD] (pmatherrf): Likewise.
30650 [LIBM_BUILD] (pmatherr): Likewise.
30651 [LIBM_BUILD] (pmatherrl): Likewise.
30652 (DOMAIN): Likewise.
30653 (SING): Likewise.
30654 (OVERFLOW): Likewise.
30655 (UNDERFLOW): Likewise.
30656 (TLOSS): Likewise.
30657 (PLOSS): Likewise.
30658 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30659 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30660 compat_symbol.
30661 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30662 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30663 compat_symbol.
30664 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30665 * math/w_acos_compat.c: Likewise.
30666 * math/w_acosf_compat.c: Likewise.
30667 * math/w_acosh_compat.c: Likewise.
30668 * math/w_acoshf_compat.c: Likewise.
30669 * math/w_acoshl_compat.c: Likewise.
30670 * math/w_acosl_compat.c: Likewise.
30671 * math/w_asin_compat.c: Likewise.
30672 * math/w_asinf_compat.c: Likewise.
30673 * math/w_asinl_compat.c: Likewise.
30674 * math/w_atan2_compat.c: Likewise.
30675 * math/w_atan2f_compat.c: Likewise.
30676 * math/w_atan2l_compat.c: Likewise.
30677 * math/w_atanh_compat.c: Likewise.
30678 * math/w_atanhf_compat.c: Likewise.
30679 * math/w_atanhl_compat.c: Likewise.
30680 * math/w_cosh_compat.c: Likewise.
30681 * math/w_coshf_compat.c: Likewise.
30682 * math/w_coshl_compat.c: Likewise.
30683 * math/w_exp10_compat.c: Likewise.
30684 * math/w_exp10f_compat.c: Likewise.
30685 * math/w_exp10l_compat.c: Likewise.
30686 * math/w_exp2_compat.c: Likewise.
30687 * math/w_exp2f_compat.c: Likewise.
30688 * math/w_exp2l_compat.c: Likewise.
30689 * math/w_fmod_compat.c: Likewise.
30690 * math/w_fmodf_compat.c: Likewise.
30691 * math/w_fmodl_compat.c: Likewise.
30692 * math/w_hypot_compat.c: Likewise.
30693 * math/w_hypotf_compat.c: Likewise.
30694 * math/w_hypotl_compat.c: Likewise.
30695 * math/w_j0_compat.c: Likewise.
30696 * math/w_j0f_compat.c: Likewise.
30697 * math/w_j0l_compat.c: Likewise.
30698 * math/w_j1_compat.c: Likewise.
30699 * math/w_j1f_compat.c: Likewise.
30700 * math/w_j1l_compat.c: Likewise.
30701 * math/w_jn_compat.c: Likewise.
30702 * math/w_jnf_compat.c: Likewise.
30703 * math/w_jnl_compat.c: Likewise.
30704 * math/w_lgamma_main.c: Likewise.
30705 * math/w_lgamma_r_compat.c: Likewise.
30706 * math/w_lgammaf_main.c: Likewise.
30707 * math/w_lgammaf_r_compat.c: Likewise.
30708 * math/w_lgammal_main.c: Likewise.
30709 * math/w_lgammal_r_compat.c: Likewise.
30710 * math/w_log10_compat.c: Likewise.
30711 * math/w_log10f_compat.c: Likewise.
30712 * math/w_log10l_compat.c: Likewise.
30713 * math/w_log2_compat.c: Likewise.
30714 * math/w_log2f_compat.c: Likewise.
30715 * math/w_log2l_compat.c: Likewise.
30716 * math/w_log_compat.c: Likewise.
30717 * math/w_logf_compat.c: Likewise.
30718 * math/w_logl_compat.c: Likewise.
30719 * math/w_pow_compat.c: Likewise.
30720 * math/w_powf_compat.c: Likewise.
30721 * math/w_powl_compat.c: Likewise.
30722 * math/w_remainder_compat.c: Likewise.
30723 * math/w_remainderf_compat.c: Likewise.
30724 * math/w_remainderl_compat.c: Likewise.
30725 * math/w_scalb_compat.c: Likewise.
30726 * math/w_scalbf_compat.c: Likewise.
30727 * math/w_scalbl_compat.c: Likewise.
30728 * math/w_sinh_compat.c: Likewise.
30729 * math/w_sinhf_compat.c: Likewise.
30730 * math/w_sinhl_compat.c: Likewise.
30731 * math/w_sqrt_compat.c: Likewise.
30732 * math/w_sqrtf_compat.c: Likewise.
30733 * math/w_sqrtl_compat.c: Likewise.
30734 * math/w_tgamma_compat.c: Likewise.
30735 * math/w_tgammaf_compat.c: Likewise.
30736 * math/w_tgammal_compat.c: Likewise.
30737 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30738 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30739 * sysdeps/ieee754/k_standard.c: Likewise.
30740 * sysdeps/ieee754/k_standardf.c: Likewise.
30741 * sysdeps/ieee754/k_standardl.c: Likewise.
30742 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30743 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30744 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30745 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30746 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30747 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30748 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30749 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30750 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30751 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30752 Likewise.
30753 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30754 Likewise.
30755 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30756 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30757 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30758 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30759
30760 2017-08-21 Florian Weimer <fweimer@redhat.com>
30761
30762 [BZ #21864]
30763 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30764 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30765 Move before inclusion of ../Rules.
30766
30767 2017-08-21 Florian Weimer <fweimer@redhat.com>
30768
30769 [BZ #21972]
30770 * assert/assert.h (assert): Use static_cast (bool) for C++.
30771 Use the ternary operator in the warning branch for GNU C.
30772 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30773 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30774 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30775 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30776 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30777
30778 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30779
30780 [BZ #18822]
30781 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30782 (__syscall_clock_gettime): Add attribute_hidden.
30783 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30784 (__start_context): Likewise.
30785
30786 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30787
30788 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30789 building libc.a.
30790 (hidden_proto): Likewise.
30791 (hidden_tls_proto): Likewise.
30792 (__hidden_proto): Likewise.
30793
30794 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30795
30796 * include/libc-symbols.h (attribute_hidden): Enable hidden
30797 visibility in libc.a compiled with PIE.
30798
30799 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30800
30801 [BZ #18822]
30802 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30803 Add attribute_hidden.
30804
30805 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30806
30807 [BZ #21864]
30808 * Makerules (all-nonlib): Add $(others-extras).
30809 * catgets/Makefile (others-extras): New.
30810 * elf/Makefile (others-extras): Likewise.
30811 * nss/Makefile (others-extras): Likewise.
30812
30813 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30814
30815 [BZ #18822]
30816 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30817 * elf/dl-open.c: Include <libc-internal.h>.
30818 (__libc_multiple_libcs): Removed.
30819 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30820 <hp-timing.h>.
30821 * include/libc-internal.h (__libc_multiple_libcs): New.
30822 * misc/sbrk.c: Include <libc-internal.h>.
30823 (__libc_multiple_libcs): Removed.
30824
30825 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30826
30827 [BZ #18822]
30828 * grp/initgroups.c (__nss_group_database): Removed.
30829 (__nss_initgroups_database): Likewise.
30830 * nscd/gai.c (__nss_hosts_database): Likewise.
30831 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30832 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30833 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30834 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30835 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30836 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30837 attribute_hidden.
30838 * nss/nsswitch.c (__nss_database_custom): Define only if
30839 USE_NSCD is defined.
30840 (__nss_configure_lookup): Use __nss_database_custom only if
30841 USE_NSCD is defined.
30842 * nss/nsswitch.h (__nss_database_custom): Declare only if
30843 USE_NSCD is defined. Add attribute_hidden.
30844 (__nss_setent): Add attribute_hidden.
30845 (__nss_endent): Likewise.
30846 (__nss_getent_r): Likewise.
30847 (__nss_getent): Likewise.
30848 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30849
30850 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30851
30852 [BZ #18822]
30853 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30854 libc_hidden_proto and libc_hidden_def.
30855
30856 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30857
30858 [BZ #18822]
30859 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30860 Add libc_hidden_proto.
30861 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30862 Add libc_hidden_def.
30863
30864 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30865
30866 [BZ #21974]
30867 * gmon/Makefile (routines): Remove bb_init_func and
30868 bb_exit_func.
30869 (elide-routines.os): Removed.
30870 * gmon/bb_exit_func.c: Likewise.
30871 * gmon/bb_init_func.c: Likewise.
30872 * include/sys/gmon.h (__bb): Likewise.
30873 (__bb_init_func): Likewise.
30874 (__bb_exit_func): Likewise.
30875 * sysdeps/alpha/bb_init_func.S: Likewise.
30876
30877 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30878
30879 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30880 * include/setjmp.h (____longjmp_chk): Here. Add
30881 attribute_hidden.
30882
30883 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30884
30885 [BZ #18822]
30886 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30887 attribute_hidden.
30888 (__strspn_sse2): Likewise.
30889
30890 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30891
30892 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30893 (close_not_cancel_no_status): Likewise.
30894 (__close_nocancel): New macro.
30895 (__close_nocancel_nostatus): Likewise.
30896 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30897 macro.
30898 (close_not_cancel): Likewise.
30899 (close_not_cancel_no_status): Likewise.
30900 (__close_nocancel): New prototype.
30901 (__close_nocancel_nostatus): New function.
30902 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30903 * catgets/open_catalog.c (__open_catalog): Replace
30904 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30905 * gmon/gmon.c (write_gmon): Likewise.
30906 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30907 * intl/loadmsgcat.c (close): Likewise.
30908 * io/ftw.c (open_dir_stream): Likewise.
30909 (ftw_startup): Likewise.
30910 * libio/fileops.c (_IO_file_open): Likewise.
30911 (_IO_file_close_mmap): Likewise.
30912 (_IO_file_close): Likewise.
30913 * libio/iopopen.c (_IO_dup2): Likewise.
30914 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30915 * locale/loadlocale.c (_nl_load_locale): Likewise.
30916 * login/utmp_file.c (pututline_file): Likewise.
30917 (endutent_file): Likewise.
30918 * misc/daemon.c (daemon): Likewise.
30919 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30920 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30921 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30922 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30923 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30924 * nscd/nscd_helper.c (open_socket): Likewise.
30925 (__nscd_open_socket): Likewise.
30926 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30927 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30928 (__nscd_innetgr): Likewise.
30929 * nss/nss_db/db-open.c (internal_setent): Likewise.
30930 * resolv/res-close.c (__res_iclose): Likewise.
30931 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30932 * sysdeps/posix/closedir.c (__closedir): Likewise.
30933 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30934 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30935 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30936 (opendir_tail): Likewise.
30937 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30938 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30939 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30940 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30941 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30942 (gethostid): Likewise.
30943 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30944 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30945 Likewise.
30946 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30947 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30948 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30949 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30950 Likewise.
30951 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30952 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30953 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30954 Likewise.
30955 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30956 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30957 Likewise.
30958 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30959 Likewise.
30960 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30961 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30962 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30963 __close_nocancel.
30964
30965 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30966 (openat_not_cancel_3): Likewise.
30967 (openat64_not_cancel_3): Likewise).
30968 (openat_not_cancel_3): Likewise).
30969 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30970 macro.
30971 (openat_not_cancel_3): Likewise.
30972 (openat64_not_cancel): Likewise.
30973 (openat64_not_cancel_3): Likewise.
30974 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30975 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30976 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30977 __open{64}_nocancel.
30978 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30979 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30980 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30981
30982 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30983
30984 [BZ #18822]
30985 * include/argz.h (__argz_create_sep): New function prototype.
30986 (__argz_append): Likewise.
30987 (__argz_add): Likewise.
30988 (__argz_add_sep): Likewise.
30989 (__argz_delete): Likewise.
30990 (__argz_insert): Likewise.
30991 (__argz_replace): Likewise.
30992 * string/argz.h (__argz_create_sep): Removed.
30993 (__argz_append): Likewise.
30994 (__argz_add): Likewise.
30995 (__argz_add_sep): Likewise.
30996 (__argz_delete): Likewise.
30997 (__argz_insert): Likewise.
30998 (__argz_replace): Likewise.
30999
31000 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31001
31002 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31003 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31004 (GNU_PROPERTY_STACK_SIZE): Likewie.
31005 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31006 (GNU_PROPERTY_LOPROC): Likewise.
31007 (GNU_PROPERTY_HIPROC): Likewise.
31008 (GNU_PROPERTY_LOUSER): Likewise.
31009 (GNU_PROPERTY_HIUSER): Likewise.
31010 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31011 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31012 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31013 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31014 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31015 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31016 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31017 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31018 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31019 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31020 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31021 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31022 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31023 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31024 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31025 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31026 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31027 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31028 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31029 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31030 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31031 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31032 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31033
31034 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31035
31036 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31037 in C++ mode.
31038
31039 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31040
31041 [BZ #21930]
31042 * math/math.h (isinf): Check if in C or C++ mode before using
31043 __builtin_types_compatible_p, since this is a C mode feature.
31044
31045 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31046
31047 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31048 (__write_nocancel): New macro.
31049 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31050 Rewrite as a function prototype.
31051 (write_not_cancel): Remove macro.
31052 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31053 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31054 (write_gmon): Likewise.
31055 * libio/fileops.c (_IO_new_file_write): Likewise.
31056 * login/utmp_file.c (pututline_file): Likewise.
31057 (updwtmp_file): Likewise.
31058 * stdio-common/psiginfo.c (psiginfo): Likewise.
31059 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31060 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31061 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31062 Likewise.
31063 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31064 Likewise.
31065
31066 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31067 (__read_nocancel): New macro.
31068 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31069 __read_nocancel.
31070 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31071 macro.
31072 (__read_nocancel): New prototype.
31073 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31074 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31075 with __read_nocancel.
31076 * intl/loadmsgcat.c (read): Likewise.
31077 * libio/fileops.c (_IO_file_read): Likewise.
31078 * locale/loadlocale.c (_nl_load_locale): Likewise.
31079 * login/utmp_file.c (getutent_r_file): Likewise.
31080 (internal_getut_r): Likewise.
31081 (getutline_r_file): Likewise.
31082 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31083 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31084 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31085 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31086 Likewise.
31087 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31088 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31089 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31090 Likewise.
31091 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31092 Likewise.
31093 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31094 Likewise.
31095 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31096 Likewise.
31097 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31098
31099 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31100
31101 [BZ #21966]
31102 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31103 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31104 usable.
31105
31106 2017-08-17 DJ Delorie <dj@redhat.com>
31107
31108 * bug17079.c: Update to new test harness.
31109 * test-digits-dots.c: Likewise.
31110 * test-netdb.c: Likewise.
31111 * tst-field.c: Likewise.
31112 * tst-nss-getpwent.c: Likewise.
31113 * tst-nss-static.c: Likewise.
31114 * tst-nss-test1.c: Likewise.
31115 * tst-nss-test2.c: Likewise.
31116 * tst-nss-test3.c: Likewise.
31117 * tst-nss-test4.c: Likewise.
31118 * tst-nss-test5.c: Likewise.
31119
31120 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31121
31122 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31123 (open_not_cancel_2): Likewise.
31124 (open_nocancel): New macro.
31125 (open64_nocancel): Likewise.
31126 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31127 (open_not_cancel_2): Likewise.
31128 (__open_nocancel): New prototype.
31129 (__open64_nocancel): Likewise.
31130 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31131 __open_nocancel.
31132 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31133 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31134 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31135 with __open_nocancel.
31136 * csu/check_fds.c (check_one_fd): Likewise.
31137 * gmon/gmon.c (write_gmon): Likewise.
31138 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31139 * intl/loadmsgcat.c (open): Likewise.
31140 * libio/fileops.c (_IO_file_open): Likewise.
31141 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31142 * locale/loadlocale.c (_nl_load_locale): Likewise.
31143 * login/utmp_file.c (setutent_file): Likewise.
31144 * misc/daemon.c (daemon): Likewise.
31145 * nss/nss_db/db-open.c (internal_setent): Likewise.
31146 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31147 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31148 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31149 (__opendir): Likewise.
31150 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31151 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31152 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31153 (gethostid): Likewise.
31154 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31155 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31156 Likewise.
31157 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31158 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31159 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31160 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31161 Likewise.
31162 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31163 Likewise.
31164 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31165 Likewise.
31166 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31167 Likewise.
31168 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31169 Likewise.
31170 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31171 Likewise.
31172 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31173 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31174
31175 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31176
31177 * benchtests/bench-skeleton.c (main): Add support for
31178 latency benchmarking.
31179 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31180
31181 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31182
31183 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31184 the startup object.
31185
31186 2017-08-17 Florian Weimer <fweimer@redhat.com>
31187
31188 * include/sys/socket.h (__opensock): Remove internal_function.
31189 * socket/opensock.c (__opensock): Likewise.
31190 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31191
31192 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31193
31194 [BZ #21944]
31195 * signal/bits/types/__sigval_t.h: New file.
31196 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31197 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31198 and define sigval_t using __sigval_t.
31199 * include/bits/types/__sigval_t.h: New file.
31200 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31201 instead of <bits/types/__sigval_t.h>.
31202 (struct sigevent): Use __sigval_t instead of sigval_t.
31203 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31204 instead of <bits/types/__sigval_t.h>.
31205 (siginfo_t): Use __sigval_t instead of sigval_t.
31206 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31207 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31208 (struct sigevent): Use __sigval_t instead of sigval_t.
31209 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31210 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31211 (siginfo_t): Use __sigval_t instead of sigval_t.
31212 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31213
31214 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31215
31216 * NEWS: Remove "[Add new features here]" for 2.27.
31217
31218 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31219
31220 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31221 libc.so.
31222
31223 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31224
31225 * NEWS: Mention x86-64 FMA optimization.
31226
31227 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31228
31229 [BZ #21912]
31230 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31231 Add e_expf-fma.
31232 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31233 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31234 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31235
31236 2017-08-16 Andreas Schwab <schwab@suse.de>
31237
31238 [BZ #16750]
31239 CVE-2009-5064
31240 * elf/ldd.bash.in: Never run file directly.
31241
31242 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31243
31244 [BZ #21955]
31245 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31246 (L(SP_INF_0)): Likewise.
31247
31248 2017-08-15 Florian Weimer <fweimer@redhat.com>
31249
31250 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31251 run-built-tests.
31252
31253 2017-08-15 Florian Weimer <fweimer@redhat.com>
31254
31255 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31256 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31257 BROKEN_THREAD_SIGNALS code.
31258 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31259 request_list): Remove caller_pid member used for
31260 BROKEN_THREAD_SIGNALS.
31261 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31262 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31263 Remove BROKEN_THREAD_SIGNALS support.
31264 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31265 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31266
31267 2017-08-15 Florian Weimer <fweimer@redhat.com>
31268
31269 * gmon/Makefile (tests): Add tst-gmon.
31270 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31271 Set.
31272 (tests-special): Add tst-gmon-prof.out.
31273 (tst-gmon.out): Depend on clean-tst-gmon-data.
31274 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31275 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31276 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31277 startup object.
31278 * aclocal.m4 (GPROF): Set and substitute.
31279 * config.amke.in (GPROF): Set.
31280 * configure: Regenerate.
31281
31282 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31283
31284 * elf/elf.h A (NT_PPC_TAR): New macro.
31285 (NT_PPC_PPR): Likewise.
31286 (NT_PPC_DSCR): Likewise.
31287 (NT_PPC_EBB): Likewise.
31288 (NT_PPC_PMU): Likewise.
31289 (NT_PPC_TM_CGPR): Likewise.
31290 (NT_PPC_TM_CFPR): Likewise.
31291 (NT_PPC_TM_CVMX): Likewise.
31292 (NT_PPC_TM_CVSX): Likewise.
31293 (NT_PPC_TM_SPR): Likewise.
31294 (NT_PPC_TM_CTAR): Likewise.
31295 (NT_PPC_TM_CPPR): Likewise.
31296 (NT_PPC_TM_CDSCR): Likewise.
31297
31298 2017-08-15 Florian Weimer <fweimer@redhat.com>
31299
31300 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31301 regparm (2) instead of internal_function.
31302 (_MCOUNT_DECL): Adjust.
31303
31304 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31305
31306 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31307 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31308
31309 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31310
31311 * conform/data/sys/wait.h-data (si_value): Do not expect for
31312 XPG42.
31313
31314 2017-08-14 Florian Weimer <fweimer@redhat.com>
31315
31316 [BZ #21962]
31317 NSS: Create stubs for accidentally exported lookup functions.
31318 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31319 Remove declaration.
31320 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31321 (ether_hostton): Call __nss_ethers_lookup2 instead.
31322 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31323 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31324 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31325 (setup): Call __nss_netgroup_lookup2 instead.
31326 * nss/Makefile (routines): Add compat-lookup.
31327 * nss/Versions (GLIBC_2.27): Add symbol version.
31328 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31329 (DB_COMPAT_FCT): Remove.
31330 * nss/compat-lookup.c: New file.
31331 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31332 from databases.def.
31333 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31334 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31335 (netname2user): Call __nss_publickey_lookup2 instead.
31336 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31337 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31338 instead.
31339
31340 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31341 Sergei Trofimovich <slyfox@inbox.ru>
31342
31343 [BZ #21908]
31344 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31345 Rename to MMAP2_PAGE_UNIT.
31346 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31347 __OFF_T_MATCHES_OFF64_T is not defined.
31348 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31349 uint64_t.
31350 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31351 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31352
31353 2017-08-14 Florian Weimer <fweimer@redhat.com>
31354
31355 i386: Do not set internal_function.
31356 * config.h.in (USE_REGPARMS, internal_function): Remove.
31357 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31358 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31359
31360 2017-08-14 Florian Weimer <fweimer@redhat.com>
31361
31362 * elf/dl-init.c (_dl_init): Remove internal_function.
31363 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31364 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31365
31366 2017-08-14 Florian Weimer <fweimer@redhat.com>
31367
31368 * elf/rtld.c (_dl_start): Remove internal_function.
31369 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31370 _dl_start.
31371
31372 2017-08-14 Florian Weimer <fweimer@redhat.com>
31373
31374 * elf/dl-fini.c (_dl_fini): Remove internal_function
31375 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31376
31377 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31378
31379 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31380 (bit_cpu_SHSTK): Likewise.
31381 (index_cpu_IBT): Likewise.
31382 (index_cpu_SHSTK): Likewise.
31383 (reg_IBT): Likewise.
31384 (reg_SHSTK): Likewise.
31385 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31386 Handle index_cpu_IBT and index_cpu_SHSTK.
31387
31388 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31389
31390 [BZ #19982]
31391 * po/fr.po: Fix spelling mistake.
31392
31393 2017-08-13 Florian Weimer <fweimer@redhat.com>
31394
31395 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31396 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31397 (_dl_catch_error, _dl_receive_error): Likewise.
31398 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31399 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31400 (_dl_deallocate_tls): Likewise.
31401 * include/dlfcn.h (_dl_addr): Likewise.
31402 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31403 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31404 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31405 Likewise.
31406
31407 2017-08-13 Florian Weimer <fweimer@redhat.com>
31408
31409 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31410 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31411 internal_function.
31412 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31413
31414 2017-08-13 Florian Weimer <fweimer@redhat.com>
31415
31416 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31417 internal_function.
31418 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31419 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31420 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31421 internal_function from _dl_make_stack_executable_hook member.
31422 (_dl_make_stack_executable): Remove internal_function.
31423 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31424 Likewise.
31425 * sysdeps/unix/sysv/linux/dl-execstack.c
31426 (_dl_make_stack_executable): Likewise.
31427
31428 2017-08-13 Florian Weimer <fweimer@redhat.com>
31429
31430 * sysdeps/unix/sysv/linux/netlinkaccess.h
31431 (__netlink_assert_response): Remove internal_function.
31432 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31433 (__netlink_assert_response): Likewise.
31434
31435 2017-08-13 Florian Weimer <fweimer@redhat.com>
31436
31437 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31438 internal_function.
31439 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31440
31441 2017-08-13 Florian Weimer <fweimer@redhat.com>
31442
31443 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31444 internal_function.
31445 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31446 * inet/netgroup.h (__internal_setnetgrent)
31447 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31448 * inet/getnetgrent_r.c (__internal_setnetgrent)
31449 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31450 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31451 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31452 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31453 * nss/nsswitch.h (db_lookup_function): Likewise.
31454
31455 2017-08-13 Florian Weimer <fweimer@redhat.com>
31456
31457 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31458 Remove internal_function.
31459 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31460 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31461 message argument on the stack.
31462 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31463 Likeweise.
31464
31465 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31466
31467 Adapt test case data to the changes in the thousands
31468 separators.
31469
31470 [BZ #20756]
31471 * localedata/tst-langinfo.sh: Adapt test case data.
31472 * stdlib/tst-strfmon_l.c: Likewise.
31473 * stdlib/tst-strtod4.c: Likewise.
31474 * stdlib/tst-strtod5i.c: Likewise.
31475
31476 2017-08-11 Florian Weimer <fweimer@redhat.com>
31477
31478 [BZ #21242]
31479 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31480 Suppress pedantic warning resulting from statement expression.
31481 (__ASSERT_FUNCTION): Add missing __extension__.
31482
31483 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31484
31485 * benchtests/bench-memmove-large.c: Print output in JSON
31486 format.
31487 * benchtests/bench-memmove.c: Likewise.
31488
31489 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31490 * benchtests/bench-memchr.c (do_one_test): Likewise.
31491 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31492 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31493 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31494 * benchtests/bench-memmove.c (do_one_test): Likewise.
31495 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31496 * benchtests/bench-memset.c (do_one_test): Likewise.
31497 * benchtests/bench-string.h (test_init): Remove memsets.
31498
31499 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31500
31501 * manual/lang.texi
31502 (Computing the Width of an Integer Data Type): Rename section to
31503 "Width of an Integer Type". Remove inaccurate statement regarding
31504 lack of C language facilities for determining width of integer
31505 types, and reorder content to improve flow and context of
31506 discussion.
31507
31508 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31509
31510 * lang.texi (va_copy): Change standard from ISO to C99.
31511 (__va_copy): Add standard and header annotation.
31512 Update description for clarity of origins and current use.
31513
31514 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31515
31516 [BZ #21941]
31517 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31518 xssqrtqp requires operands to be in Vector Registers
31519 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31520 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31521 (__ieee754_sqrtf128): Likewise.
31522
31523 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31524
31525 * sysdeps/aarch64/memcmp.S (memcmp):
31526 Rewrite of optimized memcmp.
31527
31528 2017-08-10 Florian Weimer <fweimer@redhat.com>
31529
31530 Introduce ld.so exceptions.
31531 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31532 (_dl_exception_create, _dl_exception_create_format)
31533 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31534 (_dl_catch_exception): Declare.
31535 (_dl_catch_error): Update comment.
31536 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31537 errstring, malloced members with exception member.
31538 (_dl_out_of_memory): Remove.
31539 (fatal_error): New function, extracted from _dl_signal_error.
31540 (_dl_signal_exception, _dl_signal_cexception): New functions.
31541 (_dl_signal_error): Call _dl_exception_create to allocate an
31542 exception object.
31543 (_dl_catch_exception): New function, based on _dl_catch_error.
31544 (_dl_catch_error): Implement using _dl_catch_exception.
31545 * elf/dl-exception.c: New file.
31546 * elf/Makefile (dl-routines): Add dl-exception.
31547 (elide-routines.os): Likewise.
31548 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31549 _dl_exception_create_format, _dl_exception_free.
31550 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31551 _dl_signal_exception.
31552 * elf/dl-lookup.c (make_string): Remove.
31553 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31554 _dl_signal_cexception, _dl_exception_free.
31555 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31556 _dl_signal_exception.
31557 * elf/dl-sym.c (do_sym): Likewise.
31558 * elf/dl-version.c (make_string): Remove.
31559 (match_symbol): Use _dl_exception_create_format,
31560 _dl_signal_cexception, _dl_exception_free.
31561 (_dl_check_map_versions): Likewise.
31562 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31563 _dl_catch_exception.
31564 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31565 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31566 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31567 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31568 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31569 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31570 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31571 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31572 Likewise.
31573 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31575 (ld.so): Likewise.
31576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31577 (ld.so): Likewise.
31578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31579 Likewise.
31580 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31581 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31582 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31583 Likewise.
31584 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31585 Likewise.
31586 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31587
31588 2017-08-10 Florian Weimer <fweimer@redhat.com>
31589
31590 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31591 attribute_hidden, internal_function.
31592 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31593 internal_function.
31594
31595 2017-08-10 Florian Weimer <fweimer@redhat.com>
31596
31597 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31598 function which calls __builtin_unreachable.
31599
31600 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31601
31602 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31603 Indian monetary formatting
31604 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31605 test cases.
31606
31607 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31608
31609 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31610 Fix typo in comment.
31611
31612 [BZ #21928]
31613 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31614 PTRACE_SEIZE_DEVEL): Remove.
31615 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31616 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31617 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31618 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31619 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31620
31621 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31622
31623 * posix/bits/types.h (__qaddr_t): Remove.
31624
31625 [BZ #21457]
31626 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31627 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31628 __glibc_reserved1.
31629 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31630 (ucontext_t): Use __ctx with uc_flags.
31631 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31632 (__ctxt): Likewise.
31633 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31634 __glibc_reserved1.
31635 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31636 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31637 __glibc_reserved1.
31638 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31639 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31640 __glibc_reserved1.
31641 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31642 macro.
31643 (ucontext_t): Use __ctx with uc_flags.
31644 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31645 (ucontext_t): Use __ctx with uc_flags.
31646 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31647 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31648 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31649 (ucontext_t): Use __ctx with uc_flags.
31650 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31651 undefine further down.
31652 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31653 __glibc_reserved1.
31654 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31655 undefine further down.
31656 (ucontext_t): Use __ctx with uc_flags.
31657 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31658 undefine further down.
31659 (ucontext_t): Use __ctx with uc_flags.
31660 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31661 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31662 Rename uc_pad to __glibc_reserved1.
31663 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31664 undefine further down.
31665 (ucontext_t): Use __ctx with uc_flags.
31666 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31667 further down.
31668 (ucontext_t): Use __ctx with uc_flags.
31669 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31670 __ctx with uc_flags.
31671 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31672 (ucontext_t): Use __ctx with uc_flags.
31673 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31674 __ctx with uc_flags.
31675
31676 2017-08-09 Florian Weimer <fweimer@redhat.com>
31677
31678 [BZ #21932]
31679 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31680 before early return.
31681
31682 2017-08-09 Andreas Schwab <schwab@suse.de>
31683
31684 [BZ #21041]
31685 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31686 renamed alias.
31687
31688 [BZ #21041]
31689 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31690 tst-compat-forwarder.
31691 (modules-names): Add tst-compat-forwarder-mod.
31692 ($(objpfx)tst-compat-forwarder): Depend on
31693 $(objpfx)tst-compat-forwarder-mod.so.
31694 * nptl/tst-compat-forwarder.c: New file.
31695 * nptl/tst-compat-forwarder-mod.c: New file.
31696
31697 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31698
31699 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31700 comments.
31701
31702 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31703 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31704 memcpy_falkor.
31705 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31706 Bump.
31707 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31708 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31709 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31710 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31711 Add falkor.
31712 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31713 New macro.
31714
31715 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31716
31717 [BZ #759]
31718 * manual/setjmp.texi (getcontex): Document uc_stack value
31719 compatibility differences.
31720
31721 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31722
31723 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31724 (old_malloc_hook): Likewise.
31725 (old_memalign_hook): Likewise.
31726 (old_realloc_hook): Likewise.
31727 (struct hdr): Likewise.
31728 (flood): Likewise.
31729 (freehook): Likewise.
31730 (mallochook): Likewise.
31731 (memalignhook): Likewise.
31732 (reallochook): Likewise.
31733 (mprobe): Likewise.
31734 * malloc/mtrace.c (mallwatch): Likewise.
31735 (tr_old_free_hook): Likewise.
31736 (tr_old_malloc_hook): Likewise.
31737 (tr_old_realloc_hook): Likewise.
31738 (tr_old_memalign_hook): Likewise.
31739 (tr_where): Likewise.
31740 (lock_and_info): Likewise.
31741 (tr_freehook): Likewise.
31742 (tr_mallochook): Likewise.
31743 (tr_reallochook): Likewise.
31744 (tr_memalignhook): Likewise.
31745 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31746 * misc/mmap.c (__mmap): Likewise.
31747 * misc/mmap64.c (__mmap64): Likewise.
31748 * misc/mprotect.c (__mprotect): Likewise.
31749 * misc/msync.c (msync): Likewise.
31750 * misc/munmap.c (__munmap): Likewise.
31751 * posix/posix_madvise.c (posix_madvise): Likewise.
31752 * socket/send.c (__send): Likewise.
31753 * socket/sendto.c (__sendto): Likewise.
31754 * socket/setsockopt.c (__setsockopt): Likewise.
31755 * string/memcmp.c (__ptr_t): Remove macro.
31756 (MEMCMP): Use void * instead of ptr_t.
31757 * string/memrchr.c (__ptr_t): Remove macro.
31758 (__memrchr): Use void * instead of ptr_t.
31759 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31760 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31761 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31762 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31763 * sysdeps/mach/msync.c (msync): Likewise.
31764 * sysdeps/mach/munmap.c (__munmap): Likewise.
31765 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31766 Likewise.
31767 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31768 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31769 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31770 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31771 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31772 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31773 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31774 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31775 Likewise.
31776 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31777 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31778 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31779 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31780 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31781 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31782 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31783 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31784 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31785 Likewise.
31786 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31787 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31788 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31789 (MEMCMP): Use void * instead of ptr_t.
31790 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31791 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31792
31793 2017-08-08 Florian Weimer <fweimer@redhat.com>
31794
31795 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31796 return statement.
31797
31798 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31799
31800 [BZ #21913]
31801 * csu/libc-tls.c: Include <startup.h> first.
31802 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31803 * elf/dl-tunables.c: Include <startup.h> first.
31804 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31805 * sysdeps/generic/startup.h: New file.
31806 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31807 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31808 (I386_USE_SYSENTER): New. Defined to 0.
31809
31810 2017-08-08 Andreas Schwab <schwab@suse.de>
31811
31812 [BZ #21041]
31813 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31814 * nptl/pt-system.c (system): Likewise.
31815
31816 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31817
31818 [BZ #21780]
31819 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31820 EOPNOTSUPP.
31821 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31822 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31823 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31824 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31825 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31826 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31827 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31828
31829 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31830
31831 [BZ #21899]
31832 * bits/sigaction.h (struct sigaction): Define sa_handler and
31833 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31834 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31835 [__USE_XOPEN_EXTENDED].
31836 (SA_RESTART): Likewise.
31837 (SA_NODEFER): Likewise.
31838 (SA_RESETHAND): Likewise.
31839 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31840 (struct sigaction): Define sa_handler and sa_sigaction using union
31841 also for [__USE_XOPEN_EXTENDED].
31842 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31843 [__USE_XOPEN_EXTENDED].
31844 (SA_RESTART): Likewise.
31845 (SA_NODEFER): Likewise.
31846 (SA_RESETHAND): Likewise.
31847 * sysdeps/unix/sysv/linux/bits/sigaction.h
31848 (struct sigaction): Define sa_handler and sa_sigaction using union
31849 also for [__USE_XOPEN_EXTENDED].
31850 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31851 [__USE_XOPEN_EXTENDED].
31852 (SA_RESTART): Likewise.
31853 (SA_NODEFER): Likewise.
31854 (SA_RESETHAND): Likewise.
31855 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31856 (struct sigaction): Define sa_handler and sa_sigaction using union
31857 also for [__USE_XOPEN_EXTENDED].
31858 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31859 [__USE_XOPEN_EXTENDED].
31860 (SA_RESTART): Likewise.
31861 (SA_NODEFER): Likewise.
31862 (SA_RESETHAND): Likewise.
31863 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31864 (struct sigaction): Define sa_handler and sa_sigaction using union
31865 also for [__USE_XOPEN_EXTENDED].
31866 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31867 [__USE_XOPEN_EXTENDED].
31868 (SA_RESTART): Likewise.
31869 (SA_NODEFER): Likewise.
31870 (SA_RESETHAND): Likewise.
31871 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31872 (struct sigaction): Define sa_handler and sa_sigaction using union
31873 also for [__USE_XOPEN_EXTENDED].
31874 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31875 [__USE_XOPEN_EXTENDED].
31876 (SA_RESTART): Likewise.
31877 (SA_NODEFER): Likewise.
31878 (SA_RESETHAND): Likewise.
31879 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31880 (struct sigaction): Define sa_handler and sa_sigaction using union
31881 also for [__USE_XOPEN_EXTENDED].
31882 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31883 [__USE_XOPEN_EXTENDED].
31884 (SA_RESTART): Likewise.
31885 (SA_NODEFER): Likewise.
31886 (SA_RESETHAND): Likewise.
31887 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31888 (struct sigaction): Define sa_handler and sa_sigaction using union
31889 also for [__USE_XOPEN_EXTENDED].
31890 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31891 [__USE_XOPEN_EXTENDED].
31892 (SA_RESTART): Likewise.
31893 (SA_NODEFER): Likewise. Define directly rather than as alias.
31894 (SA_RESETHAND): Likewise.
31895 (SA_INTERRUPT): Define only for [__USE_MISC].
31896 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31897 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31898 [__USE_MISC].
31899 (SA_STACK): Define only for [__USE_MISC].
31900 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31901 (struct sigaction): Define sa_handler and sa_sigaction using union
31902 also for [__USE_XOPEN_EXTENDED].
31903 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31904 [__USE_XOPEN_EXTENDED].
31905 (SA_RESTART): Likewise.
31906 (SA_NODEFER): Likewise.
31907 (SA_RESETHAND): Likewise.
31908 (SA_NOPTRACE): Define only for [__USE_MISC].
31909
31910 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31911 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31912 (struct catalog_info): Likewise.
31913 * inet/htontest.c (lo): Likewise.
31914 (foo): Likewise.
31915 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31916 * inet/inet_net.c (inet_network): Likewise.
31917 * inet/inet_netof.c (inet_netof): Likewise.
31918 * inet/rcmd.c (__ivaliduser): Likewise.
31919 (iruserok): Likewise.
31920 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31921 * locale/programs/locale-spec.c (locale_special): Likewise.
31922 * nis/nis_findserv.c (struct findserv_req): Likewise.
31923 (__nis_findfastest_with_timeout): Likewise.
31924 * nss/test-netdb.c (test_network): Likewise.
31925 * resolv/inet_neta.c (inet_neta): Likewise.
31926 * resolv/ns_date.c (ns_datetosecs): Likewise.
31927 (SECS_PER_DAY): Likewise.
31928 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31929 Likewise.
31930 * resolv/res_comp.c (__putlong): Likewise.
31931 (__putshort): Likewise.
31932 (_getlong): Likewise.
31933 (_getshort): Likewise.
31934 * resolv/res_debug.c (p_time): Likewise.
31935 (precsize_ntoa): Likewise.
31936 (precsize_aton): Likewise.
31937 (latlon2ul): Likewise.
31938 (loc_aton): Likewise.
31939 (loc_ntoa): Likewise.
31940 * resolv/res_hconf.c (struct netaddr): Likewise.
31941 (_res_hconf_reorder_addrs): Likewise.
31942 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31943 (clnttcp_control): Likewise.
31944 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31945 (clntudp_control): Likewise.
31946 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31947 (clntunix_control): Likewise.
31948 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31949 * sunrpc/rpc/auth.h (union des_block): Likewise.
31950 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31951 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31952 (xdrrec_create): Likewise.
31953 (xdrrec_endofrecord): Likewise.
31954 (flush_out): Likewise.
31955 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31956 (xdrstdio_putlong): Likewise.
31957 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31958 Likewise.
31959
31960 * misc/sys/cdefs.h (__long_double_t): Remove.
31961 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31962 instead of __long_double_t,
31963 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31964
31965 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31966
31967 * benchtests/scripts/compare_strings.py: Avoid display error when
31968 running on a text terminal.
31969
31970 * benchtests/scripts/compare_strings.py (main): Add an
31971 optional -base option.
31972 (process_results): New argument base_func.
31973
31974 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31975 hardcoding memcpy.
31976 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31977 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31978
31979 2017-08-07 Andreas Schwab <schwab@suse.de>
31980
31981 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31982 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31983 * intl/Makefile ($(objpfx)tst-gettext.out)
31984 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31985 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31986 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31987 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31988 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31989 * posix/Makefile ($(objpfx)globtest.out)
31990 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31991 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31992 ($(objpfx)tst-printf.out): Likewise.
31993 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31994 ($(objpfx)tst-setcontext3.out): Likewise.
31995
31996 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31997
31998 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31999 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32000 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32001 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32002 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32003 and mptan-fma.
32004 (CFLAGS-doasin-fma.c): New.
32005 (CFLAGS-dosincos-fma.c): Likewise.
32006 (CFLAGS-e_asin-fma.c): Likewise.
32007 (CFLAGS-e_atan2-fma.c): Likewise.
32008 (CFLAGS-e_exp-fma.c): Likewise.
32009 (CFLAGS-e_log-fma.c): Likewise.
32010 (CFLAGS-e_pow-fma.c): Likewise.
32011 (CFLAGS-halfulp-fma.c): Likewise.
32012 (CFLAGS-mpa-fma.c): Likewise.
32013 (CFLAGS-mpatan-fma.c): Likewise.
32014 (CFLAGS-mpatan2-fma.c): Likewise.
32015 (CFLAGS-mpexp-fma.c): Likewise.
32016 (CFLAGS-mplog-fma.c): Likewise.
32017 (CFLAGS-mpsqrt-fma.c): Likewise.
32018 (CFLAGS-mptan-fma.c): Likewise.
32019 (CFLAGS-s_atan-fma.c): Likewise.
32020 (CFLAGS-sincos32-fma.c): Likewise.
32021 (CFLAGS-slowexp-fma.c): Likewise.
32022 (CFLAGS-slowpow-fma.c): Likewise.
32023 (CFLAGS-s_sin-fma.c): Likewise.
32024 (CFLAGS-s_tan-fma.c): Likewise.
32025 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32026 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32027 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32028 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32029 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32030 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32031 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32032 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32033 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32034 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32035 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32036 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32037 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32038 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32039 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32040 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32041 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32042 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32043 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32044 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32045 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32046 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32047 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32048 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32049 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32050 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32051 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32052 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32053 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32054 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32055 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32056
32057 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32058
32059 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32060 (min_of_type_f): New macro.
32061 (min_of_type_): Likewise.
32062 (min_of_type_l): Likewise.
32063 (min_of_type_f128): Likewise.
32064 (min_of_type): Define using __MATH_TG and taking an expression
32065 argument.
32066 (math_check_force_underflow): Pass expression instead of type to
32067 min_of_type.
32068 (math_check_force_underflow_nonneg): Likewise.
32069
32070 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32071
32072 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32073 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32074 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32075
32076 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32077
32078 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32079 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32080 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32081 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32082 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32083 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32084 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32085 memmove_chk-nonshared and memset_chk-nonshared
32086 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32087 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32088 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32089 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32090 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32091 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32092 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32093 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32094 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32095 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32096 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32097 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32098 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32099 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32100 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32101 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32102 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32103 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32104 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32105 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32106 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32107 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32108 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32109 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32110 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32111 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32112 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32113 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32114 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32115 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32116 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32117 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32118 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32119 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32120 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32121 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32122 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32123 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32124 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32125 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32126 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32127 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32128 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32129 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32130 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32131 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32132 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32133 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32134 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32135 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32136 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32137 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32138 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32139 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32140 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32141 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32142 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32143 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32144 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32145 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32146 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32147 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32148 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32149 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32150 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32151 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32152 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32153 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32154 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32155 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32156 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32157 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32158 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32159 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32160 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32161 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32162 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32163 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32164 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32165 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32166 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32167 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32168 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32169 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32170 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32171 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32172 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32173 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32174 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32175 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32176 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32177 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32178 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32179 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32180 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32181 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32182 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32183 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32184 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32185 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32186 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32187 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32188 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32189 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32190 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32191 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32192 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32193 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32194
32195 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32196
32197 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32198 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32199 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32200 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32201 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32202 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32203 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32204 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32205 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32206 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32207 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32208 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32209 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32210 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32211 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32212 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32213 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32214 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32215 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32216 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32217 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32218 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32219 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32220 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32221 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32222 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32223 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32224 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32225 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32226 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32227 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32228 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32229 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32230 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32231 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32232 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32233 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32234 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32235 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32236 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32237 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32238 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32239 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32240 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32241 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32242 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32243 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32244 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32245 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32246 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32247 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32248 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32249 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32250 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32251 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32252 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32253 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32254 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32255 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32256 ...
32257 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32258 Don't include <sysdep.h> nor <init-arch.h>.
32259 (_ZGVbN2v_cos): Removed.
32260 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32261 ...
32262 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32263 Don't include <sysdep.h> nor <init-arch.h>.
32264 (_ZGVdN4v_cos): Removed.
32265 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32266 ...
32267 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32268 Don't include <sysdep.h> nor <init-arch.h>.
32269 (_ZGVeN8v_cos): Removed.
32270 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32271 ...
32272 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32273 Don't include <sysdep.h> nor <init-arch.h>.
32274 (_ZGVbN2v_exp): Removed.
32275 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32276 ...
32277 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32278 Don't include <sysdep.h> nor <init-arch.h>.
32279 (_ZGVdN4v_exp): Removed.
32280 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32281 ...
32282 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32283 Don't include <sysdep.h> nor <init-arch.h>.
32284 (_ZGVeN8v_exp): Removed.
32285 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32286 ...
32287 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32288 Don't include <sysdep.h> nor <init-arch.h>.
32289 (_ZGVbN2v_log): Removed.
32290 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32291 ...
32292 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32293 Don't include <sysdep.h> nor <init-arch.h>.
32294 (_ZGVdN4v_log): Removed.
32295 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32296 ...
32297 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32298 Don't include <sysdep.h> nor <init-arch.h>.
32299 (_ZGVeN8v_log): Removed.
32300 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32301 ...
32302 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32303 Don't include <sysdep.h> nor <init-arch.h>.
32304 (_ZGVbN2vv_pow): Removed.
32305 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32306 ...
32307 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32308 Don't include <sysdep.h> nor <init-arch.h>.
32309 (_ZGVdN4vv_pow): Removed.
32310 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32311 ...
32312 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32313 Don't include <sysdep.h> nor <init-arch.h>.
32314 (_ZGVeN8vv_pow): Removed.
32315 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32316 ...
32317 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32318 Don't include <sysdep.h> nor <init-arch.h>.
32319 (_ZGVbN2v_sin): Removed.
32320 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32321 ...
32322 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32323 Don't include <sysdep.h> nor <init-arch.h>.
32324 (_ZGVbN4v_sin): Removed.
32325 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32326 ...
32327 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32328 Don't include <sysdep.h> nor <init-arch.h>.
32329 (_ZGVbN8v_sin): Removed.
32330 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32331 ...
32332 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32333 Don't include <sysdep.h> nor <init-arch.h>.
32334 (_ZGVbN2vvv_sincos): Removed.
32335 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32336 ...
32337 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32338 Don't include <sysdep.h> nor <init-arch.h>.
32339 (_ZGVdN4vvv_sincos): Removed.
32340 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32341 ...
32342 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32343 Don't include <sysdep.h> nor <init-arch.h>.
32344 (_ZGVeN8vvv_sincos): Removed.
32345 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32346 ...
32347 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32348 Don't include <sysdep.h> nor <init-arch.h>.
32349 (_ZGVeN16v_cosf): Removed.
32350 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32351 ...
32352 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32353 Don't include <sysdep.h> nor <init-arch.h>.
32354 (_ZGVbN4v_cosf): Removed.
32355 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32356 ...
32357 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32358 Don't include <sysdep.h> nor <init-arch.h>.
32359 (_ZGVdN8v_cosf): Removed.
32360 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32361 ...
32362 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32363 Don't include <sysdep.h> nor <init-arch.h>.
32364 (_ZGVeN16v_expf): Removed.
32365 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32366 ...
32367 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32368 Don't include <sysdep.h> nor <init-arch.h>.
32369 (_ZGVbN4v_expf): Removed.
32370 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32371 ...
32372 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32373 Don't include <sysdep.h> nor <init-arch.h>.
32374 (_ZGVdN8v_expf): Removed.
32375 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32376 ...
32377 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32378 Don't include <sysdep.h> nor <init-arch.h>.
32379 (_ZGVeN16v_logf): Removed.
32380 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32381 ...
32382 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32383 Don't include <sysdep.h> nor <init-arch.h>.
32384 (_ZGVbN4v_logf): Removed.
32385 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32386 ...
32387 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32388 Don't include <sysdep.h> nor <init-arch.h>.
32389 (_ZGVdN8v_logf): Removed.
32390 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32391 ...
32392 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32393 Don't include <sysdep.h> nor <init-arch.h>.
32394 (_ZGVeN16vv_powf): Removed.
32395 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32396 ...
32397 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32398 Don't include <sysdep.h> nor <init-arch.h>.
32399 (_ZGVbN4vv_powf): Removed.
32400 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32401 ...
32402 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32403 Don't include <sysdep.h> nor <init-arch.h>.
32404 (_ZGVdN8vv_powf): Removed.
32405 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32406 ...
32407 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32408 Don't include <sysdep.h> nor <init-arch.h>.
32409 (_ZGVeN16vvv_sincosf): Removed.
32410 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32411 ...
32412 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32413 Don't include <sysdep.h> nor <init-arch.h>.
32414 (_ZGVbN4vvv_sincosf): Removed.
32415 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32416 ...
32417 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32418 Don't include <sysdep.h> nor <init-arch.h>.
32419 (_ZGVdN8vvv_sincosf): Removed.
32420 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32421 ...
32422 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32423 Don't include <sysdep.h> nor <init-arch.h>.
32424 (_ZGVeN16v_sinf): Removed.
32425 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32426 ...
32427 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32428 Don't include <sysdep.h> nor <init-arch.h>.
32429 (_ZGVbN4v_sinf): Removed.
32430 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32431 ...
32432 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32433 Don't include <sysdep.h> nor <init-arch.h>.
32434 (_ZGVdN8v_sinf): Removed.
32435
32436 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32437
32438 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32439 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32440 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32441 s_rint-sse4_1 and s_rintf-sse4_1.
32442 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32443 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32444 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32445 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32446 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32447 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32448 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32449 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32450 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32451 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32452 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32453 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32454 (__ceil): Removed.
32455 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32456 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32457 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32458 (__ceilf): Removed.
32459 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32460 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32461 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32462 (__floor): Removed.
32463 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32464 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32465 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32466 (__floorf): Removed.
32467 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32468 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32469 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32470 (__nearbyint): Removed.
32471 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32472 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32473 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32474 (__nearbyintf): Removed.
32475 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32476 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32477 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32478 (__rint): Removed.
32479 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32480 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32481 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32482 (__rintf): Removed.
32483
32484 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32485
32486 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32487 SHARED. Avoid dynamic relocation against main in static PIE.
32488
32489 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32490
32491 [BZ #21815]
32492 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32493 (LDFLAGS-tst-prelink): Likewise.
32494
32495 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32496
32497 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32498 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32499 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32500 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32501 (INTERNAL_SYSCALL_NCS): Likewise.
32502 (LOADARGS_1): Likewise.
32503 (LOADARGS_5): Likewise.
32504 (RESTOREARGS_1): Likewise.
32505 (RESTOREARGS_5): Likewise.
32506
32507 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32508
32509 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32510 (MEMPCPY_SYMBOL): Likewise.
32511 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32512 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32513 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32514 in libc.a.
32515 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32516 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32517 Likewise.
32518 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32519 (__hidden_ver1): Don't use in libc.a.
32520 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32521 (__mempcpy): Don't create a weak alias in libc.a.
32522 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32523 libc.a.
32524 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32525 (__hidden_ver1): Don't use in libc.a.
32526
32527 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32528
32529 * config.make.in (have-insert): New.
32530 * configure.ac (libc_cv_insert): New. Set to yes if linker
32531 supports INSERT in linker script.
32532 (AC_SUBST(libc_cv_insert): New.
32533 * configure: Regenerated.
32534 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32535 if $(have-insert) == yes.
32536
32537 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32538
32539 * elf/Makefile (tests): Add vismain only if
32540 $(have-protected-data) == yes.
32541 (tests-pie): Likewise.
32542
32543 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32544
32545 [BZ #21871]
32546 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32547 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32548
32549 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32550
32551 [BZ #21790]
32552 * sysdeps/i386/i586/memset.S
32553 (__memset_zero_constant_len_parameter): Removed.
32554 * sysdeps/i386/i686/memset.S
32555 (__memset_zero_constant_len_parameter): Likewise.
32556 * sysdeps/i386/i686/multiarch/memset_chk.S
32557 (__memset_zero_constant_len_parameter): Likewise.
32558 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32559 Likewise.
32560
32561 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32562
32563 * stdlib/getentropy.c (getentropy): Change return type to int.
32564
32565 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32566
32567 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32568
32569 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32570
32571 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32572 u_intN_t.
32573 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32574 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32575 Likewise.
32576 (ieee_float_shape_type): Likewise.
32577 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32578 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32579 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32580 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32581 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32582 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32583 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32584 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32585 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32586 Likewise.
32587 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32588 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32589 (__ieee754_yn): Likewise.
32590 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32591 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32592 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32593 Likewise.
32594 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32595 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32596 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32597 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32598 (__erfc): Likewise.
32599 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32600 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32601 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32602 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32603 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32604 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32605 Likewise.
32606 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32607 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32608 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32609 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32610 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32611 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32612 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32613 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32614 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32615 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32616 (__issignaling): Likewise.
32617 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32618 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32619 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32620 Likewise.
32621 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32622 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32623 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32624 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32625 Likewise.
32626 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32627 Likewise.
32628 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32629 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32630 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32631 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32632 (__erfcf): Likewise.
32633 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32634 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32635 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32636 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32637 Likewise.
32638 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32639 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32640 Likewise.
32641 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32642 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32643 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32644 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32645 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32646 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32647 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32648 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32649 Likewise.
32650 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32651 Likewise.
32652 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32653 Likewise.
32654 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32655 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32656 Likewise.
32657 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32658 Likewise.
32659 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32660 (__ieee754_ynl): Likewise.
32661 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32662 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32663 Likewise.
32664 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32665 Likewise.
32666 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32667 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32668 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32669 Likewise.
32670 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32671 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32672 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32673 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32674 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32675 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32676 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32677 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32678 Likewise.
32679 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32680 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32681 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32682 Likewise.
32683 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32684 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32685 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32686 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32687 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32688 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32689 Likewise.
32690 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32691 Likewise.
32692 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32693 Likewise.
32694 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32695 Likewise.
32696 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32697 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32698 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32699 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32700 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32701 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32702 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32703 Likewise.
32704 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32705 Likewise.
32706 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32707 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32708 Likewise.
32709 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32710 (__ieee754_remainderl): Likewise.
32711 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32712 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32713 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32714 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32715 Likewise.
32716 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32717 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32718 Likewise.
32719 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32720 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32721 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32722 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32723 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32724 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32725 Likewise.
32726 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32727 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32728 (__ieee754_y0l): Likewise.
32729 (pzero): Likewise.
32730 (qzero): Likewise.
32731 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32732 (__ieee754_y1l): Likewise.
32733 (pone): Likewise.
32734 (qone): Likewise.
32735 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32736 (__ieee754_ynl): Likewise.
32737 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32738 (__ieee754_lgammal_r): Likewise.
32739 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32740 Likewise.
32741 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32742 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32743 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32744 (__erfcl): Likewise.
32745 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32746 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32747 Likewise.
32748 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32749 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32750 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32751 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32752 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32753 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32754 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32755 Likewise.
32756 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32757 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32758 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32759 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32760 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32761 Likewise.
32762 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32763 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32764 Likewise.
32765 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32766 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32767 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32768 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32769 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32770
32771 2017-08-03 Florian Weimer <fweimer@redhat.com>
32772
32773 [BZ #21885]
32774 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32775 on memory allocation failure.
32776
32777 2017-08-03 Alan Modra <amodra@gmail.com>
32778
32779 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32780 tst-tlsopt-powerpc.c with function name change and no test harness.
32781 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32782 Call tls_get_addr_opt_test.
32783 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32784 (modules-names): Add mod-tlsopt-powerpc.
32785 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32786 (tst-tlsopt-powerpc): Depend on .so.
32787 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32788 define. Expand use in TLS_GD and TLS_LD.
32789
32790 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32791
32792 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32793 function.
32794 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32795
32796 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32797
32798 [BZ #21686]
32799 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32800 comparing size with that of double.
32801 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32802 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32803 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32804 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32805 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32806 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32807 unsigned __int128 types.
32808
32809 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32810
32811 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32812 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32813 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32814 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32815 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32816
32817 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32818
32819 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32820
32821 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32822
32823 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32824 of SHARED.
32825 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32826 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32827 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32828 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32829 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32830 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32831 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32832
32833 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32834
32835 [BZ #21685]
32836 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32837 bit-field expressions passed to sizeof or typeof.
32838 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32839 (__TGMATH_F128): Likewise.
32840 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32841 (__TGMATH_CF128): Likewise.
32842 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32843 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32844 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32845 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32846 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32847 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32848 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32849 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32850 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32851 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32852 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32853 (__TGMATH_UNARY_IMAG): Likewise.
32854 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32855 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32856 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32857 type.
32858 (define_vars_for_type): Handle bit_field type specially.
32859 (Tests.__init__): Declare structure with bit-field element.
32860
32861 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32862
32863 [BZ #21791]
32864 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32865 (MEMCPY_CHK): Define only if SHARED is defined.
32866 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32867 Likewise.
32868 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32869 Likewise.
32870
32871 See ChangeLog.18 for earlier changes.