]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
3a70b618ab9f8f806e8e0e564c425e063220610b
[thirdparty/glibc.git] / ChangeLog
1 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2
3 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
4 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5 __GI___wcscpy and wcscpy.
6
7 2019-03-04 Florian Weimer <fweimer@redhat.com>
8
9 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
10 declaration.
11 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
12 defined.
13
14 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
15
16 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
17 * sysdeps/s390/s390-32/sysdep.h: Likewise.
18
19 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
20
21 [BZ #24162]
22 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
23 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
24
25 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26
27 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
28 tests.
29 (do_test): Likewise.
30 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
31 (do_test_call_varg): Likewise.
32 (do_test_call_rarg): Likewise.
33 * sysdeps/ieee754/ldbl-opt/Makefile
34 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
35 tst-nldbl-error.
36 ($(objpfx)tst-nldbl-warn.c): New rule.
37 ($(objpfx)tst-nldbl-error.c): Likewise.
38 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
39 New variables.
40
41 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
42
43 [BZ #23984]
44 * include/bits/error-ldbl.h: New file.
45 * include/error.h: Include stdarg.h. Declare internal functions
46 __error_internal and __error_at_line_internal.
47 * misc/Makefile (headers): Add bits/error-ldbl.h.
48 * misc/bits/error-ldbl.h: New file.
49 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
50 avoid the inclusion of bits/error.h.
51 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
52 and __nldbl_error_at_line.
53 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
54 (__nldbl_error, __ndlbl_error_at_line): New functions.
55 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
56 Redirect error and error_at_line.
57 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
58 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
59 Likewise.
60 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
61 Likewise.
62 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
63 Likewise.
64 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
65 Likewise.
66 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
67 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
68 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
69
70 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
71
72 [BZ #23984]
73 * include/bits/err-ldbl.h: New file.
74 * include/err.h: Add prototypes for the internal functions:
75 __vwarnx_internal and __vwarn_internal.
76 * misc/Makefile (headers): Add bits/err-ldbl.h.
77 * misc/bits/err-ldbl.h: New file.
78 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
79 defined, i.e.: when -mlong-double-64 is in use.
80 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
81 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
82 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
83 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
84 (VA_CALL): New macro.
85 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
86 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
87 functions.
88 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
89 declare prototypes for the new functions.
90 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
91 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
92 Likewise.
93 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
94 Likewise.
95 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
96 Likewise.
97 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
98 Likewise.
99 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
100 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
101 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
102
103 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
104
105 * sysdeps/ieee754/ldbl-opt/Makefile
106 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
107 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
108 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
109
110 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
111
112 [BZ #23983]
113 * argp/Makefile (headers): Add bits/argp-ldbl.h.
114 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
115 * argp/bits/argp-ldbl.h: New file.
116 * include/argp.h: Include stdarg.h. Add prototypes for internal
117 functions: __argp_error_internal and __argp_failure_internal.
118 * include/bits/argp-ldbl.h: New file.
119 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
120 __nldbl_argp_error and __nldbl_argp_failure.
121 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
122 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
123 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
124 Redirect argp_error and argp_failure calls.
125 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
126 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
127 Likewise.
128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
129 Likewise.
130 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
131 Likewise.
132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
133 Likewise.
134 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
135 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
136 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
137
138 2019-03-01 Florian Weimer <fweimer@redhat.com>
139
140 [BZ #20419]
141 * elf/tst-big-note-lib.S: Create a syntactically valid note.
142 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
143 code, to avoid creating an ABI tag note.
144 (modules-names-nobuild): Add tst-big-note-lib.
145
146 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
147
148 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
149 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
150
151 2019-03-01 Florian Weimer <fweimer@redhat.com>
152
153 [BZ #20271]
154 * sysdeps/unix/sysv/linux/netlink_assert_response.c
155 (__netlink_assert_response): Add additional missing newlines.
156
157 2019-02-28 Joseph Myers <joseph@codesourcery.com>
158
159 * sysdeps/powerpc/powerpc32/dl-machine.c
160 (__elf_machine_fixup_plt): Use space before '('.
161 (__process_machine_rela): Likewise.
162 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
163 Likewise.
164 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
165 Likewise.
166 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
167 Likewise.
168 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
169 (pattern): Likewise.
170 (delta): Likewise.
171 (check_result): Likewise.
172 (check_excepts): Likewise.
173 (check_op): Likewise.
174 (fail_xr): Likewise.
175 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
176 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
177 (SCNHSZ): Likewise.
178 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
179 Likewise.
180 (ARGS): Likewise.
181 (__makecontext): Likewise.
182 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
183 Likewise.
184
185 2019-02-28 Florian Weimer <fweimer@redhat.com>
186
187 [BZ #23937]
188 elf: Add test with a local IFUNC resolver.
189 * elf/ifuncmain9.c: New file.
190 * elf/ifuncmain9pic.c: Likewise.
191 * elf/ifuncmain9picstatic.c: Likewise.
192 * elf/ifuncmain9pie.c: Likewise.
193 * elf/ifuncmain9static.c: Likewise.
194 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
195 ifuncmain9static, ifuncmain9picstatic.
196 * elf/Makefile [multi-arch && build-shared] (tests-internal):
197 Add ifuncmain9, ifuncmain9pic.
198 * elf/Makefile [multi-arch && build-shared && have-fpie]
199 (ifunc-pie-tests): Add ifuncmain9pie.
200 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
201 (CFLAGS-ifuncmain9picstatic.c): Likewise.
202 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
203
204 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
205
206 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
207 * configure: Regenerated.
208 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
209
210 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
211
212 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
213 symbol as __wcspcy instead of wcscpy.
214
215 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
216
217 * include/stdio.h (__renameat2): New hidden prototype.
218 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
219 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
220 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
221 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
222
223 2019-02-27 Joseph Myers <joseph@codesourcery.com>
224
225 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
226 if statement.
227
228 * benchtests/bench-strcpy.c (do_test): Use space before '('.
229 * benchtests/bench-string.h (cmdline_process_function): Likewise.
230 * benchtests/bench-strlen.c (do_test): Likewise.
231 (test_main): Likewise.
232 * catgets/gencat.c (read_old): Likewise.
233 * elf/cache.c (load_aux_cache): Likewise.
234 * iconvdata/bug-iconv8.c (do_test): Likewise.
235 * math/test-tgmath-ret.c (do_test): Likewise.
236 * nis/nis_call.c (rec_dirsearch): Likewise.
237 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
238 * nptl/tst-audit-threads.c (do_test): Likewise.
239 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
240 * nss/nss_test1.c (init): Likewise.
241 * nss/test-netdb.c (test_hosts): Likewise.
242 * posix/execvpe.c (maybe_script_execute): Likewise.
243 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
244 * stdio-common/tst-printf.c (do_test): Likewise.
245 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
246 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
247 * stdlib/qsort.c (STACK_SIZE): Likewise.
248 * stdlib/test-canon.c (do_test): Likewise.
249 * stdlib/tst-swapcontext1.c (do_test): Likewise.
250 * string/memcmp.c (OPSIZ): Likewise.
251 * string/test-strcpy.c (do_test): Likewise.
252 (do_random_tests): Likewise.
253 * string/test-strlen.c (do_test): Likewise.
254 (test_main): Likewise.
255 * string/test-strrchr.c (do_test): Likewise.
256 (do_random_tests): Likewise.
257 * string/tester.c (test_memrchr): Likewise.
258 (test_memchr): Likewise.
259 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
260 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
261 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
262 (read_encoded_value_with_base): Likewise.
263 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
264 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
265 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
266 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
267 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
268 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
269 Likewise.
270 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
271 Likewise.
272 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
273 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
274 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
275 Likewise.
276 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
277 Likewise.
278 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
279 Likewise.
280 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
281 Likewise.
282 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
283 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
284 (FP_XSTATE_MAGIC2_SIZE): Likewise.
285 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
286 * time/test_time.c (main): Likewise.
287
288 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
289
290 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
291
292 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
293 wmemcpy.
294
295 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
296 wmemcpy.
297
298 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
299
300 * include/wchar.h (__wcscpy): New prototype.
301 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
302 (__wcscpy): Route internal symbol to generic implementation.
303 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
304 Add internal __wcscpy alias.
305 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
306 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
307 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
308 * wcsmbs/wcscpy.c (wcscpy): Add
309 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
310 use generic implementation.
311 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
312
313 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
314 wmemset.
315
316 * sysdeps/m68k/wcpcpy.c: Remove file.
317 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
318
319 2019-02-26 Joseph Myers <joseph@codesourcery.com>
320
321 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
322 than after operators.
323 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
324 * sysdeps/mach/hurd/getcwd.c
325 (__hurd_canonicalize_directory_name_internal): Likewise.
326 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
327 (pthread_mutex_consistent): Likewise.
328 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
329 Likewise.
330 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
331 (__pthread_mutex_transfer_np): Likewise.
332 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
333 (__pthread_mutex_unlock): Likewise.
334 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
335 (mtx_owned_p): Likewise.
336 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
337 (pthread_mutexattr_getrobust): Likewise.
338 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
339 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
340 Likewise.
341 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
342 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
343 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
344 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
345 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
346 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
347 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
348 Likewise.
349 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
350 Likewise.
351 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
352 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
353 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
354 (____longjmp_chk): Likewise.
355 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
356 Likewise.
357 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
358 (INTERNAL_SYSCALL): Likewise.
359 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
360 (INTERNAL_SYSCALL): Likewise.
361 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
362 (__get_clockfreq_via_cpuinfo): Likewise.
363
364 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
365 comments.
366 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
367 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
368 (WORD_COPY_BWD): Likewise.
369 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
370 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
371 Likewise.
372 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
373 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
374 comment.
375 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
376
377 2019-02-25 Joseph Myers <joseph@codesourcery.com>
378
379 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
380 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
381 rather than after operators.
382 * elf/cache.c (print_cache): Likewise.
383 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
384 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
385 * hurd/hurdinit.c (_hurd_setproc): Likewise.
386 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
387 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
388 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
389 (reauth_proc): Likewise.
390 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
391 (__file_name_split_at): Likewise.
392 (__directory_name_split_at): Likewise.
393 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
394 * hurd/port2fd.c (_hurd_port2fd): Likewise.
395 * iconv/gconv_dl.c (do_print): Likewise.
396 * inet/netinet/in.h (struct sockaddr_in): Likewise.
397 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
398 * locale/setlocale.c (new_composite_name): Likewise.
399 * malloc/memusagestat.c (main): Likewise.
400 * misc/fstab.c (fstab_convert): Likewise.
401 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
402 Likewise.
403 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
404 (getgrent_next_file): Likewise.
405 (internal_getgrnam_r): Likewise.
406 (internal_getgrgid_r): Likewise.
407 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
408 Likewise.
409 (internal_getgrent_r): Likewise.
410 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
411 (getpwent_next_nss): Likewise.
412 (getpwent_next_file): Likewise.
413 (internal_getpwnam_r): Likewise.
414 (internal_getpwuid_r): Likewise.
415 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
416 Likewise.
417 (getspent_next_nss): Likewise.
418 (internal_getspnam_r): Likewise.
419 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
420 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
421 * string/strchr.c (STRCHR): Likewise.
422 * string/strchrnul.c (STRCHRNUL): Likewise.
423 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
424 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
425 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
426 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
427 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
428 Likewise.
429 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
430 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
431 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
432 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
433 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
434 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
435 (open_file): Likewise.
436 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
437 (pthread_mutexattr_setprotocol): Likewise.
438 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
439 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
440 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
441 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
442 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
443 Likewise.
444 (elf_machine_rela): Likewise.
445 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
446 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
447 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
448 * sysdeps/posix/rename.c (rename): Likewise.
449 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
450 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
451 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
452 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
453 * sysdeps/unix/grantpt.c (grantpt): Likewise.
454 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
455 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
456 Likewise.
457 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
458 Likewise.
459 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
460 * time/tzfile.c (__tzfile_compute): Likewise.
461
462 2019-02-22 Joseph Myers <joseph@codesourcery.com>
463
464 * benchtests/bench-memmem.c (simple_memmem): Break lines before
465 rather than after operators.
466 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
467 * crypt/md5.c (md5_finish_ctx): Likewise.
468 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
469 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
470 * elf/cache.c (load_aux_cache): Likewise.
471 * elf/dl-load.c (open_verify): Likewise.
472 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
473 * elf/readelflib.c (process_elf_file): Likewise.
474 * elf/rtld.c (dl_main): Likewise.
475 * elf/sprof.c (generate_call_graph): Likewise.
476 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
477 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
478 * hurd/dtable.c (reauth_dtable): Likewise.
479 * hurd/getdport.c (__getdport): Likewise.
480 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
481 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
482 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
483 Likewise.
484 * hurd/hurdioctl.c (fioctl): Likewise.
485 * hurd/hurdselect.c (_hurd_select): Likewise.
486 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
487 (STOPSIGS): Likewise.
488 * hurd/hurdstartup.c (_hurd_startup): Likewise.
489 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
490 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
491 * hurd/msgportdemux.c (msgport_server): Likewise.
492 * hurd/setauth.c (_hurd_setauth): Likewise.
493 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
494 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
495 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
496 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
497 * login/tst-utmp.c (do_check): Likewise.
498 (simulate_login): Likewise.
499 * mach/lowlevellock.h (lll_lock): Likewise.
500 (lll_trylock): Likewise.
501 * math/test-fenv.c (ALL_EXC): Likewise.
502 * math/test-fenvinline.c (ALL_EXC): Likewise.
503 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
504 * nis/nis_call.c (__do_niscall3): Likewise.
505 * nis/nis_callback.c (cb_prog_1): Likewise.
506 * nis/nis_defaults.c (searchaccess): Likewise.
507 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
508 * nis/nis_ismember.c (internal_ismember): Likewise.
509 * nis/nis_local_names.c (nis_local_principal): Likewise.
510 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
511 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
512 Likewise.
513 * nis/ypclnt.c (yp_match): Likewise.
514 (yp_first): Likewise.
515 (yp_next): Likewise.
516 (yp_master): Likewise.
517 (yp_order): Likewise.
518 * nscd/hstcache.c (cache_addhst): Likewise.
519 * nscd/initgrcache.c (addinitgroupsX): Likewise.
520 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
521 (internal_getpwuid_r): Likewise.
522 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
523 * posix/glob.h (__GLOB_FLAGS): Likewise.
524 * posix/regcomp.c (peek_token): Likewise.
525 (peek_token_bracket): Likewise.
526 (parse_expression): Likewise.
527 * posix/regexec.c (sift_states_iter_mb): Likewise.
528 (check_node_accept_bytes): Likewise.
529 * posix/tst-spawn3.c (do_test): Likewise.
530 * posix/wordexp-test.c (testit): Likewise.
531 * posix/wordexp.c (parse_tilde): Likewise.
532 (exec_comm): Likewise.
533 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
534 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
535 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
536 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
537 * stdio-common/tst-fileno.c (do_test): Likewise.
538 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
539 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
540 * stdlib/strtod_l.c (round_and_return): Likewise.
541 (____STRTOF_INTERNAL): Likewise.
542 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
543 * string/strcspn.c (STRCSPN): Likewise.
544 * string/test-memmem.c (simple_memmem): Likewise.
545 * termios/tcsetattr.c (tcsetattr): Likewise.
546 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
547 * time/asctime.c (asctime_internal): Likewise.
548 * time/strptime_l.c (__strptime_internal): Likewise.
549 * time/sys/time.h (timercmp): Likewise.
550 * time/tzfile.c (__tzfile_compute): Likewise.
551
552 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
553
554 [BZ #21915]
555 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
556
557 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
558
559 * argp/argp-help.c (__argp_error_internal): New function,
560 renamed from __argp_error, but that takes a 'mode_flags'
561 parameter to control the format of long double parameters.
562 (__argp_error): Converted into a call __argp_error_internal.
563 (__argp_failure_internal): New function, renamed from
564 __argp_failure, but that takes a 'mode_flags' parameter.
565 (__argp_failure): Converted into a call __argp_failure_internal.
566 * misc/err.c (__vwarnx_internal): New function, renamed from
567 vwarnx, but that takes a 'mode_flags' parameter.
568 (vwarnx): Converted into a call to __vwarnx_internal.
569 (__vwarn_internal): New function, renamed from vwarn, but that
570 takes a 'mode_flags' parameter.
571 (vwarn): Converted into a call to __vwarn_internal.
572 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
573 call to __vfxprintf with 'mode_flags'.
574 (__error_internal): New function, renamed from error, but that
575 takes a 'mode_flags' parameter.
576 (error): Converted into a call to __error_internal.
577 (__error_at_line_internal): New function, renamed from
578 error_at_line, but that takes a 'mode_flags' parameter.
579 (error_at_line): Converted into a call to
580 __error_at_line_internal.
581 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
582 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
583 Likewise.
584
585 2019-02-20 Martin Liska <mliska@suse.cz>
586
587 * math/Makefile: Install math-vector-fortran.h.
588 * bits/math-vector-fortran.h: New file.
589 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
590
591 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
592
593 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
594 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
595
596 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
597
598 * nptl/pthread_mutex_trylock.c: Fix comment.
599
600 2019-02-19 Carlos O'Donell <carlos@redhat.com>
601
602 * nptl/pthread_tryjoin.c: Fix comment.
603
604 2019-02-18 Joseph Myers <joseph@codesourcery.com>
605
606 [BZ #24231]
607 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
608 after R_SPARC_H34 case.
609
610 2019-02-18 Florian Weimer <fweimer@redhat.com>
611
612 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
613 (getanswer): Do not call Dprintf.
614 (res_gethostbyname2_context): Likewise.
615 (res_gethostbyaddr_context): Likewise.
616
617 2019-02-18 Florian Weimer <fweimer@redhat.com>
618
619 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
620 declaration.
621 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
622 Remove definitions.
623 * libio/stdfiles.c: Update comment.
624 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
625 set _IO_stdin, _IO_stdout, _IO_stderr.
626 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
627 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
628 inline function.
629 (_IO_deallocate_file): New inline function.
630 * libio/iolibio.h (_IO_vprintf): Remove definition.
631 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
632 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
633 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
634 _IO_legacy_file.
635 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
636 __builtin_expect. Use _IO_legacy_file.
637
638 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
639
640 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
641 Initialize ctid with a known value and remove update of ctid
642 after clone.
643 (wait_tid): Adjust arguments and call futex_wait with ctid_val
644 as assumed current value of ctid_ptr.
645
646 2019-02-15 Florian Weimer <fweimer@redhat.com>
647
648 Check that non-sysdeps headers have wrapper headers.
649 * scripts/check-wrapper-headers.py: New file.
650 * Makefile (tests-special): Add check-wrapper-headers.out.
651 (check-wrapper-headers.out): New target.
652 * Rules (tests-special): Add check-wrapper-headers.out.
653 (check-wrapper-headers.out): New target.
654
655 2019-02-15 Florian Weimer <fweimer@redhat.com>
656
657 Add missing header wrappers under include/.
658 * include/ar.h: New file.
659 * include/bits/mqueue2.h: Likewise.
660 * include/bits/stdio.h: Likewise.
661 * include/bits/stdio2.h: Likewise.
662 * include/fstab.h: Likewise.
663 * include/fts.h: Likewise.
664 * include/lastlog.h: Likewise.
665 * include/netinet/icmp6.h: Likewise.
666 * include/netinet/igmp.h: Likewise.
667 * include/netinet/ip6.h: Likewise.
668 * include/re_comp.h: Likewise.
669 * include/regexp.h: Likewise.
670 * include/rpcsvc/bootparam.h: Likewise.
671 * include/rpcsvc/yp_prot.h: Likewise.
672 * include/sys/random.h: Likewise.
673 * include/sys/stropts.h: Likewise.
674 * include/sys/ttychars.h: Likewise.
675 * include/sys/vfs.h: Likewise.
676 * include/wait.h: Likewise.
677
678 2019-02-15 Florian Weimer <fweimer@redhat.com>
679
680 * nptl_db/proc_service.h: Move to ...
681 * sysdeps/nptl/proc_service.h: ... here.
682 * nptl_db/thread_db.h: Move to ...
683 * sysdeps/nptl/thread_db.h: ... here.
684 * nptl/descr.h: Include <thread_db.h>.
685
686 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
687
688 * io/Makefile (tests): Add tst-lockf.
689 * io/lockf.c (lockf): Use __fcntl and only define for
690 !__OFF_T_MATCHES_OFF64_T.
691 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
692 __OFF_T_MATCHES_OFF64_T case.
693 * io/tst-lockf.c: New file.
694 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
695 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
696 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
697 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
698 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
700 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
701 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
702 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
703
704 2019-02-15 Florian Weimer <fweimer@redhat.com>
705
706 [BZ #24211]
707 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
708 pd->result after the thread descriptor has been freed.
709
710 2019-02-15 Joseph Myers <joseph@codesourcery.com>
711
712 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
713 from function return type.
714
715 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
716
717 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
718
719 * scripts/test_printers_common.py: Set TERM to a known harmless
720 value.
721
722 2019-02-14 Joseph Myers <joseph@codesourcery.com>
723
724 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
725 (xdr_u_int): Likewise.
726 (xdr_enum): Likewise.
727 (xdr_bytes): Reword fall-through comment.
728 (xdr_string): Likewise.
729
730 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
731
732 [BZ #2421]
733 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
734 (tests): Add tst-join8 tst-join9.
735 * nptl/lll_timedwait_tid.c: Remove file.
736 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
737 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
738 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
739 * nptl/pthread_join_common.c (timedwait_tid): New function.
740 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
741 is set.
742 * nptl/tst-join5.c (thread_join): New function.
743 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
744 check.
745 * nptl/tst-join8.c: New file.
746 * nptl/tst-join9.c: Likewise.
747 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
748 lll_futex_timed_wait_cancel): Add generic macros.
749 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
750 Remove definitions.
751 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
752 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
753 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
754 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
755 Remove function.
756 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
757 Likewise.
758 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
759 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
760 (lll_futex_timed_wait_cancel): New macro.
761
762 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
763
764 * benchtests/Makefile: Add malloc-simple benchmark.
765 * benchtests/bench-malloc-simple.c: New benchmark.
766
767 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
768
769 * benchtests/bench-memmove.c (do_one_test): Remove unused
770 ORIG_SRC.
771 (do_test): Adjust.
772 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
773 ORIG_SRC.
774 (do_test): Adjust.
775
776 2019-01-13 Jim Wilson <jimw@sifive.com>
777
778 [BZ #24040]
779 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
780 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
781 (func): New.
782 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
783 call func directly.
784 * nptl/Makefile (tests): Add tst-unwind-thread.
785 (CFLAGS-tst-unwind-thread.c): Define.
786 * nptl/tst-unwind-thread.c: New file.
787 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
788 as undefined.
789
790 2019-02-13 Joseph Myers <joseph@codesourcery.com>
791
792 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
793 comment wording.
794 * nis/nis_call.c (__do_niscall3): Likewise.
795
796 * catgets/gencat.c (normalize_line): Use braces around empty
797 'else' body.
798 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
799 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
800 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
801 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
802 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
803 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
804 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
805 definition.
806
807 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
808 execlp returns.
809
810 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
811
812 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
813 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
814 * benchtests/bench-strchr.c (stupid_strchr): Remove.
815 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
816 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
817 * benchtests/bench-strlen.c (builtin_strlen): Remove.
818 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
819 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
820 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
821 * benchtests/bench-strspn.c (stupid_strspn): Remove.
822 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
823 * benchtests/bench-bcopy.c: Delete file.
824 * benchtests/bench-bzero.c: Likewise.
825 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
826 (simple_memccpy): Remove.
827 (generic_memccpy): Add function.
828 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
829 * benchtests/bench-memmove.c (simple_bcopy): Remove.
830 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
831 (generic_mempcpy): Add new function.
832 * benchtests/bench-memset.c (simple_bzero): Remove.
833 (builtin_bzero): Remove.
834 (builtin_memset): Remove.
835 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
836 (generic_rawmemchr): Add new function.
837
838 2019-02-12 Florian Weimer <fweimer@redhat.com>
839
840 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
841
842 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
843
844 [BZ #24122]
845 * elf/Makefile (tests): Add tst-audit13.
846 (modules-names): Add tst-audit13mod1.
847 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
848 rule.
849 * elf/tst-audit13.c: New file.
850 * elf/tst-audit13mod1.c: Likewise.
851
852 2019-02-12 Florian Weimer <fweimer@redhat.com>
853
854 [BZ #24122]
855 * elf/rtld.c (unload_audit_module): New function.
856 (report_audit_module_load_error): Likewise.
857 (load_audit_module): Likewise. Extracted from dl_main. Call
858 _dl_close if the laversion symbol cannot be found. Use early
859 returns for error handling. Add malloc error check. Check for a
860 zero return value from la_version. Remove spurious comment about
861 static TLS initialization. Remove useless casts.
862 (notify_audit_modules_of_loaded_object): New function. Extracted
863 from dl_main.
864 (load_audit_module): Likewise.
865 (dl_main): Call load_audit_modules.
866
867 2019-02-12 Joseph Myers <joseph@codesourcery.com>
868
869 * elf/dl-exception.c (_dl_exception_create_format): Add
870 fall-through comments.
871 * elf/ldconfig.c (parse_conf_include): Likewise.
872 * elf/rtld.c (print_statistics): Likewise.
873 * locale/programs/charmap.c (parse_charmap): Likewise.
874 * misc/mntent_r.c (__getmntent_r): Likewise.
875 * posix/wordexp.c (parse_arith): Likewise.
876 (parse_backtick): Likewise.
877 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
878 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
879 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
880
881 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
882
883 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
884 Use float instead of double.
885
886 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
887
888 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
889
890 2019-02-08 Joseph Myers <joseph@codesourcery.com>
891
892 * sysdeps/powerpc/bits/mathinline.h: Remove.
893
894 2019-02-08 Florian Weimer <fweimer@redhat.com>
895
896 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
897 * math/bits/math-finite.h: Move to ...
898 * bits/math-finite.h: ... here.
899
900 2019-02-08 Florian Weimer <fweimer@redhat.com>
901
902 * sysdeps/generic/bits/unistd_ext.h: Move to ...
903 * bits/unistd_ext.h: here.
904
905 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
906
907 [BZ #21915]
908 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
909 * nss/tst-nss-files-hosts-long.c: New file.
910 * nss/tst-nss-files-hosts-long.root: New directory.
911 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
912 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
913
914 2019-02-08 Florian Weimer <fweimer@redhat.com>
915
916 * include/bits/unistd_ext.h: Remove file.
917 * posix/bits/unistd_ext.h: Move to ...
918 * sysdeps/generic/bits/unistd_ext.h: ... here.
919
920 2019-02-08 Florian Weimer <fweimer@redhat.com>
921
922 * include/bits/unistd_ext.h: New file.
923
924 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
925
926 * time/tst-strftime2.c: Use array_length macros instead of magic
927 numbers.
928
929 2019-02-08 Florian Weimer <fweimer@redhat.com>
930
931 [BZ #24161]
932 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
933 argument.
934 * nptl/register-atfork.c (__run_fork_handlers): Only perform
935 locking if the new do_locking argument is true.
936 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
937 __run_fork_handlers.
938
939 2019-02-08 Florian Weimer <fweimer@redhat.com>
940
941 [BZ #6399]
942 Linux: Add gettid system call wrapper.
943 * posix/Makefile (headers): Add bits/unistd_ext.h.
944 * posix/bits/unistd_ext.h: New file.
945 * posix/unistd.h: Include it.
946 * manual/process.texi (Process Identification): Document gettid.
947 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
948 tst-gettid, tst-gettid-kill.
949 (tst-gettid): Link with $(shared-thread-library).
950 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
951 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
952 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
953 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
954 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
955 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
956 Add gettid.
957 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
958 Likewise.
959 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
960 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
961 Likewise.
962 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
963 Likewise.
964 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
965 Likewise.
966 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
967 Likewise.
968 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
969 Likewise.
970 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
971 Likewise.
972 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
973 Likewise.
974 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
975 (GLIBC_2.30): Likewise.
976 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
977 (GLIBC_2.30): Likewise.
978 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
979 (GLIBC_2.30): Likewise.
980 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
981 (GLIBC_2.30): Likewise.
982 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
983 Likewise.
984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
985 (GLIBC_2.30): Likewise.
986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
987 (GLIBC_2.30): Likewise.
988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
989 (GLIBC_2.30): Likewise.
990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
991 (GLIBC_2.30): Likewise.
992 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
993 Likewise.
994 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
995 Likewise.
996 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
997 Likewise.
998 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
999 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1000 Likewise.
1001 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1002 Likewise.
1003 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1004 Likewise.
1005 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1006 Likewise.
1007 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1008
1009 2019-02-07 Florian Weimer <fweimer@redhat.com>
1010
1011 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1012 compatibility symbols.
1013
1014 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1015
1016 [BZ #24180]
1017 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1018 Add compiler barriers and comments.
1019
1020 2019-02-07 Florian Weimer <fweimer@redhat.com>
1021
1022 * include/array_length.h (array_length): Do not use a statement
1023 expression and _Static_assert, so that array_length can be used at
1024 file scope and as a constant expression.
1025
1026 2019-02-07 Florian Weimer <fweimer@redhat.com>
1027
1028 * support/xdlfcn.h (xdlmopen): Declare.
1029 * support/xdlmopen.c: New file.
1030 * support/Makefile (libsupport-routines): Add xdlmopen.
1031
1032 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1033
1034 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1035 before return type, without separate inline.
1036 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1037 * elf/dl-tunables.h (tunable_is_name): Likewise.
1038 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1039 (do_set_top_pad): Likewise.
1040 (do_set_mmap_threshold): Likewise.
1041 (do_set_mmaps_max): Likewise.
1042 (do_set_mallopt_check): Likewise.
1043 (do_set_perturb_byte): Likewise.
1044 (do_set_arena_test): Likewise.
1045 (do_set_arena_max): Likewise.
1046 (do_set_tcache_max): Likewise.
1047 (do_set_tcache_count): Likewise.
1048 (do_set_tcache_unsorted_limit): Likewise.
1049 * nis/nis_subr.c (count_dots): Likewise.
1050 * nptl/allocatestack.c (advise_stack_range): Likewise.
1051 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1052 (do_sin): Likewise.
1053 (reduce_sincos): Likewise.
1054 (do_sincos): Likewise.
1055 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1056 (do_set_elision_enable): Likewise.
1057 (TUNABLE_CALLBACK_FNDECL): Likewise.
1058
1059 2019-02-06 Florian Weimer <fweimer@redhat.com>
1060
1061 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1062 (xdlsym): Use dlerror to detect a NULL symbol.
1063
1064 2019-02-06 Florian Weimer <fweimer@redhat.com>
1065
1066 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1067 <stap-probe.h>.
1068 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1069
1070 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1071
1072 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1073
1074 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1075
1076 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1077 __wmemcmp and weak alias to wmemcmp.
1078
1079 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1080
1081 [BZ #23403]
1082 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1083 TLS_TCB_AT_TP tls variant.
1084 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1085 Add alignment checks.
1086 * support/Makefile (libsupport-routines): Add xposix_memalign and
1087 xpthread_setstack.
1088 * support/support.h: Add xposix_memalign.
1089 * support/xthread.h: Add xpthread_attr_setstack.
1090 * support/xposix_memalign.c: New File.
1091 * support/xpthread_attr_setstack.c: Likewise.
1092
1093 2019-02-05 Florian Weimer <fweimer@redhat.com>
1094
1095 [BZ #24164]
1096 arm: Use "nr" constraint for Systemtap probes, to avoid the
1097 compiler using memory operands for constants, due to the "o"
1098 alternative in the default "nor" constraint.
1099 * include/stap-probe.h [USE_STAP_PROBE]: Include
1100 <stap-probe-machine.h>
1101 * sysdeps/generic/stap-probe-machine.h: New file.
1102 * sysdeps/arm/stap-probe-machine.h: Likewise.
1103
1104 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1105
1106 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1107 with 0, not tcache->entries[tc_idx].
1108
1109 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1110 once.
1111
1112 2019-02-04 Andreas Schwab <schwab@suse.de>
1113
1114 [BZ #16976]
1115 [BZ #17396]
1116 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1117 looking up collating elements match against (wide) character
1118 sequence instead of name. Correct alignment adjustment.
1119 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1120 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1121 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1122 (LOCALES): Add cs_CZ.ISO-8859-2.
1123 * posix/tst-fnmatch4.c: New file.
1124 * posix/tst-fnmatch5.c: New file.
1125 * include/wchar.h (__wmemcmp): Declare.
1126 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1127 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1128 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1129 * sysdeps/s390/wmemcmp.c: Likewise.
1130
1131 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1132
1133 [BZ #24155]
1134 CVE-2019-7309
1135 * NEWS: Updated for CVE-2019-7309.
1136 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1137 upper 32 bits of RDX register for x32. Use unsigned Jcc
1138 instructions, instead of signed.
1139 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1140 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1141
1142 2019-02-04 Florian Weimer <fweimer@redhat.com>
1143
1144 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1145 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1146 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1147 Likewise.
1148 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1149 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1150 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1151 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1152 Likewise.
1153 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1154 Likewise.
1155 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1156 Likewise.
1157 (posix_spawn_file_actions_addopen): Likewise.
1158 (posix_spawn_file_actions_addclose): Likewise.
1159 (posix_spawn_file_actions_adddup2): Likewise.
1160 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1161 qualifiers.
1162 (posix_spawn_file_actions_addfchdir_np): Likewise.
1163
1164 2019-02-04 David Newall <glibc@davidnewall.com>
1165
1166 elf: Implement --preload option for the dynamic linker.
1167 * elf/rtld.c (preloadarg): New variable.
1168 (handle_preload_list): Pass through “where” argument to
1169 do_preload.
1170 (dl_main): Handle "--preload" and add second call to
1171 handle_preload_list.
1172 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1173 (tst-rtld-preload-OBJS): Set variable.
1174 (tst-rtld-preload.out): New target.
1175 * elf/tst-rtld-preload.sh: New file.
1176
1177 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1178
1179 * Makefile (testrun.sh): Exit in case of incorrect argument.
1180
1181 2019-02-04 Florian Weimer <fweimer@redhat.com>
1182
1183 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1184 alignment gaps.
1185
1186 2019-02-03 Florian Weimer <fweimer@redhat.com>
1187
1188 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1189 implicit overflow checks.
1190
1191 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1192
1193 * stdlib/isomac.c: Include <unistd.h>.
1194
1195 2019-02-03 Florian Weimer <fweimer@redhat.com>
1196
1197 * include/time.h (__tzfile_default): Use int, not long int, for
1198 the GMT offsets.
1199 * time/tzfile.c (struct ttinfo): Change type of the offset member
1200 to int.
1201 (__tzfile_read): Remove useless cast.
1202 (__tzfile_default): Adjust prototype.
1203 * time/tzset.c (tz_rule): Change type of the offset member to int.
1204 (parse_offset): Change the type of the sign variable to int.
1205
1206 2019-02-03 Florian Weimer <fweimer@redhat.com>
1207
1208 [BZ #24153]
1209 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1210 * libio/getchar.c (getchar): Likewise.
1211 * libio/getchar_u.c (getchar_unlocked): Likewise.
1212 * libio/getwchar.c (getwchar): Likewise.
1213 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1214 * libio/iogets.c (_IO_gets): Likewise.
1215 * libio/vscanf.c (_IO_vscanf): Likewise.
1216 * libio/vwscanf.c (__vwscanf): Likewise.
1217 * libio/tst-bz24153.c: New file.
1218 * libio/Makefile (tests): Add it.
1219
1220 2019-02-02 Florian Weimer <fweimer@redhat.com>
1221
1222 [BZ #14829]
1223 * manual/resource.texi (Basic Scheduling Functions): Add
1224 portability note. Change process to task throughout the section.
1225 Remove incorrect comment about sched_yield as it affects
1226 tasks/threads, not entire processes.
1227 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1228 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1229
1230 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1231
1232 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1233 * configure: Regenerated.
1234 * manual/install.texi (Tools for Compilation): Update minimum GCC
1235 version.
1236 * INSTALL: Regenerated.
1237
1238 2019-02-01 Florian Weimer <fweimer@redhat.com>
1239
1240 * support/support_test_compare_string.c
1241 (support_test_compare_string): Use "string" in error message.
1242 * support/tst-test_compare_string.c (do_test): Adjust.
1243
1244 2019-02-01 Florian Weimer <fweimer@redhat.com>
1245
1246 * support/support_format_address_family.c
1247 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1248
1249 2019-02-01 Florian Weimer <fweimer@redhat.com>
1250
1251 * manual/socket.texi (Internet Address Formats): Clarify the byte
1252 order of struct sockaddr_in, struct sockaddr_in6. Document
1253 sin6_flowinfo and sin6_scope_id.
1254
1255 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1256
1257 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1258 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1259 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1260 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1261 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1262 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1263
1264 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1265
1266 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1267 [!MEMCHR](MEMCHR): Set to __memchr.
1268 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1269 Add memchr_generic and memchr_nosimd.
1270 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1271 (__libc_ifunc_impl_list): Add memchr ifuncs.
1272 * sysdeps/aarch64/multiarch/memchr.c: New file.
1273 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1274 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1275
1276 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1277
1278 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1279 Add memset_emag.
1280 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1281 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1282 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1283 Add IS_EMAG check for ifunc dispatch.
1284 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1285 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1286
1287 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1288
1289 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1290 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1291 Add emag.
1292 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1293 New macro.
1294
1295 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1296
1297 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1298
1299 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1300
1301 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1302 syscall-template file.
1303
1304 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1305 Torvald Riegel <triegel@redhat.com>
1306 Rik Prohaska <prohaska7@gmail.com>
1307
1308 [BZ# 23844]
1309 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1310 tst-rwlock-trywrlock-stall.
1311 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1312 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1313 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1314 Set __wrphase_fute to 1 only if we started the write phase.
1315 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1316 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1317 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1318 * support/xpthread_rwlock_destroy.c: New file.
1319 * support/xthread.h: Declare xpthread_rwlock_destroy.
1320
1321 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1322
1323 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1324 version to 4.0.2.
1325
1326 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1327
1328 [BZ #24051]
1329 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1330 * libio/fileops.c (_IO_new_file_underflow): Likewise
1331 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1332 * libio/putchar.c (putchar): Likewise.
1333 * libio/putchar_u.c (putchar_unlocked): Likewise.
1334 * libio/putwchar.c (putchar): Likewise.
1335 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1336 * libio/tst-bz24051.c: New test.
1337 * libio/Makefile (tests): Add tst-bz24051
1338
1339 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1340
1341 regex: fix read overrun [BZ #24114]
1342 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1343 https://debbugs.gnu.org/34140
1344 * posix/regexec.c (proceed_next_node):
1345 Do not read past end of input buffer.
1346
1347 2019-01-31 Florian Weimer <fweimer@redhat.com>
1348
1349 [BZ #24059]
1350 * nss/nss_files/files-alias.c (get_next_alias): Handle
1351 continuation line without newline at the end.
1352 * nss/tst-nss-files-alias-truncated.c: New file.
1353 * nss/Makefile [$(build-shared)] (tests): Add
1354 tst-nss-files-alias-truncated.
1355 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1356 * support/namespace.h (struct support_chroot_configuration): Add
1357 aliases member.
1358 (struct support_chroot): Add path_aliases member.
1359 * support/support_chroot.c (support_chroot_create): Handle
1360 aliases.
1361 (support_chroot_free): Free path_aliases.
1362
1363 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1364
1365 * version.h (RELEASE): Set to "development".
1366 (VERSION): Set to "2.29.9000".
1367 * NEWS: Add section for 2.30.
1368
1369 * version.h (RELEASE): Set to "stable".
1370 (VERSION): Set to "2.29".
1371 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1372
1373 * NEWS: Add the list of bugs fixed in 2.29.
1374 * manual/contrib.texi: Update contributors list with some more
1375 names.
1376 * manual/install.texi: Update latest versions of packages
1377 tested.
1378 * INSTALL: Regenerated.
1379
1380 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1381
1382 * po/be.po: Update translations.
1383 * po/bg.po: Likewise.
1384 * po/ca.po: Likewise.
1385 * po/cs.po: Likewise.
1386 * po/da.po: Likewise.
1387 * po/de.po: Likewise.
1388 * po/el.po: Likewise.
1389 * po/eo.po: Likewise.
1390 * po/es.po: Likewise.
1391 * po/fi.po: Likewise.
1392 * po/fr.po: Likewise.
1393 * po/gl.po: Likewise.
1394 * po/hr.po: Likewise.
1395 * po/hu.po: Likewise.
1396 * po/ia.po: Likewise.
1397 * po/id.po: Likewise.
1398 * po/it.po: Likewise.
1399 * po/ja.po: Likewise.
1400 * po/ko.po: Likewise.
1401 * po/lt.po: Likewise.
1402 * po/nb.po: Likewise.
1403 * po/nl.po: Likewise.
1404 * po/pl.po: Likewise.
1405 * po/pt_BR.po: Likewise.
1406 * po/ru.po: Likewise.
1407 * po/rw.po: Likewise.
1408 * po/sk.po: Likewise.
1409 * po/sl.po: Likewise.
1410 * po/sv.po: Likewise.
1411 * po/tr.po: Likewise.
1412 * po/uk.po: Likewise.
1413 * po/vi.po: Likewise.
1414 * po/zh_CN.po: Likewise.
1415 * po/zh_TW.po: Likewise.
1416
1417 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1418
1419 [BZ #24130]
1420 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1421 of $f3 register on $y_is_neg path.
1422
1423 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1424
1425 [BZ #24110]
1426 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1427 sigaltstack.ss_flags.
1428
1429 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1430
1431 [BZ #23758]
1432 * manual/time.texi (strftime): Document "%Ey".
1433 * time/strftime_l.c (__strftime_internal): Set the default width
1434 padding with zero of "%Ey" to 2.
1435
1436 [BZ #24096]
1437 * manual/time.texi (strftime): Document "%EC" and "%EY".
1438 * time/Makefile (tests): Add tst-strftime2.
1439 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1440 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1441 override padding for "%Ey".
1442 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1443 "%Ey" in the subformat as if decorated with that flag.
1444 * time/tst-strftime2.c: New file.
1445
1446 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1447
1448 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1449 are not defined.
1450
1451 [BZ #24122]
1452 * elf/Makefile (tests): Add tst-audit13.
1453 (modules-names): Add tst-audit13mod1.
1454 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1455 rule.
1456 * elf/rtld.c (dl_main): Handle invalid audit module version.
1457 * elf/tst-audit13.c: New file.
1458 * elf/tst-audit13mod1.c: Likewise.
1459
1460 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1461
1462 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1463 returned by __hurd_at_flags.
1464 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1465 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1466 directly instead of __hurd_file_name_lookup.
1467
1468 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1469
1470 * scripts/build-many-glibcs.py (Context.checkout): Default
1471 binutils version to 2.32 branch.
1472
1473 2019-01-21 Florian Weimer <fweimer@redhat.com>
1474
1475 [BZ #20018]
1476 CVE-2016-10739
1477 resolv: Reject trailing characters in host names
1478 * include/arpa/inet.h (__inet_aton_exact): Declare.
1479 (inet_aton): Remove hidden prototype. No longer used internally.
1480 * nscd/gai.c (__inet_aton): Do not define.
1481 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1482 * nss/digits_dots.c (__inet_aton): Likewise.
1483 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1484 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1485 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1486 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1487 (tst-resolv-trailing): Likewise.
1488 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1489 libc.
1490 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1491 Make static. Add endp parameter.
1492 (__inet_aton_exact): New function.
1493 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1494 (__inet_addr): Call inet_aton_end.
1495 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1496 not just IPv6. Call __inet_aton_exact.
1497 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1498 (tests): Make const. Add additional test cases with trailing
1499 characters.
1500 (do_test): Use array_length.
1501 * resolv/tst-inet_aton_exact.c: New file.
1502 * resolv/tst-resolv-trailing.c: Likewise.
1503 * resolv/tst-resolv-nondecimal.c: Likewise.
1504 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1505
1506 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1507
1508 [BZ# 24097]
1509 CVE-2019-6488
1510 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1511 Clear the upper 32 bits of RSI register.
1512 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1513 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1514 and tst-size_t-wcsnlen.
1515 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1516 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1517
1518 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1519
1520 [BZ# 24097]
1521 CVE-2019-6488
1522 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1523 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1524 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1525 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1526 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1527
1528 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1529
1530 [BZ# 24097]
1531 CVE-2019-6488
1532 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1533 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1534 * sysdeps/x86_64/strcmp.S: Likewise.
1535 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1536 tst-size_t-strncmp and tst-size_t-wcsncmp.
1537 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1538 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1539 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1540
1541 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1542
1543 [BZ# 24097]
1544 CVE-2019-6488
1545 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1546 RDX_LP for length. Clear the upper 32 bits of RDX register.
1547 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1548 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1549 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1550 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1551
1552 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1553
1554 [BZ# 24097]
1555 CVE-2019-6488
1556 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1557 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1558 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1559 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1560
1561 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1562
1563 [BZ# 24097]
1564 CVE-2019-6488
1565 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1566 length. Clear the upper 32 bits of RDX register.
1567 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1568 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1569 Likewise.
1570 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1571 Likewise.
1572 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1573 tst-size_t-wmemchr.
1574 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1575
1576 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1577
1578 [BZ# 24097]
1579 CVE-2019-6488
1580 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1581 length. Clear the upper 32 bits of RDX register.
1582 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1583 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1584 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1585 tst-size_t-wmemcmp.
1586 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1587 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1588
1589 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1590
1591 [BZ# 24097]
1592 CVE-2019-6488
1593 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1594 upper 32 bits of RDX register.
1595 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1596 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1597 tst-size_t-wmemchr.
1598 * sysdeps/x86_64/x32/test-size_t.h: New file.
1599 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1600 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1601
1602 2019-01-18 Florian Weimer <fweimer@redhat.com>
1603
1604 [BZ #24112]
1605 resolv: Do not send queries for non-host-names in nss_dns.
1606 * resolv/nss_dns/dns-host.c (check_name): New function.
1607 (_nss_dns_gethostbyname2_r): Use it.
1608 (_nss_dns_gethostbyname_r): Likewise.
1609 (_nss_dns_gethostbyname4_r): Likewise.
1610
1611 2019-01-21 Florian Weimer <fweimer@redhat.com>
1612
1613 * resolv/inet_addr.c: Reformat to GNU style.
1614 (__inet_addr, __inet_aton): Update comment.
1615
1616 2019-01-18 Florian Weimer <fweimer@redhat.com>
1617
1618 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1619 ("malloc: Use current (C11-style) atomics for fastbin access").
1620 This commit introduces a substantial performance regression on
1621 POWER and Aarch64.
1622 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1623 (REMOVE_FB): Define.
1624 (_int_malloc): Use it and reindent.
1625 (_int_free): Use CAS loop with
1626 catomic_compare_and_exchange_val_rel.
1627 (malloc_consolidate): Use atomic_exchange_acq.
1628
1629
1630 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1631
1632 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1633 -Wl,-z,now.
1634 (LDFLAGS-tst-minsigstksz-2): Likewise.
1635 (LDFLAGS-tst-minsigstksz-3): Likewise.
1636 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1637 (LDFLAGS-tst-minsigstksz-4): Likewise.
1638
1639 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1640
1641 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1642 than "alternate".
1643
1644 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1645
1646 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1647
1648 2019-01-16 Zack Weinberg <zackw@panix.com>
1649
1650 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1651 (xget_sigstack_location): New test support functions.
1652 * support/xsigstack.c: New file, implementing them.
1653 * support/tst-xsigstack.c: New test for them.
1654 * support/Makefile: Update.
1655
1656 * signal/tst-minsigstksz-1.c
1657 * signal/tst-minsigstksz-2.c
1658 * signal/tst-minsigstksz-3.c
1659 * signal/tst-minsigstksz-3a.c
1660 * signal/tst-minsigstksz-4.c: New tests.
1661 * signal/Makefile: Run them.
1662
1663 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1664
1665 * po/libc.pot: Regenerate.
1666
1667 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1668
1669 * math/libm-test-fma.inc (fma_test_data): Set
1670 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1671
1672 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1673
1674 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1675 (do_test): Changed __vector __int128_t to __vector unsigned int.
1676
1677 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1678
1679 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1680 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1681 stpcpy-avx2 and stpncpy-avx2.
1682 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1683 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1684 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1685 and __stpncpy_avx2.
1686 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1687 ifunc-strcpy.h}: rename header for a more generic name.
1688 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1689 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1690 AVX unaligned load is fast and vzeroupper is preferred.
1691 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1692 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1693 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1694 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1695 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1696 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1697
1698 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1699
1700 * argp/argp-help.c: Fix typo in comment.
1701 * misc/sys/cdefs.h: Likewise.
1702 * posix/regexec.c (sift_states_iter_mb): Likewise.
1703 * socket/sockatmark.c: Likewise.
1704 * socket/sys/socket.h: Likewise.
1705 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1706 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1707 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1708 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1709 * sysdeps/unix/sockatmark.c: Likewise.
1710 * time/strptime_l.c: Likewise.
1711
1712 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1713
1714 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1715 missing space after the cast of "_NL_CURRENT".
1716
1717 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1718
1719 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1720 ifdef to fix read of VSCR.
1721 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1722 tst-ucontext-ppc64-vscr.c to test list.
1723 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1724
1725 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1726
1727 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1728 fall-through.
1729
1730 2019-01-09 Jim Wilson <jimw@sifive.com>
1731
1732 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1733
1734 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1735
1736 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1737 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1738 __memcpy_falkor for ares.
1739 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1740 Add new define.
1741 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1742 Add ares cpu.
1743
1744 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1745
1746 [BZ #24066]
1747 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1748 4_FP_W_TYPEs are used for IEEE quad precision.
1749 * soft-fp/extendhftf2.c: Likewise.
1750 * soft-fp/extendsftf2.c: Likewise.
1751 * soft-fp/extendxftf2.c: Likewise.
1752 * soft-fp/trunctfdf2.c: Likewise.
1753 * soft-fp/trunctfhf2.c: Likewise.
1754 * soft-fp/trunctfsf2.c: Likewise.
1755 * soft-fp/trunctfxf2.c: Likewise.
1756 * sysdeps/alpha/ots_cvttx.c: Likewise.
1757 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1758 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1759 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1760 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1761 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1762 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1763 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1764 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1765 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1766 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1767 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1768 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1769 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1770 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1771 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1772 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1773 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1774
1775 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1776
1777 [BZ #24024]
1778 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1779 code with -fmath-errno.
1780 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1781 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1782 * string/test-strerror-errno.c: New file.
1783
1784 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1785
1786 [BZ #24046]
1787 * localedata/locales/en_US (date_fmt): Add, set to
1788 "%a %d %b %Y %r %Z".
1789
1790 2019-01-07 Florian Weimer <fweimer@redhat.com>
1791
1792 [BZ #24063]
1793 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1794 instead of @var{errno}.
1795 (Parsing of Integers): Likewise.
1796 (Parsing of Floats): Likewise.
1797 * manual/filesys.texi (Working with Directory Trees): Likewise.
1798 (Temporary Files): Likewise.
1799 * manual/job.texi (Terminal Access Functions): Likewise.
1800 * manual/llio.texi (Synchronizing I/O): Likewise.
1801 * manual/math.texi (SVID Random): Likewise.
1802 * manual/message.texi (The catgets Functions): Likewise.
1803 (Translation with gettext): Likewise.
1804 (Locating gettext catalog): Likewise.
1805 (Charset conversion in gettext): Likewise.
1806 * manual/nss.texi (NSS Module Function Internals): Likewise.
1807 * manual/search.texi (Hash Search Function): Likewise.
1808 * manual/setjmp.texi (System V contexts): Likewise.
1809 * manual/time.texi (Sleeping): Likewise.
1810 * manual/users.texi (Lookup User): Likewise.
1811 (Lookup Group): Likewise.
1812
1813 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1814
1815 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1816 fix typo.
1817
1818 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1819
1820 [BZ #19444]
1821 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1822 __builtin_unreachable for default case in switch.
1823 (__ieee754_yn): Likewise.
1824 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1825 (__ieee754_ynl): Likewise.
1826 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1827 (__ieee754_ynl): Likewise.
1828 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1829 (__ieee754_ynl): Likewise.
1830
1831 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1832
1833 * manual/maint.texi: Use @{ and @}.
1834
1835 2019-01-04 Florian Weimer <fweimer@redhat.com>
1836
1837 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1838 function.
1839 (do_in_chroot_1): Call it.
1840 (run_chroot_tests):
1841 Improve error reporting in case it is not possible to create a
1842 collision for the PTY name required by the test.
1843
1844 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1845
1846 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1847 lll_wait_tid with timeout.
1848 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1849 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1850 futex_reltimed_wait_cancelable for cancelabla mode.
1851 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1852 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1853 macros.
1854 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1855 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1856 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1857 SYSCALL_CANCEL_NCS): New macro.
1858 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1859 (lll_timedwait_tid): Remove macro.
1860 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1861 Likewise.
1862 (lll_timedwait_tid): Likewise.
1863 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1864 Likewise.
1865 (lll_timedwait_tid): Likewise.
1866 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1867 Likewise.
1868 (lll_timedwait_tid): Likewise.
1869 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1870 Use INTERNAL_SYSCALL_CANCEL.
1871 * sysdeps/unix/sysv/linux/futex-internal.h
1872 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1873 instead of __pthread_{enable,disable}_asynccancel.
1874 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1875 (lll_futex_wait_cancel): New macro.
1876
1877 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1878 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1879
1880 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1881 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1882
1883 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1884 in backtrace analysis.
1885 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1886 side-effects.
1887 (tf_send): Likewise.
1888
1889 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1890 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1891 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1892 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1893 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1894 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1895 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1896 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1897 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1898 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1899 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1900 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1901 Likewise.
1902 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1903 tst-cancel-wrappers.sh.
1904 (generated): Remove tst-cancel-wrappers.out.
1905 (tst-cancel-wrappers.out): Remove rule.
1906 * nptl/tst-cancel-wrappers.sh: Remove file.
1907
1908 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1909
1910 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1911 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1912 Update.
1913
1914 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1915
1916 [BZ #23640]
1917 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1918 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1919 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1920 close-on-exec reset for adddup2 file action.
1921 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1922
1923 2019-01-03 Zack Weinberg <zackw@panix.com>
1924
1925 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1926 parameter. Only use deprecated scanf when __USE_GNU is defined
1927 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1928 than 201103L, whichever is relevant for the language being compiled.
1929
1930 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1931 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1932 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1933 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1934 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1935
1936 * libio/iovsscanf.c
1937 * libio/fwscanf.c
1938 * libio/iovswscanf.c
1939 * libio/swscanf.c
1940 * libio/vscanf.c
1941 * libio/vwscanf.c
1942 * libio/wscanf.c
1943 * stdio-common/fscanf.c
1944 * stdio-common/scanf.c
1945 * stdio-common/vfscanf.c
1946 * stdio-common/vfwscanf.c
1947 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1948 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1949 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1950 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1951 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1952 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1953 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1954 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1955 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1956 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1957 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1958 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1959 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1960 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1961 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1962
1963 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1964 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1965 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1966 not sscanf.
1967 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1968 with a preprocessor macro.
1969
1970 * stdio-common/bug21.c, stdio-common/scanf14.c:
1971 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1972 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1973 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1974 to xscanf, xfscanf, xsscanf.
1975
1976 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1977 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1978 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1979 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1980 xfscanf, xsscanf.
1981 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1982 override feature selection macros or provide definitions of u_char etc.
1983 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1984 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1985 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1986 with -std=gnu89.
1987
1988 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1989
1990 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1991 bits/termios-misc.h.
1992 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1993 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1994 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1995 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1996 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1997 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1998
1999 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2000 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2001 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2002 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2003 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2004 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2005 termios-misc.h.
2006 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2007 (sysdep_headers): Add termios-misc.h.
2008
2009 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2010 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2011 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2012
2013 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2014 termios-tcflow.h.
2015 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2016 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2017 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2018 TCSAFLUSH): Move to termios-tcflow.h.
2019 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2020 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2021 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2022 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2023
2024 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2025 termios-c_lflag.h.
2026 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2027 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2028 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2029 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2030 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2031 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2032 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2033 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2034 Likewise.
2035 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2036 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2037 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2038 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2039
2040 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2041 termios-c_cflag.h.
2042 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2043 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2044 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2045 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2046 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2047 termios-c_cflag.h.
2048 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2049 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2050 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2051 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2052
2053 [BZ #23783]
2054 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2055 termios-baud.h.
2056 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2057 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2058 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2059 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2060 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2061 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2062 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2063 __MAX_BAUD): Move to termios-baud.h.
2064 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2065 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2066 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2067 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2068 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2069
2070 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2071 termios-c_oflag.h.
2072 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2073 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2074 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2075 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2076 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2077 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2078 termios-c_oflag.h.
2079 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2080 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2081 FFR1): Likewise.
2082 [USE_MISC] (XTABS): Likewise.
2083 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2084 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2085 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2086 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2087
2088 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2089 termios-c_iflag.h.
2090 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2091 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2092 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2093 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2094 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2095 IUTF8): Move to termios-c_iflag.h.
2096 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2097 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2098 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2099 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2100
2101 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2102 termios-cc.h.
2103 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2104 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2105 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2106 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2107 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2108 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2109 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2110 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2111 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2112 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2113 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2114 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2115
2116 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2117 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2118 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2119 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2120 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2121 termios-struct.h.
2122 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2123 termios-struct.h.
2124 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2125 Likewise.
2126 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2127 Likewise.
2128 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2129 Likewise.
2130 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2131 Likewise.
2132 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2133 _HAVE_C_OSPEED): Define.
2134 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2135 _HAVE_C_OSPEED): Likewise.
2136 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2137 _HAVE_C_OSPEED): Likewise.
2138 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2139 (cfsetospeed): Check for define value instead of existence.
2140 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2141 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2142 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2143 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2144 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2145
2146 [BZ #17783]
2147 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2148 Define.
2149 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2150 (TIOCSER_TEMT): Likewise.
2151 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2152 (TEOCSER_TEMT): Likewise.
2153
2154 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2155
2156 [BZ #24011]
2157 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2158
2159 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2160
2161 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2162
2163 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2164
2165 * sysdeps/htl/pt-barrierattr-setpshared.c
2166 (pthread_barrierattr_setpshared): Add stub warning.
2167 * sysdeps/htl/pt-condattr-setpshared.c
2168 (pthread_condattr_setpshared): Likewise.
2169 * sysdeps/htl/pt-mutexattr-setpshared.c
2170 (pthread_mutexattr_setpshared): Likewise.
2171 * sysdeps/htl/pt-rwlockattr-setpshared.c
2172 (pthread_rwlockattr_setpshared): Likewise.
2173 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2174 (pthread_mutexattr_setpshared): Likewise.
2175
2176 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2177
2178 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2179 constants to match with Linux 4.20.
2180
2181 * sysdeps/mips/mips32/libm-test-ulps: Update.
2182 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2183
2184 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2185
2186 [BZ #24034]
2187 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2188 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2189 than __typeof (...) for the a_ptr variable.
2190
2191 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2192
2193 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2194 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2195 * libio/Makefile (tests): Add tst-sprintf-ub and
2196 tst-sprintf-chk-ub.
2197 (CFLAGS-tst-sprintf-ub.c): New variable.
2198 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2199 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2200 destination buffer and check for overflows in fortified mode.
2201 * libio/libioP.h (PRINTF_CHK): New macro.
2202 * libio/tst-sprintf-chk-ub.c: New file.
2203 * libio/tst-sprintf-ub.c: Likewise.
2204
2205 2019-01-02 Florian Weimer <fweimer@redhat.com>
2206
2207 [BZ #24018]
2208 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2209 failure.
2210
2211 2019-01-02 Florian Weimer <fweimer@redhat.com>
2212
2213 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2214
2215 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2216
2217 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2218 macro.
2219
2220 * sysdeps/unix/sysv/linux/netpacket/packet.h
2221 (PACKET_IGNORE_OUTGOING): New macro.
2222
2223 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2224 macro.
2225
2226 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2227 version to 4.20.
2228 (riscv_flush_icache): New syscall.
2229
2230 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2231 trailing whitespace removed.
2232 * scripts/config.guess: Update to version 2019-01-01.
2233 * scripts/config.sub: Update to version 2019-01-01.
2234 * scripts/move-if-change: Update from gnulib.
2235
2236 * NEWS: Update copyright dates.
2237 * catgets/gencat.c (print_version): Likewise.
2238 * csu/version.c (banner): Likewise.
2239 * debug/catchsegv.sh: Likewise.
2240 * debug/pcprofiledump.c (print_version): Likewise.
2241 * debug/xtrace.sh (do_version): Likewise.
2242 * elf/ldconfig.c (print_version): Likewise.
2243 * elf/ldd.bash.in: Likewise.
2244 * elf/pldd.c (print_version): Likewise.
2245 * elf/sotruss.sh: Likewise.
2246 * elf/sprof.c (print_version): Likewise.
2247 * iconv/iconv_prog.c (print_version): Likewise.
2248 * iconv/iconvconfig.c (print_version): Likewise.
2249 * locale/programs/locale.c (print_version): Likewise.
2250 * locale/programs/localedef.c (print_version): Likewise.
2251 * login/programs/pt_chown.c (print_version): Likewise.
2252 * malloc/memusage.sh (do_version): Likewise.
2253 * malloc/memusagestat.c (print_version): Likewise.
2254 * malloc/mtrace.pl: Likewise.
2255 * manual/libc.texinfo: Likewise.
2256 * nptl/version.c (banner): Likewise.
2257 * nscd/nscd.c (print_version): Likewise.
2258 * nss/getent.c (print_version): Likewise.
2259 * nss/makedb.c (print_version): Likewise.
2260 * posix/getconf.c (main): Likewise.
2261 * scripts/test-installation.pl: Likewise.
2262 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2263
2264 * All files with FSF copyright notices: Update copyright dates
2265 using scripts/update-copyrights.
2266 * locale/programs/charmap-kw.h: Regenerated.
2267 * locale/programs/locfile-kw.h: Likewise.
2268
2269 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2270
2271 * timezone/zdump.c: Update from tzcode 2018i.
2272 * timezone/zic.c: Likewise.
2273
2274 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2275
2276 regex: improve Gnulib port to AIX
2277 From the glibc point of view, this removes duplicate macro
2278 definitions and is obviously safe.
2279 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2280 * posix/regex_internal.h:
2281 (__attribute__, __attribute_warn_unused_result__):
2282 Remove; already defined elsewhere.
2283
2284 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2285
2286 [BZ #24027]
2287 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2288 copying operation. (ncopies had the wrong type, resulting in an
2289 integer wraparound and too few elements being copied.)
2290
2291 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2292
2293 [BZ #24022]
2294 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2295 <asm/syscalls.h> exists with __has_include__ before including it.
2296
2297 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2298
2299 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2300 version to 4.20.
2301
2302 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2303
2304 * hurd/lookup-retry: Include <unistd.h>.
2305 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2306 Release it on return. Handle "pid" magical lookup retry.
2307
2308 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2309
2310 [BZ #10496]
2311 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2312 (t_fmt_ampm): Likewise.
2313 * localedata/locales/aa_ER (t_fmt): Likewise.
2314 (t_fmt_ampm): Likewise.
2315 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2316 (t_fmt_ampm): Likewise.
2317 * localedata/locales/aa_ET (t_fmt): Likewise.
2318 (t_fmt_ampm): Likewise.
2319 * localedata/locales/am_ET (t_fmt): Likewise.
2320 (t_fmt_ampm): Likewise.
2321 * localedata/locales/byn_ER (t_fmt): Likewise.
2322 (t_fmt_ampm): Likewise.
2323 * localedata/locales/om_ET (t_fmt): Likewise.
2324 (t_fmt_ampm): Likewise.
2325 * localedata/locales/sid_ET (t_fmt): Likewise.
2326 (t_fmt_ampm): Likewise.
2327 * localedata/locales/so_DJ (t_fmt): Likewise.
2328 (t_fmt_ampm): Likewise.
2329 * localedata/locales/so_ET (t_fmt): Likewise.
2330 (t_fmt_ampm): Likewise.
2331 * localedata/locales/so_SO (t_fmt): Likewise.
2332 (t_fmt_ampm): Likewise.
2333 * localedata/locales/ti_ER (t_fmt): Likewise.
2334 (t_fmt_ampm): Likewise.
2335 * localedata/locales/ti_ET (t_fmt): Likewise.
2336 (t_fmt_ampm): Likewise.
2337 * localedata/locales/tig_ER (t_fmt): Likewise.
2338 (t_fmt_ampm): Likewise.
2339 * localedata/locales/wal_ET (t_fmt): Likewise.
2340 (t_fmt_ampm): Likewise.
2341
2342 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2343 * localedata/locales/ar_IN (t_fmt): Likewise.
2344 * localedata/locales/bhb_IN (t_fmt): Likewise.
2345 * localedata/locales/bho_IN (t_fmt): Likewise.
2346 * localedata/locales/bi_VU (t_fmt): Likewise.
2347 * localedata/locales/bn_BD (t_fmt): Likewise.
2348 * localedata/locales/bn_IN (t_fmt): Likewise.
2349 * localedata/locales/brx_IN (t_fmt): Likewise.
2350 * localedata/locales/doi_IN (t_fmt): Likewise.
2351 * localedata/locales/en_HK (t_fmt): Likewise.
2352 (t_fmt_ampm): Likewise.
2353 * localedata/locales/en_IN (t_fmt): Likewise.
2354 * localedata/locales/en_PH (t_fmt): Likewise.
2355 * localedata/locales/gu_IN (t_fmt): Likewise.
2356 * localedata/locales/hi_IN (t_fmt): Likewise.
2357 * localedata/locales/hif_FJ (t_fmt): Likewise.
2358 * localedata/locales/hne_IN (t_fmt): Likewise.
2359 * localedata/locales/kn_IN (t_fmt): Likewise.
2360 * localedata/locales/kok_IN (t_fmt): Likewise.
2361 * localedata/locales/ks_IN (t_fmt): Likewise.
2362 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2363 * localedata/locales/mag_IN (t_fmt): Likewise.
2364 * localedata/locales/mai_IN (t_fmt): Likewise.
2365 * localedata/locales/mjw_IN (t_fmt): Likewise.
2366 * localedata/locales/ml_IN (t_fmt): Likewise.
2367 * localedata/locales/mni_IN (t_fmt): Likewise.
2368 * localedata/locales/mr_IN (t_fmt): Likewise.
2369 * localedata/locales/ms_MY (t_fmt): Likewise.
2370 * localedata/locales/pa_IN (t_fmt): Likewise.
2371 * localedata/locales/raj_IN (t_fmt): Likewise.
2372 * localedata/locales/sa_IN (t_fmt): Likewise.
2373 * localedata/locales/sat_IN (t_fmt): Likewise.
2374 * localedata/locales/sd_IN (t_fmt): Likewise.
2375 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2376 * localedata/locales/tcy_IN (t_fmt): Likewise.
2377 * localedata/locales/the_NP (t_fmt): Likewise.
2378 * localedata/locales/to_TO (t_fmt): Likewise.
2379 * localedata/locales/ur_IN (t_fmt): Likewise.
2380
2381 * localedata/locales/hif_FJ (d_t_fmt): Set to
2382 "%A %d %b %Y %I:%M:%S %p".
2383 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2384
2385 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2386 * localedata/locales/ar_BH (t_fmt): Likewise.
2387 * localedata/locales/ar_DZ (t_fmt): Likewise.
2388 * localedata/locales/ar_EG (t_fmt): Likewise.
2389 * localedata/locales/ar_IQ (t_fmt): Likewise.
2390 * localedata/locales/ar_JO (t_fmt): Likewise.
2391 * localedata/locales/ar_KW (t_fmt): Likewise.
2392 * localedata/locales/ar_LB (t_fmt): Likewise.
2393 * localedata/locales/ar_LY (t_fmt): Likewise.
2394 * localedata/locales/ar_OM (t_fmt): Likewise.
2395 * localedata/locales/ar_QA (t_fmt): Likewise.
2396 * localedata/locales/ar_SD (t_fmt): Likewise.
2397 * localedata/locales/ar_SS (t_fmt): Likewise.
2398 * localedata/locales/ar_SY (t_fmt): Likewise.
2399 * localedata/locales/ar_TN (t_fmt): Likewise.
2400 * localedata/locales/ar_YE (t_fmt): Likewise.
2401
2402 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2403 (t_fmt_ampm): Likewise.
2404 * localedata/locales/gez_ET (t_fmt): Likewise.
2405 (t_fmt_ampm): Likewise.
2406
2407 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2408 (t_fmt_ampm): Likewise.
2409 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2410
2411 * localedata/locales/zh_HK (t_fmt):
2412 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2413
2414 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2415 because this locale does not use the 12-hour clock.
2416 (t_fmt): Set to "%Z %H:%M:%S".
2417 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2418
2419 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2420 because this locale does not use the 12-hour clock.
2421 (t_fmt): Set to "%H:%M:%S %Z".
2422 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2423
2424 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2425 because this locale does not use the 12-hour clock.
2426 (t_fmt): Set to "%T".
2427 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2428 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2429
2430 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2431 because this locale does not use the 12-hour clock.
2432 (t_fmt): Set to "%H:%M:%S %Z".
2433 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2434
2435 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2436 because this locale does not use the 12-hour clock.
2437 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2438 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2439
2440 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2441
2442 [BZ #10496]
2443 [BZ #23724]
2444 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2445 (t_fmt_ampm): Likewise.
2446 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2447 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2448 (d_fmt): Set to "%-d.%-m.%y".
2449
2450 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2451
2452 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2453 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2454 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2455 Likewise.
2456 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2457 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2458 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2459 function.
2460 * support/blob_repeat.c (check_mul_overflow_size_t,
2461 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2462
2463 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2464
2465 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2466
2467 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2468
2469 regex: simplify Gnulib port
2470 This simplifies the code, by removing stuff intended for porting
2471 to Gnulib but no longer needed there.
2472 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2473 uses of libc_hidden_def, weak_alias.
2474 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2475 _Restrict_ except for public-facing headers.
2476 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2477 Remove; already defined elsewhere.
2478 * posix/regex.c, posix/regex_internal.h:
2479 Use __GNUC_PREREQ instead of rolling our own.
2480 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2481
2482 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2483
2484 * benchtests/bench-strlen.c (generic_strlen): New function.
2485 (memchr_strlen): New function.
2486
2487 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2488
2489 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2490 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2491 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2492
2493 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2494
2495 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2496
2497 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2498
2499 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2500 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2501 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2502 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2503 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2504 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2505 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2506
2507 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2508
2509 [BZ #24023]
2510 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2511 PLT reference in libc.so.
2512 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2513 _Q_lltoq and _Q_qtod PLT references in libc.so.
2514
2515 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2516
2517 * benchtests/bench-memchr.c: Cleanup defines.
2518 * benchtests/bench-memcmp.c: Likewise.
2519 * benchtests/bench-memset.c: Likewise.
2520 * benchtests/bench-memset-large.c: Likewise.
2521 * benchtests/bench-memset-walk.c: Likewise.
2522 * benchtests/bench-stpcpy.c: Likewise.
2523 * benchtests/bench-stpncpy.c: Likewise.
2524 * benchtests/bench-strcat.c: Likewise.
2525 * benchtests/bench-strchr.c: Likewise.
2526 * benchtests/bench-strcmp.c: Likewise.
2527 * benchtests/bench-strcpy.c: Likewise.
2528 * benchtests/bench-strcspn.c: Likewise.
2529 * benchtests/bench-string.h: Likewise.
2530 * benchtests/bench-strlen.c: Likewise.
2531 * benchtests/bench-strncat.c: Likewise.
2532 * benchtests/bench-strncmp.c: Likewise.
2533 * benchtests/bench-strncpy.c: Likewise.
2534 * benchtests/bench-strnlen.c: Likewise.
2535 * benchtests/bench-strpbrk.c: Likewise.
2536 * benchtests/bench-strrchr.c: Likewise.
2537 * benchtests/bench-strspn.c: Likewise.
2538
2539 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2540
2541 * stdlib/longlong.h: Update from GCC.
2542
2543 [BZ #23993]
2544 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2545 * configure: Regenerated.
2546 * manual/install.texi (Tools for Compilation): Update minimum GCC
2547 version.
2548 * INSTALL: Regenerated.
2549
2550 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2551
2552 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2553
2554 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2555
2556 * malloc/malloc.c (mremap_chunk): Additional checks.
2557
2558 2018-12-21 Mao Han <han_mao@c-sky.com>
2559
2560 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2561 * scripts/build-many-glibcs.py: Add C-SKY targets.
2562 * sysdeps/csky/Implies: New file.
2563 * sysdeps/csky/Makefile: Likewise.
2564 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2565 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2566 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2567 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2568 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2569 * sysdeps/csky/abiv2/memmove.S: Likewise.
2570 * sysdeps/csky/abiv2/memset.S: Likewise.
2571 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2572 * sysdeps/csky/abiv2/start.S: Likewise.
2573 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2574 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2575 * sysdeps/csky/abiv2/strlen.S: Likewise.
2576 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2577 * sysdeps/csky/abort-instr.h: Likewise.
2578 * sysdeps/csky/atomic-machine.h: Likewise.
2579 * sysdeps/csky/bits/endian.h: Likewise.
2580 * sysdeps/csky/bits/fenv.h: Likewise.
2581 * sysdeps/csky/bits/link.h: Likewise.
2582 * sysdeps/csky/bits/setjmp.h: Likewise.
2583 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2584 * sysdeps/csky/bsd-setjmp.S: Likewise.
2585 * sysdeps/csky/configure: Likewise.
2586 * sysdeps/csky/configure.ac: Likewise.
2587 * sysdeps/csky/dl-machine.h: Likewise.
2588 * sysdeps/csky/dl-procinfo.c: Likewise.
2589 * sysdeps/csky/dl-procinfo.h: Likewise.
2590 * sysdeps/csky/dl-sysdep.h: Likewise.
2591 * sysdeps/csky/dl-tls.h: Likewise.
2592 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2593 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2594 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2595 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2596 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2597 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2598 * sysdeps/csky/fpu/fegetround.c: Likewise.
2599 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2600 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2601 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2602 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2603 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2604 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2605 * sysdeps/csky/fpu/fesetround.c: Likewise.
2606 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2607 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2608 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2609 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2610 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2611 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2612 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2613 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2614 * sysdeps/csky/fpu_control.h: Likewise.
2615 * sysdeps/csky/gccframe.h: Likewise.
2616 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2617 * sysdeps/csky/ldsodefs.h: Likewise.
2618 * sysdeps/csky/libc-tls.c: Likewise.
2619 * sysdeps/csky/linkmap.h: Likewise.
2620 * sysdeps/csky/machine-gmon.h: Likewise.
2621 * sysdeps/csky/memusage.h: Likewise.
2622 * sysdeps/csky/nofpu/Implies: Likewise.
2623 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2624 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2625 * sysdeps/csky/nptl/Makefile: Likewise.
2626 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2627 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2628 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2629 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2630 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2631 * sysdeps/csky/nptl/tls.h: Likewise.
2632 * sysdeps/csky/preconfigure: Likewise.
2633 * sysdeps/csky/sfp-machine.h: Likewise.
2634 * sysdeps/csky/sotruss-lib.c: Likewise.
2635 * sysdeps/csky/stackinfo.h: Likewise.
2636 * sysdeps/csky/sysdep.h: Likewise.
2637 * sysdeps/csky/tininess.h: Likewise.
2638 * sysdeps/csky/tst-audit.h: Likewise.
2639 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2640 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2641 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2642 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2643 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2644 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2645 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2646 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2647 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2648 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2649 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2650 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2651 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2652 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2653 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2654 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2655 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2656 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2657 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2658 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2659 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2660 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2661 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2662 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2663 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2664 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2665 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2666 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2667 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2668 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2669 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2670 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2671 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2672 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2673 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2674 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2675 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2676 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2677 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2678 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2679 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2680 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2681 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2682 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2683
2684 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2685
2686 * include/time.h (__difftime64): Add.
2687 * time/difftime.c (subtract): convert to 64-bit time.
2688 * time/difftime.c (__difftime64): Add.
2689 * time/difftime.c (__difftime): Wrap around __difftime64.
2690
2691 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2692
2693 * manual/examples/add.c: Remove redundant "if not".
2694 * manual/examples/argp-ex1.c: Likewise.
2695 * manual/examples/argp-ex2.c: Likewise.
2696 * manual/examples/argp-ex3.c: Likewise.
2697 * manual/examples/argp-ex4.c: Likewise.
2698 * manual/examples/atexit.c: Likewise.
2699 * manual/examples/db.c: Likewise.
2700 * manual/examples/dir.c: Likewise.
2701 * manual/examples/dir2.c: Likewise.
2702 * manual/examples/execinfo.c: Likewise.
2703 * manual/examples/filecli.c: Likewise.
2704 * manual/examples/filesrv.c: Likewise.
2705 * manual/examples/fmtmsgexpl.c: Likewise.
2706 * manual/examples/genpass.c: Likewise.
2707 * manual/examples/inetcli.c: Likewise.
2708 * manual/examples/inetsrv.c: Likewise.
2709 * manual/examples/isockad.c: Likewise.
2710 * manual/examples/longopt.c: Likewise.
2711 * manual/examples/memopen.c: Likewise.
2712 * manual/examples/memstrm.c: Likewise.
2713 * manual/examples/mkdirent.c: Likewise.
2714 * manual/examples/mkfsock.c: Likewise.
2715 * manual/examples/mkisock.c: Likewise.
2716 * manual/examples/mygetpass.c: Likewise.
2717 * manual/examples/pipe.c: Likewise.
2718 * manual/examples/popen.c: Likewise.
2719 * manual/examples/rprintf.c: Likewise.
2720 * manual/examples/search.c: Likewise.
2721 * manual/examples/select.c: Likewise.
2722 * manual/examples/setjmp.c: Likewise.
2723 * manual/examples/sigh1.c: Likewise.
2724 * manual/examples/sigusr.c: Likewise.
2725 * manual/examples/stpcpy.c: Likewise.
2726 * manual/examples/strdupa.c: Likewise.
2727 * manual/examples/strftim.c: Likewise.
2728 * manual/examples/subopt.c: Likewise.
2729 * manual/examples/swapcontext.c: Likewise.
2730 * manual/examples/termios.c: Likewise.
2731 * manual/examples/testopt.c: Likewise.
2732 * manual/examples/testpass.c: Likewise.
2733 * manual/examples/timeval_subtract.c: Likewise.
2734
2735 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2736
2737 * sysdeps/x86/fpu/math_private.h: New file.
2738 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2739
2740 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2741 definition.
2742 (cosh): Likewise.
2743 (tanh): Likewise.
2744
2745 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2746
2747 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2748 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2749 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2750 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2751 fields.
2752 (_dl_show_auxv): Give a special treatment to
2753 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2754 and AT_L3_CACHEGEOMETRY.
2755 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2756 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2757 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2758 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2759
2760 2018-12-19 Andreas Schwab <schwab@suse.de>
2761
2762 * nscd/connections.c (check_use): Don't abort on invalid len.
2763
2764 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2765
2766 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2767 values in the 64bit value cases.
2768
2769 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2770
2771 * include/time.h
2772 (__ctime64_r): Add.
2773 * time/ctime_r.c
2774 (__ctime64_r): Add.
2775 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2776
2777 * include/time.h
2778 (__ctime64): Add.
2779 * time/gmtime.c
2780 (__ctime64): Add.
2781 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2782
2783 * include/time.h
2784 (__gmtime64_r): Add.
2785 * time/gmtime.c
2786 (__gmtime64_r): Add.
2787 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2788
2789 * include/time.h
2790 (__gmtime64): Add.
2791 * time/gmtime.c
2792 (__gmtime64): Add.
2793 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2794
2795 * include/time.h
2796 (__localtime64_r): Add.
2797 * time/localtime.c
2798 (__localtime64_r): Add.
2799 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2800
2801 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2802
2803 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2804 kernel_sigction definition.
2805
2806 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2807
2808 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2809
2810 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2811 __syscall_rt_sigaction.
2812 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2813 (kernel_sigaction): Use Linux generic defintion.
2814 (STUB): Define.
2815 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2816 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2817 (__syscall_rt_sigaction): Remove implementation.
2818 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2819 hidden.
2820 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2821 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2822 INTERNAL_SYSCALL): Remove definitions.
2823 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2824 action and signal set size.
2825 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2826 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2827
2828 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2829 James Clarke <jrtc27@jrtc27.com>
2830
2831 [BZ #23967]
2832 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2833 Define if SA_RESTORER is defined.
2834 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2835 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2836 already defined.
2837 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2838 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2839 definitions.
2840 (HAS_SA_RESTORER): Define.
2841 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2842 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2843 (HAS_SA_RESTORER): Define.
2844 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2845 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2846 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2847 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2848 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2849
2850 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2851
2852 * sysdeps/unix/sysv/linux/kernel-features.h
2853 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2854 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2855 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2856 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2857 (__ASSUME_ST_INO_64_BIT): Likewise.
2858 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2859 <kernel-features.h>.
2860 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2861 Remove conditional code.
2862 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2863 <kernel-features.h>.
2864 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2865 Remove conditional code.
2866 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2867 <kernel-features.h>.
2868 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2869 Remove conditional code.
2870 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2871 <kernel-features.h>.
2872 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2873 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2874
2875 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2876
2877 * sysdeps/s390/multiarch/ifunc-resolve.h
2878 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2879 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2880 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2881 Delete macro definition.
2882 (s390_libc_ifunc_init): Rename to
2883 s390_libc_ifunc_expr_stfle_init.
2884 * sysdeps/s390/bzero: Use
2885 s390_libc_ifunc_expr_stfle_init instead of
2886 s390_libc_ifunc_init.
2887 * sysdeps/s390/memcmp.c: Likewise.
2888 * sysdeps/s390/memcpy.c: Likewise.
2889 * sysdeps/s390/mempcpy.c: Likewise.
2890 * sysdeps/s390/memset.c: Likewise.
2891
2892 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2893
2894 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2895 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2896
2897 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2898
2899 * sysdeps/s390/multiarch/Makefile
2900 (sysdep_routines): Remove wmemcmp variants.
2901 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2902 * sysdeps/s390/multiarch/ifunc-impl-list.c
2903 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2904 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2905 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2906 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2907 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2908 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2909 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2910 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2911
2912 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2913
2914 * sysdeps/s390/multiarch/Makefile
2915 (sysdep_routines): Remove wmemset variants.
2916 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2917 * sysdeps/s390/multiarch/ifunc-impl-list.c
2918 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2919 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2920 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2921 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2922 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2923 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2924 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2925 * sysdeps/s390/ifunc-wmemset.h: New file.
2926
2927 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2928
2929 * sysdeps/s390/multiarch/Makefile
2930 (sysdep_routines): Remove wmemchr variants.
2931 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2932 * sysdeps/s390/multiarch/ifunc-impl-list.c
2933 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2934 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2935 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2936 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2937 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2938 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2939 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2940 * sysdeps/s390/ifunc-wmemchr.h: New file.
2941
2942 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2943
2944 * sysdeps/s390/multiarch/Makefile
2945 (sysdep_routines): Remove wcscspn variants.
2946 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2947 * sysdeps/s390/multiarch/ifunc-impl-list.c
2948 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2949 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2950 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2951 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2952 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2953 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2954 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2955 * sysdeps/s390/ifunc-wcscspn.h: New file.
2956
2957 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2958
2959 * sysdeps/s390/multiarch/Makefile
2960 (sysdep_routines): Remove wcspbrk variants.
2961 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2962 * sysdeps/s390/multiarch/ifunc-impl-list.c
2963 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2964 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2965 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2966 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2967 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2968 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2969 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2970 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2971
2972 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2973
2974 * sysdeps/s390/multiarch/Makefile
2975 (sysdep_routines): Remove wcsspn variants.
2976 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2977 * sysdeps/s390/multiarch/ifunc-impl-list.c
2978 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2979 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2980 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2981 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2982 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2983 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2984 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2985 * sysdeps/s390/ifunc-wcsspn.h: New file.
2986
2987 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2988
2989 * sysdeps/s390/multiarch/Makefile
2990 (sysdep_routines): Remove wcsrchr variants.
2991 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2992 * sysdeps/s390/multiarch/ifunc-impl-list.c
2993 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2994 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2995 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2996 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2997 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2998 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2999 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3000 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3001
3002 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3003
3004 * sysdeps/s390/multiarch/Makefile
3005 (sysdep_routines): Remove wcschrnul variants.
3006 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3007 * sysdeps/s390/multiarch/ifunc-impl-list.c
3008 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3009 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3010 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3011 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3012 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3013 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3014 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3015 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3016
3017 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3018
3019 * sysdeps/s390/multiarch/Makefile
3020 (sysdep_routines): Remove wcschr variants.
3021 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3022 * sysdeps/s390/multiarch/ifunc-impl-list.c
3023 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3024 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3025 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3026 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3027 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3028 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3029 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3030 * sysdeps/s390/ifunc-wcschr.h: New file.
3031
3032 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3033
3034 * sysdeps/s390/multiarch/Makefile
3035 (sysdep_routines): Remove wcsncmp variants.
3036 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3037 * sysdeps/s390/multiarch/ifunc-impl-list.c
3038 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3039 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3040 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3041 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3042 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3043 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3044 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3045 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3046
3047 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3048
3049 * sysdeps/s390/multiarch/Makefile
3050 (sysdep_routines): Remove wcscmp variants.
3051 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3052 * sysdeps/s390/multiarch/ifunc-impl-list.c
3053 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3054 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3055 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3056 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3057 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3058 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3059 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3060 * sysdeps/s390/ifunc-wcscmp.h: New file.
3061
3062 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3063
3064 * sysdeps/s390/multiarch/Makefile
3065 (sysdep_routines): Remove wcsncat variants.
3066 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3067 * sysdeps/s390/multiarch/ifunc-impl-list.c
3068 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3069 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3070 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3071 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3072 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3073 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3074 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3075 * sysdeps/s390/ifunc-wcsncat.h: New file.
3076
3077 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3078
3079 * sysdeps/s390/multiarch/Makefile
3080 (sysdep_routines): Remove wcscat variants.
3081 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3082 * sysdeps/s390/multiarch/ifunc-impl-list.c
3083 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3084 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3085 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3086 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3087 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3088 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3089 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3090 * sysdeps/s390/ifunc-wcscat.h: New file.
3091
3092 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3093
3094 * sysdeps/s390/multiarch/Makefile
3095 (sysdep_routines): Remove wcpncpy variants.
3096 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3097 * sysdeps/s390/multiarch/ifunc-impl-list.c
3098 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3099 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3100 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3101 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3102 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3103 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3104 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3105 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3106
3107 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3108
3109 * sysdeps/s390/multiarch/Makefile
3110 (sysdep_routines): Remove wcsncpy variants.
3111 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3112 * sysdeps/s390/multiarch/ifunc-impl-list.c
3113 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3114 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3115 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3116 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3117 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3118 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3119 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3120 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3121
3122 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3123
3124 * sysdeps/s390/multiarch/Makefile
3125 (sysdep_routines): Remove wcpcpy variants.
3126 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3127 * sysdeps/s390/multiarch/ifunc-impl-list.c
3128 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3129 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3130 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3131 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3132 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3133 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3134 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3135 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3136
3137 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3138
3139 * sysdeps/s390/multiarch/Makefile
3140 (sysdep_routines): Remove wcscpy variants.
3141 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3142 * sysdeps/s390/multiarch/ifunc-impl-list.c
3143 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3144 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3145 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3146 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3147 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3148 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3149 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3150 * sysdeps/s390/ifunc-wcscpy.h: New file.
3151
3152 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3153
3154 * sysdeps/s390/multiarch/Makefile
3155 (sysdep_routines): Remove wcsnlen variants.
3156 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3157 * sysdeps/s390/multiarch/ifunc-impl-list.c
3158 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3159 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3160 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3161 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3162 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3163 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3164 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3165 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3166
3167 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3168
3169 * sysdeps/s390/multiarch/Makefile
3170 (sysdep_routines): Remove wcslen variants.
3171 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3172 * sysdeps/s390/multiarch/ifunc-impl-list.c
3173 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3174 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3175 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3176 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3177 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3178 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3179 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3180 * sysdeps/s390/ifunc-wcslen.h: New file.
3181
3182 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3183
3184 * sysdeps/s390/multiarch/Makefile
3185 (sysdep_routines): Remove memrchr variants.
3186 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3187 * sysdeps/s390/multiarch/ifunc-impl-list.c
3188 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3189 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3190 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3191 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3192 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3193 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3194 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3195 * sysdeps/s390/ifunc-memrchr.h: New file.
3196
3197 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3198
3199 * sysdeps/s390/multiarch/Makefile
3200 (sysdep_routines): Remove memccpy variants.
3201 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3202 * sysdeps/s390/multiarch/ifunc-impl-list.c
3203 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3204 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3205 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3206 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3207 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3208 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3209 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3210 * sysdeps/s390/ifunc-memccpy.h: New file.
3211
3212 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3213
3214 * sysdeps/s390/multiarch/Makefile
3215 (sysdep_routines): Remove rawmemchr variants.
3216 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3217 * sysdeps/s390/multiarch/ifunc-impl-list.c
3218 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3219 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3220 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3221 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3222 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3223 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3224 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3225 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3226
3227 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3228
3229 * sysdeps/s390/multiarch/Makefile
3230 (sysdep_routines): Remove memchr variants.
3231 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3232 * sysdeps/s390/multiarch/ifunc-impl-list.c
3233 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3234 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3235 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3236 * sysdeps/s390/multiarch/memchr.c: Move to ...
3237 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3238 * sysdeps/s390/ifunc-memchr.h: New file.
3239 * sysdeps/s390/s390-64/memchr.S: Move to ...
3240 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3241 for 31/64bit and ifunc handling.
3242 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3243 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3244 * sysdeps/s390/s390-32/memchr.S: Likewise.
3245
3246 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3247
3248 * sysdeps/s390/multiarch/Makefile
3249 (sysdep_routines): Remove strcspn variants.
3250 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3251 * sysdeps/s390/multiarch/ifunc-impl-list.c
3252 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3253 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3254 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3255 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3256 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3257 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3258 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3259 * sysdeps/s390/ifunc-strcspn.h: New file.
3260
3261 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3262
3263 * sysdeps/s390/multiarch/Makefile
3264 (sysdep_routines): Remove strpbrk variants.
3265 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3266 * sysdeps/s390/multiarch/ifunc-impl-list.c
3267 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3268 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3269 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3270 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3271 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3272 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3273 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3274 * sysdeps/s390/ifunc-strpbrk.h: New file.
3275
3276 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3277
3278 * sysdeps/s390/multiarch/Makefile
3279 (sysdep_routines): Remove strspn variants.
3280 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3281 * sysdeps/s390/multiarch/ifunc-impl-list.c
3282 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3283 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3284 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3285 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3286 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3287 * sysdeps/s390/multiarch/strspn.c: Move to ...
3288 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3289 * sysdeps/s390/ifunc-strspn.h: New file.
3290
3291 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3292
3293 * sysdeps/s390/multiarch/Makefile
3294 (sysdep_routines): Remove strrchr variants.
3295 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3296 * sysdeps/s390/multiarch/ifunc-impl-list.c
3297 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3298 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3299 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3300 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3301 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3302 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3303 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3304 * sysdeps/s390/ifunc-strrchr.h: New file.
3305
3306 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3307
3308 * sysdeps/s390/multiarch/Makefile
3309 (sysdep_routines): Remove strchrnul variants.
3310 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3311 * sysdeps/s390/multiarch/ifunc-impl-list.c
3312 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3313 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3314 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3315 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3316 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3317 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3318 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3319 * sysdeps/s390/ifunc-strchrnul.h: New file.
3320
3321 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3322
3323 * sysdeps/s390/multiarch/Makefile
3324 (sysdep_routines): Remove strchr variants.
3325 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3326 * sysdeps/s390/multiarch/ifunc-impl-list.c
3327 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3328 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3329 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3330 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3331 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3332 * sysdeps/s390/multiarch/strchr.c: Move to ...
3333 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3334 * sysdeps/s390/ifunc-strchr.h: New file.
3335
3336 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3337
3338 * sysdeps/s390/multiarch/Makefile
3339 (sysdep_routines): Remove strncmp variants.
3340 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3341 * sysdeps/s390/multiarch/ifunc-impl-list.c
3342 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3343 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3344 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3345 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3346 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3347 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3348 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3349 * sysdeps/s390/ifunc-strncmp.h: New file.
3350
3351 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3352
3353 * sysdeps/s390/multiarch/Makefile
3354 (sysdep_routines): Remove strcmp variants.
3355 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3356 * sysdeps/s390/multiarch/ifunc-impl-list.c
3357 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3358 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3359 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3360 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3361 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3362 * sysdeps/s390/ifunc-strcmp.h: New file.
3363 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3364 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3365 for 31/64bit and ifunc handling.
3366 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3367 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3368 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3369
3370 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3371
3372 * sysdeps/s390/multiarch/Makefile
3373 (sysdep_routines): Remove strncat variants.
3374 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3375 * sysdeps/s390/multiarch/ifunc-impl-list.c
3376 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3377 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3378 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3379 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3380 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3381 * sysdeps/s390/multiarch/strncat.c: Move to ...
3382 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3383 * sysdeps/s390/ifunc-strncat.h: New file.
3384
3385 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3386
3387 * sysdeps/s390/multiarch/Makefile
3388 (sysdep_routines): Remove strcat variants.
3389 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3390 * sysdeps/s390/multiarch/ifunc-impl-list.c
3391 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3392 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3393 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3394 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3395 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3396 * sysdeps/s390/multiarch/strcat.c: Move to ...
3397 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3398 * sysdeps/s390/ifunc-strcat.h: New file.
3399
3400 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3401
3402 * sysdeps/s390/multiarch/Makefile
3403 (sysdep_routines): Remove stpncpy variants.
3404 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3405 * sysdeps/s390/multiarch/ifunc-impl-list.c
3406 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3407 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3408 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3409 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3410 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3411 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3412 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3413 * sysdeps/s390/ifunc-stpncpy.h: New file.
3414
3415 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3416
3417 * sysdeps/s390/multiarch/Makefile
3418 (sysdep_routines): Remove strncpy variants.
3419 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3420 * sysdeps/s390/multiarch/ifunc-impl-list.c
3421 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3422 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3423 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3424 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3425 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3426 * sysdeps/s390/ifunc-strncpy.h: New file.
3427 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3428 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3429 and adjust ifunc handling.
3430 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3431 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3432 and adjust ifunc handling.
3433 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3434 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3435
3436 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3437
3438 * sysdeps/s390/multiarch/Makefile
3439 (sysdep_routines): Remove stpcpy variants.
3440 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3441 * sysdeps/s390/multiarch/ifunc-impl-list.c
3442 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3443 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3444 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3445 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3446 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3447 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3448 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3449 * sysdeps/s390/ifunc-stpcpy.h: New file.
3450
3451 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3452
3453 * sysdeps/s390/multiarch/Makefile
3454 (sysdep_routines): Remove strcpy variants.
3455 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3456 * sysdeps/s390/multiarch/ifunc-impl-list.c
3457 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3458 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3459 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3460 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3461 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3462 * sysdeps/s390/ifunc-strcpy.h: New file.
3463 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3464 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3465 for 31/64bit and ifunc handling.
3466 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3467 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3468 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3469
3470 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3471
3472 * sysdeps/s390/multiarch/Makefile
3473 (sysdep_routines): Remove strnlen variants.
3474 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3475 * sysdeps/s390/multiarch/ifunc-impl-list.c
3476 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3477 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3478 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3479 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3480 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3481 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3482 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3483 * sysdeps/s390/ifunc-strnlen.h: New file.
3484
3485 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3486
3487 * sysdeps/s390/multiarch/Makefile
3488 (sysdep_routines): Remove strlen variants.
3489 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3490 * sysdeps/s390/multiarch/ifunc-impl-list.c
3491 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3492 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3493 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3494 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3495 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3496 * sysdeps/s390/multiarch/strlen.c: Move to ...
3497 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3498 * sysdeps/s390/ifunc-strlen.h: New file.
3499
3500 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3501
3502 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3503 * sysdeps/s390/multiarch/ifunc-impl-list.c
3504 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3505 * sysdeps/s390/ifunc-memmem.h: New file.
3506 * sysdeps/s390/memmem.c: Likewise.
3507 * sysdeps/s390/memmem-c.c: Likewise.
3508 * sysdeps/s390/memmem-vx.c: Likewise.
3509
3510 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3511
3512 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3513 * sysdeps/s390/multiarch/ifunc-impl-list.c
3514 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3515 * sysdeps/s390/ifunc-strstr.h: New file.
3516 * sysdeps/s390/strstr.c: Likewise.
3517 * sysdeps/s390/strstr-c.c: Likewise.
3518 * sysdeps/s390/strstr-vx.c: Likewise.
3519
3520 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3521
3522 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3523 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3524 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3525 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3526 New defines.
3527 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3528 * sysdeps/s390/memmove-c.c: New file.
3529 * sysdeps/s390/memmove.c: Likewise.
3530 * sysdeps/s390/multiarch/ifunc-impl-list.c
3531 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3532
3533 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3534
3535 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3536 * sysdeps/s390/configure.ac: Add check for z13 support.
3537 * sysdeps/s390/configure: Regenerated.
3538
3539 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3540
3541 * sysdeps/s390/memcopy.h: New file.
3542
3543 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3544
3545 * sysdeps/s390/s390-32/bcopy.S: Remove.
3546 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3547
3548 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3549
3550 * sysdeps/s390/ifunc-memcpy.h: New File.
3551 * sysdeps/s390/memcpy.S: Move to ...
3552 * sysdeps/s390/memcpy-z900.S ... here.
3553 Move implementations from memcpy-s390x.s to here.
3554 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3555 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3556 Remove memcpy/mempcpy variants.
3557 * sysdeps/s390/Makefile (sysdep_routines):
3558 Add memcpy/mempcpy variants.
3559 * sysdeps/s390/multiarch/ifunc-impl-list.c
3560 (__libc_ifunc_impl_list): Adjust ifunc variants for
3561 memcpy and mempcpy.
3562 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3563 to ...
3564 * sysdeps/s390/memcpy.c: ... here.
3565 Adjust ifunc variants for memcpy.
3566 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3567 * sysdeps/s390/mempcpy.c: ... here.
3568 Adjust ifunc variants for mempcpy.
3569 * sysdeps/s390/mempcpy.S: Delete file.
3570
3571 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3572
3573 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3574 * sysdeps/s390/memcpy.S: ... here.
3575 Adjust to be usable for 31/64bit.
3576 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3577 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3578 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3579 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3580 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3581 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3582 Adjust to be usable for 31/64bit.
3583 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3584 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3585 * sysdeps/s390/multiarch/memcpy.c: ... here.
3586 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3587
3588 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3589
3590 * sysdeps/s390/ifunc-memcmp.h: New File.
3591 * sysdeps/s390/memcmp.S: Move to ...
3592 * sysdeps/s390/memcmp-z900.S ... here.
3593 Move implementations from memcmp-s390x.s to here.
3594 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3595 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3596 Remove memcmp variants.
3597 * sysdeps/s390/Makefile (sysdep_routines):
3598 Add memcmp variants.
3599 * sysdeps/s390/multiarch/ifunc-impl-list.c
3600 (__libc_ifunc_impl_list): Adjust ifunc variants for
3601 memcmp.
3602 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3603 to ...
3604 * sysdeps/s390/memcmp.c: ... here.
3605 Adjust ifunc variants for memcmp.
3606
3607 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3608
3609 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3610 * sysdeps/s390/memcmp.S: ... here.
3611 Adjust to be usable for 31/64bit.
3612 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3613 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3614 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3615 Remove memcmp.
3616 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3617 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3618 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3619 Adjust to be usable for 31/64bit.
3620 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3621 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3622 * sysdeps/s390/multiarch/memcmp.c: ... here.
3623 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3624
3625 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3626
3627 * sysdeps/s390/s390-32/bzero.S: Delete file.
3628 * sysdeps/s390/s390-64/bzero.S: Likewise.
3629 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3630 * sysdeps/s390/bzero.c: New file.
3631 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3632 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3633 * sysdeps/s390/multiarch/ifunc-impl-list.c
3634 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3635
3636 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3637
3638 * sysdeps/s390/ifunc-memset.h: New File.
3639 * sysdeps/s390/memset.S: Move to ...
3640 * sysdeps/s390/memset-z900.S ... here.
3641 Move implementations from memset-s390x.s to here.
3642 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3643 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3644 Remove memset variants.
3645 * sysdeps/s390/Makefile (sysdep_routines):
3646 Add memset variants.
3647 * sysdeps/s390/multiarch/ifunc-impl-list.c
3648 (__libc_ifunc_impl_list): Adjust ifunc variants for
3649 memset.
3650 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3651 to ...
3652 * sysdeps/s390/memset.c: ... here.
3653 Adjust ifunc variants for memset.
3654
3655 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3656
3657 * sysdeps/s390/s390-64/memset.S: Move to ...
3658 * sysdeps/s390/memset.S: ... here.
3659 Adjust to be usable for 31/64bit.
3660 * sysdeps/s390/s390-32/memset.S: Delete File.
3661 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3662 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3663 Remove memset.
3664 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3665 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3666 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3667 Adjust to be usable for 31/64bit.
3668 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3669 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3670 * sysdeps/s390/multiarch/memset.c: ... here.
3671 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3672
3673 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3674
3675 * sysdeps/s390/multiarch/ifunc-resolve.h
3676 (s390_libc_ifunc_init, s390_libc_ifunc,
3677 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3678
3679 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3680
3681 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3682 * sysdeps/s390/configure.ac: Add check for z10 support.
3683 * sysdeps/s390/configure: Regenerated.
3684
3685 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3686
3687 * sysdeps/i386/atomic-machine.h: Merged with ...
3688 * sysdeps/x86_64/atomic-machine.h: To ...
3689 * sysdeps/x86/atomic-machine.h: This. New file.
3690
3691 2018-12-18 Florian Weimer <fweimer@redhat.com>
3692
3693 Rewrite locale/gen-translit.pl in Python.
3694 * locale/Makefile (generated): Add C-translit.h.
3695 (before-compile): Add $(objpfx)C-translit.h.
3696 (C-translit.h): Move to $(objpfx). Create target directory.
3697 Build using Python script.
3698 * locale/gen-translit.py: New file.
3699 * locale/gen-translit.pl: Remove file.
3700 * locale/C-translit.h.in: Change comment character to '#' for
3701 easier parsing without a C preprocessor.
3702 * locale/C-translit.h: Remove generated file.
3703 * manual/install.texi (Tools for Compilation): Do not mention
3704 C-translit.h.
3705 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3706 Remove locale/C-translit.h.
3707 * scripts/update-copyrights: Likewise.
3708 * INSTALL: Regenerate.
3709
3710 2018-12-18 Florian Weimer <fweimer@redhat.com>
3711
3712 [BZ #23995]
3713 * localedata/locales/bi_VU: Remove executable bit from file.
3714
3715 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3716
3717 * include/time.h
3718 (__localtime64): Add.
3719 * manual/maint.texi: Document Y2038 symbol handling.
3720 * time/localtime.c
3721 (__localtime64): Add.
3722 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3723
3724 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3725
3726 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3727 Do not clobber r12.
3728
3729 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3730 to allow extra macros from first or second sources.
3731 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3732 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3733 (tests-special): Add $(objpfx)tst-mman-consts.out.
3734 ($(objpfx)tst-mman-consts.out): New makefile target.
3735
3736 2018-12-17 Mao Han <han_mao@c-sky.com>
3737
3738 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3739 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3740 without stat64 system call support.
3741 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3742 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3743 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3744 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3745 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3746 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3747 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3748 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3749 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3750 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3751 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3752
3753 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3754
3755 regex: fix storage-exhaustion error
3756 [BZ #18040]
3757 * posix/regexec.c (get_subexp):
3758 Do not continue if storage is exhausted.
3759
3760 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3761
3762 regex: fix heap-use-after-free error
3763 [BZ #18040]
3764 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3765 https://debbugs.gnu.org/32592
3766 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3767 call extend_buffers which reallocates the re_string_t internal buffer.
3768 Local variable 'buf' was not updated in such case, resulting in
3769 use-after-free.
3770 * posix/regexec.c (get_subexp): Update 'buf' after call to
3771 get_subexp_sub.
3772
3773 2018-12-15 Florian Weimer <fweimer@redhat.com>
3774
3775 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3776 (minimum_stride_size): Use it.
3777 (support_blob_repeat_allocate): Likewise.
3778
3779 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3780
3781 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3782 definition.
3783 (acosh): Likewise.
3784 (atanh): Likewise.
3785
3786 2018-12-14 Florian Weimer <fweimer@redhat.com>
3787
3788 * manual/process.texi (Process Creation Concepts): Remove
3789 documentation of process (ID) lifetime. List more process
3790 creation functions. Reference Process Identification section.
3791 (Process Identification): Add information about process ID
3792 lifetime. Describe Linux thread/task IDs.
3793 * manual/signal.texi (Signaling Another Process): Mention that the
3794 signal is always sent to the process.
3795
3796 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3797
3798 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3799 and tst-ldbl-efgcvt.
3800 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3801 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3802 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3803 (fcvt_tests, output_error, output_r_error, do_test): Use the
3804 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3805 select the type of floating-point variables and arguments; to
3806 produce extra tests for double and conversion specifiers for
3807 printf; and to set the names of called functions.
3808 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3809 in tst-efgcvt-template.c.
3810 * misc/tst-ldbl-efgcvt.c: Likewise.
3811
3812 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3813
3814 * nss/Makefile (tst-nss-test3.out): New rule.
3815
3816 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3817
3818 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3819 clobber sp.
3820
3821 2018-12-13 fanjinke <fanjinke@hygon.cn>
3822
3823 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3824 "HygonGenuine".
3825
3826 2018-12-13 Andreas Schwab <schwab@suse.de>
3827
3828 [BZ #23861]
3829 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3830 (__pthread_rwlock_rdlock_full): Update expected value for
3831 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3832 * nptl/tst-rwlock-pwn.c: New file.
3833 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3834
3835 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3836
3837 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3838 definition.
3839
3840 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3841
3842 * benchtests/scripts/compare_bench.py (do_compare): write to
3843 stderr in casestat is not present.
3844 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3845 stderr in case timings field is not present. Also string showing
3846 the output filename goes into the stderr.
3847
3848 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3849
3850 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3851 and ZeroDivisorError exceptions.
3852 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3853 argument to loop through user provided statistics.
3854 * benchtests/scripts/compare_bench.py (main): Include the --stats
3855 argument.
3856
3857 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3858
3859 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3860 instead of return.
3861
3862 2018-12-12 Florian Weimer <fweimer@redhat.com>
3863
3864 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3865 clause to copyright header.
3866
3867 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3868
3869 [BZ #23614]
3870 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3871 registers saved in the stack frame.
3872 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3873 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3874
3875 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3876
3877 * include/bits/monetary-ldbl.h: New file.
3878 * include/bits/printf-ldbl.h: Likewise.
3879 * include/bits/stdio-ldbl.h: Likewise.
3880 * include/bits/stdlib-ldbl.h: Likewise.
3881 * include/bits/syslog-ldbl.h: Likewise.
3882 * include/bits/wchar-ldbl.h: Likewise.
3883
3884 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3885
3886 * libio/libio.h: Remove redirection for _IO_vfprintf.
3887
3888 2018-12-11 Andreas Schwab <schwab@suse.de>
3889
3890 * Makerules: Remove all references to abilist-pattern.
3891 (update-all-abi): Simplify find expression.
3892
3893 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3894
3895 [BZ #23961]
3896 * math/auto-libm-test-in: Add new test case.
3897 * math/auto-libm-test-out-pow: Regenerated.
3898 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3899
3900 2018-12-10 DJ Delorie <dj@redhat.com>
3901
3902 [BZ #23948]
3903 * support/test-container.c: Move postclean step to before we
3904 change namespaces.
3905
3906 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3907
3908 * scripts/gen-as-const.py (main): Handle --python option.
3909 * scripts/gen-py-const.awk: Remove.
3910 * Makerules (py-const-script): Use gen-as-const.py.
3911 ($(py-const)): Likewise.
3912 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3913 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3914 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3915 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3916 ~PTHREAD_MUTEX_NO_ELISION_NP.
3917 * manual/README.pretty-printers: Update reference to
3918 gen-py-const.awk.
3919
3920 * scripts/glibcextract.py: New file.
3921 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3922 or tempfile. Import glibcexctract.
3923 (compute_c_consts): Remove. Moved to glibcextract.py.
3924 (gen_test): Update reference to compute_c_consts.
3925 (main): Likewise.
3926 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3927 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3928 * sysdeps/unix/sysv/linux/Makefile
3929 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3930 Redirect stderr as well as stdout.
3931
3932 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3933
3934 [BZ #19767]
3935 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3936 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3937 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3938 ALWAYS_USE_VSYSCALL.
3939 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3940 ALWAYS_USE_VSYSCALL.
3941 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3942 ALWAYS_USE_VSYSCALL.
3943
3944 2018-12-10 Florian Weimer <fweimer@redhat.com>
3945
3946 [BZ #23972]
3947 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3948 offset instead of count for clarity. Fix typo in comment.
3949 (__old_getdents64): Keep track of previous offset. Use it to call
3950 handle_overflow.
3951 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3952 that d_off is never zero.
3953
3954 2018-12-10 Andreas Schwab <schwab@suse.de>
3955
3956 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3957 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3959 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3960 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3961
3962 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3963
3964 * timezone/private.h: Update from tzcode 2018g.
3965 * timezone/tzfile.h: Likewise.
3966 * timezone/tzselect.ksh: Likewise.
3967 * timezone/zdump.c: Likewise.
3968 * timezone/zic.c: Likewise.
3969
3970 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3971
3972 [BZ #23490]
3973 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3974 (do_test): Adjust buffer size and fix format.
3975
3976 2018-12-07 DJ Delorie <dj@redhat.com>
3977
3978 [BZ #23907]
3979 * malloc/tst-tcfree3.c: New.
3980 * malloc/Makefile: Add it.
3981
3982 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3983
3984 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3985
3986 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3987
3988 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3989 used as a mask for the mode argument of __vfscanf_internal and
3990 __vfwscanf_internal.
3991 * stdio-common/vfscanf-internal.c
3992 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3993 (__strtof128_internal): Define to __wcstof128_internal.
3994 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3995 __strtof128_internal or __wcstof128_internal when the format of
3996 long double is the same as _Float128.
3997
3998 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3999
4000 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4001 * posix/confstr.c (confstr): Rename to __confstr.
4002 (__confstr): Add hidden def.
4003 (confstr): Add weak alias for __confstr.
4004 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4005 confstr.
4006
4007 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4008
4009 * NEWS: Mention getcpu.
4010 * include/sched.h (__getcpu): New libc_hidden_proto.
4011 * manual/resource.texi: Document getcpu.
4012 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4013 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4014 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4015 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4016 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4017 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4018 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4019 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4020 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4021 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4022 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4023 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4024 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4025 Likewise.
4026 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4027 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4028 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4030 Likewise.
4031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4032 Likewise.
4033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4034 Likewise.
4035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4036 Likewise.
4037 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4038 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4039 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4040 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4041 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4042 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4043 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4044 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4045 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4046 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4047 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4048 Also check getcpu.
4049
4050 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4051
4052 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4053 functions.
4054 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4055
4056 2018-12-07 Florian Weimer <fweimer@redhat.com>
4057
4058 [BZ #17405]
4059 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4060 * posix/Versions (GLIBC_2.29): Export
4061 posix_spawn_file_actions_addfchdir_np.
4062 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4063 * posix/spawn_faction_destroy.c
4064 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4065 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4066 and the field action.fchdir_action.
4067 * posix/tst-spawn-chdir.c (add_chdir): New function.
4068 (do_test): Add do_fchdir loop. Call add_chdir.
4069 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4070 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4071 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4072 posix_spawn_file_actions_addfchdir_np.
4073 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4074 Likewise.
4075 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4076 Likewise.
4077 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4078 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4079 Likewise.
4080 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4081 Likewise.
4082 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4083 Likewise.
4084 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4085 Likewise.
4086 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4087 Likewise.
4088 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4089 Likewise.
4090 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4091 (GLIBC_2.29): Likewise.
4092 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4093 (GLIBC_2.29): Likewise.
4094 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4095 (GLIBC_2.29): Likewise.
4096 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4097 (GLIBC_2.29): Likewise.
4098 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4099 Likewise.
4100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4101 (GLIBC_2.29): Likewise.
4102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4103 (GLIBC_2.29): Likewise.
4104 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4105 (GLIBC_2.29): Likewise.
4106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4107 (GLIBC_2.29): Likewise.
4108 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4109 Likewise.
4110 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4111 Likewise.
4112 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4113 Likewise.
4114 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4115 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4116 Likewise.
4117 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4118 Likewise.
4119 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4120 Likewise.
4121 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4122 Likewise.
4123
4124 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4125
4126 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4127 trailing whitespace removed.
4128 * scripts/config.guess: Update to version 2018-11-28.
4129 * scripts/config.sub: Update to version 2018-11-28.
4130 * scripts/install-sh: Update to version 2018-03-11.20.
4131 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4132 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4133
4134 2018-12-07 Florian Weimer <fweimer@redhat.com>
4135
4136 [BZ #23927]
4137 CVE-2018-19591
4138 * inet/tst-if_index-long.c: New file.
4139 * inet/Makefile (tests): Add tst-if_index-long.
4140
4141 2018-12-07 Florian Weimer <fweimer@redhat.com>
4142
4143 * support/check.h (support_record_failure_is_failed): Declare.
4144 * support/descriptors.h: New file.
4145 * support/support_descriptors.c: Likewise.
4146 * support/tst-support_descriptors.c: Likewise.
4147 * support/support_record_failure.c
4148 (support_record_failure_is_failed): New function.
4149 * support/Makefile (libsupport-routines): Add support_descriptors.
4150 (tests): Add tst-support_descriptors.
4151
4152 2018-12-05 Zack Weinberg <zackw@panix.com>
4153 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4154
4155 * stdio-common/vfprintf-internal.c
4156 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4157 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4158 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4159 and __no_long_double.
4160 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4161 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4162 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4163 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4164 and __nldbl_*syslog* functions.
4165 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4166 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4167 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4168 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4169 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4170 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4171 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4172 (__nldbl_vwprintf, __nldbl_wprintf):
4173 Directly call the appropriate __v*printf_internal routine, passing
4174 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4175 variable names.
4176 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4177 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4178 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4179 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4180 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4181 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4182 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4183 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4184 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4185 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4186 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4187 (__nldbl_syslog, __nldbl_vsyslog):
4188 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4189 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4190 appropriate.
4191 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4192 appropriate.
4193
4194 2018-12-05 Zack Weinberg <zackw@panix.com>
4195 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4196
4197 [BZ #11319]
4198 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4199 Moved here from debug/vsprintf_chk.c.
4200 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4201 and completion logic for the strfile to match exactly what
4202 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4203 _IO_str_init_static_internal instead of maxlen-1.
4204 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4205 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4206 __vsprintf_internal.
4207
4208 * debug/vsprintf_chk.c (__vsprintf_chk)
4209 * debug/sprintf_chk.c (__sprintf_chk):
4210 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4211 'flags' argument is positive, and slen as maxlen. No need to lock
4212 the FILE and/or construct a temporary FILE. Minimize and normalize
4213 header inclusions and variable names. Do not libc_hidden_def anything.
4214
4215 * debug/asprintf_chk.c (__asprintf_chk)
4216 * debug/dprintf_chk.c (__dprintf_chk)
4217 * debug/fprintf_chk.c (__fprintf_chk)
4218 * debug/fwprintf_chk.c (__fwprintf_chk)
4219 * debug/printf_chk.c (__printf_chk)
4220 * debug/snprintf_chk.c (__snprintf_chk)
4221 * debug/swprintf_chk.c (__swprintf_chk)
4222 * debug/vasprintf_chk.c (__vasprintf_chk)
4223 * debug/vdprintf_chk.c (__vdprintf_chk)
4224 * debug/vfprintf_chk.c (__vfprintf_chk)
4225 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4226 * debug/vprintf_chk.c (__vprintf_chk)
4227 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4228 * debug/vswprintf_chk.c (__vswprintf_chk)
4229 * debug/vwprintf_chk.c (__vwprintf_chk)
4230 * debug/wprintf_chk.c (__wprintf_chk):
4231 Directly call the corresponding vxxprintf_internal function, passing
4232 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4233 the FILE and/or construct a temporary FILE. Minimize and normalize
4234 header inclusions and variable names. Do not libc_hidden_def anything.
4235
4236 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4237 __obstack_vprintf_internal.
4238 (__obstack_vprintf_chk): Convert into a wrapper that calls
4239 __obstack_vprintf_internal (these two functions already had the
4240 same code) and move to new file...
4241 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4242 file.
4243 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4244 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4245 * debug/Makefile (routines): Add vobprintf_chk.
4246
4247 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4248 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4249 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4250 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4251 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4252 (__nldbl___obstack_vfprintf_chk):
4253 Directly call the corresponding vxxprintf_internal function,
4254 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4255 duplicate comparison of slen with 0 or maxlen from the corresponding
4256 non-__nldbl function.
4257
4258 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4259 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4260 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4261 Remove libc_hidden_proto.
4262
4263 * stdio-common/vfprintf-internal.c
4264 (__vfprintf_internal, __vfwprintf_internal):
4265 Do not check _IO_FLAGS2_FORTIFY.
4266 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4267 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4268 a comment explaining why it has the maxlen argument.
4269 (_IO_acquire_lock_clear_flags2_fct): Remove.
4270 (_IO_acquire_lock_clear_flags2): Remove.
4271 (_IO_release_lock): Remove conditional statement which will
4272 now never execute.
4273 (_IO_acquire_lock): Remove variable which is now unused.
4274 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4275 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4276
4277 * stdio-common/Makefile (tests): Add tst-bz11319 and
4278 tst-bz11319-fortify2.
4279 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4280 * stdio-common/tst-bz11319-fortify2.c: New file.
4281 * stdio-common/tst-bz11319.c: Likewise.
4282
4283 2018-12-05 Zack Weinberg <zackw@panix.com>
4284 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4285
4286 * misc/syslog.c: Include libioP.h, not iolibio.h.
4287 (__vsyslog_internal): New function with the former body of
4288 __vsyslog_chk; takes mode_flags argument same as
4289 __v*printf_internal. Call __vfprintf_internal directly.
4290
4291 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4292 Remove libc_hidden_def.
4293 (__syslog, __syslog_chk): Use __vsyslog_internal.
4294 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4295
4296 * include/sys/syslog.h: Add multiple inclusion guard.
4297 Add prototype for __vsyslog_internal.
4298 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4299
4300 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4301 Use __vsyslog_internal.
4302
4303 2018-12-05 Zack Weinberg <zackw@panix.com>
4304 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4305
4306 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4307 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4308 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4309 New functions.
4310 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4311 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4312
4313 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4314 Include wctype.h here if COMPILE_WPRINTF is defined.
4315 Define __vfprintf_internal or __vfwprintf_internal, depending
4316 on COMPILE_WPRINTF.
4317 Temporarily, on entry to this function, update mode_flags
4318 according to the environmental settings corresponding to
4319 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4320 Throughout, check mode_flags instead of __ldbl_is_dbl and
4321 _IO_FLAGS2_FORTIFY on the destination FILE.
4322 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4323 Include vfprintf-internal.c. Don't include wctype.h.
4324 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4325 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4326 and vfprintf.
4327 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4328 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4329 and vfwprintf.
4330 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4331
4332 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4333 and add mode_flags argument; use __vfprintf_internal.
4334 (__vdprintf): New function. Alias vdprintf to this.
4335 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4336 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4337 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4338 (__obstack_printf): Use __obstack_printf_internal.
4339 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4340 public aliases __vsnprintf and vsnprintf.
4341 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4342 called internally.
4343 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4344 public aliases _IO_vsprintf and vsprintf.
4345 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4346 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4347 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4348 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4349 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4350
4351 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4352 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4353 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4354 * stdio-common/printf.c: Use __vfprintf_internal.
4355
4356 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4357 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4358 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4359
4360 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4361 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4362 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4363 __vfwprintf_internal.
4364
4365 * libio/libio.h: Remove libc_hidden_proto and declaration for
4366 _IO_vfprintf.
4367 Remove declaration of _IO_vfwprintf.
4368 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4369 _IO_vsprintf.
4370 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4371 _IO_obstack_printf.
4372 * include/stdio.h: Add prototype for __vasprintf.
4373 (__vsnprintf): Remove declaration, because there are no more
4374 internal calls.
4375 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4376 declaration, because there are no more internal calls.
4377
4378 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4379 __vsnprintf_internal, instead of _IO_vsnprintf.
4380 * argp/argp-help.c (__argp_error, __argp_failure): Use
4381 __vasprintf_internal, instead of _IO_vasprintf.
4382 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4383 redefine, because there are no more internal calls.
4384
4385 2018-12-05 Zack Weinberg <zackw@panix.com>
4386 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4387
4388 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4389 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4390 Include libio/strfile.h instead of libioP.h.
4391 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4392 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4393 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4394 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4395 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4396 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4397 necessary. Do not set __no_long_double. Normalize variable names.
4398 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4399 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4400 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4401 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4402 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4403 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4404 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4405 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4406 Do not set __no_long_double. Normalize variable names.
4407
4408 2018-12-05 Zack Weinberg <zackw@panix.com>
4409 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4410
4411 * stdio-common/isoc99_scanf.c
4412 * stdio-common/isoc99_fscanf.c
4413 * stdio-common/isoc99_sscanf.c
4414 * stdio-common/isoc99_vscanf.c
4415 * stdio-common/isoc99_vfscanf.c
4416 * stdio-common/isoc99_vsscanf.c
4417 * wcsmbs/isoc99_wscanf.c
4418 * wcsmbs/isoc99_fwscanf.c
4419 * wcsmbs/isoc99_swscanf.c
4420 * wcsmbs/isoc99_vwscanf.c
4421 * wcsmbs/isoc99_vfwscanf.c
4422 * wcsmbs/isoc99_vswscanf.c:
4423 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4424 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4425 No need to lock and unlock the FILE passed to that function.
4426
4427 * stdio-common/vfscanf-internal.c
4428 (__vfscanf_internal, __vfwscanf_internal):
4429 Don't look at _IO_FLAGS2_SCANF_STD.
4430 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4431 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4432 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4433
4434 2018-12-05 Zack Weinberg <zackw@panix.com>
4435 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4436
4437 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4438 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4439 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4440 * libio/strfile.h: Add multiple inclusion guard.
4441 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4442
4443 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4444 consistency with the other version of this file.
4445 (ldbl_compat_symbol): New macro.
4446 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4447 New macro.
4448
4449 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4450 Define __vfscanf_internal or __vfwscanf_internal, depending on
4451 COMPILE_WSCANF; don't define any other public symbols.
4452 Remove errval and code to set errp.
4453 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4454 as the mode_flags argument.
4455 (encode_error, conv_error, input_error): Don't set errval.
4456 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4457 Include vfscanf-internal.c.
4458 * stdio-common/vfscanf.c: New file defining the public entry
4459 point vfscanf, which calls __vfscanf_internal.
4460 * stdio-common/vfwscanf.c: New file defining the public entry
4461 point vfwscanf, which calls __vfwscanf_internal.
4462
4463 * stdio-common/iovfscanf.c: New file.
4464 * stdio-common/iovfwscanf.c: Likewise.
4465
4466 * stdio-common/Makefile (routines): Add vfscanf-internal,
4467 vfwscanf-internal, iovfscanf, iovfwscanf.
4468 * stdio-common/Versions: Mention GLIBC_2.29, so that
4469 it can be used in SHLIB_COMPAT expressions.
4470 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4471 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4472 Call __vfscanf_internal, instead of _IO_vfscanf.
4473 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4474 _IO_vfscanf.
4475 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4476 _IO_vfwscanf.
4477
4478 * libio/iovsscanf.c: Clean up includes, when possible. Use
4479 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4480 __vfscanf_internal or __vfwscanf_internal directly.
4481 * libio/iovswscanf.c: Likewise.
4482 * libio/swscanf.c: Likewise.
4483 * libio/vscanf.c: Likewise.
4484 * libio/vwscanf.c: Likewise.
4485 * libio/wscanf.c: Likewise.
4486 * stdio-common/isoc99_fscanf.c: Likewise.
4487 * stdio-common/isoc99_scanf.c: Likewise.
4488 * stdio-common/isoc99_sscanf.c: Likewise.
4489 * stdio-common/isoc99_vfscanf.c: Likewise.
4490 * stdio-common/isoc99_vscanf.c: Likewise.
4491 * stdio-common/isoc99_vsscanf.c: Likewise.
4492 * stdio-common/scanf.c: Likewise.
4493 * stdio-common/sscanf.c: Likewise.
4494 * wcsmbs/isoc99_fwscanf.c: Likewise.
4495 * wcsmbs/isoc99_swscanf.c: Likewise.
4496 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4497 * wcsmbs/isoc99_vswscanf.c: Likewise.
4498 * wcsmbs/isoc99_vwscanf.c: Likewise.
4499 * wcsmbs/isoc99_wscanf.c: Likewise.
4500
4501 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4502
4503 * include/time.h
4504 (__tz_compute): Replace time_t with __time64_t.
4505 (__tz_convert): Replace time_t* with __time64_t.
4506 (__offtime): Replace time_t* with __time64_t.
4507 * time/gmtime.c
4508 (__gmtime_r): Adjust call to __tz_convert.
4509 (gmtime): Likewise.
4510 * time/localtime.c
4511 (__localtime_r): Likewise.
4512 (localtime): Likewise.
4513 * time/offtime.c: Replace time_t with __time64_t.
4514 * time/tzset.c: Likewise.
4515
4516 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4517
4518 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4519 dynamic linker unless [$(run-built-tests) = yes].
4520
4521 2018-12-03 DJ Delorie <dj@delorie.com>
4522
4523 * support/test-container.c (check_for_unshare_hints): New.
4524 (main): Call it if unshare fails. Add support for "su" scriptlet
4525 command.
4526
4527 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4528
4529 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4530 'START' to indicate that start text should be output.
4531 (gen_test): Likewise.
4532 (main): Generate 'START' for first symbol or '--' line, or at end
4533 of input if not previously generated.
4534
4535 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4536
4537 [BZ #19767]
4538 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4539 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4540 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4541 ALWAYS_USE_VSYSCALL.
4542
4543 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4544
4545 [BZ #23913]
4546 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4547 new_argv by one.
4548
4549 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4550
4551 [BZ #23923]
4552 * locale/programs/localedef.c: Declare boolean hard_links default true.
4553 (options): Add --no-hard-links option.
4554 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4555 * locale/programs/localedef.h: Declare prototype for hard_links.
4556 * locale/programs/locfile.c (write_locale_data): Don't use hard
4557 links if hard_links is false.
4558
4559 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4560
4561 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4562 cpu_features_basic.
4563 (__cache_sysconf): Likewise.
4564 (init_cacheinfo): Likewise.
4565 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4566 populate COMMON_CPUID_INDEX_80000007 and
4567 COMMON_CPUID_INDEX_80000008.
4568 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4569 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4570 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4571 (init_cpu_features): Use _Static_assert on
4572 index_arch_Fast_Unaligned_Load.
4573 __get_cpuid_registers and __get_arch_feature. Updated for
4574 cpu_features_basic. Set stepping in cpu_features.
4575 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4576 (FEATURE_INDEX_2): New.
4577 (FEATURE_INDEX_MAX): Changed to enum.
4578 (COMMON_CPUID_INDEX_D_ECX_1): New.
4579 (COMMON_CPUID_INDEX_80000007): Likewise.
4580 (COMMON_CPUID_INDEX_80000008): Likewise.
4581 (cpuid_registers): Likewise.
4582 (cpu_features_basic): Likewise.
4583 (CPU_FEATURE_USABLE): Likewise.
4584 (bit_arch_XXX_Usable): Likewise.
4585 (cpu_features): Use cpuid_registers and cpu_features_basic.
4586 (bit_arch_XXX): Reweritten.
4587 (bit_cpu_XXX): Likewise.
4588 (index_cpu_XXX): Likewise.
4589 (reg_XXX): Likewise.
4590 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4591 <support/check.h>.
4592 (CHECK_CPU_FEATURE): New.
4593 (CHECK_CPU_FEATURE_USABLE): Likewise.
4594 (cpu_kinds): Likewise.
4595 (do_test): Print vendor, family, model and stepping. Check
4596 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4597 (TEST_FUNCTION): Removed.
4598 Include <support/test-driver.c> instead of
4599 "../../test-skeleton.c".
4600 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4601 Check POPCNT instead of POPCOUNT.
4602 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4603
4604 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4605
4606 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4607 there is no element in `consts'.
4608
4609 2018-12-01 Florian Weimer <fweimer@redhat.com>
4610
4611 * support/support_capture_subprocess.c
4612 (support_capture_subprocess): Check that pipe descriptors have
4613 expected values. Close original pipe descriptors in subprocess.
4614
4615 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4616
4617 [BZ #23032]
4618 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4619 attr with __pthread_default_barrierattr.
4620 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4621 attr with __pthread_default_condattr.
4622 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4623 attr with __pthread_default_mutexattr.
4624 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4625 attr with __pthread_default_rwlockattr.
4626
4627 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4628
4629 * manual/tunables.texi (POSIX Thread Tunables): New node.
4630 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4631 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4632 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4633 __pthread_tunables_init.
4634 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4635 (max_adaptive_count): Define.
4636 * nptl/pthread_mutex_conf.c: New file.
4637 * nptl/pthread_mutex_conf.h: New file.
4638 * sysdeps/generic/adaptive_spin_count.h: New file.
4639 * sysdeps/nptl/dl-tunables.list: New file.
4640 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4641 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4642 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4643 Likewise.
4644
4645 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4646
4647 [BZ #20544]
4648 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4649 * stdlib/on_exit.c (__on_exit): Likewise.
4650 * stdlib/Makefile (tests): Add tst-bz20544.
4651 * stdlib/tst-bz20544.c: New test.
4652
4653 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4654
4655 [BZ #19767]
4656 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4657 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4658 New.
4659
4660 2018-11-30 Florian Weimer <fweimer@redhat.com>
4661
4662 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4663 Extend error logging.
4664 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4665 symbol.
4666
4667 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4668
4669 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4670 __sigismember instead of sigismember.
4671 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4672 cancel_handler): New definitions.
4673 (do_system): Use posix_spawn instead of fork and execl and remove
4674 reentracy code.
4675 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4676 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4677 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4678 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4679 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4680 * sysdeps/unix/sysv/linux/system.c: Likewise.
4681
4682 [BZ #22834]
4683 [BZ #17490]
4684 * NEWS: Add new semantic for atfork with popen and system.
4685 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4686 fork and execl.
4687
4688 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4689
4690 [BZ #23690]
4691 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4692 modification order when accessing reloc_result->addr.
4693 * include/link.h (reloc_result): Add field init.
4694 * nptl/Makefile (tests): Add tst-audit-threads.
4695 (modules-names): Add tst-audit-threads-mod1 and
4696 tst-audit-threads-mod2.
4697 Add rules to build tst-audit-threads.
4698 * nptl/tst-audit-threads-mod1.c: New file.
4699 * nptl/tst-audit-threads-mod2.c: Likewise.
4700 * nptl/tst-audit-threads.c: Likewise.
4701 * nptl/tst-audit-threads.h: Likewise.
4702
4703 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4704
4705 * scripts/gen-as-const.py: New file.
4706 * scripts/gen-as-const.awk: Remove.
4707 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4708 gen-as-const.py.
4709 ($(objpfx)test-as-const-%.c): Likewise.
4710
4711 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4712
4713 * elf/dl-exception.c: Include <_itoa.h>.
4714
4715 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4716
4717 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4718 returned by __f_setlk.
4719
4720 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4721 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4722
4723 * elf/Makefile (tests-internal): Add tst-create_format1.
4724 * elf/dl-exception.c (_dl_exception_create_format): Support
4725 %x, %lx and %zx.
4726 * elf/tst-create_format1.c: New file.
4727
4728 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4729
4730 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4731 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4732 gnulib.)
4733 * argp/argp-help.c (__argp_failure): Likewise.
4734
4735 2018-11-29 Mao Han <han_mao@c-sky.com>
4736
4737 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4738 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4739 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4740 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4741 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4742 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4743 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4744 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4745 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4746 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4747 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4748 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4749 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4750 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4751 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4752 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4753 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4754 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4755 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4756 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4757 (R_CKCORE_TLS_TPOFF32): New defines.
4758
4759 2018-11-29 Florian Weimer <fweimer@redhat.com>
4760
4761 * posix/Makefile (before-compile): Remove testcases.h and
4762 ptestcases.h.
4763 (generated): Add testcases.h and ptestcases.h.
4764 (testcases.h, ptestcases.h): Move to $(objpfx).
4765 (runtests.o): Add dependency on testcases.h.
4766 (runptests.o): Add dependency on ptestcases.h.
4767 * posix/testcases.h, posix/ptestcases.h: Remove files.
4768 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4769 not touch posix/testcases.h and posix/ptestcases.h.
4770
4771 2018-11-28 Florian Weimer <fweimer@redhat.com>
4772
4773 support: Add signal support to support_capture_subprocess_check.
4774 * support/capture_subprocess.h (support_capture_subprocess_check):
4775 Adjust comment and rename parameter.
4776 * support/support_capture_subprocess_check.c
4777 (print_actual_status): New function.
4778 (support_capture_subprocess_check): Support negative
4779 status_or_signal. Call print_actual_status.
4780 * support/tst-support_capture_subprocess.c (do_test): Call
4781 support_capture_subprocess_check.
4782 * libio/tst-vtables-common.c (termination_status)
4783 (init_termination_status): Remove.
4784 (check_for_termination): Adjust support_capture_subprocess_check
4785 call.
4786 (do_test): Remove call to init_termination_status.
4787
4788 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4789
4790 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4791 source directory instead of a copy.
4792 (CommandList.create_copy_dir): Remove.
4793
4794 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4795
4796 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4797
4798 2018-11-28 Florian Weimer <fweimer@redhat.com>
4799
4800 * support/support.h (support_quote_string): Do not use str
4801 parameter name.
4802
4803 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4804
4805 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4806 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4807
4808 2018-11-27 Florian Weimer <fweimer@redhat.com>
4809
4810 * support/support.h (support_quote_string): Declare.
4811 * support/support_quote_string.c: New file.
4812 * support/tst-support_quote_string.c: Likewise.
4813 * support/Makefile (libsupport-routines): Add
4814 support_quote_string.
4815 (tests): Add tst-support_quote_string.
4816
4817 2018-11-27 Florian Weimer <fweimer@redhat.com>
4818
4819 [BZ #23927]
4820 CVE-2018-19591
4821 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4822 descriptor leak in case of ENODEV error.
4823
4824 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4825
4826 [BZ #19767]
4827 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4828 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4829 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4830
4831 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4832
4833 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4834 Error for unknown lines.
4835
4836 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4837
4838 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4839 Touch additional files.
4840
4841 2018-11-26 Florian Weimer <fweimer@redhat.com>
4842
4843 [BZ #23907]
4844 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4845 double-frees.
4846
4847 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4848
4849 [BZ #19767]
4850 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4851 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4852 SHARED. Include sysdep.h.
4853 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4854 ALWAYS_USE_VSYSCALL.
4855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4856 ALWAYS_USE_VSYSCALL.
4857
4858 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4859
4860 [BZ #19767]
4861 * nptl/Makefile (tests-static): Add tst-cond11-static.
4862 (tests): Likewise.
4863 * nptl/tst-cond11-static.c: New File.
4864 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4865 tst-affinity-static.
4866 (tests): Likewise.
4867 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4868 instead of SHARED.
4869 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4870 (USE_VSYSCALL): Likewise.
4871 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4872 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4873 instead of SHARED.
4874 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4875 SHARED.
4876 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4877 New.
4878
4879 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4880
4881 [BZ #23915]
4882 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4883 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4884 Undefine.
4885
4886 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4887
4888 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4889 (tst-cet-legacy-1a-ARGS): New.
4890 ($(objpfx)tst-cet-legacy-1a): New target.
4891 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4892
4893 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4894
4895 * conform/conformtest.py (CompileSubTest.__init__): Set
4896 self.run_early to False.
4897 (ExecuteSubTest.__init__): Likewise.
4898 (HeaderTests.run): Try running all non-optional, non-XFAILed
4899 compilation tests in a single execution of the compiler.
4900
4901 * conform/conformtest.py (CompileSubTest): New class.
4902 (ExecuteSubTest): Likewise.
4903 (ElementTest.run): Rename to gen_subtests. Append tests to
4904 self.subtests instead of running them.
4905 (ConstantTest.run): Likewise.
4906 (SymbolTest.run): Likewise.
4907 (TypeTest.run): Likewise.
4908 (TagTest.run): Likewise.
4909 (FunctionTest.run): Likewise.
4910 (VariableTest.run): Likewise.
4911 (MacroFunctionTest.run): Likewise.
4912 (MacroStrTest.run): Likewise.
4913 (HeaderTests.handle_test_line): Generate subtests for tests.
4914 (HeaderTests.run): Run subtests for tests.
4915
4916 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4917
4918 * math/Versions (GLIBC_2.29): Add pow.
4919 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4920 symbol.
4921 * math/w_pow.c: New file.
4922 * sysdeps/i386/fpu/w_pow.c: New file.
4923 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4924 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4925 and add necessary aliases.
4926 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4927 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4928 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4929 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4930 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4931 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4932 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4933 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4934 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4935 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4936 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4937 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4938 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4939 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4940 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4941 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4942 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4944 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4945 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4946 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4947 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4948 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4949 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4950 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4951 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4952 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4953 __pow.
4954 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4955 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4956 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4957
4958 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4959
4960 * math/Versions (GLIBC_2.29): Add log2.
4961 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4962 symbol.
4963 * math/w_log2.c: New file.
4964 * sysdeps/i386/fpu/w_log2.c: New file.
4965 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4966 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4967 and add necessary aliases.
4968 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4969 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4970 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4971 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4972 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4973 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4974 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4975 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4976 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4977 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4978 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4979 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4980 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4981 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4982 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4983 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4985 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4987 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4988 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4989 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4990 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4991 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4992 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4993 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4994
4995 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4996
4997 * math/Versions (GLIBC_2.29): Add log.
4998 * math/w_log_compat.c (__log_compat): Change to versioned compat
4999 symbol.
5000 * math/w_log.c: New file.
5001 * sysdeps/i386/fpu/w_log.c: New file.
5002 * sysdeps/ia64/fpu/e_log.S: Update.
5003 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5004 and add necessary aliases.
5005 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5006 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5007 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5008 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5009 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5010 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5011 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5012 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5013 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5014 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5015 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5016 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5017 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5018 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5019 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5021 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5022 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5024 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5025 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5026 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5027 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5028 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5029 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5030 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5031 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5032 __log.
5033 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5034 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5035 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5036 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5037
5038 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5039
5040 * math/Versions (GLIBC_2.29): Add exp and exp2.
5041 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5042 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5043 * math/w_exp_compat.c (__exp_compat): Likewise.
5044 * math/w_exp.c: New file.
5045 * math/w_exp2.c: New file.
5046 * sysdeps/i386/fpu/w_exp.c: New file.
5047 * sysdeps/i386/fpu/w_exp2.c: New file.
5048 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5049 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5050 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5051 and add necessary aliases.
5052 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5053 and add necessary aliases.
5054 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5055 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5056 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5057 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5058 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5059 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5060 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5061 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5062 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5063 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5064 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5065 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5066 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5067 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5068 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5069 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5070 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5072 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5074 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5075 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5076 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5077 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5078 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5079 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5080 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5081 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5082 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5083 (__ieee754_exp): Rename to __exp.
5084 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5085 (__ieee754_exp): Rename to __exp.
5086 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5087 (__ieee754_exp): Rename to __exp.
5088 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5089 __exp.
5090 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5091
5092 2018-11-20 DJ Delorie <dj@redhat.com>
5093
5094 * malloc/malloc.c (tcache_entry): Add key field.
5095 (tcache_put): Set it.
5096 (tcache_get): Likewise.
5097 (_int_free): Check for double free in tcache.
5098 * malloc/tst-tcfree1.c: New.
5099 * malloc/tst-tcfree2.c: New.
5100 * malloc/Makefile: Run the new tests.
5101 * manual/probes.texi: Document memory_tcache_double_free probe.
5102
5103 * dlfcn/dlerror.c (check_free): Prevent double frees.
5104
5105 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5106
5107 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5108
5109 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5110
5111 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5112 in tests. Use names for format arguments.
5113 (ConstantTest.run): Likewise.
5114 (SymbolTest.run): Likewise.
5115 (TypeTest.run): Likewise.
5116 (TagTest.run): Likewise.
5117 (FunctionTest.run): Likewise.
5118 (VariableTest.run): Likewise.
5119 (MacroFunctionTest.run): Likewise.
5120 (MacroStrTest.run): Likewise.
5121 (HeaderTests.__init__): Set self.num_tests.
5122 (HeaderTests.handle_test_line): Set test.num. Increment
5123 self.num_tests.
5124
5125 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5126
5127 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5128 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5129 SEEK_SET.
5130
5131 2018-11-19 Mao Han <han_mao@c-sky.com>
5132
5133 * scripts/config.guess: Update to version 2018-08-29.
5134 * scripts/config.sub: Update to version 2018-08-29.
5135
5136 2018-11-19 Florian Weimer <fweimer@redhat.com>
5137
5138 support: Print timestamps in timeout handler.
5139 * support/support_test_main.c (print_timestamp): New function.
5140 (signal_handler): Use it to print the termination time and the
5141 time of the last write to standard output.
5142
5143 2018-11-16 Zack Weinberg <zackw@panix.com>
5144 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5145
5146 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5147 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5148 argument.
5149 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5150 and add flags argument. Check flags instead of __ldbl_is_dbl when
5151 deciding whether to set is_long_double.
5152 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5153 passing zero for flags argument.
5154 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5155
5156 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5157 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5158 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5159 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5160 variable names. Remove libc_hidden_def/libc_hidden_proto from
5161 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5162 longer called from within the library.
5163 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5164 for __nldbl___vstrfmon_l, declare it explicitly.
5165
5166 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5167
5168 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5169
5170 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5171 macros
5172 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5173 F_SETLK64, F_SETLKW64, respectively.
5174 * sysdeps/mach/hurd/f_setlk.c: New file.
5175 * sysdeps/mach/hurd/f_setlk.h: New file.
5176 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5177 f_setlk.
5178 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5179 (__libc_fcntl): Move non-flock operations to...
5180 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5181 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5182
5183 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5184
5185 mktime: DEBUG_MKTIME cleanup
5186 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5187 And it’s no longer needed now that glibc and Gnulib both have
5188 their own testing mechanisms for mktime.
5189 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5190
5191 mktime: fix non-EOVERFLOW errno handling
5192 [BZ#23789]
5193 mktime was not properly reporting failures when the underlying
5194 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5195 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5196 The problem could happen on non-glibc platforms, with Gnulib.
5197 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5198 (tm_diff): ... this simpler function, which does not change errno.
5199 All callers changed to deal with errno themselves.
5200 (ranged_convert, __mktime_internal): Return failure immediately if
5201 the underlying function reports any failure other than EOVERFLOW.
5202 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5203 gap code fails.
5204
5205 mktime: fix bug with Y2038 DST transition
5206 [BZ#23789]
5207 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5208 mishandle a DST transition that jumps over the Y2038 boundary.
5209 No such DST transitions are known so this is only a theoretical
5210 bug, but we might as well do things right.
5211
5212 mktime: make more room for overflow
5213 [BZ#23789]
5214 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5215 This is so that we can add tm_diff results to a previous guess,
5216 which will be useful in a later patch.
5217
5218 mktime: simplify offset guess
5219 [BZ#23789]
5220 * time/mktime.c (__mktime_internal): Omit excess precision.
5221
5222 mktime: new test for mktime failure
5223 [BZ#23789]
5224 Based on a test suggested by Albert Aribaud in:
5225 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5226 * time/Makefile (tests): Add bug-mktime4.
5227 * time/bug-mktime4.c: New file.
5228
5229 mktime: fix EOVERFLOW bug
5230 [BZ#23789]
5231 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5232 Include libc-config.h, not config.h, for __set_errno.
5233 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5234
5235 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5236
5237 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5238 __attribute_copy__ to copy attributes from name. Drop static qualifier
5239 to avoid warnings about leaf attribute not having effect on static
5240 functions.
5241
5242 2018-11-13 Florian Weimer <fweimer@redhat.com>
5243
5244 * malloc/malloc.c (fastbin_push_entry): New function.
5245 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5246 (REMOVE_FB): Remove macro.
5247 (_int_malloc): Use fastbin_pop_entry and reindent.
5248 (_int_free): Use fastbin_push_entry.
5249 (malloc_consolidate): Use atomic_exchange_acquire.
5250
5251 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5252
5253 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5254 alias attribute, not with strong_alias.
5255
5256 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5257 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5258 with additional parameter thread.
5259 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5260 in terms of __hidden_ver2.
5261 (hidden_tls_def): New macro.
5262 (libc_hidden_tls_def): Likewise.
5263 (rtld_hidden_tls_def): Likewise.
5264 (libm_hidden_tls_def): Likewise.
5265 (libmvec_hidden_tls_def): Likewise.
5266 (libresolv_hidden_tls_def): Likewise.
5267 (librt_hidden_tls_def): Likewise.
5268 (libdl_hidden_tls_def): Likewise.
5269 (libnss_files_hidden_tls_def): Likewise.
5270 (libnsl_hidden_tls_def): Likewise.
5271 (libnss_nisplus_hidden_tls_def): Likewise.
5272 (libutil_hidden_tls_def): Likewise.
5273 (libutil_hidden_tls_def): Likweise.
5274 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5275 libc_hidden_tls_def.
5276 (__sim_disabled_exceptions_thread): Likewise.
5277 (__sim_round_mode_thread): Likewise.
5278
5279 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5280 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5281 copy attributes from name.
5282
5283 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5284
5285 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5286 Use __attribute_copy__ to copy attributes from name.
5287
5288 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5289 with __hidden_ver1 call.
5290 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5291 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5292 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5293 (__cosf): Do not declare here.
5294 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5295 (__sincosf): Do not declare here.
5296 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5297 (__sinf): Do not declare here.
5298
5299 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5300 (__BIG_ENDIAN): Likewise.
5301 (__BYTE_ORDER): Likewise.
5302 (strong_alias): Likewise.
5303 (_strong_alias): Likewise.
5304
5305 2018-11-12 Florian Weimer <fweimer@redhat.com>
5306
5307 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5308 function. Move after the definition of in_smallbin_range. Do not
5309 use __builtin_expect for paths that lead to a noreturn function.
5310 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5311 because it is unclear whether this is in fact an unlikely
5312 condition.
5313 (_int_malloc, _int_free): Adjust.
5314 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5315 variables.
5316 * malloc/arena.c (heap_trim): Likewise.
5317
5318 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5319
5320 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5321 it, free it if needed.
5322 (reauthenticate): Test and use ccwdir.
5323 (child_init_port): In non-resetids case, test and use ccwdir.
5324 (child_chdir): New nested function to set ccwdir.
5325 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5326 * hurd/hurd/port.h (_hurd_port_move): New function.
5327 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5328 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5329 * hurd/Versions (_hurd_port_move): Export function.
5330 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5331 symbol.
5332 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5333 of dtablesize for allocating dtable_cloexec.
5334
5335 2018-11-09 Martin Sebor <msebor@redhat.com>
5336
5337 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5338 it's already defined.
5339 (_strong_alias): Use __attribute_copy__.
5340 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5341 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5342 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5343 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5344 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5345 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5346 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5347 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5348 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5349 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5350 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5351 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5352 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5353 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5354 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5355 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5356 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5357 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5358 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5359
5360 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5361
5362 * misc/tst-efgcvt.c: Include support/check.h and
5363 support/test-driver.c. Do not include test-skeleton.c.
5364 (error_count): Remove.
5365 (output_error): Replace increments to error_count with calls to
5366 support_record_failure.
5367 (output_r_error): Likewise.
5368 (special): Likewise.
5369 (do_test): Unconditionally return zero.
5370 (TEST_FUNCTION): Remove.
5371
5372 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5373
5374 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5375 not $(@D)/scratch.
5376 ($(linknamespace-header-tests)): Likewise.
5377
5378 * conform/conformtest.py: New file.
5379 * conform/conformtest.pl: Remove.
5380 * conform/GlibcConform.pm: Likewise.
5381 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5382 (KEYWORDS_C99): Likewise.
5383 (KEYWORDS): Likewise.
5384 * conform/Makefile ($(conformtest-header-tests)): Use
5385 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5386 option. Use --header instead of --headers.
5387 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5388 function entries.
5389 * conform/data/spawn.h-data: Likewise.
5390 * conform/data/fcntl.h-data (openat): Add space after function
5391 name.
5392 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5393 (wcscasecmp_l): Likewise.
5394 * conform/data/termios.h-data (c_cc): Add space after element
5395 name.
5396
5397 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5398
5399 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5400 instead of manually comparing and reporting mismatching strings.
5401 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5402 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5403
5404 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5405
5406 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5407 __ASSUME_SOCKETCALL.
5408 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5409 (__ASSUME_SOCKETCALL): Remove.
5410 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5411 (__ASSUME_SOCKETCALL): Likewise.
5412 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5413 (__ASSUME_SOCKETCALL): Likewise.
5414 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5415 (__ASSUME_SOCKETCALL): Likewise.
5416 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5417 (__ASSUME_SOCKETCALL): Likewise.
5418 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5419 (__ASSUME_SOCKETCALL): Likewise.
5420 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5421 (__ASSUME_SOCKETCALL): Likewise.
5422
5423 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5424
5425 [BZ #23509]
5426 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5427 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5428 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5429 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5430 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5431 lc_unknown.
5432
5433 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5434
5435 [BZ #17630]
5436 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5437
5438 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5439
5440 [BZ #23867]
5441 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5442 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5443 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5444 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5445
5446 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5447
5448 * support/support_test_compare_string.c
5449 (support_test_compare_string): Fix printf format.
5450
5451 2018-11-07 Florian Weimer <fweimer@redhat.com>
5452
5453 Implement TEST_COMPARE_STRING.
5454 * support/check.h (TEST_COMPARE_STRING): Define.
5455 (support_test_compare_string): Declare.
5456 * support/Makefile (libsupport-routines): Add
5457 support_test_compare_string.
5458 (tests): Add tst-test_compare_string.
5459 * support/support_test_compare_string.c: New file.
5460 * support/tst-test_compare_string.c: Likewise.
5461
5462 2018-11-07 Andreas Schwab <schwab@suse.de>
5463
5464 [BZ #23864]
5465 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5466 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5467 Undef.
5468
5469 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5470
5471 [BZ #23862]
5472 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5473 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5474 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5475 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5476 Likewise.
5477
5478 2018-11-06 Florian Weimer <fweimer@redhat.com>
5479
5480 [BZ #17405]
5481 * posix/Makefile (routines): Add spawn_faction_addchdir.
5482 (tests): Add tst-spawn-chdir.
5483 * posix/Versions (GLIBC_2.29): Add
5484 posix_spawn_file_actions_addchdir_np.
5485 * posix/spawn_faction_addchdir.c: New file.
5486 * posix/spawn_faction_destroy.c
5487 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5488 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5489 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5490 chdir_action.
5491 * posix/tst-spawn-chdir.c: New file.
5492 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5493 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5494 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5495 posix_spawn_file_actions_addchdir_np.
5496 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5497 Likewise.
5498 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5499 Likewise.
5500 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5501 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5502 Likewise.
5503 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5504 Likewise.
5505 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5506 Likewise.
5507 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5508 Likewise.
5509 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5510 Likewise.
5511 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5512 Likewise.
5513 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5514 (GLIBC_2.29): Likewise.
5515 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5516 (GLIBC_2.29): Likewise.
5517 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5518 (GLIBC_2.29): Likewise.
5519 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5520 (GLIBC_2.29): Likewise.
5521 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5522 Likewise.
5523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5524 (GLIBC_2.29): Likewise.
5525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5526 (GLIBC_2.29): Likewise.
5527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5528 (GLIBC_2.29): Likewise.
5529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5530 (GLIBC_2.29): Likewise.
5531 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5532 Likewise.
5533 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5534 Likewise.
5535 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5536 Likewise.
5537 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5538 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5539 Likewise.
5540 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5541 Likewise.
5542 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5543 Likewise.
5544 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5545 Likewise.
5546
5547 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5548
5549 * misc/Makefile (tests): Add tst-ldbl-error.
5550 * misc/tst-ldbl-error.c: New file.
5551
5552 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5553
5554 * misc/Makefile (tests): Add tst-ldbl-warn.
5555 * misc/tst-ldbl-warn.c: New file.
5556
5557 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5558
5559 * argp/Makefile (tests): Add tst-ldbl-argp.
5560 * argp/tst-ldbl-argp.c: New file.
5561
5562 2018-11-05 Arjun Shankar <arjun@redhat.com>
5563
5564 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5565 __gconv_path_elem and call __gconv_get_path unconditionally.
5566
5567 2018-11-05 Andreas Schwab <schwab@suse.de>
5568
5569 [BZ #22927]
5570 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5571 creating the first helper thread failed.
5572
5573 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5574
5575 * sysdeps/mach/hurd/msync.c: New file.
5576
5577 2018-11-02 Florian Weimer <fweimer@redhat.com>
5578
5579 * support/shell-container.c (copy_func): Call
5580 support_copy_file_range instead of copy_file_range to support
5581 cross-device copies.
5582
5583 2018-11-02 Florian Weimer <fweimer@redhat.com>
5584
5585 * support/test-container.c: Include <libc-pointer-arith.h> for
5586 ALIGN_UP.
5587
5588 2018-11-01 Zong Li <zong@andestech.com>
5589
5590 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5591 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5592 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5593 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5594
5595 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5596 variable to avoid overlap arguments.
5597
5598 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5599
5600 * posix/bug-regex22.c (main): Use puts with distinct error
5601 messages for unexpected success of re_compile_pattern, not printf
5602 with NULL argument to %s.
5603
5604 * stdio-common/bug22.c: Include <libc-diag.h>.
5605 (do_test): Disable -Wformat-overflow= warnings around fprintf
5606 calls outputting more than INT_MAX characters.
5607 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5608 around printf call with NULL %s argument.
5609
5610 [BZ #23848]
5611 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5612 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5613 Undefine.
5614 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5615 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5616 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5617 (__ASSUME_SENDTO_SYSCALL): Likewise.
5618 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5619 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5620 [!__arch64__].
5621 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5622 (__ASSUME_CONNECT_SYSCALL): Likewise.
5623 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5624 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5625 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5626 Define.
5627 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5628 Likewise.
5629 [__LINUX_KERNEL_VERSION >= 0x040400]
5630 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5631 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5632 Remove.
5633 (listen): Likewise.
5634 (setsockopt): Likewise.
5635
5636 2018-11-01 Fredrik Noring <noring@nocrew.org>
5637
5638 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5639 with the ISA override.
5640
5641 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5642
5643 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5644 #endif.
5645
5646 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5647
5648 * manual/errno.texi (EIEIO): Document how translators should
5649 translate the error message.
5650 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5651 printing trailing whitespaces refused by git.
5652 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5653 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5654 * hurd/Makefile (user-interfaces): Add pci.
5655
5656 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5657
5658 * conform/linknamespace.py: New file.
5659 * conform/linknamespace.pl: Remove file.
5660 * conform/Makefile ($(linknamespace-header-tests)): Use
5661 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5662 option.
5663
5664 2018-10-30 Florian Weimer <fweimer@redhat.com>
5665
5666 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5667 memory leaks.
5668
5669 2018-10-30 Florian Weimer <fweimer@redhat.com>
5670
5671 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5672
5673 2018-10-30 Florian Weimer <fweimer@redhat.com>
5674
5675 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5676 support_blob_repeat.
5677
5678 2018-10-30 Florian Weimer <fweimer@redhat.com>
5679
5680 Avoid spurious test failures in stdlib/test-bz22786.
5681 * support/Makefile (libsupport-routines): Add blob_repeat.
5682 (tests): Add tst-support_blob_repeat.
5683 * support/blob_repeat.h: New file.
5684 * support/blob_repeat.c: Likewise.
5685 * support/tst-support_blob_repeat.c: Likewise.
5686 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5687 support_blob_repeat_allocate.
5688
5689 2018-10-30 Andreas Schwab <schwab@suse.de>
5690
5691 [BZ #23125]
5692 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5693 Don't use tail call.
5694 * elf/tst-unwind-main.c: New file.
5695 * elf/Makefile (tests): Add tst-unwind-main.
5696 (CFLAGS-tst-unwind-main.c): Define.
5697
5698 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5699
5700 [BZ #23791]
5701 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5702 n_cs_precedes to 0.
5703 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5704
5705 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5706
5707 * conform/glibcconform.py: Do not import shutil.
5708 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5709 of mkdtemp.
5710
5711 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5712 critic_missing for versions before 3.4.
5713 * configure: Regenerated.
5714 * manual/install.texi (Tools for Compilation): Document
5715 requirement for Python to build glibc.
5716 * INSTALL: Regenerated.
5717 * Rules [PYTHON]: Make code unconditional.
5718 * benchtests/Makefile [PYTHON]: Likewise.
5719 * conform/Makefile [PYTHON]: Likewise.
5720 * manual/Makefile [PYTHON]: Likewise.
5721 * math/Makefile [PYTHON]: Likewise.
5722
5723 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5724
5725 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5726 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5727 answer to interrupt_operation, return EIEIO instead of EINTR.
5728 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5729 _hurd_intr_rpc_msg_about_to global point to start of controlled
5730 assembly snippet. Make it check canceled flag.
5731 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5732 the _hurd_intr_rpc_msg_about_to point.
5733 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5734 issue, remove cancel flag check.
5735
5736 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5737
5738 * scripts/build-many-glibcs.py: Remove compatibility for missing
5739 os.cpu_count and re.fullmatch.
5740
5741 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5742
5743 [BZ #23822]
5744 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5745 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5746 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5747
5748 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5749
5750 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5751 macro.
5752
5753 2018-10-25 Florian Weimer <fweimer@redhat.com>
5754
5755 [BZ #23562]
5756 [BZ #23821]
5757 XFAIL siginfo_t si_band conform test on sparc64.
5758 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5759 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5760 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5761 (conformtest-xfail-conds): Add sparc64-linux.
5762 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5763 sparc64.
5764 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5765
5766 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5767
5768 * elf/elf.h (NT_MIPS_DSP): New macro.
5769 (NT_MIPS_FP_MODE): Likewise.
5770
5771 2018-10-25 Zong Li <zong@andestech.com>
5772
5773 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5774 name by adding the file extension (.so).
5775
5776 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5777
5778 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5779 (test-xfail-ISO11/threads.h/linknamespace,
5780 test-xfail-ISO11/threads.h/conform): Add.
5781
5782 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5783
5784 * math/gen-libm-test.py: Import os.
5785 (ALL_FLOATS_MANUAL): New constant.
5786 (ALL_FLOATS_SUFFIX): Likewise.
5787 (Ulps.all_functions): New function.
5788 (real_all_ulps): Likewise.
5789 (generate_err_table_sub): Likewise.
5790 (generate_err_table): Likewise.
5791 (main): Handle -s and -m options.
5792 * manual/libm-err-tab.pl: Remove.
5793 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5794 instead of libm-err-tab.pl.
5795 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5796 != no].
5797 * manual/install.texi (Tools for Compilation): Document
5798 requirement for Python to build manual.
5799 * INSTALL: Regenerated.
5800
5801 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5802
5803 * bits/time64.h: New file.
5804 * include/time.h: Replace internal_time_t with __time64_t.
5805 * posix/bits/types (__time64_t): Add.
5806 * stdlib/Makefile: Add bits/time64.h to includes.
5807 * time/tzfile.c: Replace internal_time_t with __time64_t.
5808
5809 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5810
5811 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5812 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5813 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5814 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5815 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5816 prototype.
5817 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5818 * posix/spawn_faction_addclose.c
5819 (__posix_spawn_file_actions_addclose): Add hidden definition.
5820 * posix/spawn_faction_adddup2.c
5821 (__posix_spawn_file_actions_adddup2): Likewise.
5822 * posix/spawn_faction_destroy.c
5823 (__posix_spawn_file_actions_destroy): Likewise.
5824 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5825 Likewise.
5826 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5827 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5828 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5829 Likewise.
5830 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5831 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5832 Likewise.
5833
5834 2018-10-24 Andreas Schwab <schwab@suse.de>
5835
5836 [BZ #18093]
5837 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5838 format cache.
5839 * elf/cache.c (print_cache): Likewise.
5840
5841 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5842
5843 * bits/timesize.h: New file.
5844 * stdlib/Makefile (headers): Add bits/timesize.h.
5845 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5846 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5847 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5848 (__SEM_PAD_AFTER_TIME): Likewise.
5849 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5850 (__SHM_PAD_AFTER_TIME): Likewise.
5851 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5852 (__MSQ_PAD_BEFORE_TIME): Likewise.
5853 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5854 (__SEM_PAD_BEFORE_TIME): Likewise.
5855 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5856 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5857 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5858 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5859 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5860 (__MSQ_PAD_BEFORE_TIME): Likewise.
5861 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5862 (__SEM_PAD_BEFORE_TIME): Likewise.
5863 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5864 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5865 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5866 (__MSQ_PAD_BEFORE_TIME): Likewise.
5867 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5868 (__SEM_PAD_BEFORE_TIME): Likewise.
5869 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5870 (__SHM_PAD_BEFORE_TIME): Likewise.
5871 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5872 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5873 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5874
5875 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5876
5877 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5878 USE_RDTSCP is defined.
5879 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5880 USE_RDTSCP is defined.
5881
5882 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5883
5884 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5885 defined.
5886
5887 [BZ #23709]
5888 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5889 independently of other flags.
5890
5891 2018-10-23 Florian Weimer <fweimer@redhat.com>
5892
5893 * time/tst-mktime2.c (N_STRINGS): Remove.
5894 (set_timezone): New function.
5895 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5896 (mktime_test1): Report localtime failure and check errno value.
5897 Use TEST_COMPARE.
5898 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5899 (do_test): Remove alarm call. Use set_timezone and array_length.
5900
5901 2018-10-23 Andreas Schwab <schwab@suse.de>
5902
5903 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5904 (__start_context): Use END instead of PSEUDO_END.
5905
5906 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5907
5908 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5909 version to 4.19.
5910
5911 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5912 version to 4.19.
5913
5914 [BZ #23793]
5915 * wcsmbs/c32rtomb.c: New file.
5916 * wcsmbs/mbrtoc32.c: Likewise.
5917 * wcsmbs/tst-c32-state.c: Likewise.
5918 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5919 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5920 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5921 (tests): Add tst-c32-state.
5922 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5923 $(gen-locales).
5924
5925 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5926
5927 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5928 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5929
5930 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5931
5932 [BZ #23794]
5933 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5934 pair and return 0 in that case, and use saved character to
5935 interpret following character.
5936 * wcsmbs/tst-c16-surrogate.c: New file.
5937 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5938 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5939 Depend on $(gen-locales)
5940
5941 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5942
5943 [BZ #23562]
5944 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5945 (struct siginfo_t): Use correct type for si_band.
5946
5947 2018-10-19 Florian Weimer <fweimer@redhat.com>
5948
5949 [BZ #23689]
5950 * resource/bits/types/struct_rusage.h (struct rusage): Update
5951 comment on struct. Remove extraneous field comment.
5952
5953 2018-10-18 David S. Miller <davem@davemloft.net>
5954
5955 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5956 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5957 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5958 sysdep_routines in subdir elf.
5959 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5960 version for __vdso_clock_gettime.
5961 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5962 Define.
5963 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5964 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5965
5966 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5967
5968 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5969
5970 * sysdeps/i386/init-arch.h: Removed.
5971 * sysdeps/i386/i586/init-arch.h: Likewise.
5972 * sysdeps/i386/i686/init-arch.h: Likewise.
5973 * sysdeps/i386/i686/hp-timing.h: Likewise.
5974 * sysdeps/x86_64/hp-timing.h: Likewise.
5975 * sysdeps/i386/isa.h: New file.
5976 * sysdeps/i386/i586/isa.h: Likewise.
5977 * sysdeps/i386/i686/isa.h: Likewise.
5978 * sysdeps/x86_64/isa.h: Likewise.
5979 * sysdeps/x86/hp-timing.h: New file.
5980 * sysdeps/x86/init-arch.h: Include <isa.h>.
5981
5982 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5983
5984 * math/libm-test-pow.inc (pow_test_data): Do not allow
5985 divide-by-zero exception for pow(+/- 0, -Inf).
5986
5987 2018-10-17 Zack Weinberg <zackw@panix.com>
5988
5989 * manual/job.texi (Job Control is Optional): Remove node, as
5990 job control has not been optional in quite some time.
5991 (Job Control): Mention briefly that systems older than
5992 POSIX.1-2001 might not support job control.
5993 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5994 defined on systems conforming to POSIX.1-2001.
5995
5996 2018-10-17 Arjun Shankar <arjun@redhat.com>
5997
5998 [BZ #22062]
5999 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6000 indentation.
6001 * (__gconv_read_conf): Mark function static.
6002 * (once): New static variable.
6003 * (__gconv_load_conf): New function.
6004 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6005 * iconv/gconv_db.c (once): Remove static variable.
6006 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6007 __gconv_read_conf.
6008 * (__gconv_find_transform): Likewise.
6009 * iconv/tst-iconv-mt.c: New test.
6010 * iconv/Makefile: Add tst-iconv_mt.
6011
6012 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6013
6014 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6015 bits/shm-pad.h.
6016 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6017 (shmatt_t): Define as __syscall_ulong_t.
6018 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6019 and [__SHM_PAD_AFTER_TIME].
6020 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6021 Define shm_segsz and associated padding based on
6022 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6023 Use __syscall_ulong_t instead of unsigned long int.
6024 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6025 unsigned long int.
6026 [__USE_MISC] (struct shm_info): Likewise.
6027 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6028 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6029 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6030 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6031 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6032 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6033 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6034 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6035 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6036 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6037 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6038
6039 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6040 bits/shmlba.h.
6041 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6042 (SHMLBA): Remove macro.
6043 (__getpagesize): Remove function declaration.
6044 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6045 <bits/shmlba.h>.
6046 (SHMLBA): Remove macro.
6047 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6048 <bits/shmlba.h>.
6049 (SHMLBA): Remove macro.
6050 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6051 <bits/shmlba.h>.
6052 (SHMLBA): Remove macro.
6053 (__getpagesize): Remove function declaration.
6054 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6055 <bits/shmlba.h>.
6056 (SHMLBA): Remove macro.
6057 (__getshmlba): Remove function declaration.
6058 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6059 (SHMLBA): Remove macro.
6060 (__getpagesize): Remove function declaration.
6061 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6062 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6063 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6064 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6065 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6066 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6067 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6068 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6069 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6070 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6071
6072 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6073
6074 [BZ #23275]
6075 * nptl/tst-mutex10.c: New File.
6076 * nptl/Makefile (tests): Add tst-mutex10.
6077 (tst-mutex10-ENV): New variable.
6078 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6079 Ensure that elision path is used if elision is available.
6080 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6081 Likewise.
6082 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6083 Likewise.
6084 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6085 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6086 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6087 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6088 Likewise.
6089 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6090 (__pthread_mutex_cond_lock_adjust): Likewise.
6091 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6092 Likewise.
6093 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6094 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6095 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6096 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6097 Add comments.
6098 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6099 Use atomic_load_relaxed and atomic_store_relaxed.
6100 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6101 Use atomic_store_relaxed.
6102
6103 2018-10-17 Andreas Schwab <schwab@suse.de>
6104
6105 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6106 * crypt/badsalttest.c (TIMEOUT): Likewise.
6107 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6108 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6109 * io/test-lfs.c (TIMEOUT): Likewise.
6110 * libio/tst-atime.c (TIMEOUT): Likewise.
6111 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6112 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6113 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6114 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6115 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6116 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6117 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6118 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6119 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6120 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6121 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6122 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6123 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6124 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6125 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6126 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6127 * nptl/tst-once2.c (TIMEOUT): Likewise.
6128 * nptl/tst-once3.c (TIMEOUT): Likewise.
6129 * nptl/tst-once4.c (TIMEOUT): Likewise.
6130 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6131 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6132 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6133 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6134 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6135 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6136 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6137 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6138 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6139 * posix/tst-chmod.c (TIMEOUT): Likewise.
6140 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6141 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6142 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6143 * posix/tst-regex2.c (TIMEOUT): Likewise.
6144 * posix/tst-waitid.c (TIMEOUT): Likewise.
6145 * rt/tst-aio.c (TIMEOUT): Likewise.
6146 * rt/tst-aio10.c (TIMEOUT): Likewise.
6147 * rt/tst-aio4.c (TIMEOUT): Likewise.
6148 * rt/tst-aio5.c (TIMEOUT): Likewise.
6149 * rt/tst-aio6.c (TIMEOUT): Likewise.
6150 * rt/tst-aio64.c (TIMEOUT): Likewise.
6151 * rt/tst-aio7.c (TIMEOUT): Likewise.
6152 * rt/tst-aio9.c (TIMEOUT): Likewise.
6153 * rt/tst-clock.c (TIMEOUT): Likewise.
6154 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6155 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6156 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6157 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6158 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6159 * rt/tst-timer4.c (TIMEOUT): Likewise.
6160 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6161 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6162 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6163 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6164 * time/tst-ftime.c (TIMEOUT): Likewise.
6165 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6166
6167 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6168
6169 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6170 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6171 for thunderX2.
6172
6173 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6174
6175 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6176 bits/sem-pad.h.
6177 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6178 instead of <bits/wordsize.h>.
6179 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6180 and [__SEM_PAD_AFTER_TIME].
6181 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6182 __syscall_ulong_t instead of unsigned long int.
6183 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6184 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6185 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6186 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6187 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6188 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6189 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6190 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6191 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6192 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6193 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6194
6195 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6196
6197 regex: simplify by using intprops.h
6198 [BZ#23744]
6199 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6200 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6201 intprops.h defines them.
6202
6203 regex: __builtin_expect → __glibc_unlikely
6204 [BZ#23744]
6205 This refactoring was prompted by a problem when the regex code is
6206 used as part of Gnulib and when the builder’s compiler does not grok
6207 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6208 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6209 Although this refactoring does not fix the problem directly,
6210 we might as well have Gawk use the now-preferred glibc style for when
6211 __builtin_expect is unavailable.
6212 * posix/regex_internal.h (BE): Remove.
6213 All uses replaced by __glibc_unlikely or __glibc_likely.
6214
6215 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6216
6217 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6218 bits/msq-pad.h.
6219 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6220 instead of <bits/wordsize.h>.
6221 (msgqnum_t): Define as __syscall_ulong_t.
6222 (msglen_t): Likewise.
6223 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6224 and [__MSQ_PAD_AFTER_TIME].
6225 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6226 __syscall_ulong_t instead of unsigned long int.
6227 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6228 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6229 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6230 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6231 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6232 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6233 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6234 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6235 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6236 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6237 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6238
6239 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6240
6241 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6242 (struct shmid_ds): Condition padding after time fields on
6243 [__WORDSIZE == 32].
6244 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6245 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6246 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6247
6248 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6249 (struct semid_ds): Condition padding after time fields on
6250 [__WORDSIZE == 32].
6251 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6252 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6253 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6254 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6255
6256 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6257 (struct msqid_ds): Condition padding after time fields on
6258 [__WORDSIZE == 32].
6259 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6260 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6261 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6262 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6263
6264 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6265
6266 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6267
6268 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6269
6270 * libio/tst-readline.c (TIMEOUT): Define.
6271
6272 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6273
6274 mktime fix for Gnulib + coreutils
6275 [BZ#23745]
6276 This fix affects only Gnulib. Problem discovered when
6277 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6278 * time/mktime.c:
6279 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6280 Do not define since it is not used. Defining an unused static
6281 function prompts a warning from GCC when Coreutils is configured
6282 with --enable-gcc-warnings.
6283
6284 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6285
6286 * benchtests/scripts/compare_bench.py (main): set float type on
6287 threshold argument.
6288
6289 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6290
6291 [BZ #23740]
6292 * localedata/locales/kl_GL (mon): Update, the relative case.
6293 (alt_mon): Add, fill with month names in the nominative case.
6294 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6295 (d_fmt): Set to "%b %d %Y".
6296
6297 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6298
6299 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6300 <bits/mman-linux.h>.
6301 (PROT_READ): Don't define here.
6302 (PROT_WRITE): Likewise.
6303 (PROT_EXEC): Likewise.
6304 (PROT_NONE): Likewise.
6305 (PROT_GROWSDOWN): Likewise.
6306 (PROT_GROWSUP): Likewise.
6307 (MAP_SHARED): Likewise.
6308 (MAP_PRIVATE): Likewise.
6309 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6310 [__USE_MISC] (MAP_FILE): Likewise.
6311 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6312 [__USE_MISC] (MAP_ANON): Likewise.
6313 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6314 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6315 (MCL_CURRENT): Likewise.
6316 (MCL_FUTURE): Likewise.
6317 (MCL_ONFAULT): Likewise.
6318 [__USE_MISC] (MADV_NORMAL): Likewise.
6319 [__USE_MISC] (MADV_RANDOM): Likewise.
6320 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6321 [__USE_MISC] (MADV_WILLNEED): Likewise.
6322 [__USE_MISC] (MADV_DONTNEED): Likewise.
6323 [__USE_MISC] (MADV_FREE): Likewise.
6324 [__USE_MISC] (MADV_REMOVE): Likewise.
6325 [__USE_MISC] (MADV_DONTFORK): Likewise.
6326 [__USE_MISC] (MADV_DOFORK): Likewise.
6327 [__USE_MISC] (MADV_HWPOISON): Likewise.
6328 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6329 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6330 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6331 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6332 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6333 (__MAP_ANONYMOUS): New macro.
6334 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6335 <bits/mman-linux.h> inclusion.
6336 (MAP_FIXED): Likewise.
6337 (MS_SYNC): Likewise.
6338 (MS_ASYNC): Likewise.
6339 (MS_INVALIDATE): Likewise.
6340 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6341 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6342 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6343 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6344 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6345 [__USE_MISC] (MADV_DODUMP): Likewise.
6346 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6347 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6348
6349 [BZ #23735]
6350 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6351 Define.
6352 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6353 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6354 Add test-nldbl-redirect.
6355 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6356 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6357 $(objpfx)libnldbl_nonshared.a.
6358
6359 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6360
6361 * support/support.h (support_objdir_elf_ldso): New variable.
6362 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6363 * support/Makefile (CFLAGS-support_paths.c): Add definition
6364 for OBJDIR_ELF_LDSO_PATH.
6365 * support/test-container.c (main): Search for the ld.so
6366 which is also used by the testsuite.
6367
6368 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6369
6370 [BZ #20209]
6371 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6372 should be "sap" rather than "sab".
6373 (day): Fix spelling of Sunday, should be "sapaat" rather than
6374 "sabaat".
6375
6376 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6377
6378 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6379
6380 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6381
6382 [BZ #19444]
6383 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6384 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6385 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6386
6387 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6388
6389 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6390
6391 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6392
6393 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6394 Add -mrtm.
6395 (CFLAGS-elision-unlock.c): Likewise.
6396 (CFLAGS-elision-timed.c): Likewise.
6397 (CFLAGS-elision-trylock.c): Likewise.
6398 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6399
6400 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6401
6402 [BZ #21037]
6403 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6404 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6405 new fd_to_filename interface.
6406 * libio/freopen64.c (freopen64): Likewise.
6407 * libio/tst-memstream.h: New file.
6408 * libio/tst-memstream4.c: Likewise.
6409 * libio/tst-wmemstream4.c: Likewise.
6410 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6411 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6412 and remove internal dynamic allocation.
6413
6414 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6415
6416 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6417 (MREMAP_MAYMOVE): Do not define here.
6418 [__USE_GNU] (MREMAP_FIXED): Likewise.
6419 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6420 (MREMAP_MAYMOVE): Define here instead.
6421 [__USE_GNU] (MREMAP_FIXED): Likewise.
6422 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6423 (MREMAP_MAYMOVE): Remove.
6424 [__USE_GNU] (MREMAP_FIXED): Likewise.
6425
6426 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6427
6428 * math/fromfp.h: Do not include <math_private.h>.
6429 * math/s_cacosh_template.c: Likewise.
6430 * math/s_casin_template.c: Likewise.
6431 * math/s_casinh_template.c: Likewise.
6432 * math/s_ccos_template.c: Likewise.
6433 * math/s_cproj_template.c: Likewise.
6434 * math/s_fdim_template.c: Likewise.
6435 * math/s_fmaxmag_template.c: Likewise.
6436 * math/s_fminmag_template.c: Likewise.
6437 * math/s_iseqsig_template.c: Likewise.
6438 * math/s_ldexp_template.c: Likewise.
6439 * math/s_nextdown_template.c: Likewise.
6440 * math/w_log1p_template.c: Likewise.
6441 * math/w_scalbln_template.c: Likewise.
6442 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6443 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6444 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6445 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6446 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6447 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6448 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6449 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6450 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6451 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6452 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6453 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6454 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6455 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6456 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6457 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6458 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6459 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6460 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6461 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6462 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6463 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6464 * sysdeps/ieee754/k_standardf.c: Likewise.
6465 * sysdeps/ieee754/k_standardl.c: Likewise.
6466 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6467 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6468 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6469 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6470 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6471 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6472 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6473 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6474 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6475 * sysdeps/ieee754/s_signgam.c: Likewise.
6476 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6477 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6478 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6479 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6480 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6481 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6482 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6483 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6484 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6485 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6486 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6487 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6488 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6489 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6490 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6491 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6492 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6493 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6494 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6495 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6496 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6497 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6498 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6499 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6500 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6501 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6502 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6503 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6504 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6505 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6506 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6507 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6508 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6509 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6510 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6511 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6512 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6513 <math_private.h>.
6514 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6515
6516 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6517
6518 [BZ #23716]
6519 * sysdeps/i386/dl-cet.c: Removed.
6520 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6521 prototype.
6522 (_dl_runtime_profile_shstk): Likewise.
6523 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6524 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6525
6526 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6527
6528 [BZ #23579]
6529 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6530 do_test_with_invalid_iov): New tests.
6531 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6532 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6533 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6534 errno is ENOSYS.
6535 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6536 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6537 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6538
6539 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6540
6541 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6542 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6543 (MATH_REDIRECT_BINARY_ARGS): New macro.
6544 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6545 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6546 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6547 header inclusion.
6548 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6549 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6550 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6551 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6552 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6553 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6554 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6555 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6556 Likewise.
6557 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6558 Likewise.
6559 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6560 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6561 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6562 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6564 Likewise.
6565 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6566 Likewise.
6567 * sysdeps/generic/math_private_calls.h
6568 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6569 Do not declare and define as an inline function.
6570 * math/divtc3.c (__divtc3): Use copysign functions instead of
6571 __copysign variants.
6572 * math/multc3.c (__multc3): Likewise.
6573 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6574 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6575 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6576 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6577 Likewise.
6578 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6579 (__ieee754_yn): Likewise.
6580 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6581 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6582 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6583 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6584 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6585 (__sin): Likewise.
6586 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6587 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6588 Likewise.
6589 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6590 Likewise.
6591 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6592 Likewise.
6593 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6594 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6595 Likewise.
6596 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6597 (__ieee754_ynf): Likewise.
6598 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6599 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6600 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6601 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6602 Likewise.
6603 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6604 (__ieee754_ynl): Likewise.
6605 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6606 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6607 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6608 Likewise.
6609 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6610 (__ieee754_ynl): Likewise.
6611 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6612 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6613 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6614 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6615 Likewise.
6616 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6617 (__ieee754_ynl)
6618 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6619 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6620 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6621 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6622 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6623
6624 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6625 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6626 using MATH_REDIRECT.
6627 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6628 header inclusion.
6629 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6630 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6631 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6632 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6633 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6634 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6635 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6636 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6637 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6638 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6639 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6640 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6641 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6642 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6643 (round): Redirect to __round.
6644 (__roundl): Call round instead of __round.
6645 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6646 Remove macro.
6647 [_ARCH_PWR5X] (__roundf): Likewise.
6648 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6649 functions instead of __round variants.
6650 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6651 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6652 Likewise.
6653 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6654 Likewise.
6655 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6656 Likewise.
6657 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6658 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6659 __lroundl.
6660 (__ieee754_expl): Call roundl instead of __roundl.
6661
6662 2018-09-27 Andreas Schwab <schwab@suse.de>
6663
6664 [BZ #23717]
6665 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6666 (do_test): Make st1 static.
6667
6668 2018-09-26 Andreas Schwab <schwab@suse.de>
6669
6670 [BZ #23707]
6671 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6672 * elf/Makefile (tests): Add tst-unwind-ctor.
6673 (modules-names): Add tst-unwind-ctor-lib.
6674 ($(objpfx)tst-unwind-ctor): Depend on
6675 $(objpfx)tst-unwind-ctor-lib.so.
6676
6677 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6678
6679 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6680 file. Most contents moved from ....
6681 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6682 and include <bits/mman-map-flags-generic.h>.
6683 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6684 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6685 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6686 <bits/mman-map-flags-generic.h>.
6687 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6688 macros defined in <bits/mman-map-flags-generic.h>.
6689 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6690 <bits/mman-map-flags-generic.h>.
6691 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6692 defined in <bits/mman-map-flags-generic.h>.
6693
6694 2018-09-26 Andreas Schwab <schwab@suse.de>
6695
6696 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6697 output.
6698
6699 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6700 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6701 Fangrui Song <maskray@google.com>
6702
6703 [BZ #20480]
6704 * config.make.in (have-textrel_ifunc): New define.
6705 * configure.ac: Add check if linker supports textrel relocation with
6706 ifunc.
6707 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6708 tst-ifunc-textrel.
6709 (CFLAGS-tst-ifunc-textrel.c): New rule.
6710 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6711 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6712 * elf/tst-ifunc-textrel.c: New file.
6713
6714 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6715
6716 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6717 <bits/procfs-prregset.h>.
6718 (prgregset_t): Define using __prgregset_t.
6719 (prfpregset_t): Define using __prfpregset_t.
6720 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6721 (sysdep_headers): Add bits/procfs-prregset.h.
6722 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6723 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6724 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6725 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6726
6727 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6728 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6729 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6730 pr_uid and pr_gid.
6731 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6732 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6733 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6734 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6735 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6736 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6737 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6738 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6739 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6740 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6741 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6742 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6743 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6744 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6745 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6746 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6747 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6748 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6749 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6750 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6751 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6752 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6753 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6754 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6755
6756 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6757 AArch64 version. Include <bits/procfs.h>.
6758 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6759 (sysdep_headers): Add bits/procfs.h.
6760 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6761 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6762 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6763 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6764 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6765 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6766 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6767 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6768 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6769 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6770 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6771 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6772 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6773 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6774 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6775 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6776 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6777
6778 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6779
6780 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6781 Use libsupport.
6782
6783 2018-09-25 Arjun Shankar <arjun@redhat.com>
6784
6785 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6786 (__gconv_max_path_elem_len): Likewise.
6787 (__gconv_nmodules): Likewise.
6788 (__gconv_get_path): Likewise.
6789 (path_elem): Move to ...
6790 * iconv/gconv_conf.c: ... here.
6791 (__gconv_get_path): Mark function static.
6792 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6793 * iconv/gconv_open.c: ... here.
6794
6795 2018-09-24 Andreas Schwab <schwab@suse.de>
6796
6797 * scripts/haveversions.awk: New file.
6798 * Makerules ($(common-objpfx)Versions.def)
6799 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6800 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6801 Move rules ...
6802 * Makeconfig ($(common-objpfx)Versions.def)
6803 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6804 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6805 ... here.
6806 ($(common-objpfx)Versions.mk): New rule. Include it.
6807 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6808 Emit error if build-obsolete-nsl = yes.
6809 * manual/install.texi (Configuring and compiling): Describe
6810 --enable-obsolete-nsl as unavaiable after version 2.28.
6811 * INSTALL: Regenerate.
6812
6813 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6814
6815 * NEWS: Add note about new TLE support on powerpc64le.
6816 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6817 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6818 __ununsed1.
6819 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6820 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6821 * sysdeps/powerpc/powerpc32/sysdep.h,
6822 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6823 ABORT_TRANSACTION): Remove macros.
6824 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6825 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6826 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6828 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6829 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6830 usage.
6831 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6832
6833 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6834
6835 [BZ #10425]
6836 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6837 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6838 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6839 which is the same as in it_IT.
6840 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6841 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6842
6843 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6844
6845 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6846 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6847 using MATH_REDIRECT.
6848 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6849 header inclusion.
6850 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6851 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6852 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6853 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6854 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6855 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6856 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6857 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6859 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6860 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6861 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6862 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6863 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6864 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6865 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6866 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6867 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6868 (ceil): Redirect to __ceil.
6869 (floor): Redirect to __floor.
6870 (trunc): Redirect to __trunc.
6871 (__truncl): Call trunc instead of __trunc.
6872 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6873 Remove macro.
6874 [_ARCH_PWR5X] (__truncf): Likewise.
6875 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6876 trunc functions instead of __trunc variants.
6877 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6878 Likewise.
6879 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6880 Likewise.
6881 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6882 Likewise.
6883 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6884 Likewise.
6885
6886 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6887 [__i586__ || __pentium__].
6888 [__i486__]: Handle explicitly.
6889 (HAS_CPUID): Define to 1 if above macros are undefined.
6890 (HAS_I586): Likewise.
6891 (HAS_I686): Likewise.
6892
6893 2018-09-20 Florian Weimer <fweimer@redhat.com>
6894
6895 * misc/tst-gethostid.c: New file.
6896 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6897 (tst-gethostid): Link with -ldl.
6898
6899 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6900
6901 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6902 value from gethostbyname_r.
6903
6904 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6905
6906 * stdlib/tst-setcontext9.c (f1): Rename to...
6907 (f1a): ... this.
6908 (f1b): New function implementing lower half of f1 in alternate stack.
6909
6910 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6911
6912 Fix mktime localtime offset confusion
6913 [BZ #23603]
6914 * include/time.h (__mktime_internal): The localtime offset is now
6915 of type long int instead of time_t. This is the longstanding type
6916 in glibc, and it is more than enough to represent difference
6917 between localtime and gmtime even if it is 32 bits and time_t is
6918 64. Changing it now will let us avoid an unnecessary change when
6919 time_t is widened to 64 bits on 32-bit platforms.
6920 * time/mktime-internal.h (mktime_offset_t): Now long int.
6921
6922 Merge mktime, timegm from upstream Gnulib
6923 [BZ #23603][BZ #16346]
6924 This fixes some obscure problems with integer overflow.
6925 Although it looks scary, it is almost all a byte-for-byte copy
6926 from Gnulib, and the Gnulib code has been tested reasonably well.
6927 * include/intprops.h: New file, copied from Gnulib.
6928 * include/verify.h, time/mktime-internal.h:
6929 New tiny files, simplified from Gnulib.
6930 * time/mktime.c: Copy from Gnulib. This has the following changes:
6931 Do not include config.h if DEBUG_MKTIME is nonzero.
6932 Include stdbool.h, intprops.h, verify.h.
6933 Include string.h only if needed.
6934 Include stdlib.h on MS-Windows.
6935 Include mktime-internal.h.
6936 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6937 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6938 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6939 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6940 simplify later conditionals; default the others to zero. Use
6941 these conditionals to express only the code needed on the current
6942 platform. In uses of these conditionals, explicitly spell out how
6943 _LIBC affects things, so it’s easier to review from a glibc
6944 viewpoint.
6945 (WRAPV): Remove; no longer needed now that we have
6946 systematic overflow checking.
6947 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6948 compartmentalize tzset issues. Move system-dependent tzsettish
6949 code here from mktime.
6950 (verify): Remove; now done by verify.h. All uses changed.
6951 (long_int): Use a more-conservative definition, to avoid
6952 integer overflow.
6953 (SHR): Remove, replacing with ...
6954 (shr): New function, which means we needn’t worry about side
6955 effects in args, and conversion analysis is simpler.
6956 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6957 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6958 (time_t_avg, time_t_add_ok): Remove.
6959 (mktime_min, mktime_max): New constants.
6960 (leapyear, isdst_differ): Use bool for booleans.
6961 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6962 Use long_int, not time_t, for mktime differences.
6963 (long_int_avg): New function, replacing time_t_avg.
6964 INT_ADD_WRAPV replaces time_t_add_ok.
6965 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6966 All uses changed.
6967 (convert_time): New function.
6968 (ranged_convert): Use it.
6969 (__mktime_internal): Last arg now points to mktime_offset_t, not
6970 time_t. All uses changed. This is a no-op on glibc, where
6971 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6972 offset guess. Directly check for integer overflow instead of
6973 using a heuristic that works only 99.9...% of the time.
6974 Access *OFFSET only once, to avoid an unlikely race if the
6975 compiler delays a load and if this cascades into a signed integer
6976 overflow.
6977 (mktime): Move tzsettish code to my_tzset, and move
6978 localtime_offset to within mktime so that it doesn’t
6979 need a separate ifdef.
6980 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6981 instead of localtime.
6982 * time/timegm.c: Copy from Gnulib. This has the following changes:
6983 Include mktime-internal.h.
6984 [!_LIBC]: Include config.h and time.h. Do not include
6985 timegm.h or time_r.h. Make __mktime_internal a macro,
6986 and include mktime-internal.h to get its declaration.
6987 (timegm): Temporary is now mktime_offset_t, not time_t.
6988 This affects only Gnulib.
6989
6990 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6991
6992 [BZ #23637]
6993 * string/test-strstr.c (pr23637): New function.
6994 (test_main): Add tests with longer needles.
6995 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6996 * string/strstr.c (AVAILABLE): Likewise.
6997
6998 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6999
7000 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7001
7002 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7003
7004 * NEWS: Mention pow improvements.
7005 * math/Makefile (type-double-routines): Add e_pow_log_data.
7006 * sysdeps/generic/math_private.h (__exp1): Remove.
7007 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7008 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7009 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7010 contraction.
7011 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7012 (exp_inline): Remove.
7013 (__ieee754_exp): Only single double input is handled.
7014 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7015 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7016 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7017 (__pow_log_data): Define.
7018 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7019 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7020 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7021 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7022 contraction.
7023 (CFLAGS-e_pow-fma4.c): Likewise.
7024
7025 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7026
7027 Simplify tzfile fstat failure code
7028 [BZ #21716]
7029 * time/tzfile.c (__tzfile_read): Simplify slightly.
7030
7031 Fix tzfile low-memory assertion failure
7032 [BZ #21716]
7033 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7034 when registering time zone abbreviations.
7035
7036 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7037
7038 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7039 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7040 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7041 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7042 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7043 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7044 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7045 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7046 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7047
7048 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7049 __ceil.
7050 (__ceill): Call ceil instead of __ceil.
7051 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7052 __floor.
7053 (__floorl): Call floor instead of __floor.
7054
7055 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7056
7057 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7058 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7059 using MATH_REDIRECT.
7060 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7061 header inclusion.
7062 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7063 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7064 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7065 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7066 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7067 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7068 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7069 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7070 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7071 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7072 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7074 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7075 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7076 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7077 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7078 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7079 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7080 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7081 Remove macro.
7082 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7083 functions instead of __ceil variants.
7084 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7085 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7086 Likewise.
7087 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7088 Likewise.
7089 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7090 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7091 Likewise.
7092 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7093 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7094
7095 [BZ #21286]
7096 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7097 constant.
7098 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7099 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7100 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7101 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7102 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7103 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7104 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7105 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7106 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7107 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7108 (ILL_BADIADDR): Remove constant.
7109 (TRAP_BRANCH): Likewise.
7110 (TRAP_HWBKPT): Likewise.
7111
7112 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7113
7114 [BZ #23656]
7115 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7116 Remove [_MIPS_SIM = _ABIN32] conditional case.
7117 (struct elf_prpsinfo): Likewise.
7118
7119 [BZ #23649]
7120 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7121 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7122 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7123 Likewise.
7124 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7125 elf_prpsinfo): Likewise.
7126 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7127 elf_prpsinfo): Likewise.
7128 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7129 Likewise.
7130
7131 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7132 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7133 using MATH_REDIRECT.
7134 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7135 header inclusion.
7136 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7137 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7138 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7139 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7140 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7141 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7142 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7143 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7144 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7145 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7146 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7147 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7148 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7149 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7150 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7151 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7152 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7153 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7154 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7155 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7156 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7157 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7158 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7159 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7160 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7161 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7162 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7163 __rint variants.
7164 * math/e_scalbf.c (invalid_fn): Likewise.
7165 * math/e_scalbl.c (invalid_fn): Likewise.
7166 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7167 Likewise.
7168 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7169 Likewise.
7170 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7171 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7172 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7173 Likewise.
7174 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7175 Likewise.
7176 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7177 Likewise.
7178 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7179 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7180
7181 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7182 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7183 New macro.
7184 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7185 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7186 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7187 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7188 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7189 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7190 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7191 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7192 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7193 && !NO_MATH_REDIRECT] (floor): Likewise.
7194 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7195 header inclusion.
7196 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7197 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7198 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7199 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7200 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7201 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7202 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7203 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7204 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7205 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7208 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7209 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7210 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7211 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7212 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7213 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7214 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7215 Remove macro.
7216 [_ARCH_PWR5X] (__floorf): Likewise.
7217 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7218 inline function.
7219 [__SSE4_1__] (__floorf): Likewise.
7220 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7221 instead of __floor variants.
7222 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7223 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7224 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7225 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7226 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7227 * math/w_tgamma_compat.c (__tgamma): Likewise.
7228 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7229 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7230 * math/w_tgammal_compat.c (__tgammal): Likewise.
7231 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7232 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7233 Likewise.
7234 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7235 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7236 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7237 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7238 Likewise.
7239 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7240 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7241 Likewise.
7242 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7243 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7244 Likewise.
7245 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7246 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7247 Likewise.
7248 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7249 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7250 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7251 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7252 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7253 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7254
7255 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7256
7257 * elf/Makefile (modules-names-tests): New variable.
7258
7259 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7260
7261 * NEWS: Mention log2 improvements.
7262 * math/Makefile (type-double-routines): Add e_log2_data.
7263 * sysdeps/i386/fpu/e_log2_data.c: New file.
7264 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7265 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7266 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7267 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7268 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7269 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7270
7271 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7272
7273 * NEWS: Mention log improvement.
7274 * math/Makefile (type-double-routines): Add e_log_data.
7275 * sysdeps/i386/fpu/e_log_data.c: New file.
7276 * sysdeps/ia64/fpu/e_log_data.c: New file.
7277 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7278 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7279 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7280 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7281 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7282 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7283
7284 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7285 Xuepeng Guo <xuepeng.guo@intel.com>
7286
7287 [BZ #23606]
7288 * sysdeps/i386/start.S: Include <sysdep.h>
7289 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7290 enabled. Add cfi_undefined (eip).
7291
7292 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7293
7294 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7295 (MOVQ): Likewise.
7296 (EXTRACT_WORDS64): Likewise.
7297 (INSERT_WORDS64): Likewise.
7298 (GET_FLOAT_WORD): Likewise.
7299 (SET_FLOAT_WORD): Likewise.
7300
7301 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7302 argument.
7303 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7304 build, but not for second build if --full-gcc. Use
7305 --enable-languages=all for second build if --full-gcc.
7306 (get_parser): Add --full-gcc option.
7307 (main): Update call to Context.
7308
7309 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7310
7311 [BZ #10797]
7312 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7313 Single Quotation Mark).
7314 (thousands_sep): Likewise.
7315 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7316 * localedata/locales/it_IT (thousands_sep): Use ".".
7317 (grouping): Use "3;3".
7318
7319 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7320
7321 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7322 x86_64 and i686 configs using --enable-obsolete-rpc
7323 --enable-obsolete-nsl.
7324
7325 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7326
7327 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7328
7329 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7330
7331 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7332 Increment size of new_argv by one.
7333
7334 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7335
7336 [BZ #17426]
7337 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7338 * localedata/locales/ar_IN (d_fmt): Likewise.
7339 * localedata/locales/bhb_IN (d_fmt): Likewise.
7340 * localedata/locales/bho_IN (d_fmt): Likewise.
7341 * localedata/locales/bn_BD (d_fmt): Likewise.
7342 * localedata/locales/bn_IN (d_fmt): Likewise.
7343 * localedata/locales/doi_IN (d_fmt): Likewise.
7344 * localedata/locales/gu_IN (d_fmt): Likewise.
7345 * localedata/locales/hi_IN (d_fmt): Likewise.
7346 * localedata/locales/hne_IN (d_fmt): Likewise.
7347 * localedata/locales/kn_IN (d_fmt): Likewise.
7348 * localedata/locales/mag_IN (d_fmt): Likewise.
7349 * localedata/locales/mai_IN (d_fmt): Likewise.
7350 * localedata/locales/mjw_IN (d_fmt): Likewise.
7351 * localedata/locales/ml_IN (d_fmt): Likewise.
7352 * localedata/locales/mni_IN (d_fmt): Likewise.
7353 * localedata/locales/mr_IN (d_fmt): Likewise.
7354 * localedata/locales/pa_IN (d_fmt): Likewise.
7355 * localedata/locales/raj_IN (d_fmt): Likewise.
7356 * localedata/locales/sat_IN (d_fmt): Likewise.
7357 * localedata/locales/sd_IN (d_fmt): Likewise.
7358 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7359 * localedata/locales/ta_IN (d_fmt): Likewise.
7360 * localedata/locales/ta_LK (d_fmt): Likewise.
7361 * localedata/locales/tcy_IN (d_fmt): Likewise.
7362 * localedata/locales/ur_IN (d_fmt): Likewise.
7363
7364 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7365 * localedata/locales/ks_IN (d_fmt): Likewise.
7366 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7367
7368 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7369 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7370 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7371 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7372
7373 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7374
7375 * NEWS: Mention exp and exp2 improvements.
7376 * math/Makefile (libm-support): Remove t_exp.
7377 (type-double-routines): Add math_err and e_exp_data.
7378 * sysdeps/aarch64/libm-test-ulps: Update.
7379 * sysdeps/arm/libm-test-ulps: Update.
7380 * sysdeps/i386/fpu/e_exp_data.c: New file.
7381 * sysdeps/i386/fpu/math_err.c: New file.
7382 * sysdeps/i386/fpu/t_exp.c: Remove.
7383 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7384 * sysdeps/ia64/fpu/math_err.c: New file.
7385 * sysdeps/ia64/fpu/t_exp.c: Remove.
7386 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7387 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7388 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7389 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7390 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7391 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7392 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7393 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7394 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7395 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7396 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7397 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7398 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7399 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7400 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7401 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7402
7403 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7404
7405 * sysdeps/alpha/fpu/math_private.h: Remove.
7406
7407 * sysdeps/generic/math_private.h
7408 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7409 Move this inline function ....
7410 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7411 * include/math.h [!_ISOMAC]: To here....
7412
7413 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7414
7415 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7416 code ....
7417 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7418 * include/fenv.h [!_ISOMAC]: ... to here.
7419 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7420 (feraiseexcept): Likewise.
7421 * math/fromfp.h: Do not include <fenv_private.h>.
7422 * math/s_cexp_template.c: Likewise.
7423 * math/s_csin_template.c: Likewise.
7424 * math/s_csinh_template.c: Likewise.
7425 * math/s_ctan_template.c: Likewise.
7426 * math/s_ctanh_template.c: Likewise.
7427 * math/s_iseqsig_template.c: Likewise.
7428 * math/w_acos_compat.c: Likewise.
7429 * math/w_acosf_compat.c: Likewise.
7430 * math/w_acosl_compat.c: Likewise.
7431 * math/w_asin_compat.c: Likewise.
7432 * math/w_asinf_compat.c: Likewise.
7433 * math/w_asinl_compat.c: Likewise.
7434 * math/w_j0_compat.c: Likewise.
7435 * math/w_j0f_compat.c: Likewise.
7436 * math/w_j0l_compat.c: Likewise.
7437 * math/w_j1_compat.c: Likewise.
7438 * math/w_j1f_compat.c: Likewise.
7439 * math/w_j1l_compat.c: Likewise.
7440 * math/w_jn_compat.c: Likewise.
7441 * math/w_jnf_compat.c: Likewise.
7442 * math/w_log10_compat.c: Likewise.
7443 * math/w_log10f_compat.c: Likewise.
7444 * math/w_log10l_compat.c: Likewise.
7445 * math/w_log2_compat.c: Likewise.
7446 * math/w_log2f_compat.c: Likewise.
7447 * math/w_log2l_compat.c: Likewise.
7448 * math/w_log_compat.c: Likewise.
7449 * math/w_logf_compat.c: Likewise.
7450 * math/w_logl_compat.c: Likewise.
7451 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7452 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7453 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7454 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7455 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7456 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7457 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7458 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7459 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7460 * sysdeps/ieee754/k_standardl.c: Likewise.
7461 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7462 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7463 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7464 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7465 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7466 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7467 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7468 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7469 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7470 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7471 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7472 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7473 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7474 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7475 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7476 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7477 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7478 * math/w_ilogb_template.c: Include <fenv.h> instead of
7479 <fenv_private.h>.
7480 * math/w_llogb_template.c: Likewise.
7481 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7482 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7483
7484 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7485
7486 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7487 * math/fromfp.h: Include <fenv_private.h>.
7488 * math/math-narrow.h: Likewise.
7489 * math/s_cexp_template.c: Likewise.
7490 * math/s_csin_template.c: Likewise.
7491 * math/s_csinh_template.c: Likewise.
7492 * math/s_ctan_template.c: Likewise.
7493 * math/s_ctanh_template.c: Likewise.
7494 * math/s_iseqsig_template.c: Likewise.
7495 * math/w_acos_compat.c: Likewise.
7496 * math/w_acosf_compat.c: Likewise.
7497 * math/w_acosl_compat.c: Likewise.
7498 * math/w_asin_compat.c: Likewise.
7499 * math/w_asinf_compat.c: Likewise.
7500 * math/w_asinl_compat.c: Likewise.
7501 * math/w_ilogb_template.c: Likewise.
7502 * math/w_j0_compat.c: Likewise.
7503 * math/w_j0f_compat.c: Likewise.
7504 * math/w_j0l_compat.c: Likewise.
7505 * math/w_j1_compat.c: Likewise.
7506 * math/w_j1f_compat.c: Likewise.
7507 * math/w_j1l_compat.c: Likewise.
7508 * math/w_jn_compat.c: Likewise.
7509 * math/w_jnf_compat.c: Likewise.
7510 * math/w_llogb_template.c: Likewise.
7511 * math/w_log10_compat.c: Likewise.
7512 * math/w_log10f_compat.c: Likewise.
7513 * math/w_log10l_compat.c: Likewise.
7514 * math/w_log2_compat.c: Likewise.
7515 * math/w_log2f_compat.c: Likewise.
7516 * math/w_log2l_compat.c: Likewise.
7517 * math/w_log_compat.c: Likewise.
7518 * math/w_logf_compat.c: Likewise.
7519 * math/w_logl_compat.c: Likewise.
7520 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7521 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7522 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7523 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7524 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7525 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7526 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7527 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7528 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7529 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7530 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7531 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7532 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7533 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7534 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7535 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7536 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7537 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7538 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7539 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7540 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7541 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7542 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7543 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7544 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7545 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7546 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7547 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7548 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7549 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7550 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7551 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7552 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7553 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7554 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7555 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7556 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7557 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7558 * sysdeps/ieee754/k_standardl.c: Likewise.
7559 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7560 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7561 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7562 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7563 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7564 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7565 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7566 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7567 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7568 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7569 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7570 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7571 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7572 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7573 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7574 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7575 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7576 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7577 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7578 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7579 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7580 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7581 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7582 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7583 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7584 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7585 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7586 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7587 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7588 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7589 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7590 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7591 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7592 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7593 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7594 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7595 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7596 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7597 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7598 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7599 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7600 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7601 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7602 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7603 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7604 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7605 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7606 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7607 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7608 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7609 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7610 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7611 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7612 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7613 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7614 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7615 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7616 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7617 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7618 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7619 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7620 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7621 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7622 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7623 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7624 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7625 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7626 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7627 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7628 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7629 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7630
7631 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7632
7633 [BZ #20271]
7634 * include/stdio.h (__libc_fatal): Mention newline in comment.
7635 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7636 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7637 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7638 * nss/nsswitch.c (__nss_next2): Likewise.
7639 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7640 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7641 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7642 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7643 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7644 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7645 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7646 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7647 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7648 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7649 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7650 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7651 (__netlink_assert_response): Likewise.
7652
7653 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7654
7655 * conform/glibcconform.py: New file.
7656 * conform/list-header-symbols.py: Likewise.
7657 * conform/list-header-symbols.pl: Remove.
7658 * conform/Makefile (tests-special): Only add linknamespace tests
7659 if [PYTHON].
7660 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7661
7662 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7663
7664 [BZ #23597]
7665 * support/Makefile (libsupport-routines): Add
7666 support_copy_file_range and xcopy_file_range.
7667 * support/support.h: Include <sys/types.h>.
7668 (support_copy_file_range): New prototype.
7669 * support/support_copy_file_range.c: New file. Copied and
7670 modified from io/copy_file_range-compat.c.
7671 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7672 instead of copy_file_range.
7673 * support/xcopy_file_range.c: New file.
7674 * support/xunistd.h (xcopy_file_range): New prototype.
7675
7676 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7677
7678 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7679 xpthread_create and xpthread_join.
7680
7681 2018-08-30 Florian Weimer <fweimer@redhat.com>
7682
7683 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7684
7685 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7686
7687 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7688 if malloc fails.
7689
7690 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7691
7692 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7693 and minus_oflow as non-finite.
7694
7695 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7696
7697 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7698 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7699 moved to fenv_private.h except for ...
7700 (TOINT_INTRINSICS): Kept in math_private.h.
7701 (roundtoint): Likewise.
7702 (converttoint): Likewise.
7703 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7704 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7705 * sysdeps/arm/math_private.h: Remove.
7706 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7707 ....
7708 * sysdeps/generic/math_private.h: ... this file. Include
7709 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7710 Include <fenv_private.h>. Remove functions and macros moved to
7711 fenv_private.h.
7712 * sysdeps/i386/fpu/math_private.h: Remove.
7713 * sysdeps/mips/math_private.h: Move to ....
7714 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7715 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7716 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7717 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7718 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7719 * sysdeps/powerpc/fpu/math_private.h: Do not include
7720 <fenv_private.h>.
7721 * sysdeps/riscv/rvf/math_private.h: Move to ....
7722 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7723 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7724 <fenv_private.h>.
7725 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7726 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7727 * sysdeps/sparc/fpu/math_private.h: Remove.
7728 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7729 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7730 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7731 <fenv_private.h>.
7732 * sysdeps/x86_64/fpu/math_private.h: Do not include
7733 <sysdeps/i386/fpu/fenv_private.h>.
7734
7735 2018-08-28 Florian Weimer <fweimer@redhat.com>
7736
7737 [BZ #23578]
7738 * posix/tst-regcomp-truncated.c: New file.
7739 * posix/Makefile (tests): Add it.
7740 (tst-regcomp-truncated.out): Depend on generated locales.
7741
7742 2018-08-28 Florian Weimer <fweimer@redhat.com>
7743
7744 * support/test-container.c (main): Treat unshare failure with
7745 EPERM as an unsupported test.
7746
7747 2018-08-28 Florian Weimer <fweimer@redhat.com>
7748
7749 [BZ #23520]
7750 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7751 * nscd/netgroupcache.c
7752 (addgetnetgrentX): Add tofreep parameter. Do not free
7753 heap-allocated buffer.
7754 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7755 (addgetnetgrentX_ignore): New function.
7756 (addgetnetgrent): Call it.
7757 (readdgetnetgrent): Likewise.
7758
7759 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7760
7761 * string/memmem.c: Use memcmp for first match.
7762
7763 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7764
7765 [BZ #17426]
7766 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7767
7768 2018-08-27 DJ Delorie <dj@redhat.com>
7769
7770 * support/Makefile (others): Don't list programs explicitly as a
7771 dependency of "others".
7772
7773 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7774
7775 * sysdeps/generic/math-tests-trap-force.h: New file.
7776 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7777 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7778 * sysdeps/powerpc/math-tests.h: Remove file.
7779 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7780
7781 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7782 Torvald Riegel <triegel@redhat.com>
7783
7784 [BZ #23538]
7785 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7786 Update r to include the set wake-request flag if waiters are
7787 remaining after spinning.
7788
7789 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7790
7791 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7792
7793 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7794
7795 [BZ #23578]
7796 regex: fix uninitialized memory access
7797 I introduced this bug into gnulib in commit
7798 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7799 eventually it was merged into glibc. The bug was found by
7800 project-repo <bugs@feusi.co> and reported here:
7801 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7802 Diagnosis and draft fix reported by Assaf Gordon here:
7803 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7804 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7805 * posix/regex_internal.c (build_wcs_upper_buffer):
7806 Fix bug when mbrtowc returns 0.
7807
7808 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7809
7810 * po/be.po: Update translation.
7811
7812 2018-08-24 DJ Delorie <dj@delorie.com>
7813
7814 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7815 $(libunwind).
7816
7817 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7818
7819 [BZ #23400]
7820 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7821 create temporary files in source tree.
7822
7823 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7824
7825 * sysdeps/generic/math-tests-trap.h: New file.
7826 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7827 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7828 * sysdeps/aarch64/math-tests.h: Remove file.
7829 * sysdeps/arm/math-tests.h: Likewise.
7830 * sysdeps/riscv/math-tests.h: Likewise.
7831 * sysdeps/aarch64/math-tests-trap.h: New file.
7832 * sysdeps/arm/math-tests-trap.h: Likewise.
7833 * sysdeps/riscv/math-tests-trap.h: Likewise.
7834
7835 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7836
7837 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7838 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7839 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7840 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7841 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7842 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7843 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7844 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7845 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7846 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7847 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7848 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7849 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7850 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7851 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7852 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7853 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7854 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7855
7856 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7857
7858 * sysdeps/generic/math-tests-exceptions.h: New file.
7859 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7860 (EXCEPTION_TESTS_float): Do not define here.
7861 (EXCEPTION_TESTS_double): Likewise.
7862 (EXCEPTION_TESTS_long_double): Likewise.
7863 (EXCEPTION_TESTS_float128): Likewise.
7864 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7865 Likewise.
7866 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7867 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7868 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7869 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7870 * sysdeps/mips/math-tests.h: Likewise.
7871 * sysdeps/nios2/math-tests.h: Likewise.
7872 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7873 (EXCEPTION_TESTS_float): Do not define here.
7874 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7875 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7876 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7877
7878 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7879
7880 * NEWS: Move optimized sinf entry to 2.29.
7881
7882 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7883
7884 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7885
7886 2018-08-22 DJ Delorie <dj@redhat.com>
7887
7888 * Makefile (testroot.pristine): New rules to initialize the
7889 test-in-container "testroot".
7890 * Makerules (all-testsuite): Add tests-container.
7891 * Rules (tests-expected): Add tests-container.
7892 (binaries-all-tests): Likewise.
7893 (tests-container): New, run these tests in the testroot container.
7894 * support/Makefile (others): Add *-container, support_paths.c,
7895 xmkdirp, and links-dso-program.
7896 * support/links-dso-program-c.c: New.
7897 * support/links-dso-program.cc: New.
7898 * support/test-container.c: New.
7899 * support/shell-container.c: New.
7900 * support/echo-container.c: New.
7901 * support/true-container.c: New.
7902 * support/xmkdirp.c: New.
7903 * support/xsymlink.c: New.
7904 * support/support_paths.c: New.
7905 * support/support.h: Add support paths prototypes.
7906 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7907
7908 * nss/tst-nss-test3.c: Convert to test-in-container.
7909 * nss/tst-nss-test3.root/: New.
7910
7911 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7912
7913 regex: port Gnulib code to z/OS POSIX environment
7914 Problem reported by Arnold Robbins in:
7915 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7916 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7917 Undef.
7918
7919 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7920
7921 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7922 (ROUNDING_TESTS_double): Remove.
7923 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7924 (ROUNDING_TESTS_double): Remove.
7925 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7926 (ROUNDING_TESTS_double): Remove.
7927 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7928 (ROUNDING_TESTS_float): Remove.
7929 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7930 (ROUNDING_TESTS_float): Remove.
7931 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7932 (ROUNDING_TESTS_float): Remove.
7933 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7934 !TEST_MATHVEC here.
7935 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7936 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7937
7938 * sysdeps/generic/math-tests-rounding.h: New file.
7939 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7940 (ROUNDING_TESTS_float): Do not define here.
7941 (ROUNDING_TESTS_double): Likewise.
7942 (ROUNDING_TESTS_long_double): Likewise.
7943 (ROUNDING_TESTS_float128): Likewise.
7944 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7945 (ROUNDING_TESTS_double): Undefine before defining.
7946 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7947 (ROUNDING_TESTS_double): Undefine before defining.
7948 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7949 (ROUNDING_TESTS_double): Undefine before defining.
7950 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7951 (ROUNDING_TESTS_float): Undefine before defining.
7952 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7953 (ROUNDING_TESTS_float): Undefine before defining.
7954 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7955 (ROUNDING_TESTS_float): Undefine before defining.
7956 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7957 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7958 not define here.
7959 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7960 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7961 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7962 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7963 (ROUNDING_TESTS_float): Do not define here.
7964 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7965 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7966 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7967 (ROUNDING_TESTS_float): Likewise.
7968 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7969 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7970 * sysdeps/mips/math-tests.h [__mips_soft_float]
7971 (ROUNDING_TESTS_float): Likewise.
7972 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7973 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7974 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7975 (ROUNDING_TESTS_double): Likewise.
7976 (ROUNDING_TESTS_long_double): Likewise.
7977
7978 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7979
7980 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7981 (PF_XDP): New macro.
7982 (AF_XDP): New macro.
7983 (SOL_XDP): New macro.
7984
7985 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7986
7987 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7988 (TCP_INQ): Likewise.
7989 (TCP_CM_INQ): Likewise.
7990 (TCP_REPAIR_ON): Likewise.
7991 (TCP_REPAIR_OFF): Likewise.
7992 (TCP_REPAIR_OFF_NO_WP): Likewise.
7993 (struct tcp_zerocopy_receive): New type.
7994
7995 2018-08-21 Florian Weimer <fweimer@redhat.com>
7996
7997 * support/support.h (support_descriptor_supports_holes): Declare.
7998 * support/Makefile (libsupport-routines): Add
7999 support_descriptor_supports_holes.
8000 * support/support_descriptor_supports_holes.c: New file.
8001 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8002 and stop testing if holes are not supported.
8003 * io/test-lfs.c (do_prepare): Likewise.
8004 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8005 Likewise.
8006 * timezone/tst-tzset.c (create_tz_file): Likewise.
8007 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8008 variable.
8009 (do_prepare): Set it.
8010 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8011
8012 2018-08-21 Florian Weimer <fweimer@redhat.com>
8013
8014 [BZ #17248]
8015 * Makeconfig (+cflags): Do not sort (and deduplicate).
8016
8017 2018-08-21 Florian Weimer <fweimer@redhat.com>
8018
8019 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8020 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8021
8022 2018-08-20 Florian Weimer <fweimer@redhat.com>
8023
8024 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8025 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8026
8027 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8028
8029 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8030 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8031 and ssi_arch members.
8032
8033 * elf/elf.c (NT_VMCOREDD): New macro.
8034 (AT_MINSIGSTKSZ): Likewise.
8035
8036 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8037
8038 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8039 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8040 s_cosf-ppc64 and s_cosf-power8.
8041 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8042 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8043 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8044 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8045 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8046 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8047 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8048 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8050 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8051 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8052 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8053
8054 2018-08-17 Florian Weimer <fweimer@redhat.com>
8055
8056 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8057
8058 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8059
8060 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8061
8062 2018-08-16 Florian Weimer <fweimer@redhat.com>
8063
8064 * configure.ac: Add --with-nonshared-cflags option.
8065 * config.make.in (extra-nonshared-cflags): Set variable.
8066 * Makeconfig (CFLAGS-.oS): Use it.
8067 * manual/install.texi (Configuring and compiling): Document
8068 --with-nonshared-cflags.
8069 * configure: Regenerate.
8070 * INSTALL: Likewise.
8071
8072 2018-08-16 Florian Weimer <fweimer@redhat.com>
8073
8074 * Makeconfig (ASFLAGS): Always append required assembler flags.
8075
8076 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8077
8078 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8079 (malloc_consolidate): Likewise.
8080
8081 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8082
8083 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8084
8085 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8086
8087 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8088 every strlen call.
8089
8090 * benchtests/bench-strlen.c: Print performance numbers in json.
8091
8092 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8093
8094 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8095 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8096 only for little endian.
8097 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8098 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8099 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8100 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8101 Add check for little endian.
8102 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8103 (__strcmp_power9): Add check for little endian.
8104 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8105 Add check for little endian.
8106 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8107 (__strncmp_power9): Add check for little endian.
8108 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8109 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8110 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8111 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8112 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8113
8114 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8115
8116 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8117 [!STRLEN](STRLEN): Set to __strlen.
8118 * sysdeps/aarch64/multiarch/strlen.c: New file.
8119 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8120 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8121 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8122 (__libc_ifunc_impl_list): Add strlen.
8123 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8124 strlen_generic and strlen_asimd.
8125
8126 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8127
8128 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8129 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8130 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8131
8132 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8133
8134 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8135
8136 2018-08-14 Florian Weimer <fweimer@redhat.com>
8137
8138 [BZ #23519]
8139 * include/stdio.h (__vfxprintf): Declare.
8140 * stdio-common/fxprintf.c (__vfxprintf): New function.
8141 (__fxprintf): Call it.
8142 * misc/err.c (convert_and_print): Remove function.
8143 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8144 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8145 * misc/Makefile (tests): Add tst-warn-wide.
8146 * misc/tst-warn-wide.c: New file.
8147
8148 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8149 Szabolcs Nagy <szabolcs.nagy@arm.com>
8150
8151 * NEWS: Mention sinf, cosf, sincosf.
8152 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8153 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8154 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8155 constants rather than including generic sincosf.h.
8156 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8157 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8158 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8159 (reduced_cos): Remove.
8160 (sinf_poly): New function.
8161 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8162
8163 2018-08-14 Florian Weimer <fweimer@redhat.com>
8164
8165 [BZ #23521]
8166 [BZ #23522]
8167 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8168 processing, bail out if no room, and close the stream before
8169 returning ERANGE.
8170 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8171 (tst-nss-files-alias-leak): Link with libdl.
8172 (tst-nss-files-alias-leak.out): Depend on nss_files.
8173
8174 * nss/tst-nss-files-alias-leak.c: New file.
8175
8176 2018-08-14 Florian Weimer <fweimer@redhat.com>
8177
8178 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8179 server_user, stat_user.
8180
8181 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8182
8183 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8184 version to 4.18.
8185 (io_pgetevents): New syscall.
8186 (rseq): Likewise.
8187
8188 * manual/install.texi (Configuring and compiling): Do not list
8189 tools used for testing pretty printers here.
8190 (Tools for Compilation): List Python, PExpect and GDB here.
8191 Update descriptions of uses of Perl and Python.
8192 * INSTALL: Regenerate.
8193
8194 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8195 version to 4.18.
8196
8197 2018-08-13 Florian Weimer <fweimer@redhat.com>
8198
8199 * misc/error.c (error): Add missing va_end call.
8200 (error_at_line): Likewise.
8201
8202 2018-08-13 Florian Weimer <fweimer@redhat.com>
8203
8204 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8205
8206 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8207
8208 * benchtests/scripts/benchout.schema.json (properties): Add
8209 new properties.
8210
8211 * benchtests/bench-skeleton.c (main): Add duration and
8212 iterations attributes.
8213
8214 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8215
8216 regex: Gnulib unibyte RRI uses bytes not chars
8217 Adjust the non-glibc code to agree with what Gawk needs for
8218 rational range interpretation (RRI) for regular expression ranges.
8219 In unibyte locales, Gawk wants ranges to use the underlying byte
8220 rather than the character code point. This change does not affect
8221 glibc proper.
8222 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8223 In unibyte locales, use the byte value rather than
8224 running it through btowc.
8225
8226 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8227
8228 * sysdeps/generic/math-tests-snan.h: New file.
8229 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8230 (SNAN_TESTS_float): Do not define here.
8231 (SNAN_TESTS_double): Likewise.
8232 (SNAN_TESTS_long_double): Likewise.
8233 (SNAN_TESTS_float128): Likewise.
8234 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8235 * sysdeps/i386/fpu/math-tests.h: Remove file.
8236 * sysdeps/ia64/math-tests-snan.h: New file.
8237 * sysdeps/ia64/math-tests.h: Remove file.
8238 * sysdeps/x86/math-tests.h: Likewise.
8239 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8240
8241 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8242 Szabolcs Nagy <szabolcs.nagy@arm.com>
8243
8244 * math/Makefile: Add s_sincosf_data.c.
8245 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8246 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8247 (sincosf_poly): Likewise.
8248 (reduce_small): Likewise.
8249 (reduce_large): Likewise.
8250 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8251 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8252 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8253 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8254
8255 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8256 Szabolcs Nagy <szabolcs.nagy@arm.com>
8257
8258 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8259 (converttoint): Use lround.
8260 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8261 document the semantics when TOINT_INTRINSICS is set.
8262 (converttoint): Likewise.
8263 (TOINT_RINT): Remove.
8264 (TOINT_SHIFT): Remove.
8265 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8266 path.
8267
8268 2018-08-10 Florian Weimer <fweimer@redhat.com>
8269
8270 [BZ #23497]
8271 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8272 function.
8273 (__old_getdents64): Use getdents64. Convert entries without
8274 moving them.
8275 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8276 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8277 tst-readdir64-compat.
8278
8279 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8280
8281 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8282 Fix unwind.
8283
8284 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8285
8286 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8287 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8288 code to s390x-mcount.h and #include it.
8289 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8290 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8291 (__fentry__): Add.
8292
8293 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8294
8295 * stdlib/Versions: Remove __fentry__.
8296 * sysdeps/i386/Versions: Add __fentry__.
8297 * sysdeps/x86_64/Versions: Add __fentry__.
8298
8299 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8300
8301 * sysdeps/s390/Makefile: Register the new tests.
8302 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8303 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8304 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8305 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8306 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8307 * sysdeps/s390/tst-dl-runtime.c: New file.
8308
8309 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8310
8311 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8312 Do not clobber R0.
8313
8314 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8315
8316 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8317 Do not clobber R0.
8318
8319 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8320
8321 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8322 Do not clobber R0.
8323
8324 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8325
8326 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8327 Do not clobber R0.
8328
8329 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8330
8331 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8332 Use symbolic offsets for stack variables.
8333
8334 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8335
8336 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8337 Use symbolic offsets for stack variables.
8338
8339 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8340
8341 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8342 Use symbolic offsets for stack variables.
8343
8344 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8345
8346 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8347 Use symbolic offsets for stack variables.
8348
8349 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8350
8351 * math/gen-libm-test.py: New file.
8352 * math/gen-libm-test.pl: Remove.
8353 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8354 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8355 gen-libm-test.pl.
8356 ($(libm-test-c-noauto-obj)): Likewise.
8357 ($(libm-test-c-auto-obj)): Likewise.
8358 ($(libm-test-c-narrow-obj)): Likewise.
8359 (regen-ulps): Likewise.
8360 * math/README.libm-test: Update references to gen-libm-test.pl.
8361 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8362 referencing gen-libm-test.pl.
8363 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8364 * math/libm-test-support.c: Likewise.
8365 * math/libm-test-support.h: Likewise.
8366 * sysdeps/generic/libm-test-ulps: Likewise.
8367
8368 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8369
8370 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8371 Fix value.
8372
8373 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8374
8375 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8376 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8377
8378 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8379
8380 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8381 symbols.
8382 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8383 __pthread_setspecific): Add hidden proto.
8384 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8385 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8386
8387 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8388
8389 * benchtests/bench-string.h (buf1_size, buf2_size): New
8390 variables.
8391 (init_sizes): New function.
8392 (test_init): Use it.
8393 (alloc_buf, exit_error): New functions.
8394 (alloc_bufs): Use ALLOC_BUF.
8395 (realloc_bufs): Remove.
8396 * benchtests/bench-memcmp.c (do_test): Adjust.
8397 * benchtests/bench-memset-large.c (do_test): Likewise.
8398 * benchtests/bench-memset-walk.c (do_test): Likewise.
8399 * benchtests/bench-memset.c (do_test): Likewise.
8400 * benchtests/bench-strncmp.c (do_test): Likewise.
8401
8402 2018-08-06 Andreas Schwab <schwab@suse.de>
8403
8404 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8405 of CONST_THREAD_AREA.
8406
8407 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8408
8409 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8410 (STATE_SAVE_MASK): Likewise.
8411 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8412 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8413 (STATE_SAVE_MASK): Likewise.
8414 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8415 instead of <cpu-features.h>.
8416
8417 2018-08-03 DJ Delorie <dj@redhat.com>
8418
8419 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8420 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8421
8422 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8423
8424 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8425
8426 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8427 after TEST_* calls.
8428 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8429 * math/libm-test-logb.inc (logb_test_data): Likewise.
8430
8431 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8432
8433 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8434 * string/strstr.c (AVAILABLE): Likewise.
8435
8436 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8437
8438 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8439 <init-arch.h>.
8440 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8441 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8442 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8443
8444 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8445
8446 * po/be.po: Update translation.
8447
8448 * po/be.po: Update translation.
8449
8450 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8451
8452 * sysdeps/x86/cpu-features-offsets.sym
8453 (rtld_global_ro_offsetof): Removed.
8454 (CPU_FEATURES_SIZE): Likewise.
8455 (CPUID_OFFSET): Likewise.
8456 (CPUID_SIZE): Likewise.
8457 (CPUID_EAX_OFFSET): Likewise.
8458 (CPUID_EBX_OFFSET): Likewise.
8459 (CPUID_ECX_OFFSET): Likewise.
8460 (CPUID_EDX_OFFSET): Likewise.
8461 (FAMILY_OFFSET): Likewise.
8462 (MODEL_OFFSET): Likewise.
8463 (FEATURE_OFFSET): Likewise.
8464 (FEATURE_SIZ): Likewise.
8465 (COMMON_CPUID_INDEX_1): Likewise.
8466 (COMMON_CPUID_INDEX_7): Likewise.
8467 (FEATURE_INDEX_1): Likewise.
8468 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8469
8470 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8471
8472 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8473 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8474 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8475 (install-locales): Depend on install-locale-archive.
8476 (install-locale-archive): Define.
8477 (install-locale-files): Define.
8478 (build-one-locale): Define macro.
8479 * manual/install.texi (Running make install): Document.
8480 * manual/INSTALL: Regenerate.
8481
8482 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8483
8484 * benchtests/scripts/compare_strings.py: Import traceback.
8485 (parse_file): Pretty-print error.
8486
8487 * NEWS: Mention the change.
8488 * elf/dl-tunables.list: Rename tune namespace to cpu.
8489 * sysdeps/powerpc/dl-tunables.list: Likewise.
8490 * sysdeps/x86/dl-tunables.list: Likewise.
8491 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8492 cpu.name.
8493 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8494 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8495 * manual/README.tunables: Likewise.
8496 * manual/tunables.texi: Likewise.
8497 * sysdeps/powerpc/cpu-features.c: Likewise.
8498 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8499 (init_cpu_features): Likewise.
8500 * sysdeps/x86/cpu-features.c: Likewise.
8501 * sysdeps/x86/cpu-features.h: Likewise.
8502 * sysdeps/x86/cpu-tunables.c: Likewise.
8503 * sysdeps/x86_64/Makefile: Likewise.
8504 * sysdeps/x86/dl-cet.c: Likewise.
8505
8506 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8507
8508 [BZ #23479]
8509 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8510 [__mips_hard_float].
8511 (FE_UNDERFLOW): Likewise.
8512 (FE_OVERFLOW): Likewise.
8513 (FE_DIVBYZERO): Likewise.
8514 (FE_INVALID): Likewise.
8515 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8516 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8517 (FE_UPWARD): Likewise.
8518 (FE_DOWNWARD): Likewise.
8519 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8520 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8521 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8522 [__mips_hard_float].
8523 (FP_ROUNDMODE): Likewise.
8524 (FP_RND_NEAREST): Likewise.
8525 (FP_RND_ZERO): Likewise.
8526 (FP_RND_PINF): Likewise.
8527 (FP_RND_MINF): Likewise.
8528 (FP_EX_INVALID): Likewise.
8529 (FP_EX_OVERFLOW): Likewise.
8530 (FP_EX_UNDERFLOW): Likewise.
8531 (FP_EX_DIVZERO): Likewise.
8532 (FP_EX_INEXACT): Likewise.
8533 (FP_INIT_ROUNDMODE): Likewise.
8534 * sysdeps/mips/nofpu/fesetenv.c: New file.
8535 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8536
8537 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8538
8539 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8540 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8541 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8542 conditional on [FE_UPWARD].
8543
8544 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8545
8546 regex: fix memory leak in Gnulib
8547 Problem and fix reported by Assaf Gordon in:
8548 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8549 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8550 range_ends members too, as they are defined in 'struct
8551 re_charset_t' even if not _LIBC. This affects only Gnulib.
8552
8553 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8554
8555 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8556 ...
8557 (get_common_indices): This.
8558 (init_cpu_features): Updated.
8559
8560 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8561
8562 * sysdeps/generic/math-tests-snan-payload.h: New file.
8563 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8564 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8565 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8566 * sysdeps/generic/math-tests.h: Include
8567 <math-tests-snan-payload.h>.
8568 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8569 * sysdeps/hppa/math-tests.h: Remove file.
8570 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8571 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8572 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8573 Likewise.
8574
8575 * sysdeps/generic/math-tests-snan-cast.h: New file.
8576 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8577 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8578 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8579 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8580
8581 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8582
8583 * version.h (RELEASE): Set to "development".
8584 (VERSION): Set to "2.28.9000".
8585 * NEWS (2.29): New section.
8586
8587 * version.h (RELEASE): Set to "stable".
8588 (VERSION): Set to "2.28".
8589 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8590 * NEWS: Add the list of bugs fixed in 2.28.
8591
8592 * po/ca.po: Update to latest version.
8593 * po/cs.po: Likewise
8594 * po/da.po: Likewise
8595 * po/el.po: Likewise
8596 * po/eo.po: Likewise
8597 * po/es.po: Likewise
8598 * po/fi.po: Likewise
8599 * po/fr.po: Likewise
8600 * po/gl.po: Likewise
8601 * po/hu.po: Likewise
8602 * po/ia.po: Likewise
8603 * po/id.po: Likewise
8604 * po/it.po: Likewise
8605 * po/ja.po: Likewise
8606 * po/ko.po: Likewise
8607 * po/lt.po: Likewise
8608 * po/nb.po: Likewise
8609 * po/nl.po: Likewise
8610 * po/pt_BR.po: Likewise
8611 * po/ru.po: Likewise
8612 * po/rw.po: Likewise
8613 * po/sk.po: Likewise
8614 * po/sl.po: Likewise
8615 * po/tr.po: Likewise
8616 * po/zh_CN.po: Likewise
8617 * po/zh_TW.po: Likewise
8618
8619 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8620
8621 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8622 initialization...
8623 (init): ... before initializing libpthread.
8624
8625 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8626 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8627 (__mach_setup_tls): ... new function.
8628 (mach_setup_tls): New alias.
8629 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8630 __mach_setup_thread.
8631 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8632 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8633 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8634 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8635
8636 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8637
8638 * manual/install.texi: Update versions.
8639 * INSTALL: Regenerate.
8640
8641 * manual/contrib.texi (Contributors): Update contributions.
8642
8643 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8644
8645 * po/be.po: Update translations.
8646
8647 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8648
8649 * sysdeps/sh/libm-test-ulps: Update.
8650
8651 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8652
8653 * po/bg.po: Update translations.
8654 * po/de.po: Likewise.
8655 * po/hr.po: Likewise.
8656 * po/pt_BR.po: Likewise.
8657 * po/sv.po: Likewise.
8658 * po/vi.po: Likewise.
8659
8660 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8661
8662 [BZ #23467]
8663 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8664 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8665 (CFLAGS-tst-cet-property-1.o): New.
8666 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8667 ($(objpfx)tst-cet-property-2): Likewise.
8668 ($(objpfx)tst-cet-property-2.out): Likewise.
8669 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8670 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8671 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8672 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8673 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8674
8675 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8676
8677 [BZ #23458]
8678 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8679
8680 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8681
8682 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8683 __sbrk): Do not set attribute_hidden.
8684 * sysdeps/mach/hurd/not-errno.h: New file.
8685 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8686 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8687
8688 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8689
8690 * po/uk.po: Update translations.
8691 * po/cs.po: Likewise.
8692 * po/pl.po: Likewise.
8693
8694 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8695
8696 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8697 parse beyond the note end.
8698
8699 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8700
8701 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8702 kernel does not support OFD locks.
8703 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8704
8705 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8706
8707 * sysdeps/mach/hurd/Versions (libc): Make __access and
8708 __access_noerrno external so they can override the ld symbols.
8709 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8710 __writev, __open64, __access_noerrno extern so they can be overrided.
8711 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8712 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8713
8714 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8715
8716 * po/libc.pot: Regenerate.
8717
8718 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8719
8720 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8721
8722 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8723
8724 [BZ #23459]
8725 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8726 function.
8727 (init_cpu_features): Call get_extended_indices for both Intel
8728 and AMD CPUs.
8729 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8730 Remove "for AMD" comment.
8731
8732 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8733
8734 [BZ # 23456]
8735 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8736 COMMON_CPUID_INDEX_80000001.
8737
8738 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8739
8740 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8741 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8742
8743 2018-07-26 Florian Weimer <fweimer@redhat.com>
8744
8745 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8746 aliases for symbols not in the implementation namespace.
8747
8748 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8749
8750 [BZ #23393]
8751 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8752 lowercase in LATIN script.
8753 * localedata/Makefile (test-input): Add en_US.UTF-8.
8754 * localedata/en_US.UTF-8.in: New file.
8755 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8756 and restore old tests.
8757 * posix/tst-regexloc.c (do_test): Add back range expression test.
8758
8759 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8760
8761 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8762
8763 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8764
8765 * nptl/threads.h: Move to ...
8766 * sysdeps/nptl/threads.h: ... here.
8767 * sysdeps/hurd/stdc-predef.h: New file.
8768
8769 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8770
8771 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8772 tst-cet-setcontext-1 if CET is enabled.
8773 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8774 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8775
8776 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8777
8778 * include/threads.h: Move to ...
8779 * sysdeps/nptl/threads.h: ... here.
8780 * sysdeps/htl/threads.h: New file.
8781 * conform/Makefile (linknamespace-libs-ISO11): Use
8782 static-thread-library instead of linking libpthread.
8783 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8784
8785 2018-07-25 Florian Weimer <fweimer@redhat.com>
8786
8787 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8788 nanoseconds into seconds.
8789 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8790 (do_test): Likewise.
8791 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8792 (do_test): Likewise. Avoid nanosecond overflow and spurious
8793 timeouts due to system load.
8794 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8795 (child_wait): Increment it.
8796 (do_test): Wait as long as necessary until all expected threads
8797 have arrived.
8798
8799 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8800 H.J. Lu <hongjiu.lu@intel.com>
8801
8802 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8803 __ssp.
8804 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8805 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8806 (__push___start_context): New.
8807 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8808 <asm/prctl.h>.
8809 (__getcontext): Record the current shadow stack base. Save the
8810 caller's shadow stack pointer and base.
8811 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8812 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8813 (__push___start_context): New prototype.
8814 (__makecontext): Call __push___start_context to allocate a new
8815 shadow stack, push __start_context onto the new stack as well
8816 as the new shadow stack.
8817 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8818 <asm/prctl.h>.
8819 (__setcontext): Restore the target shadow stack.
8820 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8821 <asm/prctl.h>.
8822 (__swapcontext): Record the current shadow stack base. Save
8823 the caller's shadow stack pointer and base. Restore the target
8824 shadow stack.
8825 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8826 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8827 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8828
8829 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8830
8831 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8832 tst-setcontext8 and tst-setcontext9.
8833 * stdlib/tst-setcontext6.c: New file.
8834 * stdlib/tst-setcontext7.c: Likewise.
8835 * stdlib/tst-setcontext8.c: Likewise.
8836 * stdlib/tst-setcontext9.c: Likewise.
8837
8838 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8839
8840 * stdlib/Makefile ((tests): Add tst-setcontext5.
8841 * stdlib/tst-setcontext5.c: New file.
8842
8843 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8844
8845 * stdlib/Makefile (tests): Add tst-setcontext4.
8846 * stdlib/tst-setcontext4.c: New file.
8847
8848 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8849
8850 * stdlib/Makefile (tests): Add tst-swapcontext1.
8851 * stdlib/tst-swapcontext1.c: New test.
8852
8853 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8854
8855 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8856 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8857 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8858 and tst-cet-legacy-4c.
8859 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8860 and tst-cet-legacy-mod-4.
8861 (CFLAGS-tst-cet-legacy-2.c): New.
8862 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8863 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8864 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8865 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8866 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8867 ($(objpfx)tst-cet-legacy-1): Likewise.
8868 ($(objpfx)tst-cet-legacy-2): Likewise.
8869 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8870 ($(objpfx)tst-cet-legacy-2a): Likewise.
8871 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8872 ($(objpfx)tst-cet-legacy-4): Likewise.
8873 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8874 ($(objpfx)tst-cet-legacy-4a): Likewise.
8875 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8876 (tst-cet-legacy-4a-ENV): Likewise.
8877 ($(objpfx)tst-cet-legacy-4b): Likewise.
8878 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8879 (tst-cet-legacy-4b-ENV): Likewise.
8880 ($(objpfx)tst-cet-legacy-4c): Likewise.
8881 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8882 (tst-cet-legacy-4c-ENV): Likewise.
8883 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8884 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8885 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8886 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8887 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8888 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8889 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8890 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8891 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8892 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8893 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8894
8895 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8896
8897 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8898 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8899 with ssp_base.
8900 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8901 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8902 with ssp_base.
8903
8904 2018-07-25 Andreas Schwab <schwab@suse.de>
8905
8906 [BZ #23442]
8907 * locale/weightwc.h (findidx): Handle the case where usrc is a
8908 prefix of cp but one character too short.
8909
8910 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8911
8912 * NEWS: Add ISO C threads addition.
8913
8914 2018-07-24 Florian Weimer <fweimer@redhat.com>
8915
8916 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8917 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8918 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8919 4.13.
8920
8921 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8922
8923 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8924 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8925 <sys/prctl.h> and <asm/prctl.h>.
8926 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8927 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8928 and <asm/prctl.h>.
8929 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8930 ARCH_CET_LEGACY_BITMAP.
8931 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8932 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8933 * sysdeps/x86/libc-start.c: Include <startup.h>.
8934
8935 2018-07-24 Florian Weimer <fweimer@redhat.com>
8936
8937 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8938 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8939
8940 2018-07-24 Rical Jasan <rj@2c3t.io>
8941 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8942 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8943
8944 [BZ #14092]
8945 * manual/debug.texi: Update adjacent chapter name.
8946 * manual/probes.texi: Likewise.
8947 * manual/threads.texi (ISO C Threads): New section.
8948 (POSIX Threads): Convert to a section.
8949
8950 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8951 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8952
8953 [BZ# 14092]
8954 * nptl/Makefile (tests): Add new test files.
8955 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8956 * nptl/tst-cnd-basic.c: Likewise.
8957 * nptl/tst-cnd-broadcast.c: Likewise.
8958 * nptl/tst-cnd-timedwait.c: Likewise.
8959 * nptl/tst-mtx-basic.c: Likewise.
8960 * nptl/tst-mtx-recursive.c: Likewise.
8961 * nptl/tst-mtx-timedlock.c: Likewise.
8962 * nptl/tst-mtx-trylock.c: Likewise.
8963 * nptl/tst-thrd-basic.c: Likewise.
8964 * nptl/tst-thrd-detach.c: Likewise.
8965 * nptl/tst-thrd-sleep.c: Likewise.
8966 * nptl/tst-tss-basic.c: Likewise.
8967
8968 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8969
8970 [BZ #14092]
8971 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8972 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8973 symbols.
8974 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8975 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8976 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8977 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8978 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8979 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8980 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8981 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8982 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8983 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8984 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8985 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8987 Likewise.
8988 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8989 Likewise.
8990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8991 Likewise.
8992 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8993 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8994 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8995 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8996 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8997 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8998 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8999 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9000 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9001 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9002 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9003 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9004 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9005 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9006 Likewise.
9007 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9008 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9009 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9010 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9011 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9012 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9013 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9014 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9015 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9016 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9017 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9018 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9019 ikewise.
9020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9022 Likewise.
9023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9024 Likewise.
9025 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9026 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9027 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9028 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9029 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9030 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9031 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9032 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9033
9034 [BZ #14092]
9035 * conform/data/threads.h-data (thread_local): New macro.
9036 (TSS_DTOR_ITERATIONS): Likewise.
9037 (tss_t): New type.
9038 (tss_dtor_t): Likewise.
9039 (tss_create): New function.
9040 (tss_get): Likewise.
9041 (tss_set): Likewise.
9042 (tss_delete): Likewise.
9043 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9044 tss_get, and tss_set objects.
9045 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9046 * nptl/tss_create.c: New file.
9047 * nptl/tss_delete.c: Likewise.
9048 * nptl/tss_get.c: Likewise.
9049 * nptl/tss_set.c: Likewise.
9050 * sysdeps/nptl/threads.h (thread_local): New define.
9051 (TSS_DTOR_ITERATIONS): Likewise.
9052 (tss_t): New typedef.
9053 (tss_dtor_t): Likewise.
9054 (tss_create): New prototype.
9055 (tss_get): Likewise.
9056 (tss_set): Likewise.
9057 (tss_delete): Likewise.
9058
9059 [BZ #14092]
9060 * conform/data/threads.h-data (cnd_t): New type.
9061 (cnd_init): New function.
9062 (cnd_signal): Likewise.
9063 (cnd_broadcast): Likewise.
9064 (cnd_wait): Likewise.
9065 (cnd_timedwait): Likewise.
9066 (cnd_destroy): Likewise.
9067 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9068 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9069 object.
9070 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9071 * nptl/cnd_broadcast.c: New file.
9072 * nptl/cnd_destroy.c: Likewise.
9073 * nptl/cnd_init.c: Likewise.
9074 * nptl/cnd_signal.c: Likewise.
9075 * nptl/cnd_timedwait.c: Likewise.
9076 * nptl/cnd_wait.c: Likewise.
9077 * sysdeps/nptl/threads.h (cnd_t): New type.
9078 (cnd_init): New prototype.
9079 (cnd_signa): Likewise.
9080 (cnd_broadcast): Likewise.
9081 (cnd_wait): Likewise.
9082 (cnd_timedwait): Likewise.
9083 (cnd_destroy): Likewise.
9084
9085 [BZ #14092]
9086 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9087 (once_flag): New type.
9088 (call_once): New function.
9089 * nptl/Makefile (libpthread-routines): Add call_once object.
9090 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9091 * nptl/call_once.c: New file.
9092 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9093 (once_flag): New type.
9094 (call_once): New prototype.
9095
9096 [BZ #14092]
9097 * conform/data/threads.h-data (mtx_plain): New constant.
9098 (mtx_recursive): Likewise.
9099 (mtx_timed): Likewise.
9100 (mtx_t): New type.
9101 (mtx_init): New function.
9102 (mtx_lock): Likewise.
9103 (mtx_timedlock): Likewise.
9104 (mtx_trylock): Likewise.
9105 (mtx_unlock): Likewise.
9106 (mtx_destroy): Likewise.
9107 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9108 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9109 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9110 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9111 * nptl/mtx_destroy.c: New file.
9112 * nptl/mtx_init.c: Likewise.
9113 * nptl/mtx_lock.c: Likewise.
9114 * nptl/mtx_timedlock.c: Likewise.
9115 * nptl/mtx_trylock.c: Likewise.
9116 * nptl/mtx_unlock.c: Likewise.
9117 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9118 (mtx_recursive): Likewise.
9119 (mtx_timed): Likewise.
9120 (mtx_t): New type.
9121 (mtx_init): New prototype.
9122 (mtx_lock): Likewise.
9123 (mtx_timedlock): Likewise.
9124 (mtx_trylock): Likewise.
9125 (mtx_unlock): Likewise.
9126 (mtx_destroy): Likewise.
9127
9128 [BZ #14092]
9129 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9130 (linknamespace-libs-ISO11): Add libpthread.a.
9131 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9132 functions.
9133 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9134 * nptl/Makefile (headers): Add threads.h.
9135 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9136 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9137 thrd_yield.
9138 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9139 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9140 thrd_join, thrd_sleep, and thrd_yield symbols.
9141 * nptl/descr.h (struct pthread): Add c11 field.
9142 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9143 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9144 routine with expected function prototype.
9145 (__pthread_create_2_1): Add C11 threads check based on attribute
9146 value.
9147 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9148 * nptl/thrd_create.c: New file.
9149 * nptl/thrd_current.c: Likewise.
9150 * nptl/thrd_detach.c: Likewise.
9151 * nptl/thrd_equal.c: Likewise.
9152 * nptl/thrd_exit.c: Likewise.
9153 * nptl/thrd_join.c: Likewise.
9154 * nptl/thrd_priv.h: Likewise.
9155 * nptl/thrd_sleep.c: Likewise.
9156 * nptl/thrd_yield.c: Likewise.
9157 * include/threads.h: Likewise.
9158
9159 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9160
9161 * bits/indirect-return.h: New file.
9162 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9163 * sysdeps/x86/bits/indirect-return.h: Likewise.
9164 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9165 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9166 (swapcontext): Add __INDIRECT_RETURN.
9167 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9168 (prepare_test_buffer): Use it.
9169
9170 2018-07-24 Andreas Schwab <schwab@suse.de>
9171
9172 [BZ #23448]
9173 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9174 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9175
9176 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9177
9178 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9179 Redefine if shadow stack is enabled.
9180 (SYSCALL_ERROR_LABEL): Likewise.
9181 (__vfork): Pop shadow stack and jump back to to caller directly
9182 when shadow stack is in use.
9183 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9184 Redefine if shadow stack is enabled.
9185 (SYSCALL_ERROR_LABEL): Likewise.
9186 (__vfork): Pop shadow stack and jump back to to caller directly
9187 when shadow stack is in use.
9188
9189 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9190
9191 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9192 enabled.
9193 (foo): Likewise.
9194 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9195 (foo): Likewise.
9196
9197 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9198
9199 * scripts/build-many-glibcs.py (Context.checkout): Default
9200 binutils version to 2.31 branch.
9201
9202 2018-07-20 Zong Li <zong@andestech.com>
9203
9204 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9205 URL of gcc's tarball.
9206
9207 2018-07-20 Florian Weimer <fweimer@redhat.com>
9208
9209 [BZ #23396]
9210 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9211 not compare an extra byte after the end of the weights.
9212
9213 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9214
9215 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9216 to 1.
9217 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9218 hidden prototypes.
9219 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9220 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9221 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9222 list of libraries whose stack executability is expected.
9223 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9224 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9225 variable.
9226 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9227 libc.so libpthread.so.
9228
9229 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9230
9231 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9232 SOCK_NONBLOCK.
9233 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9234 and SOCK_NONBLOCK.
9235 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9236 implement __pipe2.
9237 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9238
9239 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9240
9241 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9242 library to improve command line parsing.
9243 (__main__): make schema file as optional parameter (--schema),
9244 defaulting to benchtests/scripts/benchout.schema.json.
9245 (main): move out of the parsing stuff to __main_  and leave it
9246 only as caller of main comparison functions.
9247
9248 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9249
9250 * NEWS: Add a note for Intel CET status.
9251 * manual/install.texi: Likewise.
9252 * INSTALL: Regenerated.
9253
9254 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9255
9256 [BZ #23140]
9257 * localedata/locales/oc_FR (mon): Rename to...
9258 (alt_mon): This, then update October (typo fix).
9259 (mon): New content (genitive case, month names preceded by
9260 "de" or "d’").
9261
9262 [BZ #23422]
9263 * localedata/locales/oc_FR (abday): Update all items.
9264 (day): Update Wednesday and Saturday (typo fixes).
9265 (abmon): Update all items, except May.
9266 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9267 (LC_IDENTIFICATION): Bump the revision number and date.
9268 Keep the "category" entries in alphabetic order.
9269 (LC_ADDRESS): Remove no longer needed comment.
9270 (LC_COLLATE): Use “copy "ca_ES"”.
9271 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9272 "name_mrs".
9273
9274 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9275
9276 * grp/tst_fgetgrent.c: Include <unistd.h>.
9277 (main): Use mkstemp instead of tmpnam.
9278 * io/test-utime.c (main): Likewise.
9279 * posix/annexc.c (macrofile): Change to modifiable array.
9280 (main): Remove macrofile here.
9281 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9282 macrofile here.
9283 (check_header): Do not remove macrofile here.
9284 * posix/bug-getopt1.c: Include <stdlib.h>.
9285 (do_test): Use mkstemp instead of tmpnam.
9286 * posix/bug-getopt2.c: Include <stdlib.h>.
9287 (do_test): Use mkstemp instead of tmpnam.
9288 * posix/bug-getopt3.c: Include <stdlib.h>.
9289 (do_test): Use mkstemp instead of tmpnam.
9290 * posix/bug-getopt4.c: Include <stdlib.h>.
9291 (do_test): Use mkstemp instead of tmpnam.
9292 * posix/bug-getopt5.c: Include <stdlib.h>.
9293 (do_test): Use mkstemp instead of tmpnam.
9294 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9295 (main): Use mkstemp instead of tmpnam.
9296 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9297 (main): Use mkstemp instead of tmpnam.
9298 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9299 (main): use mkstemp instead of tmpnam.
9300 * stdlib/isomac.c (macrofile): Change to modifiable array.
9301 (main): Remove macrofile here.
9302 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9303 macrofile here.
9304 (check_header): Do not remove macrofile here.
9305
9306 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9307
9308 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9309 glibc.tune.x86_shstk.
9310
9311 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9312
9313 * NEWS: Mention --enable-cet.
9314 * manual/install.texi: Document --enable-cet.
9315 * INSTALL: Regenerated.
9316
9317 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9318
9319 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9320 Add _CET_NOTRACK before indirect jump to jump table.
9321
9322 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9323
9324 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9325 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9326 to jump table.
9327
9328 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9329
9330 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9331 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9332 to jump table.
9333
9334 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9335
9336 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9337 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9338 to jump table.
9339
9340 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9341
9342 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9343 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9344 to jump table.
9345
9346 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9347
9348 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9349 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9350 to jump table.
9351 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9352
9353 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9354
9355 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9356 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9357 to jump table.
9358
9359 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9360
9361 * sysdeps/i386/i686/multiarch/memset-sse2.S
9362 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9363 to jump table.
9364
9365 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9366
9367 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9368 indirect jump to jump table.
9369
9370 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9371
9372 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9373 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9374 to jump table.
9375 (MEMCPY): Likewise.
9376
9377 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9378
9379 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9380 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9381 to jump table.
9382 (MEMCPY): Likewise.
9383
9384 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9385
9386 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9387 _CET_NOTRACK before indirect jump to jump table.
9388
9389 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9390
9391 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9392 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9393 to jump table.
9394
9395 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9396
9397 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9398 indirect jump to jump table.
9399
9400 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9401
9402 [BZ #22241]
9403 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9404 (LOCALES): Likewise.
9405 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9406 * localedata/locales/sah_RU: New file.
9407 * localedata/sah_RU.UTF-8.in: New file.
9408
9409 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9410
9411 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9412 "sysdep.h".
9413 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9414 _CET_ENDBR to indirect jump targets and adjust jump destination
9415 for _CET_ENDBR.
9416 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9417 "sysdep.h".
9418 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9419 _CET_ENDBR to indirect jump targets and adjust jump destination
9420 for _CET_ENDBR.
9421 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9422 "sysdep.h".
9423 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9424 _CET_ENDBR to indirect jump targets and adjust jump destination
9425 for _CET_ENDBR.
9426
9427 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9428
9429 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9430 _CET_ENDBR.
9431
9432 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9433
9434 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9435 _CET_ENDBR.
9436 (_dl_tlsdesc_undefweak): Likewise.
9437 (_dl_tlsdesc_dynamic): Likewise.
9438 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9439 (_dl_tlsdesc_resolve_rel): Likewise.
9440 (_dl_tlsdesc_resolve_rela): Likewise.
9441 (_dl_tlsdesc_resolve_hold): Likewise.
9442 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9443 (_dl_tlsdesc_undefweak): Likewise.
9444 (_dl_tlsdesc_dynamic): Likewise.
9445 (_dl_tlsdesc_resolve_rela): Likewise.
9446 (_dl_tlsdesc_resolve_hold): Likewise.
9447
9448 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9449
9450 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9451 (_fini): Likewise.
9452 * sysdeps/x86_64/crti.S (_init): Likewise.
9453 (_fini): Likewise.
9454
9455 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9456
9457 [BZ #23140]
9458 * localedata/locales/os_RU (mon): Rename to...
9459 (alt_mon): This.
9460 (mon): Import from CLDR (genitive case).
9461
9462 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9463
9464 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9465 cet-tunables.h> when CET is enabled.
9466
9467 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9468
9469 [BZ #21598]
9470 * configure.ac: Add --enable-cet.
9471 * configure: Regenerated.
9472 * elf/Makefille (all-built-dso): Add a comment.
9473 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9474 Include <dl-prop.h>.
9475 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9476 segment.
9477 * elf/dl-open.c: Include <dl-prop.h>.
9478 (dl_open_worker): Call _dl_open_check.
9479 * elf/rtld.c: Include <dl-prop.h>.
9480 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9481 _rtld_main_check.
9482 * sysdeps/generic/dl-prop.h: New file.
9483 * sysdeps/i386/dl-cet.c: Likewise.
9484 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9485 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9486 * sysdeps/x86/cet-tunables.h: Likewise.
9487 * sysdeps/x86/check-cet.awk: Likewise.
9488 * sysdeps/x86/configure: Likewise.
9489 * sysdeps/x86/configure.ac: Likewise.
9490 * sysdeps/x86/dl-cet.c: Likewise.
9491 * sysdeps/x86/dl-procruntime.c: Likewise.
9492 * sysdeps/x86/dl-prop.h: Likewise.
9493 * sysdeps/x86/libc-start.h: Likewise.
9494 * sysdeps/x86/link_map.h: Likewise.
9495 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9496 _CET_ENDBR.
9497 (_dl_runtime_profile): Likewise.
9498 (_dl_runtime_resolve_shstk): New.
9499 (_dl_runtime_profile_shstk): Likewise.
9500 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9501 if CET is enabled.
9502 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9503 (CFLAGS-.os): Likewise.
9504 (CFLAGS-.op): Likewise.
9505 (CFLAGS-.oS): Likewise.
9506 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9507 is enabled.
9508 (tests-special): Add $(objpfx)check-cet.out.
9509 (cet-built-dso): New.
9510 (+$(cet-built-dso:=.note)): Likewise.
9511 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9512 ($(objpfx)check-cet.out): New.
9513 (generated): Add check-cet.out.
9514 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9515 <cet-tunables.h>.
9516 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9517 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9518 (init_cpu_features): Call get_cet_status to check CET status
9519 and update dl_x86_feature_1 with CET status. Call
9520 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9521 (set_x86_shstk). Disable and lock CET in libc.a.
9522 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9523 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9524 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9525 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9526 (_CET_ENDBR): Define if not defined.
9527 (ENTRY): Add _CET_ENDBR.
9528 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9529 x86_shstk.
9530 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9531 _CET_ENDBR.
9532 (_dl_runtime_profile): Likewise.
9533
9534 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9535
9536 [BZ #21895]
9537 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9538 restore r2 on longjmp.
9539 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9540 test list.
9541 Added rules to build test tst-setjmp-bug21895-static.
9542 Added module setjmp-bug21895 and rules to build a shared object from it.
9543 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9544 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9545
9546 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9547
9548 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9549 * benchtests/bench-strstr.c: Likewise.
9550 * string/memmem.c (FASTSEARCH): Define.
9551 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9552 Add support for FASTSEARCH.
9553 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9554 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9555 (FASTSEARCH): Define.
9556 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9557 * string/test-strstr.c: Likewise.
9558
9559 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9560
9561 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9562 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9563
9564 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9565 H.J. Lu <hongjiu.lu@intel.com>
9566
9567 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9568 (__longjmp): Restore shadow stack pointer if shadow stack is
9569 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9570 isn't defined for __longjmp_cancel.
9571 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9572 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9573 and SHADOW_STACK_POINTER_OFFSET is defined.
9574 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9575 (setjmp): Save shadow stack pointer if shadow stack is enabled
9576 and SHADOW_STACK_POINTER_OFFSET is defined.
9577 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9578 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9579 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9580 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9581 <jmp_buf-ssp.h>.
9582 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9583 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9584 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9585 Remove jmp_buf-ssp.sym.
9586 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9587 <jmp_buf-ssp.h>.
9588 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9589 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9590 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9591 jmp_buf-ssp.sym.
9592 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9593 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9594 (__longjmp): Restore shadow stack pointer if shadow stack is
9595 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9596 isn't defined for __longjmp_cancel.
9597 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9598 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9599 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9600
9601 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9602
9603 [BZ #22563]
9604 * nptl/pthread_create.c: Include <tls-setup.h>.
9605 (__pthread_create_2_1): Call tls_setup_tcbhead.
9606 * sysdeps/generic/tls-setup.h: New file.
9607 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9608 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9609 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9610 Likewise.
9611 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9612 to feature_1.
9613 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9614 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9615 (X86_FEATURE_1_SHSTK): Likewise.
9616 (CET_ENABLED): Likewise.
9617 (IBT_ENABLED): Likewise.
9618 (SHSTK_ENABLED): Likewise.
9619
9620 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9621
9622 [BZ #23208]
9623 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9624 (LOCALES): Likewise.
9625 * localedata/dsb_DE.UTF-8.in: New file.
9626 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9627
9628 2018-07-12 Florian Weimer <fweimer@redhat.com>
9629
9630 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9631 __mprotect, not mprotect.
9632
9633 2018-07-11 Florian Weimer <fweimer@redhat.com>
9634
9635 * io/Makefile (headers): Add bits/statx.h.
9636
9637 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9638
9639 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9640 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9641 and headers.
9642 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9643 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9644 for utf8_gen.py
9645
9646 2018-07-10 Florian Weimer <fweimer@redhat.com>
9647
9648 * io/Makefile (routines): Add statx.
9649 (tests-internal): Add tst-statx.
9650 * io/Versions (GLIBC_2.28): Export statx.
9651 * io/bits/statx.h: New file.
9652 * io/sys/stat.h [__USE_GNU]: Include it.
9653 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9654 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9655 Define.
9656 * io/statx.c: New file.
9657 * io/statx_generic.: Likewise.
9658 * io/tst-statx.: Likewise.
9659 * include/bits/statx.h: Likewise.
9660 * sysdeps/unix/sysv/linux/kernel-features.h
9661 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9662 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9663 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9664 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9665 Undefine.
9666 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9667 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9668 * sysdeps/unix/sysv/linux/statx.c: New file.
9669 * manual/filesys.texi: Note that statx is undocumented.
9670 * sysdeps/**/libc*.abilist: Update.
9671
9672 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9673
9674 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9675 a kernel issue which lead to test failure in some cases.
9676
9677 2018-07-10 Florian Weimer <fweimer@redhat.com>
9678
9679 [BZ #23036]
9680 * posix/regexec.c (check_node_accept_bytes): When comparing
9681 weights, do not compare an extra byte after the end of the
9682 weights.
9683
9684 2018-07-10 Florian Weimer <fweimer@redhat.com>
9685
9686 * libio/readline.c: Fix copyright year.
9687 * libio/tst-readline.c Likewise.
9688 * nss/tst-nss-files-hosts-getent.c: Likewise.
9689
9690 2018-07-06 Florian Weimer <fweimer@redhat.com>
9691
9692 [BZ #18991]
9693 * nss/nss_files/files-XXX.c (internal_getent): Use
9694 __libc_readline_unlocked. Seek back to the start of the line if
9695 parsing failes with ERANGE.
9696 (get_contents_ret, get_contents): Remove.
9697 * nss/tst-nss-files-hosts-getent.c: New file.
9698 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9699 (tst-nss-files-hosts-getent): Link with -ldl.
9700
9701 2018-07-06 Florian Weimer <fweimer@redhat.com>
9702
9703 * include/stdio.h (__libc_readline_unlocked): Declare.
9704 (__ftello64, __fseeko64): Declare aliases.
9705 * libio/readline.c: New file.
9706 * libio/tst-readline.c: Likewise.
9707 (routines): Add readline.
9708 (tests-internal): Add tst-readlime.
9709 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9710 __libc_readline_unlocked.
9711 * libio/fseeko.c (__fseeko): Rename from fseeko.
9712 (fseeko): Add alias.
9713 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9714 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9715 (fseeko64): Add alias.
9716 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9717 * libio/ftello64.c (__ftello64): Rename from ftello64.
9718 (ftello64): Add alias.
9719
9720 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9721
9722 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9723 HWCAP_ATOMICS.
9724
9725 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9726
9727 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9728 Use dl_hwcap without masking.
9729 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9730 Remove HWCAP_CPUID.
9731
9732 2018-07-06 Florian Weimer <fweimer@redhat.com>
9733
9734 * conform/conformtest.pl (checknamespace): Escape literal braces
9735 in regular expressions.
9736
9737 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9738
9739 * sysdeps/x86/cpu-features.c (get_common_indeces):
9740 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9741 * sysdeps/x86/cpu-features.c (init_cpu_features):
9742 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9743
9744 2018-07-05 Florian Weimer <fweimer@redhat.com>
9745
9746 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9747 protector.
9748 (CFLAGS-elf-init.oS): Likewise.
9749
9750 2018-07-05 Florian Weimer <fweimer@redhat.com>
9751 Carlos O'Donell <carlos@redhat.com>
9752
9753 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9754 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9755 with stack protector enabled because there is no risk of infinite
9756 recursion.
9757
9758 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9759
9760 [BZ #19818]
9761 [BZ #23307]
9762 * libc-abis (ABSOLUTE): New ABI.
9763 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9764 * NEWS: Mention the new ABI.
9765
9766 2018-07-05 Florian Weimer <fweimer@redhat.com>
9767
9768 [BZ # 17662]
9769 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9770 (RENAME_WHITEOUT): Define.
9771 [__USE_GNU] (renameat2): Declare.
9772 * stdio-common/Makefile (routines): Add renameat2.
9773 (tests): Add tst-renameat2.
9774 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9775 * stdio-common/renameat2.c: New file.
9776 * stdio-common/tst-renameat2.c: Likewise.
9777 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9778 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9779 undocumented.
9780 * sysdeps/unix/sysv/linux/kernel-features.h
9781 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9782 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9783 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9784 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9785 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9786 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9787 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9788 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9789 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9790 * include/stdio.h (__renameat): Add alias for renameat.
9791 * stdio-common/renameat.c (__renameat): Rename from renameat.
9792 Add hidden definition and alias.
9793 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9794 * sysdeps/mach/hurd/renameat.c: Likewise.
9795 * sysdeps/**/libc*.abilist: Add renameat2.
9796
9797 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9798
9799 * posix/bug-regex33.c: Fix build after regex sync.
9800
9801 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9802
9803 [BZ #23164]
9804 * localedata/tst-langinfo-setlocale.c: New file.
9805 * localedata/tst-langinfo-setlocale-static.c: New file.
9806 * localedata/tst-langinfo-newlocale.c: New file.
9807 * localedata/tst-langinfo-newlocale-static.c: New file.
9808 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9809 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9810 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9811 (tests-static): Remove tst-langinfo-static. Add
9812 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9813 (tests-special): Remove $(objpfx)tst-langinfo.out,
9814 $(objpfx)tst-langinfo-static.out. Add
9815 $(objpfx)tst-langinfo-setlocale.out,
9816 $(objpfx)tst-langinfo-newlocale.out,
9817 $(objpfx)tst-langinfo-setlocale-static.out,
9818 $(objpfx)tst-langinfo-newlocale-static.out.
9819 ($(objpfx)tst-langinfo.out): Remove.
9820 ($(objpfx)tst-langinfo-static.out): Remove.
9821 ($(objpfx)tst-langinfo-newlocale.out): New target.
9822 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9823 (test-xfail-tst-langinfo-newlocale-static): Add.
9824 ($(objpfx)tst-langinfo-setlocale.out): New target.
9825 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9826 * localedata/tst-langinfo.c: Call test_locale.
9827 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9828 data.
9829
9830 2018-07-04 Florian Weimer <fweimer@redhat.com>
9831
9832 testrun.sh: Implement --tool=strace, --tool=valgrind
9833 * Makefile (testrun-script): Define variable.
9834 (testrun.sh): Use variable.
9835 * manual/install.texi (Tools for Compilation): make 4.0 or later
9836 is required.
9837 * configure.ac: Check for make 4.0 or later.
9838 * INSTALL: Regenerate.
9839 * configure: Likewise.
9840
9841 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9842
9843 [BZ #23233]
9844 [BZ #21163]
9845 [BZ #18986]
9846 [BZ #13762]
9847 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9848 * posix/PCRE.tests: Remove invalid test.
9849 * posix/bug-regex28.c: Fix expected values for used syntax.
9850 * posix/bug-regex37.c: New file.
9851 * posix/bug-regex38.c: Likewise.
9852 * posix/regcomp.c: Sync with gnulib.
9853 * posix/regex.c: Likewise.
9854 * posix/regex.h: Likewise.
9855 * posix/regex_internal.c: Likewise.
9856 * posix/regex_internal.h: Likewise.
9857 * posix/regexec.c: Likewise.
9858
9859 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9860
9861 [BZ #23308]
9862 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9863 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9864 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9865 * localedata/unicode-gen/PropList.txt: likewise.
9866 * localedata/unicode-gen/UnicodeData.txt: likewise.
9867 * localedata/charmaps/UTF-8: Regenerate.
9868 * localedata/locales/i18n_ctype: likewise.
9869 * localedata/locales/tr_TR: likewise.
9870 * localedata/locales/translit_circle: likewise.
9871 * localedata/locales/translit_cjk_compat: likewise.
9872 * localedata/locales/translit_combining: likewise.
9873 * localedata/locales/translit_compat: likewise.
9874 * localedata/locales/translit_font: likewise.
9875 * localedata/locales/translit_fraction: likewise.
9876
9877 2018-07-03 Florian Weimer <fweimer@redhat.com>
9878
9879 [BZ #23363]
9880 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9881 * stdio-common/tst-printf.sh: Adjust expected output.
9882 * LICENSES: Update.
9883
9884 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9885
9886 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9887 symbol.
9888
9889 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9890
9891 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9892 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9893 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9894 * stdio-common/tst-printfsz-islongdouble.c: New file.
9895 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9896 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9897 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9898 [subdir == stdio-common] (tests-internal): Add
9899 test-printf-size-ieee128, and test-printf-size-ibm128.
9900 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9901 (CFLAGS-test-printf-size-ibm128.c): New variables.
9902 [subdir == stdio-common] (tests-special): Add
9903 $(objpfx)test-printf-size-ieee128.out and
9904 $(objpfx)test-printf-size-ibm128.out.
9905 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9906 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9907 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9908 __printf_sizeieee128.
9909 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9910 New file.
9911 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9912 Likewise.
9913 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9914 Likewise.
9915
9916 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9917
9918 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9919 (exp2f_inline): Likewise.
9920 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9921 (__math_uflowf): Likewise.
9922 (__math_may_uflowf): Likewise.
9923 (__math_divzerof): Likewise.
9924 (__math_invalidf): Likewise.
9925 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9926 (__math_oflowf): Likewise.
9927 (__math_uflowf): Likewise.
9928 (__math_may_uflowf): Likewise.
9929 (__math_divzerof): Likewise.
9930 (__math_invalidf): Likewise.
9931
9932 2018-06-29 DJ Delorie <dj@redhat.com>
9933 Carlos O'Donell <carlos@redhat.com>
9934
9935 [BZ #23329]
9936 * include/libc-symbols.h: Comment the freeres framework.
9937 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9938 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9939 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9940 * dlfcn/dlerror.c: Include libc-symbols.h
9941 (__dlerror_main_freeres): New function.
9942 * dlfcn/dlfreeres.c: New file.
9943 * dlfcn/sdlfreeres.c: New file.
9944 * include/dlfcn.h: Declare __dlerror_main_freeres.
9945 * malloc/set-freeres.c: Declare __libdl_freeres, and
9946 __libpthread_freeres.
9947 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9948 the releavant libraries are loaded.
9949 * malloc/thread-freeres.c: Add comments.
9950 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9951 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9952 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9953 (__free_stacks): Rename to...
9954 (free_stacks): ...this. Mark static.
9955 (queue_stack): Call free_stacks.
9956 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9957 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9958 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9959 ptr_freeres element from struct.
9960 (pthread_functions): Remove .ptr_freeres from struct initializer.
9961 [SHARED] (nptl_freeres): Remove.
9962 * nptl/nptlfreeres.c: New file.
9963 * nptl/pthreadP.h
9964 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9965 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9966 attribute_hidden.
9967 (__free_stacks): Rename to...
9968 (__nptl_stacks_freeres): ...this.
9969 (__shm_directory_freeres): Declare.
9970 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9971 (__nptl_unwind_freeres): ...this.
9972 * resolv/res-close.c: Add comment.
9973 * resolv/resolv_conf.c: Include libc-symbols.h.
9974 * string/strerror_l.c: Include libc-symbols.h.
9975 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9976 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9977 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9978 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9979
9980 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9981
9982 * stdlib/tst-strfmon_l.c: Add tests for long double.
9983
9984 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9985
9986 [BZ #23208]
9987 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9988 * localedata/locales/dsb_DE: New file.
9989
9990 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9991
9992 [BZ #23140]
9993 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9994 genitive case).
9995 (alt_mon): New entry, import from CLDR (nominative case).
9996
9997 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9998
9999 [BZ #22996]
10000 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10001
10002 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10003
10004 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10005 Use vector registers.
10006
10007 * sysdeps/aarch64/multiarch/memmove_falkor.S
10008 (__memcpy_falkor): Use vector registers.
10009
10010 2018-06-29 Martin Sebor <msebor@redhat.com>
10011
10012 * manual/stdio.texi (Customizing Printf): Mention interaction
10013 with GCC built-ins.
10014
10015 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10016
10017 [BZ #23307]
10018 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10019 `st_value' is 0 if `st_shndx' is SHN_ABS.
10020 * elf/tst-absolute-zero.c: New file.
10021 * elf/tst-absolute-zero-lib.c: New file.
10022 * elf/tst-absolute-zero-lib.lds: New file.
10023 * elf/Makefile (tests): Add `tst-absolute-zero'.
10024 (modules-names): Add `tst-absolute-zero-lib'.
10025 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10026 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10027 ($(objpfx)tst-absolute-zero: New dependency.
10028
10029 2018-06-29 Zack Weinberg <zackw@panix.com>
10030
10031 * configure.ac: New command-line option --disable-crypt.
10032 Force --disable-nss-crypt when --disable-crypt is given, with a
10033 warning if it was explicitly enabled.
10034 * configure: Regenerate.
10035 * config.make.in: New boolean substitution variable $(build-crypt).
10036 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10037 when $(build-crypt).
10038 * manual/install.texi: Document --disable-crypt.
10039 * INSTALL: Regenerate.
10040
10041 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10042 which is never set.
10043 * conform/Makefile: Only include libcrypt.a in
10044 linknamespace-libs-xsi and linknamespace-libs-XPG4
10045 when $(build-crypt).
10046 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10047 USE_CRYPT to 1 when $(build-crypt).
10048 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10049 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10050 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10051
10052 2018-06-29 Zack Weinberg <zackw@panix.com>
10053
10054 * crypt/crypt.h, posix/unistd.h: Update comments and
10055 prototypes for crypt and crypt_r.
10056
10057 * manual/crypt.texi (Cryptographic Functions): New initial
10058 exposition.
10059 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10060 (Unpredictable Bytes): Improve initial exposition. Clarify error
10061 behavior of getentropy and getrandom.
10062 * manual/examples/genpass.c: Generate a salt using getentropy
10063 instead of the current time. Use hash $5$ (SHA-2-256).
10064 * manual/examples/testpass.c: Demonstrate validation against
10065 hashes generated with three different one-way functions.
10066
10067 * manual/intro.texi: crypt.texi does not need an overview
10068 anymore.
10069
10070 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10071 * manual/terminal.texi: Consistently refer to "passphrases"
10072 * instead of "passwords", and to the "user database" instead
10073 * of the "password database".
10074 * manual/users.texi: Similarly. Add notes about how actual
10075 passphrase hashes are now stored in the shadow database.
10076 Remove 20-year-old junk todo note.
10077
10078 2018-06-29 Zack Weinberg <zackw@panix.com>
10079
10080 * manual/crypt.texi: Use a normal top-level @node declaration.
10081 Move most of the introductory text to the 'crypt' section.
10082 Move the example programs below the @deftypefun for 'crypt_r'.
10083 Move the 'getpass' section...
10084 * manual/terminal.texi: ...here.
10085
10086 2018-06-29 Zack Weinberg <zackw@panix.com>
10087 Florian Weimer <fweimer@redhat.com>
10088
10089 * posix/unistd.h: Do not declare encrypt.
10090 (_XOPEN_CRYPT): Remove macro definition.
10091 (crypt): Declare only for _USE_MISC.
10092 * stdlib/stdlib.h: Do not declare setkey.
10093 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10094 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10095
10096 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10097 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10098 into compat symbols. Don't define initial_perm if it's not
10099 going to be used.
10100 * crypt/cert.c: Link explicitly with the expected versions for
10101 setkey and encrypt. If they are not available at all, mark
10102 the test as unsupported.
10103
10104 * sunrpc/des_crypt.c: Unconditionally block linkage with
10105 cbc_crypt and ecb_crypt for new binaries.
10106 * sunrpc/des_soft.c: Unconditionally block linkage with
10107 des_setparity for new binaries.
10108
10109 * manual/crypt.texi: Remove the entire "DES Encryption"
10110 section. Also remove the paragraph talking about FIPS 140-2
10111 from the introduction.
10112 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10113 of libgcrypt for "real" encryption, not DES.
10114 * manual/conf.texi (Constants for Sysconf): Mention that
10115 _XOPEN_CRYPT is no longer impelemented.
10116
10117 * conform/data/unistd.h-data: Remove crypt function declaration.
10118
10119 2018-06-29 Florian Weimer <fweimer@redhat.com>
10120
10121 [BZ #23351]
10122 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10123 (disallow_malloc_check): Remove variable.
10124 (__malloc_check_init): Adjust.
10125 (malloc_set_state): Update comment.
10126 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10127 declarations.
10128
10129 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10130
10131 [BZ #23140]
10132 * localedata/locales/ast_ES (mon): Rename to...
10133 (alt_mon): This.
10134 (mon): Import from CLDR (genitive case).
10135
10136 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10137 Jakub Sitnicki <jkbs@redhat.com>
10138
10139 [BZ #21812]
10140 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10141 on NLM_F_DUMP_INTR.
10142
10143 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10144
10145 * manual/llio.texi: Remove spurious space.
10146
10147 2018-06-28 Florian Weimer <fweimer@redhat.com>
10148
10149 [BZ #23349]
10150 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10151 _STRUCT_TIMESPEC.
10152
10153 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10154
10155 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10156 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10157 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10158 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10159 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10160 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10161 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10162
10163 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10164
10165 [BZ #23266]
10166 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10167 Copy and null-terminate entries that are not terminated, in
10168 addition to empty ones.
10169
10170 2018-06-27 Florian Weimer <fweimer@redhat.com>
10171
10172 [BZ #18023]
10173 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10174 (extend_alloca_account): Remove.
10175 * manual/stdio.texi (Variable Arguments Output): Update comment.
10176
10177 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10178
10179 * nptl/sockperf.c: Remove file.
10180
10181 2018-06-27 Florian Weimer <fweimer@redhat.com>
10182
10183 [BZ #18023]
10184 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10185 scratch_buffer instead of extend_alloca.
10186
10187 2018-06-27 Florian Weimer <fweimer@redhat.com>
10188
10189 [BZ #18023]
10190 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10191 scratch_buffer instead of extend_alloca. Update comments.
10192
10193 2018-06-27 Florian Weimer <fweimer@redhat.com>
10194
10195 [BZ #18023]
10196 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10197 instead of extend_alloca.
10198
10199 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10200
10201 [BZ #13888]
10202 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10203 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10204 /tmp.
10205 * scripts/test-installation.pl: Put temporary files in build
10206 directory, not /tmp.
10207 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10208 (CFLAGS-bug4.c): Likewise.
10209 (CFLAGS-bug5.c): Likewise.
10210 (CFLAGS-test-fseek.c): Likewise.
10211 (CFLAGS-test-popen.c): Likewise.
10212 (CFLAGS-test_rdwr.c): Likewise.
10213 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10214 /tmp.
10215 * stdio-common/bug4.c (main): Likewise.
10216 * stdio-common/bug5.c (main): Likewise.
10217 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10218 * stdio-common/test-popen.c (do_test): Likewise.
10219 * stdio-common/test_rdwr.c (main): Likewise.
10220
10221 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10222
10223 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10224 (sem_open): Set sem.newsem.pad to zero for valgrind.
10225
10226 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10227
10228 [BZ #20251]
10229 * NEWS: Mention fcntl64 addition.
10230 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10231 * login/utmp_file.c: Likewise.
10232 * sysdeps/posix/fdopendir.c: Likewise.
10233 * sysdeps/posix/opendir.c: Likewise.
10234 * sysdeps/unix/pt-fcntl.c: Likewise.
10235 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10236 __fcntl64_nocancel_adjusted): New prototype.
10237 (__fcntl_nocancel_adjusted): Remove prototype.
10238 * io/Makefile (routines): Add fcntl64.
10239 (CFLAGS-fcntl64.c): New rule.
10240 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10241 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10242 * io/fcntl.h (fcntl64): Add prototype and redirect if
10243 __USE_FILE_OFFSET64 is defined.
10244 * io/fcntl64.c: New file.
10245 * manual/llio.text: Add a note for which commands fcntl acts a
10246 cancellation point.
10247 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10248 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10249 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10250 New symbols.
10251 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10252 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10253 non-LFS case.
10254 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10255 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10256 to __fcntl64_nocancel.
10257 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10258 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10259 to __fcntl64_nocancel.
10260 * sysdeps/generic/not-cancel.h: Likewise.
10261 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10262 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10263 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10264 (fcntl64): New symbol.
10265 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10266 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10267 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10270 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10271 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10272 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10273 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10274 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10275 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10276 fcntl64): Likewise.
10277 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10278 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10279 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10280 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10281 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10282 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10283 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10284 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10285 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10287 Likewise.
10288 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10289 Likewise.
10290 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10291 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10292 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10293
10294 2018-06-26 Florian Weimer <fweimer@redhat.com>
10295
10296 Run thread shutdown functions in an explicit order.
10297 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10298 definition.
10299 (__libc_thread_freeres): Call thread shutdown functions
10300 explicitly.
10301 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10302 * include/string.h (__strerror_thread_freeres): Declare.
10303 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10304 arena_thread_freeres. No longer static. Remove thread shutdown
10305 hook registration.
10306 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10307 Declare.
10308 * resolv/res-close.c (__res_thread_freeres): Renamed from
10309 res_thread_freeres. No longer static. Remove thread shutdown
10310 hook registration.
10311 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10312 * resolv/resolv_conf.c (freeres): Remove incorrect section
10313 attribute and use libc_freeres_fn.
10314 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10315 strerror_thread_freeres. No longer static. Remove thread
10316 shutdown hook registration.
10317 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10318 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10319 shutdown hook registration.
10320 * Makerules (shlib.lds): Do not provide section boundary symbols
10321 for __libc_thread_subfreeres.
10322 * manual/memory.texi (Basic Allocation): Update comment.
10323
10324 2018-06-26 Florian Weimer <fweimer@redhat.com>
10325
10326 Remove always-defined _RPC_THREAD_SAFE_ macro.
10327 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10328 Do not define _RPC_THREAD_SAFE_.
10329 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10330 conditional.
10331 * sunrpc/clnt_perr.c: Likewise.
10332 * sunrpc/clnt_raw.c: Likewise.
10333 * sunrpc/clnt_simp.c: Likewise.
10334 * sunrpc/key_call.c: Likewise.
10335 * sunrpc/rpc_common.c: Likewise.
10336 * sunrpc/rpc_main.c: Likewise.
10337 * sunrpc/rpc_thread.c: Likewise.
10338 * sunrpc/svc.c: Likewise.
10339 * sunrpc/svc_raw.c: Likewise.
10340 * sunrpc/svc_simple.c: Likewise.
10341 * sumrpc/svcauth_des.c: Likewise.
10342
10343 2018-06-26 Florian Weimer <fweimer@redhat.com>
10344
10345 * libio/Makefile (tests-internal): Add tst-vtables,
10346 tst-vtables-interposed.
10347 * libio/tst-vtables.c: New file.
10348 * libio/tst-vtables-common.c: Likewise.
10349 * libio/tst-vtables-interposed.c: Likewise.
10350
10351 2018-06-26 Florian Weimer <fweimer@redhat.com>
10352
10353 * support/support_test_main.c (support_test_main): Only call
10354 setvbuf if not disables.
10355 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10356 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10357
10358 2018-06-26 Florian Weimer <fweimer@redhat.com>
10359
10360 [BZ #23313]
10361 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10362
10363 2018-06-25 Florian Weimer <fweimer@redhat.com>
10364
10365 [BZ #18023]
10366 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10367 Use struct scratch_buffer instead of extend_alloca.
10368
10369 2018-06-25 Florian Weimer <fweimer@redhat.com>
10370
10371 [BZ #18023]
10372 * nss/getent.c (initgroups_keys): Use dynarray instead of
10373 extend_alloca.
10374
10375 2018-06-25 Florian Weimer <fweimer@redhat.com>
10376
10377 [BZ #18023]
10378 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10379 Use struct scratch_buffer instead of extend_alloca.
10380
10381 2018-06-25 Florian Weimer <fweimer@redhat.com>
10382
10383 [BZ #18023]
10384 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10385 back to malloc directly, without stack allocations.
10386
10387 2018-06-25 Florian Weimer <fweimer@redhat.com>
10388
10389 [BZ #18023]
10390 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10391 of extend_alloca.
10392
10393 2018-06-25 Florian Weimer <fweimer@redhat.com>
10394
10395 [BZ #18023]
10396 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10397 of extend_alloca.
10398 * nscd/hstcache.c (addhstbyX): Likewise.
10399 * nscd/pwdcache.c (addpwbyX): Likewise.
10400 * nscd/servicescache.c (addservbyX): Likewise.
10401
10402 2018-06-25 Florian Weimer <fweimer@redhat.com>
10403
10404 [BZ #18023]
10405 * nscd/connections.c (read_cmdline): New function.
10406 (restart): Use it. Update comment.
10407
10408 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10409
10410 [BZ #23140]
10411 * localedata/locales/csb_PL (mon): Rename to...
10412 (alt_mon): This.
10413 (abmon): Rename to...
10414 (ab_alt_mon): This.
10415 (mon): Add with proper genitive forms, copy from Wikipedia.
10416 (abmon): Likewise.
10417
10418 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10419
10420 [BZ #19485]
10421 * localedata/locales/csb_PL (mon): Fix typos:
10422 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10423 (yesstr): Add, value is "jo".
10424 (nostr): Add, value is "nié".
10425
10426 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10427
10428 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10429 all log1p and significand functions on m680x0.
10430 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10431 of s_significand.c..
10432 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10433 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10434 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10435 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10436 s_log1p.c and include it..
10437
10438 2018-06-21 Vincent Chen <vincentc@andestech.com>
10439
10440 * elf/elf.h (R_NDS32_NONE): New define.
10441 (R_NDS32_32_RELA): Likewise.
10442 (R_NDS32_COPY): Likewise.
10443 (R_NDS32_GLOB_DAT): Likewise.
10444 (R_NDS32_JUMP_SLOT): Likewise.
10445 (R_NDS32_RELATIVE): Likewise.
10446 (R_NDS32_TLS_TPOFF): Likewise.
10447 (R_NDS32_TLS_DESC): Likewise.
10448
10449 2018-06-21 Mark Wielaard <mark@klomp.org>
10450
10451 * elf/elf.h (R_BPF_MAP_FD): Removed.
10452 (R_BPF_64_64, R_BPF_64_32): New.
10453
10454 2018-06-21 Florian Weimer <fweimer@redhat.com>
10455
10456 [BZ #23253]
10457 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10458 Renamed from libc_feholdsetround_ctx.
10459 (default_libc_feresetround_ctx): Renamed from
10460 libc_feresetround_ctx.
10461 (default_libc_feholdsetround_noex_ctx): Renamed from
10462 libc_feholdsetround_noex_ctx.
10463 (default_libc_feresetround_noex_ctx): Renamed from
10464 libc_feresetround_noex_ctx.
10465 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10466 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10467 forwardning to the old implementations under the new names.
10468 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10469 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10470 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10471 (libc_feresetround_ctx): Forward to default implements for i386
10472 and MATH_SET_BOTH_ROUNDING_MODES.
10473 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10474 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10475
10476 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10477
10478 * string/tst-cmp.c: Include <libc-diag.h>.
10479 (strncmp_max): Disable -Wstringop-overflow= around call to
10480 strncmp.
10481 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10482 strncasecmp.
10483
10484 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10485 (main): Disable -Wunused-value around call to strpbrk.
10486 * string/bug-strspn1.c: Include <libc-diag.h>.
10487 (main): Disable -Wunused-value around call to strspn.
10488
10489 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10490 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10491
10492 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10493 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10494
10495 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10496
10497 * math/Makefile (libm-calls): Move s_significandF to...
10498 (gen-libm-calls): ... here.
10499 * math/s_significand_template.c: New file.
10500 * math/s_significand.c: Removed.
10501 * math/s_significandf.c: Removed.
10502 * math/s_significandl.c: Removed.
10503 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10504 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10505
10506 * math/e_exp2_template.c (declare_mgen_finite_alias,
10507 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10508 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10509 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10510
10511 2018-06-20 Florian Weimer <fweimer@redhat.com>
10512
10513 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10514
10515 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10516
10517 [BZ #23280]
10518 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10519 floating-point number to strtod functions rather than possibly
10520 negating result of those functions.
10521 * stdio-common/tst-scanf-round.c: New file.
10522 * stdio-common/Makefile (tests): Add tst-scanf-round.
10523 ($(objpfx)tst-scanf-round): Depend on $(libm).
10524
10525 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10526
10527 * sysdeps/mach/hurd/localplt.data: Move to...
10528 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10529 R_386_GLOB_DAT like on Linux i386.
10530
10531 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10532
10533 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10534 (SHM_STAT_ANY): New macro.
10535 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10536 (SHM_STAT_ANY): Likewise.
10537 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10538 (SHM_STAT_ANY): Likewise.
10539 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10540 (SHM_STAT_ANY): Likewise.
10541 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10542 (SHM_STAT_ANY): Likewise.
10543 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10544 (SHM_STAT_ANY): Likewise.
10545 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10546 (SHM_STAT_ANY): Likewise.
10547 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10548 (SHM_STAT_ANY): Likewise.
10549 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10550 (SHM_STAT_ANY): Likewise.
10551 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10552 (SHM_STAT_ANY): Likewise.
10553 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10554 (SHM_STAT_ANY): Likewise.
10555 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10556 (SHM_STAT_ANY): Likewise.
10557
10558 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10559 (SEM_STAT_ANY): New macro.
10560 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10561 (SEM_STAT_ANY): Likewise.
10562 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10563 (SEM_STAT_ANY): Likewise.
10564 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10565 (SEM_STAT_ANY): Likewise.
10566 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10567 (SEM_STAT_ANY): Likewise.
10568 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10569 (SEM_STAT_ANY): Likewise.
10570 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10571 (SEM_STAT_ANY): Likewise.
10572 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10573 (SEM_STAT_ANY): Likewise.
10574 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10575 (SEM_STAT_ANY): Likewise.
10576 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10577 (SEM_STAT_ANY): Likewise.
10578
10579 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10580 (MSG_STAT_ANY): New macro.
10581 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10582 (MSG_STAT_ANY): Likewise.
10583 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10584 (MSG_STAT_ANY): Likewise.
10585 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10586 (MSG_STAT_ANY): Likewise.
10587 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10588 (MSG_STAT_ANY): Likewise.
10589 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10590 (MSG_STAT_ANY): Likewise.
10591 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10592 (MSG_STAT_ANY): Likewise.
10593 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10594 (MSG_STAT_ANY): Likewise.
10595 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10596 (MSG_STAT_ANY): Likewise.
10597 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10598 (MSG_STAT_ANY): Likewise.
10599
10600 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10601 (MAP_TYPE): Change value to 0x2b.
10602
10603 2018-06-18 Florian Weimer <fweimer@redhat.com>
10604
10605 [BZ #15722]
10606 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10607 socket with SOCK_CLOEXEC.
10608
10609 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10610
10611 [BZ #23303]
10612 * sysdeps/powerpc/powerpc64/le/Makefile
10613 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10614 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10615 (gnulib-tests): Also add $(f128-loader-link) for
10616 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10617
10618 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10619
10620 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10621 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10622 of sendfile.
10623 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10624 (sendfile64): New strong alias.
10625 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10626 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10627 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10628 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10629 attribute.
10630 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10631 ___pthread_get_cleanup_stack.
10632 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10633 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10634 * mach/shortcut.awk: Make syscall stubs include
10635 <mach-shortcuts-hidden.h> and add hidden definition.
10636 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10637 (__mach_msg): Add hidden prototype.
10638 * mach/msg.c: Include <mach.h>.
10639 (__mach_msg): Add hidden definition.
10640 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10641 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10642 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10643 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10644 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10645 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10646 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10647 prototype and definition.
10648 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10649 hidden target for _hurd_self_sigstate.
10650
10651 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10652
10653 [BZ #23007]
10654 * stdlib/tst-strtod-nan-sign-main.c: New file.
10655 * stdlib/tst-strtod-nan-sign.c: Likewise.
10656 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10657 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10658 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10659 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10660 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10661
10662 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10663
10664 [BZ #23007]
10665 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10666 appropriate sign.
10667
10668 2018-06-14 Florian Weimer <fweimer@redhat.com>
10669
10670 [BZ #23290]
10671 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10672 that the result stays within the ISO-8859-1 range.
10673 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10674 characters are defined in IBM273.
10675
10676 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10677
10678 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10679 __mach_task_self): Remove attribute_hidden.
10680
10681 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10682
10683 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10684 ignore -Wrestrict for one test.
10685
10686 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10687 Szabolcs Nagy <szabolcs.nagy@arm.com>
10688
10689 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10690
10691 2018-06-14 Florian Weimer <fweimer@redhat.com>
10692
10693 * scripts/update-abilist.sh: Accept empty list of files to patch.
10694
10695 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10696
10697 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10698 test-xfail-check-abi-libmachuser): Add.
10699 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10700 __libc_read and __libc_write to __read and __write.
10701 * sysdeps/hurd/include/hurd/port.h: New file.
10702 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10703 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10704 __thread_switch, __evc_wait): Move declarations to...
10705 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10706 attribute_hidden.
10707 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10708 use PLT to call _hurd_self_sigstate.
10709
10710 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10711
10712 [BZ #23279]
10713 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10714 MAX_EXP as overflowing.
10715 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10716 overflow flag.
10717 (round_str): Output also whether result overflows in each rounding
10718 mode.
10719 * stdlib/tst-strtod-round-data: Add more tests.
10720 * stdlib/tst-strtod-round-data.h: Regenerated.
10721 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10722 (TEST): Handle extra arguments for overflow flags.
10723 (struct test_overflow): New type.
10724 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10725 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10726 (test_in_one_mode): Take argument with overflow information.
10727 (do_test): Update calls to test_in_one_mode.
10728
10729 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10730
10731 * elf/dl-load (_dl_dst_substitute): Correct comment.
10732 (_dl_dst_count): Likewise.
10733
10734 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10735 lll_futex_timed_wait.
10736
10737 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10738
10739 [BZ #23277]
10740 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10741 attribute.
10742 * math/test-nan-const.c: New file.
10743 * math/Makefile (tests): Add test-nan-const.
10744 (CFLAGS-test-nan-const.c): New variable.
10745
10746 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10747
10748 * benchtests/scripts/compare_strings.py (process_results): Add
10749 funcs argument. Compare only functions which are selected.
10750 (main): Check if base function is among selected functions.
10751 Pass selected functions to process_results.
10752 (__main__): Add -f/--functions argument.
10753
10754 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10755 Hongbo Zhang <hongbo.zhang@linaro.org>
10756
10757 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10758 __memcpy_falkor for phecda core.
10759 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10760 __memmove_falkor for phecda core.
10761 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10762 __memset_falkor for phecda core.
10763 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10764 for phecda core.
10765 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10766 macro to identify phecda core.
10767
10768 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10769 Andreas Schwab <schwab@suse.de>
10770 Dmitry V. Levin <ldv@altlinux.org>
10771 Florian Weimer <fweimer@redhat.com>
10772
10773 [BZ #23102]
10774 [BZ #21942]
10775 [BZ #18018]
10776 [BZ #23259]
10777 CVE-2011-0536
10778 * elf/dl-dst.h: Remove DL_DST_COUNT.
10779 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10780 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10781 (is_dst): Comment. Support ELF gABI.
10782 (_dl_dst_count): Comment. Simplify and count DSTs.
10783 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10784 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10785 locals.
10786
10787 2018-06-12 Zack Weinberg <zackw@panix.com>
10788
10789 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10790 * sysdeps/unix/sysv/linux/dl-sysdep.c
10791 Include not-cancel.h. Use __close_nocancel instead of __close,
10792 __open64_nocancel instead of __open, __read_nocancel instead of
10793 __libc_read, and __write_nocancel instead of __libc_write.
10794
10795 * csu/check_fds.c (check_one_fd)
10796 * sysdeps/posix/fdopendir.c (__fdopendir)
10797 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10798 instead of __fcntl and/or __libc_fcntl.
10799
10800 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10801 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10802 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10803 Use __open64_nocancel instead of __open_nocancel.
10804
10805 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10806 hidden_proto declarations to the end and issue them if either
10807 IS_IN(libc) or IS_IN(rtld).
10808 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10809 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10810 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10811 read_nocancel, waitpid_nocancel, write_nocancel.
10812
10813 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10814 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10815 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10816
10817 * nptl/pt-fcntl.c: New file.
10818 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10819 (libpthread-routines): Add pt-fcntl.
10820 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10821 (__libc_fcntl): Remove attribute_hidden.
10822 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10823 __fcntl_nocancel_adjusted, not fcntl_common.
10824 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10825 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10826 to fcntl_nocancel.c.
10827 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10829 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10830 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10831
10832 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10833 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10834 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10835 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10836 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10837 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10838 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10839 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10840 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10841 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10842 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10843 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10844 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10845 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10846 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10847 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10848 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10849 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10850 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10851 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10852
10853 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10854 libpthread-routines.
10855 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10856 defines nothing.
10857
10858 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10859 __libc_read, and __write instead of __libc_write. Define
10860 __open64 in addition to __open.
10861
10862 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10863
10864 [BZ #23250]
10865 [BZ #10686]
10866 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10867 to _private_tm[3] and add __glibc_reserved2.
10868 Add _Static_assert of offset of __private_ss == 0x30.
10869 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10870 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10871
10872 2018-06-12 Florian Weimer <fweimer@redhat.com>
10873
10874 x86: Make strncmp usable from rtld.
10875 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10876 __strncmp_ia32 if in libc (and not in rtld).
10877 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10878 strncmp if not in libc (and not to __strncmp_sse2).
10879
10880 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10881
10882 [BZ #23140]
10883 * localedata/locales/gd_GB (mon): Rename to...
10884 (alt_mon): This.
10885 (mon): Import from CLDR (genitive case).
10886 * localedata/locales/hsb_DE (mon): Rename to...
10887 (alt_mon): This.
10888 (mon): Import from CLDR (genitive case).
10889 * localedata/locales/wa_BE (mon): Rename to...
10890 (alt_mon): This.
10891 (mon): Add, fill with the proper genitive forms, but CLDR data
10892 is incomplete; completed according to the comments in this file.
10893 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10894
10895 * localedata/locales/wa_BE (country_name): Reword
10896 "Beljike" -> "Beldjike".
10897
10898 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10899
10900 [BZ #23272]
10901 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10902 cases of non-finite arguments.
10903 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10904
10905 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10906
10907 [BZ #23174]
10908 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10909
10910 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10911
10912 [BZ #23264]
10913 * include/unistd.h (__execvpex): New prototype.
10914 * posix/Makefile (tests): Add tst-spawn4.
10915 (tests-internal): Add tst-spawn4-compat.
10916 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10917 * posix/tst-spawn4-compat.c: New file.
10918 * posix/tst-spawn4.c: Likewise.
10919 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10920 binaries as shell scripts.
10921 * sysdeps/posix/spawni.c (__spawni): Likewise.
10922
10923 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10924
10925 [BZ #23145]
10926 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10927 ($(all-built-dso:=.dynsym): New target.
10928 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10929 ($(objpfx)check-initfini.out): New target.
10930 (generated): Add check-initfini.out.
10931 * scripts/check-initfini.awk: New file.
10932 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10933 (_fini): Likewise.
10934 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10935 (_fini): Likewise.
10936 * sysdeps/arm/crti.S (_init): Mark as hidden.
10937 (_fini): Likewise.
10938 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10939 (_fini): Likewise.
10940 * sysdeps/i386/crti.S (_init): Mark as hidden.
10941 (_fini): Likewise.
10942 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10943 (_fini): Likewise.
10944 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10945 (_fini): Likewise.
10946 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10947 (_fini): Likewise.
10948 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10949 (_fini): Likewise.
10950 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10951 (_fini): Likewise.
10952 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10953 (_fini): Likewise.
10954 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10955 (_fini): Likewise.
10956 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10957 (_fini): Likewise.
10958 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10959 (_fini): Likewise.
10960 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10961 (_fini): Likewise.
10962 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10963 (_fini): Likewise.
10964 * sysdeps/sh/crti.S (_init): Mark as hidden.
10965 (_fini): Likewise.
10966 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10967 (_fini): Likewise.
10968 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10969 (_fini): Likewise.
10970
10971 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10972
10973 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10974 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10975 and TF redirection to KFtype and KF only when the default
10976 long double type is not the IEEE 128-bit floating point type.
10977
10978 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10979
10980 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10981 macro.
10982 (HWCAP_USCAT): Likewise.
10983 (HWCAP_ILRCPC): Likewise.
10984 (HWCAP_FLAGM): Likewise.
10985 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10986 Increase to 28.
10987 (_dl_aarch64_cap_flags): Add new flag names.
10988
10989 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10990 (MAP_FIXED_NOREPLACE): New macro.
10991 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10992 (MAP_FIXED_NOREPLACE): Likewise.
10993 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10994 (MAP_FIXED_NOREPLACE): Likewise.
10995 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10996 (MAP_FIXED_NOREPLACE): Likewise.
10997 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10998 (MAP_FIXED_NOREPLACE): Likewise.
10999 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11000 (MAP_FIXED_NOREPLACE): Likewise.
11001 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11002 (MAP_FIXED_NOREPLACE): Likewise.
11003 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11004 (MAP_FIXED_NOREPLACE): Likewise.
11005 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11006 (MAP_FIXED_NOREPLACE): Likewise.
11007 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11008 (MAP_FIXED_NOREPLACE): Likewise.
11009 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11010 (MAP_FIXED_NOREPLACE): Likewise.
11011 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11012 (MAP_FIXED_NOREPLACE): Likewise.
11013 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11014 (MAP_FIXED_NOREPLACE): Likewise.
11015 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11016 (MAP_FIXED_NOREPLACE): Likewise.
11017 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11018 (MAP_FIXED_NOREPLACE): Likewise.
11019
11020 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11021 version to 4.17.
11022
11023 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11024
11025 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11026 version to 4.17
11027
11028 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11029
11030 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11031 int.
11032 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11033
11034 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11035
11036 * benchtests/scripts/compare_string.py: (process_results) Catch
11037 exception in non-existent base_func and catch exception in
11038 non-existent attribute.
11039 (parse_file) Catch exception if input file does not exist.
11040
11041 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11042
11043 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11044 options to avoid diff calculation and omit header, respectively.
11045 (main): process --no-diff and --no-header
11046
11047 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11048 H.J. Lu <hongjiu.lu@intel.com>
11049
11050 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11051 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11052 wcsncmp-sse2.
11053 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11054 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11055 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11056 and __wcsncmp_sse2.
11057 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11058 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11059 AVX unaligned load is fast and vzeroupper is preferred.
11060 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11061 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11062 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11063 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11064 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11065 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11066 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11067 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11068 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11069 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11070 is undefined.
11071
11072 2018-06-01 Florian Weimer <fweimer@redhat.com>
11073
11074 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11075 configuring with --disable-multi-arch, building with
11076 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11077 Haswell-era CPU.
11078
11079 2018-06-01 Florian Weimer <fweimer@redhat.com>
11080
11081 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11082 results from building with “-march=x86-64 -mtune=generic
11083 -mfpmath=sse” and running on a Haswell-era CPU.
11084
11085 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11086
11087 [BZ #18473]
11088 * soft-fp/sqrttf2.c: Remove file.
11089 * soft-fp/sqrtdf2.c: Move to ....
11090 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11091 <shlib-compat.h>.
11092 (__sqrtdf2): Make conditional on
11093 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11094 symbol.
11095 * soft-fp/sqrtsf2.c: Move to ....
11096 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11097 <shlib-compat.h>.
11098 (__sqrtsf2): Make conditional on
11099 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11100 symbol.
11101 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11102 (gcc-double-routines): Remove sqrtdf2.
11103 (gcc-quad-routines): Remove sqrttf2.
11104 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11105 Do not filter out sqrtsf2 and sqrtdf2.
11106 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11107 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11108
11109 2018-06-01 Florian Weimer <fweimer@redhat.com>
11110
11111 * sysdeps/generic/libcidn.abilist: Remove file.
11112
11113 2018-06-01 Florian Weimer <fweimer@redhat.com>
11114
11115 [BZ #23236]
11116 * libio/strfile.h (struct _IO_str_fields): Rename members to
11117 discourage their use and add comment.
11118 (_IO_STR_DYNAMIC): Remove unused macro.
11119 * libio/strops.c (_IO_str_init_static_internal): Do not use
11120 callback pointers. Call malloc and free.
11121 (_IO_str_overflow): Do not use callback pointers. Call malloc
11122 and free.
11123 (enlarge_userbuf): Likewise.
11124 (_IO_str_finish): Call free.
11125 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11126 _allocate_buffer_unused.
11127 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11128 and free.
11129 (enlarge_userbuf): Likewise.
11130 (_IO_wstr_finish): Call free.
11131 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11132 _allocate_buffer_unused, _free_buffer_unused.
11133 * libio/memstream.c (__open_memstream): Likewise.
11134 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11135 * libio/wmemstream.c (open_wmemstream): Likewise.
11136
11137 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11138
11139 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11140 AMD Ryzen 7 1800X.
11141
11142 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11143
11144 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11145 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11146 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11147 New file.
11148 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11149 Likewise.
11150 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11151
11152 2018-05-29 Florian Weimer <fweimer@redhat.com>
11153
11154 * support/Makefile (libsupport-routines): Add
11155 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11156 xpthread_barrierattr_setpshared.
11157 * support/xpthread_barrierattr_destroy.c: New file.
11158 * support/xpthread_barrierattr_init.c: Likewise.
11159 * support/xpthread_barrierattr_setpshared.c: Likewise.
11160
11161 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11162
11163 [BZ #23206]
11164 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11165 _r_debug and update DT_DEBUG for debugger.
11166
11167 2018-05-29 Florian Weimer <fweimer@redhat.com>
11168
11169 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11170 (tst-strtod5i.out): Likewise.
11171
11172 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11173
11174 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11175 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11176 (sparc64-quad-routines): New variable. Moved from ....
11177 [$(subdir) = soft-fp] (sysdep_routines): Add
11178 $(sparc64-quad-routines). Moved from ....
11179 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11180 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11181 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11182 moved from ....
11183 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11184 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11185 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11186 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11187 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11188 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11189 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11190 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11191 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11192 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11193 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11194 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11195 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11196 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11197 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11198 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11199 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11200 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11201 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11202 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11203 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11204 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11205 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11206 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11207 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11208 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11209 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11210 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11211 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11212 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11213 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11214 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11215 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11216 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11217 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11218 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11219 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11220 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11221 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11222 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11223 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11224 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11225 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11226 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11227 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11228 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11229 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11230 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11231 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11232 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11233 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11234 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11235 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11236 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11237 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11238 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11239 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11240 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11241
11242 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11243 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11244 (sparc32-quad-routines): New variable. Moved from ....
11245 [$(subdir) = soft-fp] (sysdep_routines): Add
11246 $(sparc32-quad-routines). Moved from ....
11247 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11248 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11249 moved from ....
11250 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11251 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11252 * sysdeps/sparc/sparc32/q_add.c: ... here.
11253 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11254 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11255 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11256 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11257 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11258 * sysdeps/sparc/sparc32/q_div.c: ... here.
11259 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11260 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11261 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11262 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11263 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11264 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11265 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11266 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11267 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11268 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11269 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11270 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11271 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11272 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11273 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11274 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11275 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11276 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11277 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11278 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11279 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11280 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11281 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11282 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11283 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11284 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11285 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11286 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11287 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11288 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11289 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11290 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11291 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11292 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11293 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11294 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11295 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11296 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11297 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11298 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11299 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11300 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11301 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11302 * sysdeps/sparc/sparc32/q_util.c: ... here.
11303 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11304 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11305 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11306 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11307
11308 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11309 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11310
11311 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11312 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11313 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11314 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11315
11316 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11317
11318 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11319 powerpc/soft-fp.
11320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11321 Likewise.
11322 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11323 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11324
11325 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11326
11327 [BZ #23171]
11328 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11329 double version.
11330
11331 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11332
11333 * sysdeps/sh/Implies: Remove sh/soft-fp.
11334 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11335 * sysdeps/sh/sfp-machine.h: ... here.
11336
11337 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11338
11339 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11340 (__mempcpy_erms): Skip zero length.
11341 (__memmove_erms): Likewise.
11342 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11343 (__memset_erms): Likewise.
11344
11345 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11346
11347 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11348 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11349 Add functions moved from ....
11350 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11351 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11352 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11353 from ....
11354 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11355 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11356 * sysdeps/alpha/e_sqrtl.c: ... here.
11357 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11358 * sysdeps/alpha/local-soft-fp.h: ... here.
11359 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11360 * sysdeps/alpha/ots_add.c: ... here.
11361 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11362 * sysdeps/alpha/ots_cmp.c: ... here.
11363 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11364 * sysdeps/alpha/ots_cmpe.c: ... here.
11365 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11366 * sysdeps/alpha/ots_cvtqux.c: ... here.
11367 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11368 * sysdeps/alpha/ots_cvtqx.c: ... here.
11369 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11370 * sysdeps/alpha/ots_cvttx.c: ... here.
11371 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11372 * sysdeps/alpha/ots_cvtxq.c: ... here.
11373 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11374 * sysdeps/alpha/ots_cvtxt.c: ... here.
11375 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11376 * sysdeps/alpha/ots_div.c: ... here.
11377 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11378 * sysdeps/alpha/ots_mul.c: ... here.
11379 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11380 * sysdeps/alpha/ots_nintxq.c: ... here.
11381 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11382 * sysdeps/alpha/ots_sub.c: ... here.
11383 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11384 * sysdeps/alpha/sfp-machine.h: ... here.
11385
11386 2018-05-23 Florian Weimer <fweimer@redhat.com>
11387
11388 [BZ #19728]
11389 [BZ #19729]
11390 [BZ #22247]
11391 CVE-2016-6261
11392 CVE-2016-6263
11393 CVE-2017-14062
11394 Switch to extern IDNA implementation (libidn2).
11395 * libidn: Remove subdirectory.
11396 * LICENSES: Do not mention licensing conditions for the removed
11397 libidn code.
11398 * config.h.in (HAVE_LIBIDN): Remove.
11399 * include/dlfcn.h (__libc_dlopen): Update comment.
11400 * include/idna.h: Remove file.
11401 * inet/Makefile (routines): Add idna.
11402 (tests-static, tests-internal): Add tst-idna_name_classify.
11403 (LOCALES): Generate locales for tests.
11404 (tst-idna_name_classify.out): Depend on generated locales.
11405 * inet/idna_name_classify.c: New file.
11406 * inet/tst-idna_name_classify.c: Likewise.
11407 * inet/net-internal.h (__idna_to_dns_encoding)
11408 (__idna_from_dns_encoding): Declare.
11409 * inet/net-internal.h (enum idna_name_classification): Define.
11410 (__idna_name_classify): Declare.
11411 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11412 __idna_from_dns_encoding.
11413 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11414 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11415 name as a fallback in case of encoding errors.
11416 (getnameinfo): Use DEPRECATED_NI_IDN.
11417 * inet/idna.c: New file.
11418 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11419 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11420 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11421 (modules-names): Add tst-no-libidn2.
11422 (extra-test-objs): Add tst-no-libidn2.os.
11423 (LDFLAGS-tst-no-libidn2.so): Set soname.
11424 (LOCALES): Set, and generate locales.
11425 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11426 (tst-resolv-ai_idn-latin1): Likewise.
11427 (tst-resolv-ai_idn-nolibidn2): Likewise.
11428 (tst-resolv-ai_idn.out): Depend on locales.
11429 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11430 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11431 tst-no-libidn2.so.
11432 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11433 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11434 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11435 * resolv/tst-resolv-ai_idn.c: New file.
11436 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11437 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11438 * resolv/tst-no-libidn2.c: Likewise.
11439 * support/support_format_addrinfo.c (format_ai_flags): Do not
11440 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11441 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11442 (gaih_inet): Call __idna_to_dns_encoding and
11443 __idna_from_dns_encoding, and use the original (punycode) name if
11444 __idna_from_dns_encoding fails due to an encoding error.
11445 (getaddrinfo): Use DEPRECATED_AI_IDN.
11446 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11447 * sysdeps/unix/inet/configure: Remove file.
11448 * sysdeps/unix/inet/configure.ac: Likewise.
11449
11450 2018-05-23 Florian Weimer <fweimer@redhat.com>
11451
11452 Implement allocate_once.
11453 * include/allocate_once.h: New file.
11454 * misc/allocate_once.c: Likewise.
11455 * misc/tst-allocate_once.c: Likewise.
11456 * misc/Makefile (routines): Add allocate_once.
11457 (tests-internal): Add tst-allocate_once.
11458 (generated): Add tst-allocate_once.mtrace,
11459 tst-allocate_once-mem.out.
11460 (tests-special): Add tst-allocate_once-mem.out.
11461 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11462 (tst-allocate_once-mem.out): Call mtrace.
11463 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11464
11465 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11466
11467 [BZ #23196]
11468 * string/test-memcpy.c (do_test1): New function.
11469 (test_main): Call it.
11470
11471 2018-05-23 Andreas Schwab <schwab@suse.de>
11472
11473 [BZ #23196]
11474 CVE-2018-11237
11475 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11476 (L(preloop_large)): Save initial destination pointer in %r11 and
11477 use it instead of %rax after the loop.
11478 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11479
11480 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11481
11482 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11483 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11484 -I../soft-fp. Moved from ....
11485 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11486 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11487 * sysdeps/aarch64/e_sqrtl.c: ... here.
11488 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11489 * sysdeps/aarch64/sfp-machine.h: ... here.
11490
11491 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11492 -Wmaybe-uninitialized around access to fq[0].
11493 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11494 Likewise.
11495
11496 [BZ #18471]
11497 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11498 aliases for non-libc case of versioned symbols.
11499 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11500 (llseek): Define as compat symbol if
11501 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11502 with link warning.
11503 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11504 Make into a compat symbol, disabled for minimum symbol version
11505 GLIBC_2.28 and later.
11506 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11507
11508 2018-05-22 Florian Weimer <fweimer@redhat.com>
11509
11510 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11511 not add -mpreferred-stack-boundary=4.
11512 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11513 (stack-align-test-flags): Likewise.
11514 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11515 Likewise.
11516 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11517 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11518 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11519 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11520 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11521 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11522 (CFLAGS-tst-align2.c): Likewise.
11523
11524 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11525
11526 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11527 (index_arch_Prefer_FSRM): Likewise.
11528 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11529 Also check Prefer_FSRM.
11530 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11531 Also return OPTIMIZE (erms) for Prefer_FSRM.
11532
11533 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11534
11535 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11536 (index_cpu_FSRM): Likewise.
11537 (reg_FSRM): Likewise.
11538
11539 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11540
11541 * math/gen-tgmath-tests.py: Import sys.
11542 (Tests.__init__): Initialize macros_seen.
11543 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11544 if requested to do so for this macro.
11545 (Tests.add_all_tests): Take argument for macro for which to
11546 generate tests.
11547 (Tests.check_macro_list): New function.
11548 (main): Handle check-list argument and argument specifying macro
11549 for which to generate tests.
11550 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11551 [PYTHON] (tgmath3-macro-tests): Likewise.
11552 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11553 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11554 not test-tgmath3.c.
11555 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11556 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11557 to CFLAGS.
11558 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11559 [PYTHON] ($(foreach
11560 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11561 rule.
11562 [PYTHON] (tests-special): Add
11563 $(objpfx)test-tgmath3-macro-list.out.
11564 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11565
11566 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11567 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11568 later.
11569
11570 [BZ #22639]
11571 * time/tzset.c (SECSPERDAY): Cast to time_t.
11572 * time/tst-y2039.c: New file.
11573 * time/Makefile (tests): Add tst-y2039.
11574
11575 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11576
11577 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11578 (PREFETCH_ONE_SET): Remove duplicate line.
11579
11580 2018-05-17 Florian Weimer <fweimer@redhat.com>
11581
11582 * sysdeps/generic/math-type-macros-double.h: Include
11583 <math-nan-payload-double.h> after <libm-alias-double.h>.
11584 * sysdeps/generic/math-type-macros-float.h: Include
11585 <math-nan-payload-float.h> after <libm-alias-float.h>.
11586 * sysdeps/generic/math-type-macros-float128.h: Include
11587 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11588 * sysdeps/generic/math-type-macros-ldouble.h: Include
11589 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11590
11591 2018-05-17 Andreas Schwab <schwab@suse.de>
11592
11593 * resolv/res_send.c (__res_context_send): Don't set errno when
11594 returing error after malloc failure.
11595
11596 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11597
11598 * nptl/allocatestack.c (allocate_stack): Remove the
11599 !__ASSUME_PRIVATE_FUTEX paths.
11600 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11601 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11602 Likewise.
11603 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11604 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11605 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11606 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11607 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11608 !__ASSUME_PRIVATE_FUTEX path.
11609 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11610 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11611 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11612 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11613 !__ASSUME_PRIVATE_FUTEX macros.
11614 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11615 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11616 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11617 * sysdeps/unix/sysv/linux/kernel-features.h
11618 (__ASSUME_PRIVATE_FUTEX): Removed.
11619
11620 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11621
11622 * math/Makefile (libm-narrow-fns): Add div.
11623 (libm-test-funcs-narrow): Likewise.
11624 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11625 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11626 * math/gen-auto-libm-tests.c (test_functions): Add div.
11627 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11628 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11629 (NARROW_DIV_TRIVIAL): Likewise.
11630 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11631 macro.
11632 (__ddivl): Likewise.
11633 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11634 ddiv.
11635 (CFLAGS-nldbl-ddiv.c): New variable.
11636 (CFLAGS-nldbl-fdiv.c): Likewise.
11637 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11638 __nldbl_ddivl.
11639 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11640 prototype.
11641 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11642 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11643 * math/auto-libm-test-in: Add tests of div.
11644 * math/auto-libm-test-out-narrow-div: New generated file.
11645 * math/libm-test-narrow-div.inc: New file.
11646 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11647 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11648 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11649 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11650 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11651 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11652 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11653 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11654 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11655 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11656 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11657 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11658 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11659 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11660 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11661 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11662 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11663 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11664 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11665 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11690
11691 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11692
11693 [BZ #23178]
11694 * nscd/nscd-client.h (sendfileall): Remove prototype.
11695 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11696 (handle_request): Use writeall instead of sendfileall.
11697 * nscd/aicache.c (addhstaiX): Likewise.
11698 * nscd/grpcache.c (cache_addgr): Likewise.
11699 * nscd/hstcache.c (cache_addhst): Likewise.
11700 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11701 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11702 * nscd/pwdcache.c (cache_addpw): Likewise.
11703 * nscd/servicescache.c (cache_addserv): Likewise.
11704 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11705 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11706 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11707 Remove define.
11708
11709 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11710
11711 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11712 Include <string/strncat.c>.
11713 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11714 alias.
11715 (__GI___strncat): New hidden alias.
11716
11717 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11718
11719 * sysdeps/mips/mips32/libm-test-ulps: Update.
11720 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11721
11722 2018-05-16 Florian Weimer <fweimer@redhat.com>
11723
11724 * support/Makefile (libsupport-routines): Add support_quote_blob,
11725 support_test_compare_blob.
11726 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11727 * support/check.h (TEST_COMPARE_BLOB): Define.
11728 (support_test_compare_blob): Declare.
11729 * support/support.h (support_quote_blob): Declare.
11730 * support/support_quote_blob.c: New file.
11731 * support/support_test_compare_blob.c: Likewise.
11732 * support/tst-support_quote_blob.c: Likewise.
11733 * support/tst-test_compare_blob.c: Likewise.
11734
11735 2018-05-16 Florian Weimer <fweimer@redhat.com>
11736
11737 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11738 of <strtod_nan_double.h>.
11739 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11740 instead of SET_MANTISSA.
11741 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11742 of include <strtod_nan_float.h>.
11743 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11744 instead of <strtod_nan_ldouble.h>.
11745 * stdlib/strtod_nan_double.h: Move to ...
11746 * sysdeps/generic/math-nan-payload-double.h: ... here.
11747 (FLOAT): Remove definition.
11748 (SET_MANTISSA): Rename to ...
11749 (SET_NAN_PAYLOAD): ... this.
11750 * stdlib/strtod_nan_float.h: Move to ...
11751 * sysdeps/generic/math-nan-payload-float.h: ... here.
11752 (FLOAT): Remove definition.
11753 (SET_MANTISSA): Rename to ...
11754 (SET_NAN_PAYLOAD): ... this.
11755 * sysdeps/generic/math-type-macros-double.h: Include
11756 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11757 instead of <math-svid-compat.h>.
11758 * sysdeps/generic/math-type-macros-float.h: Include
11759 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11760 instead of <math-svid-compat.h>.
11761 * sysdeps/generic/math-type-macros-float128.h: Include
11762 <math-nan-payload-float128.h>.
11763 * sysdeps/generic/math-type-macros-ldouble.h: Include
11764 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11765 instead of <math-svid-compat.h>.
11766 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11767 check for definition.
11768 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11769 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11770 Include <ieee754_float128.h>.
11771 (FLOAT): Remove definition.
11772 (SET_MANTISSA): Rename to ...
11773 (SET_NAN_PAYLOAD): ... this.
11774 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11775 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11776 Do not include <float128_private.h>.
11777 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11778 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11779 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11780 (FLOAT): Remove definition.
11781 (SET_MANTISSA): Rename to ...
11782 (SET_NAN_PAYLOAD): ... this.
11783 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11784 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11785 (FLOAT): Remove definition.
11786 (SET_MANTISSA): Rename to ...
11787 (SET_NAN_PAYLOAD): ... this.
11788 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11789 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11790 (FLOAT): Remove definition.
11791 (SET_MANTISSA): Rename to ...
11792 (SET_NAN_PAYLOAD): ... this.
11793 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11794 of "../stdlib/strtod_nan_double.h".
11795 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11796 of "../stdlib/strtod_nan_float.h".
11797 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11798 instead of "../stdlib/strtod_nan_ldouble.h".
11799 * manual/arith.texi (Parsing of Floats): Adjust comment.
11800
11801 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11802
11803 * math/Makefile (libm-narrow-fns): Add mul.
11804 (libm-test-funcs-narrow): Likewise.
11805 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11806 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11807 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11808 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11809 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11810 (NARROW_MUL_TRIVIAL): Likewise.
11811 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11812 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11813 macro.
11814 (__dmull): Likewise.
11815 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11816 dmul.
11817 (CFLAGS-nldbl-dmul.c): New variable.
11818 (CFLAGS-nldbl-fmul.c): Likewise.
11819 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11820 __nldbl_dmull.
11821 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11822 prototype.
11823 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11824 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11825 * math/auto-libm-test-in: Add tests of mul.
11826 * math/auto-libm-test-out-narrow-mul: New generated file.
11827 * math/libm-test-narrow-mul.inc: New file.
11828 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11829 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11830 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11831 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11832 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11833 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11834 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11835 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11836 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11837 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11838 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11839 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11840 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11841 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11842 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11843 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11844 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11845 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11846 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11847 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11856 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11857 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11865 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11871 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11872
11873 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11874
11875 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11876 with *%eax in call.
11877
11878 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11879
11880 * sysdeps/i386/ldsodefs.h: Removed.
11881 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11882 * sysdeps/x86/ldsodefs.h: This.
11883 (La_i86_regs): New.
11884 (La_i86_retval): Likewise.
11885 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11886 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11887
11888 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11889
11890 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11891 unnecessary testl.
11892
11893 2018-05-13 Alan Modra <amodra@gmail.com>
11894
11895 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11896 R_PARISC_TLS_DTPOFF32 reloc addend.
11897
11898 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11899
11900 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11901 * math/math.h: Restrict the prototype definition for the functions
11902 issignaling(_Float128) and iszero(_Float128); and template
11903 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11904 __HAVE_FLOAT128_UNLIKE_LDBL.
11905 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11906 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11907 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11908 __f128() constants; define the type _Float128 as long double;
11909 and reuse long double in __CFLOAT128.
11910
11911 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11912
11913 * sysdeps/generic/math_private.h: Do not include
11914 <math-barriers.h>.
11915 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11916 <math_private.h>.
11917 * math/fromfp.h: Include <math-barriers.h>.
11918 * math/math-narrow.h: Likewise.
11919 * math/s_nextafter.c: Likewise.
11920 * math/s_nexttowardf.c: Likewise.
11921 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11922 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11923 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11924 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11925 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11926 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11927 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11928 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11929 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11930 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11931 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11932 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11933 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11934 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11935 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11936 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11937 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11938 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11939 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11940 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11941 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11942 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11943 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11944 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11945 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11946 * sysdeps/ieee754/k_standardl.c: Likewise.
11947 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11948 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11949 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11950 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11951 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11952 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11953 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11954 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11955 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11956 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11957 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11958 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11959 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11960 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11961 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11962 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11963 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11964 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11965 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11966 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11967 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11968 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11969
11970 2018-05-11 Florian Weimer <fweimer@redhat.com>
11971
11972 Use 64-bit epoch values in the time zone file parser.
11973 * include/time.h (internal_time_t): Define.
11974 (__tzfile_compute): Use it.
11975 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11976 member.
11977 (transitions): Switch to internal_time_t.
11978 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11979 types.
11980 (__tzfile_compute): Use internal_time_t for timer argument. Check
11981 for truncation before calling __offtime.
11982
11983 2018-05-11 Florian Weimer <fweimer@redhat.com>
11984
11985 [BZ #23166]
11986 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11987 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11988 Likewise.
11989 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11990 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11991 export without --enable-obsolete-rpc.
11992 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11993 symbol. This should not have been exported, ever.
11994
11995 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11996
11997 [BZ #23152]
11998 * localedata/locales/gd_GB (abmon): Fix typo in May:
11999 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12000
12001 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12002
12003 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12004 Use multiple registers to copy data in loop tail.
12005
12006 * sysdeps/aarch64/multiarch/memmove_falkor.S
12007 (__memmove_falkor): Use multiple registers to move data in
12008 loop tail.
12009
12010 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12011
12012 * math/math-underflow.h: New file.
12013 * sysdeps/generic/math_private.h: Do not include <float.h>.
12014 (fabs_tg): Remove macro. Moved to math-underflow.h.
12015 (min_of_type_f): Likewise.
12016 (min_of_type_): Likewise.
12017 (min_of_type_l): Likewise.
12018 (min_of_type_f128): Likewise.
12019 (min_of_type): Likewise.
12020 (math_check_force_underflow): Likewise.
12021 (math_check_force_underflow_nonneg): Likewise.
12022 (math_check_force_underflow_complex): Likewise.
12023 * math/e_exp2_template.c: Include <math-underflow.h>.
12024 * math/k_casinh_template.c: Likewise.
12025 * math/s_catan_template.c: Likewise.
12026 * math/s_catanh_template.c: Likewise.
12027 * math/s_ccosh_template.c: Likewise.
12028 * math/s_cexp_template.c: Likewise.
12029 * math/s_clog10_template.c: Likewise.
12030 * math/s_clog_template.c: Likewise.
12031 * math/s_csin_template.c: Likewise.
12032 * math/s_csinh_template.c: Likewise.
12033 * math/s_csqrt_template.c: Likewise.
12034 * math/s_ctan_template.c: Likewise.
12035 * math/s_ctanh_template.c: Likewise.
12036 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12037 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12038 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12039 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12040 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12041 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12042 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12043 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12044 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12045 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12046 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12047 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12048 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12049 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12050 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12051 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12052 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12053 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12054 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12055 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12056 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12057 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12058 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12059 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12060 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12061 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12062 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12063 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12064 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12065 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12066 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12067 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12068 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12069 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12070 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12071 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12072 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12073 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12074 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12075 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12076 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12077 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12078 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12079 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12080 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12081 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12082 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12083 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12084 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12085 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12086 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12087 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12088 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12089 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12090 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12091 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12092 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12093 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12094 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12095 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12096 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12097 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12098 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12099 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12100 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12101 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12102 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12103 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12104 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12105 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12106 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12107 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12108 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12109 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12110 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12111 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12112 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12113 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12114 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12115 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12116 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12117 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12118 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12119 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12120
12121 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12122
12123 * sysdeps/generic/math-barriers.h: New file.
12124 * sysdeps/generic/math_private.h [!math_opt_barrier]
12125 (math_opt_barrier): Move to math-barriers.h.
12126 [!math_opt_barrier] (math_force_eval): Likewise.
12127 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12128 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12129 math-barriers.h.
12130 (math_force_eval): Likewise.
12131 * sysdeps/alpha/fpu/math-barriers.h: New file.
12132 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12133 math-barriers.h.
12134 (math_force_eval): Likewise.
12135 * sysdeps/x86/fpu/math-barriers.h: New file.
12136 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12137 math-barriers.h.
12138 (math_force_eval): Likewise.
12139 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12140 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12141 multiple-include guard for rename.
12142 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12143 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12144 math-barriers.h.
12145 (math_force_eval): Likewise.
12146
12147 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12148
12149 [BZ #22786]
12150 CVE-2018-11236
12151 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12152 computation.
12153 * stdlib/Makefile (test-bz22786): New test.
12154 * stdlib/test-bz22786.c: New test.
12155
12156 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12157
12158 * include/math-narrow-eval.h: New file. Contents moved from ....
12159 * sysdeps/generic/math_private.h: ... here.
12160 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12161 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12162 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12163 * stdlib/strtod_l.c: Likewise.
12164 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12165 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12166 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12167 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12168 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12169 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12170 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12171 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12172 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12173 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12174 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12175 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12176 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12177 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12178 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12179 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12180 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12181 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12182 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12183 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12184 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12185 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12186 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12187 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12188 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12189 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12190 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12191 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12192 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12193
12194 2018-05-08 Andreas Schwab <schwab@suse.de>
12195
12196 * sysdeps/nptl/internaltypes.h: Fix comment.
12197
12198 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12199
12200 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12201 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12202 hidden.
12203
12204 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12205
12206 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12207 of I into loop header.
12208 * benchtests/bench-memmove-walk.c
12209 (test_main): Likewise.
12210
12211 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12212
12213 Revert:
12214 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12215 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12216
12217 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12218
12219 [BZ #20419]
12220 * elf/dl-load.c (open_verify): Fix stack overflow.
12221 * elf/Makefile (tst-big-note): New test.
12222 * elf/tst-big-note-lib.S: New.
12223 * elf/tst-big-note.c: New.
12224
12225 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12226
12227 * scripts/abilist.awk: Ignore absolute symbols.
12228 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12229 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12230 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12231 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12232 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12233 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12234 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12235 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12236 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12237 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12238 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12239 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12240 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12241 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12242 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12243 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12244 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12245 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12246 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12247 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12248 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12249 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12250 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12251 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12252 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12253 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12254 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12255 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12256 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12257 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12258 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12259 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12260 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12261 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12262 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12263 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12264 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12265 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12266 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12267 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12271 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12274 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12285 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12286 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12296 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12297 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12299 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12300 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12301 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12302 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12303 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12304 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12305 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12306 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12307 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12308 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12309 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12310 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12311 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12312 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12313 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12314 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12315 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12316 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12317 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12318 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12319 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12320 Likewise.
12321 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12322 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12323 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12324 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12325 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12327 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12328 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12329 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12330 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12332 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12334 Likewise.
12335 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12336 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12337 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12338 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12339 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12342 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12343 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12344 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12345 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12346 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12347 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12348 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12349 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12350 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12356 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12358 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12359 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12360 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12361 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12362 Likewise.
12363 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12364 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12376 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12377 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12378 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12379 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12380 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12381 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12382 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12383 Likewise.
12384 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12385 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12386 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12387 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12388 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12389 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12390 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12391 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12392 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12393 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12394 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12395 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12396 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12397 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12398 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12399 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12400 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12401 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12402 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12403 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12404 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12405 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12406 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12407 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12408 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12409 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12410 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12411 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12414 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12415 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12416 Likewise.
12417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12418 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12419 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12420 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12422 Likewise.
12423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12424 Likewise.
12425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12426 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12427 Likewise.
12428 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12429 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12430 Likewise.
12431 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12432 Likewise.
12433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12436 Likewise.
12437 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12438 Likewise.
12439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12440 Likewise.
12441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12444 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12445 Likewise.
12446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12447 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12449 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12451 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12452 Likewise.
12453 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12454 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12455 Likewise.
12456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12457 Likewise.
12458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12459 Likewise.
12460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12461 Likewise.
12462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12465 Likewise.
12466 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12467 Likewise.
12468 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12469 Likewise.
12470 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12471 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12472 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12473 Likewise.
12474 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12475 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12476 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12477 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12478 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12479 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12480 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12481 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12482 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12483 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12484 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12485 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12486 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12487 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12488 Likewise.
12489 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12490 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12491 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12492 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12493 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12494 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12495 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12496 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12497 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12498 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12499 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12500 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12501 Likewise.
12502 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12503 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12504 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12505 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12506 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12507 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12508 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12509 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12510 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12511 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12512 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12513 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12514 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12515 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12516 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12517 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12518 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12519 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12520 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12521 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12522 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12523 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12524 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12525 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12526 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12527 Likewise.
12528 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12529 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12530 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12531 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12532 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12533 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12534 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12535 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12536 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12537 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12538 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12539 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12540 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12541 Likewise.
12542 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12543 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12544 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12545 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12546 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12547 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12548 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12549 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12550 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12551 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12552 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12553 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12554 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12555 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12556 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12557 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12558 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12559 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12560 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12561 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12562 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12563 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12564 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12565 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12566 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12567 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12568 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12569 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12570 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12571 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12572 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12573 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12574 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12575 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12576 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12577 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12578 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12579 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12580
12581 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12582
12583 [BZ #23137]
12584 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12585 Use atomic_load_acquire to load __tid.
12586
12587 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12588
12589 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12590 Restore the pointer into %rdx, after syscall and use %rdx,
12591 instead of %rsi, to restore context.
12592
12593 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12594
12595 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12596 Pop the pointer into %rdx after syscall and use %rdx, instead
12597 of %rsi, to restore context.
12598
12599 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12600
12601 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12602 handlers after setjmp.
12603 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12604 defined.
12605 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12606 <libc-pointer-arith.h>.
12607 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12608 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12609 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12610 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12611 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12612 * sysdeps/x86/__longjmp_cancel.S: New file.
12613 * sysdeps/x86/longjmp.c: Likewise.
12614 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12615
12616 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12617
12618 * NEWS: Add ustat.h deprecation entry.
12619 * bits/ustat.h: Remove file.
12620 * misc/sys/ustat.h: Likewise.
12621 * misc/ustat.h: Likewise.
12622 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12623 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12624 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12625 compatibility mode.
12626 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12627 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12628 generic Linux implementation.
12629
12630 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12631
12632 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12633 * math/w_expl_compat.c: Likewise.
12634 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12635
12636 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12637
12638 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12639
12640 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12641
12642 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12643 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12644 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12645 Remove.
12646 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12647 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12648 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12649 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12650 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12651 and SYSCALL_LL64.
12652
12653 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12654
12655 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12656
12657 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12658 * math/w_asin_template.c: Likewise.
12659 * math/w_atanh_template.c: Likewise.
12660
12661 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12662
12663 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12664 to powerpc/powerpc64/be for big-endian.
12665 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12666 little-endian.
12667
12668 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12669 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12670 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12671 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12672 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12673 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12674 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12675 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12676 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12677 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12678 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12679 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12680 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12681 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12682 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12683 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12684 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12685 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12686 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12687 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12688 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12689 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12690 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12691 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12692 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12693 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12694 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12695 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12696 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12697 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12698 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12699 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12700
12701 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12702 adjusted to imply powerpc64 and older processors on powerpc64/be.
12703 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12704 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12705 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12706 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12707 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12708 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12709 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12710 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12711 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12712 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12713 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12714 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12715 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12716 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12717 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12718 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12719 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12720 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12721 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12722 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12723 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12724 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12725 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12726 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12727 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12728 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12729 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12730 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12731 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12732 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12733 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12734
12735 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12736 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12737 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12738 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12739
12740 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12741 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12742 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12743 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12744
12745 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12746 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12747 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12748 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12749 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12750 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12751 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12752 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12753 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12754 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12755 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12756
12757 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12758 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12759 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12760 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12761 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12762 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12763 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12764 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12765 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12766 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12767 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12768
12769 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12770 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12771 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12772 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12773 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12774 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12775 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12776 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12777 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12778 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12779 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12780 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12781
12782 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12783 and adjusted to imply olders processors.
12784 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12785 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12786 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12787 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12788 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12789 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12790 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12791 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12792 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12793 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12794 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12795
12796 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12797 powerpc64/le.
12798 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12799 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12800
12801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12802 powerpc64le.
12803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12805
12806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12807 powerpc64/be.
12808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12811
12812 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12813 powerpc64 and adjusted.
12814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12817 Likewise.
12818
12819 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12820
12821 * sysdeps/tile: Remove.
12822 * sysdeps/unix/sysv/linux/tile: Likewise.
12823 * README (tilegx-*-linux-gnu): Remove from list of supported
12824 configurations.
12825 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12826 contribution of support for generic Linux kernel syscall
12827 interface.
12828 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12829 tilegx configurations.
12830 (Config.install_linux_headers): Do not handle tile.
12831 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12832 in comment.
12833 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12834 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12835 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12836 conditional undefine and redefine.
12837 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12838 in comment.
12839 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12840 conditional undefine and redefine.
12841
12842 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12843
12844 * signal/tst-sigaction.c: New file to test BZ #23069.
12845 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12846
12847 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12848
12849 [BZ #22766]
12850 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12851 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12852 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12853 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12854
12855 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12856
12857 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12858 _DIRENT_MATCHES_DIRENT64 is not defined.
12859 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12860 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12861 is defined.
12862 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12863 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12864
12865 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12866
12867 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12868 version to GCC 8 branch.
12869
12870 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12871
12872 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12873 (check_no_hidden): Use type of original function when declaring
12874 alias.
12875
12876 * sysdeps/unix/sysv/linux/sys/ptrace.h
12877 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12878 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12879 (struct __ptrace_seccomp_metadata): New type.
12880 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12881 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12882 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12883 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12884 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12885 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12886 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12887 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12888 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12889 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12890 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12891 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12892 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12893 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12894 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12895 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12896
12897 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12898
12899 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12900 defined.
12901 * dirent/versionsort.c (versionsort): Likewise.
12902 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12903 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12904 * dirent/versionsort64.c (versionsort64): Likewise.
12905 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12906 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12907 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12908 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12909 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12910 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12911 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12912 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12913 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12914 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12915 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12917 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12918 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12919
12920 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12921
12922 * elf/elf.h (NT_PPC_PKEY): New macro.
12923
12924 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12925
12926 [BZ #23094]
12927 * localedata/locales/hr_HR: fix thousands_sep and
12928 mon_thousands_sep
12929
12930 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12931
12932 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12933 (XTABS): Define to TAB3.
12934
12935 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12936
12937 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12938
12939 * dirent/scandir-tail-common.c: New file.
12940 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12941 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12942 * dirent/scandir.c: Use scandir-tail-common.c.
12943 * dirent/scandirat.c: Likewise.
12944 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12945 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12946 if _DIRENT_MATCHES_DIRENT64 is defined.
12947 * dirent/scandirat64.c (scandirat64): Likewise.
12948 * include/dirent.h (__scandir_tail): Only define iff
12949 _DIRENT_MATCHES_DIRENT64 is not defined.
12950 (__scandir64_tail): Define regardless.
12951 (__scandirat, scandirat64): Remove libc_hidden_proto.
12952 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12953 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12954 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12955 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12956 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12957 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12958 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12959
12960 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12961
12962 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12963 New macro.
12964 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12965 Increase to 24.
12966 (_dl_aarch64_cap_flags): Add asimdfhm.
12967
12968 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12969
12970 * sysdeps/nios2/libm-test-ulps: Update.
12971
12972 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12973
12974 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12975 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12976
12977 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12978 requirements.
12979 (_DIRENT_MATCHES_DIRENT64): Undef
12980 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12981 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12982 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12983 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12984 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12985 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12986 use getdents64 syscalls as base.
12987 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12988 symbol if required.
12989 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12990 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12991 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12992 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12993 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12994 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12995 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12996 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12997 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12998 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12999 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13000
13001 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13002
13003 * scripts/test_printers_common.py (init_test): Disable lock elision.
13004
13005 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13006
13007 * math/test-tgmath.c (count_double, count_float,
13008 count_ldouble, count_cdouble, count_cfloat,
13009 count_cldouble): Use volatile int.
13010
13011 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13012
13013 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13014 (conformtest-xfail-conds): Add i386-gnu.
13015 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13016 i386-gnu.
13017 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13018 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13019 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13020 msqid_ds.msg_lrpid): Likewise.
13021 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13022 Likewise.
13023 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13024 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13025 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13026 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13027 unsigned int.
13028 (struct statvfs64): Likewise.
13029 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13030 Likewise.
13031 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13032 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13033 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13034 instead of wait_queue.
13035 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13036 instead of vm_area_struct.
13037 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13038 struct sched_param definition to it.
13039 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13040 * bits/types/struct_sched_param.h: New file.
13041 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13042 <bits/types/struct_sched_param.h> instead of <sched.h>.
13043 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13044 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13045 generic version but include <bits/pthreadtypes.h> to make struct
13046 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13047 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13048 non-compliant.
13049 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13050 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13051 [__USE_XOPEN] (OFDEL): New macro.
13052 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13053 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13054 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13055 prototypes.
13056 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13057 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13058 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13059 non-compliant.
13060 * sysdeps/i386/sys/ucontext.h: Likewise.
13061 * sysdeps/m68k/sys/ucontext.h: Likewise.
13062 * sysdeps/mips/sys/ucontext.h: Likewise.
13063 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13064 * sysdeps/mach/hurd/i386/Makefile
13065 (test-xfail-POSIX/fcntl.h/conform): Add.
13066 (test-xfail-POSIX/signal.h/conform): Add.
13067 (test-xfail-POSIX/semaphore.h/conform): Add.
13068 (test-xfail-POSIX/regex.h/conform): Add.
13069 (test-xfail-POSIX/aio.h/conform): Add.
13070 (test-xfail-POSIX/mqueue.h/conform): Add.
13071 (test-xfail-POSIX/sys/types.h/conform): Add.
13072 (test-xfail-UNIX98/fcntl.h/conform): Add.
13073 (test-xfail-UNIX98/netdb.h/conform): Add.
13074 (test-xfail-UNIX98/signal.h/conform): Add.
13075 (test-xfail-UNIX98/semaphore.h/conform): Add.
13076 (test-xfail-UNIX98/regex.h/conform): Add.
13077 (test-xfail-UNIX98/aio.h/conform): Add.
13078 (test-xfail-UNIX98/ftw.h/conform): Add.
13079 (test-xfail-UNIX98/mqueue.h/conform): Add.
13080 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13081 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13082 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13083 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13084 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13085 (test-xfail-UNIX98/sys/types.h/conform): Add.
13086 (test-xfail-UNIX98/stdlib.h/conform): Add.
13087 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13088 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13089 (test-xfail-POSIX2008/netdb.h/conform): Add.
13090 (test-xfail-POSIX2008/signal.h/conform): Add.
13091 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13092 (test-xfail-POSIX2008/regex.h/conform): Add.
13093 (test-xfail-POSIX2008/aio.h/conform): Add.
13094 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13095 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13096 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13097 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13098 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13099 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13100 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13101 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13102 (test-xfail-XOPEN2K/signal.h/conform): Add.
13103 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13104 (test-xfail-XOPEN2K/regex.h/conform): Add.
13105 (test-xfail-XOPEN2K/aio.h/conform): Add.
13106 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13107 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13108 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13109 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13110 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13111 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13112 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13113 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13114 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13115 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13116 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13117 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13118 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13119 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13120 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13121 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13122 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13123 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13124 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13125 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13126 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13127 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13128 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13129 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13130 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13131 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13132 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13133 i386-gnu.
13134 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13135 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13136
13137 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13138
13139 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13140 --enable-obsolete for powerpc-linux-gnuspe.
13141
13142 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13143
13144 * conform/data/sys/un.h-data: Allow sun_ prefix.
13145 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13146 prototypes.
13147 * sysdeps/mach/include/mach.h: Likewise.
13148 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13149 * sysdeps/mach/include/mach_error.h: Likewise.
13150
13151 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13152
13153 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13154 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13155 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13156 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13157
13158 2018-04-16 Andreas Schwab <schwab@suse.de>
13159
13160 [BZ #19527]
13161 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13162
13163 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13164
13165 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13166 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13167
13168 2018-04-12 DJ Delorie <dj@redhat.com>
13169
13170 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13171 version to 4.16.
13172
13173 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13174
13175 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13176 (struct kernel_sigaction): Use the same definition on 31bit as is used
13177 on 64bit.
13178
13179 2018-04-09 Florian Weimer <fweimer@redhat.com>
13180
13181 [BZ #23037]
13182 * resolv/res_send.c (send_dg): Use designated initializers instead
13183 of assignment to zero-initialize other fields of struct mmsghdr.
13184
13185 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13186
13187 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13188 __READDIR_ALIAS): Undefine after usage.
13189 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13190 __READDIR_R_ALIAS): Likewise.
13191 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13192 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13193 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13194 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13195 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13196 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13197 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13198 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13199 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13200 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13201 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13202 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13203 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13204 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13205 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13206 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13207 * sysdeps/unix/sysv/linux/readdir.c: New file.
13208 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13209 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13210 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13211
13212 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13213
13214 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13215
13216 * manual/charset.texi (Converting a Character): Fix typo.
13217
13218 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13219
13220 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13221
13222 * sysdeps/arm/libm-test-ulps: Update.
13223
13224 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13225 as base implementation.
13226 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13227 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13228 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13229 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13230 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13231 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13232 remove unrequired definitions and update comments.
13233 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13234 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13235 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13236 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13237 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13238 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13239 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13240 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13241 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13242 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13243 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13244 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13245 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13246 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13247 and RESET_SA_RESTORER hooks.
13248
13249 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13250
13251 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13252
13253 2018-04-05 Florian Weimer <fweimer@redhat.com>
13254
13255 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13256 integer overflow, memory leak on error, and indeterminate errno
13257 value. Add a null wide character to terminate the result string.
13258 * manual/charset.texi (Converting a Character): Mention embedded
13259 null bytes in the mbrtowc input string. Explain what happens in
13260 the -2 result case. Do not claim that mbrtowc is simple or
13261 obvious to use. Adjust the description of the code example. Use
13262 @code, not @var, for concrete variables.
13263
13264 2018-04-05 Florian Weimer <fweimer@redhat.com>
13265
13266 * manual/examples/mbstouwcs.c: New file.
13267 * manual/charset.texi (Converting a Character): Include it.
13268
13269 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13270
13271 * include/dirent.h (dirfd): Add hidden proto.
13272 * dirent/dirfd.c (dirfd): Add hidden def.
13273 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13274 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13275
13276 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13277
13278 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13279 sin, cos and sincos to 1 ULP.
13280
13281 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13282
13283 [BZ #19818]
13284 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13285 symbols.
13286 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13287 * elf/tst-absolute-sym.c: New file.
13288 * elf/tst-absolute-sym-lib.c: New file.
13289 * elf/tst-absolute-sym-lib.lds: New file.
13290 * elf/Makefile (tests): Add `tst-absolute-sym'.
13291 (modules-names): Add `tst-absolute-sym-lib'.
13292 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13293 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13294 ($(objpfx)tst-absolute-sym): New dependency.
13295
13296 [BZ #19818]
13297 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13298 parameter.
13299 (SYMBOL_ADDRESS): New macro.
13300 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13301 SYMBOL_ADDRESS for symbol address calculation.
13302 * elf/dl-runtime.c (_dl_fixup): Likewise.
13303 (_dl_profile_fixup): Likewise.
13304 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13305 * elf/rtld.c (dl_main): Likewise.
13306 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13307 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13308 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13309 (elf_machine_rela): Likewise.
13310 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13311 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13312 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13313 (elf_machine_rela): Likewise.
13314 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13315 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13316 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13317 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13318 Likewise.
13319 (elf_machine_reloc): Likewise.
13320 (elf_machine_got_rel): Likewise.
13321 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13322 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13323 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13324 Likewise.
13325 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13326 Likewise.
13327 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13328 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13329 Likewise.
13330 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13331 Likewise.
13332 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13333 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13334 Likewise.
13335 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13336 Likewise.
13337 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13338 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13339
13340 2018-04-04 Zack Weinberg <zackw@panix.com>
13341
13342 * sysdeps/generic/internal-signals.h: Include signal.h,
13343 sigsetops.h, and stdbool.h.
13344 (__libc_signal_block_all): Actually block all signals.
13345 (__libc_signal_block_app): Likewise.
13346 (__libc_signal_restore_set): Actually restore the signal mask.
13347
13348 2018-04-04 Florian Weimer <fweimer@redhat.com>
13349
13350 inet: Actually build and run tst-deadline.
13351 * inet/Makefile (tests-internal): Add tst-deadline and do not
13352 overwrite the variable.
13353 (tests-static-internal): Remove variable.
13354
13355 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13356
13357 [BZ #22947]
13358 * bits/uio-ext.h (RWF_APPEND): New.
13359 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13360 * manual/llio.texi: Document RWF_APPEND.
13361 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13362 (RWF_SUPPORTED): Add RWF_APPEND.
13363
13364 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13365
13366 [BZ #22391]
13367 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13368 check for internal nptl signals.
13369 * nptl/sigaction.c (__sigaction): Likewise.
13370 * signal/sigaddset.c (sigaddset): Likewise.
13371 * signal/sigdelset.c (sigdelset): Likewise.
13372 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13373 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13374 value.
13375 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13376 to filter out internal nptl signals.
13377 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13378 also check realtime signals using standard macros.
13379 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13380 __is_internal_signal, __libc_signal_block_all,
13381 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13382 * sysdeps/nptl/sigfillset.c: Remove file.
13383 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13384 Change return to bool.
13385 (__clear_internal_signals): Remove SIGTIMER clean since it is
13386 equal to SIGCANEL on Linux.
13387 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13388 signal set was constructed using standard functions.
13389
13390 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13391
13392 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13393 ifname is too long.
13394 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13395 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13396 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13397 hidden def.
13398 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13399 * signal/sigaddset.c: Include <sigsetopts.h>.
13400 * signal/sigdelset.c: Likewise.
13401
13402 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13403
13404 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13405 (__cos): Likewise.
13406 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13407 logic as sin and cos.
13408
13409 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13410
13411 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13412 inputs. Return correct sign.
13413 (do_sincos): Remove small input check before do_sin, let do_sin set
13414 the sign.
13415 (__sin): Likewise.
13416 (__cos): Likewise.
13417
13418 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13419
13420 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13421 (do_cos_slow): Likewise.
13422 (do_sin_slow): Likewise.
13423 (reduce_and_compute): Likewise.
13424 (slow): Likewise.
13425 (slow1): Likewise.
13426 (slow2): Likewise.
13427 (sloww): Likewise.
13428 (sloww1): Likewise.
13429 (sloww2): Likewise.
13430 (bslow): Likewise.
13431 (bslow1): Likewise.
13432 (bslow2): Likewise.
13433 (cslow2): Likewise.
13434
13435 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13436
13437 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13438 (do_cos): Remove corp parameter and calculations.
13439 (do_sin): Likewise.
13440 (do_sincos): Remove cor variable.
13441 (__sin): Use do_sincos for huge inputs.
13442 (__cos): Likewise.
13443 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13444 (reduce_and_compute_sincos): Remove unused function.
13445
13446 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13447
13448 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13449 reduce_sincos, improve accuracy to 136 bits.
13450 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13451 (__sin): Use improved reduction and simplified do_sincos calculation.
13452 (__cos): Likewise.
13453 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13454
13455 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13456
13457 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13458 (do_sincos_2): Likewise.
13459 (__sin): Remove middle range reduction case.
13460 (__cos): Likewise.
13461 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13462 reduction case.
13463
13464 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13465
13466 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13467 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13468 inputs.
13469 (__cos): Likewise.
13470 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13471
13472 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13473
13474 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13475 version to 4.16
13476
13477 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13478
13479 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13480 Remove definitions.
13481 (opendir_oflags): Use O_DIRECTORY regardless.
13482 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13483 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13484
13485 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13486
13487 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13488 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13489 macros.
13490 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13491 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13492 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13493 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13494 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13495 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13496
13497 * htl/Makefile: Bump licence to LGPL 2.1+.
13498 * htl/alloca_cutoff.c: Likewise.
13499 * htl/cthreads-compat.c: Likewise.
13500 * htl/lockfile.c: Likewise.
13501 * htl/pt-alloc.c: Likewise.
13502 * htl/pt-cancel.c: Likewise.
13503 * htl/pt-cleanup.c: Likewise.
13504 * htl/pt-create.c: Likewise.
13505 * htl/pt-dealloc.c: Likewise.
13506 * htl/pt-detach.c: Likewise.
13507 * htl/pt-exit.c: Likewise.
13508 * htl/pt-getattr.c: Likewise.
13509 * htl/pt-initialize.c: Likewise.
13510 * htl/pt-internal.h: Likewise.
13511 * htl/pt-join.c: Likewise.
13512 * htl/pt-self.c: Likewise.
13513 * htl/pt-setcancelstate.c: Likewise.
13514 * htl/pt-setcanceltype.c: Likewise.
13515 * htl/pt-sigmask.c: Likewise.
13516 * htl/pt-spin-inlines.c: Likewise.
13517 * htl/pt-testcancel.c: Likewise.
13518 * htl/pt-yield.c: Likewise.
13519 * htl/tests/test-1.c: Likewise.
13520 * htl/tests/test-10.c: Likewise.
13521 * htl/tests/test-11.c: Likewise.
13522 * htl/tests/test-12.c: Likewise.
13523 * htl/tests/test-13.c: Likewise.
13524 * htl/tests/test-14.c: Likewise.
13525 * htl/tests/test-15.c: Likewise.
13526 * htl/tests/test-16.c: Likewise.
13527 * htl/tests/test-17.c: Likewise.
13528 * htl/tests/test-2.c: Likewise.
13529 * htl/tests/test-3.c: Likewise.
13530 * htl/tests/test-4.c: Likewise.
13531 * htl/tests/test-5.c: Likewise.
13532 * htl/tests/test-6.c: Likewise.
13533 * htl/tests/test-7.c: Likewise.
13534 * htl/tests/test-8.c: Likewise.
13535 * htl/tests/test-9.c: Likewise.
13536 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13537 * sysdeps/htl/bits/cancelation.h: Likewise.
13538 * sysdeps/htl/bits/pthread-np.h: Likewise.
13539 * sysdeps/htl/bits/pthread.h: Likewise.
13540 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13541 * sysdeps/htl/bits/semaphore.h: Likewise.
13542 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13543 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13544 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13545 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13546 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13547 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13548 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13549 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13550 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13551 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13552 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13553 * sysdeps/htl/old_pt-atfork.c: Likewise.
13554 * sysdeps/htl/pt-atfork.c: Likewise.
13555 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13556 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13557 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13558 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13559 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13560 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13561 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13562 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13563 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13564 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13565 * sysdeps/htl/pt-attr-init.c: Likewise.
13566 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13567 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13568 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13569 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13570 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13571 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13572 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13573 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13574 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13575 * sysdeps/htl/pt-attr.c: Likewise.
13576 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13577 * sysdeps/htl/pt-barrier-init.c: Likewise.
13578 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13579 * sysdeps/htl/pt-barrier.c: Likewise.
13580 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13581 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13582 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13583 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13584 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13585 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13586 * sysdeps/htl/pt-cond-init.c: Likewise.
13587 * sysdeps/htl/pt-cond-signal.c: Likewise.
13588 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13589 * sysdeps/htl/pt-cond-wait.c: Likewise.
13590 * sysdeps/htl/pt-cond.c: Likewise.
13591 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13592 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13593 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13594 * sysdeps/htl/pt-condattr-init.c: Likewise.
13595 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13596 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13597 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13598 * sysdeps/htl/pt-equal.c: Likewise.
13599 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13600 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13601 * sysdeps/htl/pt-getschedparam.c: Likewise.
13602 * sysdeps/htl/pt-getspecific.c: Likewise.
13603 * sysdeps/htl/pt-init-specific.c: Likewise.
13604 * sysdeps/htl/pt-key-create.c: Likewise.
13605 * sysdeps/htl/pt-key-delete.c: Likewise.
13606 * sysdeps/htl/pt-key.h: Likewise.
13607 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13608 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13609 * sysdeps/htl/pt-mutex-init.c: Likewise.
13610 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13611 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13612 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13613 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13614 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13615 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13616 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13617 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13618 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13619 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13620 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13621 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13622 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13623 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13624 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13625 * sysdeps/htl/pt-mutexattr.c: Likewise.
13626 * sysdeps/htl/pt-once.c: Likewise.
13627 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13628 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13629 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13630 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13631 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13632 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13633 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13634 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13635 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13636 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13637 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13638 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13639 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13640 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13641 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13642 * sysdeps/htl/pt-setschedparam.c: Likewise.
13643 * sysdeps/htl/pt-setschedprio.c: Likewise.
13644 * sysdeps/htl/pt-setspecific.c: Likewise.
13645 * sysdeps/htl/pt-spin.c: Likewise.
13646 * sysdeps/htl/pt-startup.c: Likewise.
13647 * sysdeps/htl/pthread.h: Likewise.
13648 * sysdeps/htl/sem-close.c: Likewise.
13649 * sysdeps/htl/sem-destroy.c: Likewise.
13650 * sysdeps/htl/sem-getvalue.c: Likewise.
13651 * sysdeps/htl/sem-init.c: Likewise.
13652 * sysdeps/htl/sem-open.c: Likewise.
13653 * sysdeps/htl/sem-post.c: Likewise.
13654 * sysdeps/htl/sem-timedwait.c: Likewise.
13655 * sysdeps/htl/sem-trywait.c: Likewise.
13656 * sysdeps/htl/sem-unlink.c: Likewise.
13657 * sysdeps/htl/sem-wait.c: Likewise.
13658 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13659 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13660 * sysdeps/mach/htl/pt-block.c: Likewise.
13661 * sysdeps/mach/htl/pt-spin.c: Likewise.
13662 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13663 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13664 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13665 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13666 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13667 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13668 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13669 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13670 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13671 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13672 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13673 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13674 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13675 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13676 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13677 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13678 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13679 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13680 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13681 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13682 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13683 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13684 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13685 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13686 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13687 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13688 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13689 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13690 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13691 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13692 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13693 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13694 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13695 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13696 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13697 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13698 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13699 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13700 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13701 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13702 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13703 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13704 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13705
13706 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13707 * README: Remove the mention of out-of-tree patches needed for
13708 GNU/Hurd.
13709
13710 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13711 (UTIME_NOW, UTIME_OMIT): Define macros.
13712
13713 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13714 instead of pthread_detach.
13715 (__cthread_fork): Call __pthread_create instead of pthread_create.
13716 (__cthread_keycreate): Call __pthread_key_create instead of
13717 pthread_key_create.
13718 (__cthread_getspecific): Call __pthread_getspecific instead of
13719 pthread_getspecific.
13720 (__cthread_setspecific): Call __pthread_setspecific instead of
13721 pthread_setspecific.
13722 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13723 __pthread_mutex_unlock instead of pthread_mutex_lock and
13724 pthread_mutex_unlock.
13725 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13726 ___pthread_get_cleanup_stack.
13727 (__pthread_get_cleanup_stack): New strong alias.
13728 * htl/pt-create.c: Include <pthreadP.h>.
13729 (entry_point): Call __pthread_exit instead of pthread_exit.
13730 (pthread_create): Rename to __pthread_create.
13731 (pthread_create): New strong alias.
13732 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13733 (pthread_detach): New strong alias.
13734 (__pthread_detach): Call __pthread_cond_broadcast instead of
13735 pthread_cond_broadcast.
13736 * htl/pt-exit.c: Include <pthreadP.h>.
13737 (__pthread_exit): Call __pthread_setcancelstate and
13738 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13739 __pthread_get_cleanup_stack.
13740 * htl/pt-testcancel.c: Include <pthreadP.h>.
13741 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13742 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13743 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13744 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13745 pthread_attr_getstacksize.
13746 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13747 Rename to __pthread_attr_getstackaddr.
13748 (pthread_attr_getstackaddr): New strong alias.
13749 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13750 Rename to __pthread_attr_getstacksize.
13751 (pthread_attr_getstacksize): New strong alias.
13752 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13753 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13754 (pthread_attr_setstack): New strong alias.
13755 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13756 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13757 pthread_attr_getstacksize, pthread_attr_setstacksize and
13758 pthread_attr_setstackaddr.
13759 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13760 Rename to __pthread_attr_setstackaddr.
13761 (pthread_attr_setstackaddr): New strong alias.
13762 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13763 Rename to __pthread_attr_setstacksize.
13764 (pthread_attr_setstacksize): New strong alias.
13765 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13766 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13767 pthread_exit.
13768 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13769 (__pthread_key_create): New hidden def.
13770 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13771 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13772 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13773 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13774 __pthread_setspecific, __pthread_setcancelstate,
13775 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13776 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13777 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13778 declarations.
13779 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13780 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13781 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13782 (pthread_attr_setstackaddr): New strong alias.
13783 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13784 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13785 (pthread_attr_setstacksize): New strong alias.
13786 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13787 (call_exit): Call __pthread_exit instead of pthread_exit.
13788 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13789 (_pthread_mutex_init): New hidden definition.
13790 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13791 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13792 instead of pthread_attr_init and pthread_attr_setstack.
13793
13794 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13795 __vm_deallocate instead of vm_allocate and vm_deallocate.
13796 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13797 setenv.
13798 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13799 of geteuid.
13800 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13801 strdup.
13802 * hurd/siginfo.c: Include <libioP.h>.
13803 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13804 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13805 munmap.
13806 * mach/devstream.c: Include <libioP.h>.
13807 (dealloc_ref): Call __mach_port_deallocate instead of
13808 mach_port_deallocate.
13809 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13810 Call __mach_port_deallocate instead of mach_port_deallocate.
13811 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13812 pathconf.
13813 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13814 munmap.
13815 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13816 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13817 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13818 of munmap.
13819 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13820 of close.
13821 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13822 instead of sysconf.
13823 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13824 __clock_gettime instead of clock_gettime.
13825 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13826 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13827 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13828 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13829 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13830 tcgetattr.
13831 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13832 __clock_gettime and __nanosleep instead of clock_gettime and
13833 nanosleep.
13834 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13835 __hurd_catch_signal.
13836 (hurd_catch_signal): New strong alias.
13837 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13838 __hurd_catch_signal instead of hurd_catch_signal.
13839 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13840 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13841 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13842 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13843 (_hurd_thread_sigstate): Add hidden def.
13844 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13845 mutex_unlock.
13846 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13847 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13848 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13849 __hurd_file_name_path_lookup.
13850 (hurd_file_name_path_lookup): New strong alias.
13851 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13852 hurd_file_name_path_lookup.
13853 * mach/errstring.c (mach_error_type): Add hidden def.
13854 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13855 * mach/mutex-init.c (__mutex_init): Add hidden def.
13856 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13857 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13858 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13859 * sysdeps/mach/hurd/getcwd.c
13860 (_hurd_canonicalize_directory_name_internal): Rename to
13861 __hurd_canonicalize_directory_name_internal.
13862 (_hurd_canonicalize_directory_name_internal): New strong alias.
13863 (__canonicalize_directory_name_internal, __getcwd): Call
13864 __hurd_canonicalize_directory_name_internal instead of
13865 _hurd_canonicalize_directory_name_internal.
13866 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13867 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13868 hidden defs.
13869 * sysdeps/hurd/include/hurd.h: New file.
13870 * sysdeps/hurd/include/hurd/fd.h: New file.
13871 * sysdeps/hurd/include/hurd/signal.h: New file.
13872 * sysdeps/mach/include/lock-intern.h: New file.
13873 * sysdeps/mach/include/mach.h: New file.
13874 * sysdeps/mach/include/mach/mig_support.h: New file.
13875 * sysdeps/mach/include/mach_error.h: New file.
13876 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13877 prototype.
13878 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13879 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13880 _HEADER_H_HIDDEN_DEF macro.
13881 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13882 _hurd_fd_error_signal): Add hidden prototype.
13883 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13884 hidden def.
13885 * libio/iolibio.h (_IO_puts): New hidden prototype.
13886 * libio/ioputs.c (_IO_puts): New hidden def.
13887 * sysdeps/mach/hurd/localplt.data: New file.
13888
13889 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13890 Amos Jeffries <squid3@treenet.co.nz>
13891 David Michael <fedora.dm0@gmail.com>
13892 Marco Gerards <marco@gnu.org>
13893 Marcus Brinkmann <marcus@gnu.org>
13894 Neal H. Walfield <neal@gnu.org>
13895 Pino Toscano <toscano.pino@tiscali.it>
13896 Richard Braun <rbraun@sceen.net>
13897 Roland McGrath <roland@gnu.org>
13898 Samuel Thibault <samuel.thibault@ens-lyon.org>
13899 Thomas DiModica <ricinwich@yahoo.com>
13900 Thomas Schwinge <tschwinge@gnu.org>
13901
13902 * htl: New directory.
13903 * sysdeps/htl: New directory.
13904 * sysdeps/hurd/htl: New directory.
13905 * sysdeps/i386/htl: New directory.
13906 * sysdeps/mach/htl: New directory.
13907 * sysdeps/mach/hurd/htl: New directory.
13908 * sysdeps/mach/hurd/i386/htl: New directory.
13909 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13910 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13911 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13912
13913 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13914
13915 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13916 signals in thread created for runing timers.
13917
13918 2018-04-01 Florian Weimer <fweimer@redhat.com>
13919
13920 * support/support_format_addrinfo.c (support_format_addrinfo):
13921 Include unknown error number in formatted result.
13922
13923 2018-03-29 Florian Weimer <fweimer@redhat.com>
13924
13925 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13926 capture SIGBUS.
13927
13928 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13929
13930 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13931 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13932 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13933 (__ASSUME_CLONE_BACKWARDS): Define.
13934
13935 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13936
13937 [BZ #23024]
13938 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13939 early when linux sentinel value is set.
13940
13941 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13942
13943 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13944
13945 2018-03-27 Andreas Schwab <schwab@suse.de>
13946
13947 [BZ #23005]
13948 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13949 allocation of private copy of nsaddr_list fails.
13950
13951 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13952
13953 [BZ #16552]
13954 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13955 * sysdeps/unix/sysv/linux/umount.c: ... here.
13956 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13957 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13958 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13959 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13961 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13962 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13963
13964 2018-03-26 Andreas Schwab <schwab@suse.de>
13965
13966 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13967 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13968 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13969 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13970 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13971 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13972 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13973 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13974 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13975 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13976 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13977 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13978 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13979 (R_RISCV_NUM): Define.
13980
13981 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13982
13983 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13984 TLS declaration of errno.
13985 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13986 __libc_setup_tls.
13987 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13988 (ARCH_SETUP_TLS): Likewise.
13989 * sysdeps/mach/hurd/libc-start.h: New file copied from
13990 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13991 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13992 instead of __libc_setup_tls.
13993 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13994 __libc_setup_tls before initializing libpthread and running _hurd_init
13995 which starts the signal thread.
13996 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13997 Declare function.
13998 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13999
14000 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14001
14002 [BZ #22998]
14003 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14004 after it is defined.
14005
14006 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14007 Max Horn <max@quendi.de>
14008
14009 [BZ #22644]
14010 CVE-2017-18269
14011 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14012 branch conditions.
14013 * string/test-memmove.c (do_test2): New testcase.
14014
14015 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14016
14017 * sysdeps/generic/frame.h: Remove file.
14018 * sysdeps/arm/frame.h: Likewise.
14019 * sysdeps/hppa/frame.h: Likewise.
14020 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14021 macro.
14022 (GET_FRAME): Likewise.
14023 (GET_STACK): Likewise.
14024 (CALL_SIGHANDLER): Likewise.
14025 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14026 Likewise.
14027 (GET_FRAME): Likewise.
14028 (GET_STACK): Likewise.
14029 (CALL_SIGHANDLER): Likewise.
14030 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14031 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14032 (GET_FRAME): Likewise.
14033 (GET_STACK): Likewise.
14034 (CALL_SIGHANDLER): Likewise.
14035 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14036 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14037 (GET_FRAME): Likewise.
14038 (GET_STACK): Likewise.
14039 (ADVANCE_STACK_FRAME): Likewise.
14040 (CALL_SIGHANDLER): Likewise.
14041 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14042 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14043 (GET_FRAME): Likewise.
14044 (GET_STACK): Likewise.
14045 (CALL_SIGHANDLER): Likewise.
14046 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14047 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14048 (GET_FRAME): Likewise.
14049 (GET_STACK): Likewise.
14050 (CALL_SIGHANDLER): Likewise.
14051 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14052 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14053 (GET_FRAME): Likewise.
14054 (GET_STACK): Likewise.
14055 (CALL_SIGHANDLER): Likewise.
14056 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14057 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14058 (GET_FRAME): Likewise.
14059 (GET_STACK): Likewise.
14060 (CALL_SIGHANDLER): Likewise.
14061 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14062 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14063 (GET_FRAME): Likewise.
14064 (GET_STACK): Likewise.
14065 (CALL_SIGHANDLER): Likewise.
14066 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14067 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14068 (GET_FRAME): Likewise.
14069 (GET_STACK): Likewise.
14070 (CALL_SIGHANDLER): Likewise.
14071 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14072 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14073 (GET_FRAME): Likewise.
14074 (GET_STACK): Likewise.
14075 (CALL_SIGHANDLER): Likewise.
14076 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14077 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14078 (GET_FRAME): Likewise.
14079 (GET_STACK): Likewise.
14080 (CALL_SIGHANDLER): Likewise.
14081 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14082 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14083 (GET_FRAME): Likewise.
14084 (GET_STACK): Likewise.
14085 (CALL_SIGHANDLER): Likewise.
14086 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14087 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14088 (FIRST_FRAME_POINTER): Likewise.
14089 (ADVANCE_STACK_FRAME): Likewise.
14090 (GET_STACK): Likewise.
14091 (GET_FRAME): Likewise.
14092 (CALL_SIGHANDLER): Likewise.
14093 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14094 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14095 (ADVANCE_STACK_FRAME): Likewise.
14096 (GET_STACK): Likewise.
14097 (GET_FRAME): Likewise.
14098 (CALL_SIGHANDLER): Likewise.
14099 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14100 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14101 (GET_FRAME): Likewise.
14102 (GET_STACK): Likewise.
14103 (CALL_SIGHANDLER): Likewise.
14104 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14105 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14106 (GET_FRAME): Likewise.
14107 (GET_STACK): Likewise.
14108 (CALL_SIGHANDLER): Likewise.
14109
14110 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14111
14112 * sysdeps/x86_64/backtrace.c: Move to ....
14113 * debug/backtrace.c: ... here.
14114 * sysdeps/aarch64/backtrace.c: Remove file.
14115 * sysdeps/alpha/backtrace.c: Likewise.
14116 * sysdeps/hppa/backtrace.c: Likewise.
14117 * sysdeps/ia64/backtrace.c: Likewise.
14118 * sysdeps/mips/backtrace.c: Likewise.
14119 * sysdeps/nios2/backtrace.c: Likewise.
14120 * sysdeps/riscv/backtrace.c: Likewise.
14121 * sysdeps/sh/backtrace.c: Likewise.
14122 * sysdeps/tile/backtrace.c: Likewise.
14123
14124 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14125
14126 [BZ #22987]
14127 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14128 function.
14129 (fdimf): Likewise.
14130 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14131
14132 [BZ #17343]
14133 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14134 possibly overflowing computations.
14135
14136 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14137
14138 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14139 values from Linux-specific section now that it is in the GNU section.
14140 * sysdeps/gnu/errlist.c: Regenerate.
14141
14142 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14143
14144 * math/Makefile (libm-narrow-fns): Add sub.
14145 (libm-test-funcs-narrow): Likewise.
14146 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14147 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14148 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14149 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14150 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14151 (NARROW_SUB_TRIVIAL): Likewise.
14152 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14153 macro.
14154 (__dsubl): Likewise.
14155 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14156 dsub.
14157 (CFLAGS-nldbl-dsub.c): New variable.
14158 (CFLAGS-nldbl-fsub.c): Likewise.
14159 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14160 __nldbl_dsubl.
14161 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14162 prototype.
14163 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14164 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14165 * math/auto-libm-test-in: Add tests of sub.
14166 * math/auto-libm-test-out-narrow-sub: New generated file.
14167 * math/libm-test-narrow-sub.inc: New file.
14168 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14169 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14170 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14171 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14172 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14173 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14174 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14175 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14176 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14177 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14178 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14179 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14180 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14181 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14182 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14183 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14184 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14185 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14186 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14187 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14188 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14189 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14190 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14191 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14192 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14193 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14194 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14195 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14196 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14197 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14198 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14199 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14200 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14201 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14202 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14204 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14205 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14206 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14207 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14208 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14209 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14210 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14211 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14212 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14213 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14214
14215 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14216
14217 [BZ #20079]
14218 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14219
14220 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14221
14222 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14223
14224 2018-03-18 Richard Braun <rbraun@sceen.net>
14225
14226 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14227 thread reference.
14228
14229 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14230
14231 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14232 (__libc_cleanup_fct): Define function.
14233 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14234 __libc_cleanup_end): Rewrite implementation using
14235 __attribute__ ((__cleanup__)).
14236 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14237 * hurd/Makefile (routines): Add hurdlock.
14238 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14239 interface.
14240 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14241 * hurd/hurdpid.c: Include <lowlevellock.h>
14242 (_S_msg_proc_newids): Use lll_wait to synchronize.
14243 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14244 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14245 * mach/Makefile (lock-headers): Remove machine-lock.h.
14246 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14247 <machine-lock.h>.
14248 (__spin_lock_t): New type.
14249 (__SPIN_LOCK_INITIALIZER): New macro.
14250 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14251 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14252 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14253 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14254 (__mutex_init): Initialize with lll.
14255 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14256 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14257 needing lll.
14258 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14259 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14260 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14261 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14262 (__setpgid): Use lll for synchronization.
14263 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14264 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14265 instead of <cthreads.h>.
14266 (_IO_lock_inexpensive): New macro
14267 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14268 (__libc_lock_self0): New declaration.
14269 (__libc_lock_owner_self): New macro.
14270 (__libc_key_t): Remove type.
14271 (_LIBC_LOCK_INITIALIZER): New macro.
14272 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14273 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14274 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14275 __libc_lock_define_initialized_recursive,
14276 __rtld_lock_define_initialized_recursive,
14277 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14278 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14279 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14280 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14281 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14282 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14283 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14284 New macros.
14285 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14286 * hurd/hurdlock.c: New file.
14287 * hurd/hurdlock.h: New file.
14288 * mach/lowlevellock.h: New file
14289
14290 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14291
14292 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14293 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14294 when opening a symlink with O_NOFOLLOW.
14295 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14296 path when flags contains O_NOFOLLOW.
14297 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14298 if flags contains O_DIRECTORY and the result is a directory.
14299 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14300 oneself when the pointer given in D is nul (as set by ext2fs).
14301 * sysdeps/mach/hurd/mlockall.c: New file.
14302 * sysdeps/mach/hurd/munlockall.c: New file.
14303
14304 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14305
14306 * hurd/hurdsig.c: Include <pthread.h>.
14307 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14308 get the signal thread stack layout.
14309 * hurd/Makefile (headers): Remove threadvar.h.
14310 (inline-headers): Remove threadvar.h.
14311 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14312 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14313 __hurd_threadvar_max, __hurd_errno_location.
14314 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14315 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14316 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14317 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14318 unless TLS is not initialized yet, in which case we do not need a
14319 critical section yet anyway.
14320 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14321 <machine-sp.h>.
14322 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14323 declarations.
14324 (__hurd_threadvar_index): Remove enum.
14325 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14326 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14327 inlines.
14328 (__hurd_reply_port0): New variable declaration.
14329 (__hurd_local_reply_port): New macro.
14330 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14331 (interrupted_reply_port_location): Add thread_t parameter. Use it
14332 with THREAD_TCB to access thread-local variables.
14333 (_hurdsig_abort_rpcs): Pass ss->thread to
14334 interrupted_reply_port_location.
14335 (_hurd_internal_post_signal): Likewise.
14336 (_hurdsig_init): Use presence of cthread_fork instead of
14337 __hurd_threadvar_stack_mask to start signal thread by hand.
14338 Remove signal thread threadvar initialization.
14339 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14340 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14341 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14342 of threadvar.
14343 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14344 __libc_lock_self0.
14345 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14346 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14347 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14348 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14349 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14350 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14351 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14352 define variables.
14353 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14354 <hurd/threadvar.h>.
14355 [IS_IN(rtld)] (rtld_errno): New variable.
14356 [IS_IN(rtld)] (__errno_location): New weak function.
14357 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14358 * sysdeps/mach/hurd/errno.c: Remove file.
14359 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14360 (__fork): Remove THREADVAR_SPACE macro and its use.
14361 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14362 variable.
14363 (init): Do not initialize threadvar.
14364 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14365 symbol.
14366 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14367 __hurd_local_reply_port instead of threadvar.
14368 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14369 _hurd_sigstate fields.
14370 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14371 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14372 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14373 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14374 instead of threadvar.
14375 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14376 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14377 (use_threadvar, global_reply_port): Remove variables.
14378 (__hurd_reply_port0): New variable.
14379 (__mig_get_reply_port): Use __hurd_local_reply_port and
14380 __hurd_reply_port0 instead of threadvar.
14381 (__mig_dealloc_reply_port): Likewise.
14382 (__mig_init): Do not initialize threadvar.
14383 * sysdeps/mach/hurd/profil.c: Fix comment.
14384 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14385 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14386 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14387 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14388 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14389 __cthread_setspecific.
14390 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14391 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14392 __cthread_t instead of cthread_fork, cthread_detach,
14393 pthread_getattr_np, pthread_attr_getstack.
14394 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14395 __cthread_keycreate.
14396 (cthread_getspecific): Rename to __cthread_getspecific.
14397 (cthread_setspecific): Rename to __cthread_setspecific.
14398 (__libc_getspecific): Use __cthread_getspecific instead of
14399 cthread_getspecific.
14400 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14401 __cthread_keycreate instead of cthread_keycreate.
14402 (__libc_setspecific): Use __cthread_setspecific instead of
14403 cthread_setspecific.
14404 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14405 Likewise.
14406 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14407 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14408 testing whether it is defined.
14409
14410 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14411
14412 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14413 Define macro.
14414 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14415 * sysdeps/mach/i386/thread_state.h
14416 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14417 i386_THREAD_STATE.
14418 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14419 i386_THREAD_STATE.
14420 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14421
14422 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14423 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14424
14425 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14426 macros.
14427 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14428 descriptor instead of creating a new one.
14429 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14430
14431 * mach/setup-thread.c: Include <ldsodefs.h>.
14432 (__mach_setup_thread): Call _dl_allocate_tls, pass
14433 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14434 MACHINE_THREAD_STATE_FLAVOR, before getting
14435 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14436 MACHINE_THREAD_STATE_FLAVOR with the result.
14437 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14438 MACHINE_THREAD_STATE_FIX_NEW.
14439 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14440 too. Add original thread parameter.
14441
14442 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14443
14444 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14445 Remove inline function.
14446
14447 * sysdeps/i386/fpu/libm-test-ulps: Update.
14448 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14449
14450 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14451
14452 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14453 commit.
14454
14455 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14456
14457 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14458 (__sincos_code): Remove define and undefine.
14459 [__FAST_MATH__] (__sincos): Remove inline function.
14460 [__FAST_MATH__] (__sincosf): Remove inline function.
14461 [__FAST_MATH__] (__sincosl): Remove inline function.
14462 (__atan2l): Remove inline functions.
14463 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14464 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14465 function.
14466 (floor): Remove inline function.
14467 (ceil): Likewise.
14468 [__FAST_MATH__] (__ldexp_code): Remove macro.
14469 [__FAST_MATH__] (ldexp): Remove inline function.
14470 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14471 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14472 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14473 [__USE_ISOC99] (__lrint_code): Remove macro.
14474 [__USE_ISOC99] (__llrint_code): Likewise.
14475 [__USE_ISOC99] (lrintf): Remove inline function.
14476 [__USE_ISOC99] (lrint): Likewise.
14477 [__USE_ISOC99] (lrintl): Likewise.
14478 [__USE_ISOC99] (llrint): Likewise.
14479 [__USE_ISOC99] (llrintf): Likewise.
14480 [__USE_ISOC99] (llrintl): Likewise.
14481
14482 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14483
14484 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14485 (__ieee754_sqrtf): Remove.
14486 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14487 (__ieee754_sqrtf): Remove.
14488 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14489 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14490 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14491 (__ieee754_sqrtf): Remove.
14492 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14493 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14494 (sqrtf): Remove.
14495 (sqrtl): Remove.
14496 (__ieee754_sqrt): Remove.
14497 (__ieee754_sqrtf): Remove.
14498 (__ieee754_sqrtl): Remove.
14499 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14500 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14501 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14502 (__ieee754_sqrtf): Remove.
14503 (__ieee754_sqrtl): Remove.
14504
14505 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14506
14507 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14508 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14509 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14510 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14511 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14512 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14513 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14514 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14515 Likewise.
14516 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14517 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14518 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14519 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14520 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14521 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14522 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14523 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14524 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14525 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14526 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14527 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14528 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14529 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14530 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14531 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14532 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14533 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14534 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14535 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14536 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14537 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14538 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14539 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14540 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14541 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14542 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14543 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14544 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14545 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14546 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14547 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14548 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14549 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14550 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14551 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14552 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14553 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14554 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14555 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14556
14557 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14558
14559 * include/math.h (sqrt): Declare with asm redirect.
14560 (sqrtf): Likewise.
14561 (sqrtl): Likewise.
14562 (sqrtf128): Likewise.
14563 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14564 nonlib and libnldbl with -fmath-errno.
14565 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14566 * math/w_sqrt_template.c: Likewise.
14567 * math/w_sqrtf_compat.c: Likewise.
14568 * math/w_sqrtl_compat.c: Likewise.
14569 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14570 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14571 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14572 complex.h.
14573
14574 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14575
14576 * benchtests/Makefile: Define _ISOMAC.
14577 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14578 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14579 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14580 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14581 * benchtests/bench-timing.h: Define attribute_hidden.
14582
14583 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14584
14585 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14586 mov + lsr.
14587
14588 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14589
14590 [BZ #22963]
14591 * localedata/locales/cs_CZ (mon): Rename to...
14592 (alt_mon): This.
14593 (mon): Import from CLDR (genitive case).
14594
14595 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14596
14597 [BZ #22937]
14598 * localedata/locales/el_CY (abmon): Rename to...
14599 (ab_alt_mon): This.
14600 (abmon): Import from CLDR (abbreviated genitive case).
14601 * localedata/locales/el_GR (abmon): Rename to...
14602 (ab_alt_mon): This.
14603 (abmon): Import from CLDR (abbreviated genitive case).
14604
14605 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14606
14607 [BZ #22932]
14608 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14609
14610 2018-03-15 Robert Buj <robert.buj@gmail.com>
14611
14612 [BZ #22848]
14613 * localedata/locales/ca_ES (abmon): Rename to...
14614 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14615 (mon): Rename to...
14616 (alt_mon): This.
14617 (abmon): Import from CLDR (genitive case, month names preceded by
14618 "de" or "d’").
14619 (mon): Likewise.
14620 (abday): Synchronize with CLDR.
14621 (d_t_fmt): Likewise.
14622 (d_fmt): Likewise.
14623 (am_pm): Likewise.
14624
14625 (LC_TIME): Improve indentation.
14626 (LC_TELEPHONE): Likewise.
14627 (LC_NAME): Likewise.
14628 (LC_ADDRESS): Likewise.
14629
14630 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14631
14632 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14633 (lrintf): Remove definitions used only with old GCC.
14634 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14635 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14636 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14637 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14638 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14639 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14640 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14641 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14642 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14643 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14644 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14645 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14646 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14647 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14648 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14649 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14650 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14651 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14652 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14653 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14654 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14655 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14656 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14657 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14658 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14659 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14660 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14661 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14662
14663 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14664
14665 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14666 instruction to unbreak builds with binutils 2.26 and older.
14667
14668 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14669
14670 * sysdeps/aarch64/strncmp.S (count): New macro.
14671 (strncmp): Store misaligned length in SRC1 in COUNT.
14672 (mutual_align): Adjust.
14673 (misaligned8): Load dword at a time when it is safe.
14674
14675 2018-03-12 Zack Weinberg <zackw@panix.com>
14676
14677 [BZ #1190]
14678 [BZ #19476]
14679 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14680 if the _IO_EOF_SEEN bit is already set; update commentary.
14681 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14682 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14683
14684 * support/support_openpty.c, support/tty.h: New files.
14685 * support/Makefile (libsupport-routines): Add support_openpty.
14686
14687 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14688 New test cases.
14689 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14690 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14691
14692 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14693
14694 * po/pt_BR.po: Update translations.
14695
14696 2018-03-12 David Michael <fedora.dm0@gmail.com>
14697
14698 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14699 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14700 get a port to the startup server.
14701
14702 2018-03-11 Zack Weinberg <zackw@panix.com>
14703
14704 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14705 before nldbl-compat.h.
14706
14707 2018-03-10 Zack Weinberg <zackw@panix.com>
14708
14709 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14710 math.h or math_private.h.
14711
14712 * sysdeps/alpha/fpu/s_isnan.c
14713 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14714 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14715 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14716 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14717 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14718 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14719 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14720 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14721 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14722 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14723 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14724 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14725 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14726 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14727 Include math_private.h.
14728
14729 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14730 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14731 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14732 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14733 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14734 * sysdeps/powerpc/power7/fpu/s_logb.c:
14735 Include math.h and math_private.h.
14736
14737 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14738 uses of $at in .set noat / .set at.
14739
14740 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14741
14742 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14743 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14744 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14745 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14746 Likewise.
14747
14748 2018-03-09 Florian Weimer <fweimer@redhat.com>
14749
14750 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14751 in comment.
14752
14753 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14754
14755 [BZ #22919]
14756 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14757 Add nop before __startcontext, add explaining comments.
14758
14759 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14760
14761 [BZ #22926]
14762 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14763 empty for __SPE__.
14764 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14765 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14766 Do not build hardware transactional code for __SPE__.
14767 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14768 (__lll_trylock_elision): Likewise.
14769 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14770 (__lll_unlock_elision): Likewise.
14771
14772 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14773 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14774 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14775 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14776 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14777 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14778 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14779 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14780 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14781 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14782 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14783 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14784 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14785 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14786 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14787 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14788 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14789 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14790 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14791 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14792 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14793 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14794 (__ASSUME_CLONE_BACKWARDS): Define.
14795 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14796 __clone2 if __NR_clone2 is defined.
14797 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14798 (__ASSUME_CLONE_BACKWARDS): Likewise.
14799 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14800 (__ASSUME_CLONE_BACKWARDS): Likewise.
14801 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14802 (__ASSUME_CLONE2): Likewise.
14803 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14804 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14805 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14806 variants and the define architecture can use.
14807 (__ASSUME_CLONE_DEFAULT): Define as default.
14808 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14809 (__ASSUME_CLONE_BACKWARDS): Likewise.
14810 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14811 (__ASSUME_CLONE_BACKWARDS): Likewise.
14812 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14813 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14814
14815 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14816
14817 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14818
14819 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14820 time.
14821
14822 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14823 (do_test_limit): Likewise.
14824
14825 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14826 for every implementation.
14827 (do_test): Likewise.
14828
14829 * benchtests/bench-strncmp.c: Convert output to json.
14830
14831 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14832
14833 * io/futimens.c: Add missing start-of-file descriptive comment.
14834 * io/utime.c: Likewise.
14835 * misc/futimesat.c: Likewise.
14836 * misc/utimes.c: Likewise.
14837 * sysdeps/mach/hurd/futimesat.c: Likewise.
14838 * sysdeps/mach/hurd/utimes.c: Likewise.
14839 * sysdeps/posix/utime.c: Likewise.
14840 * sysdeps/posix/utimes.c: Likewise.
14841 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14842 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14843 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14844 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14845
14846 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14847
14848 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14849 hurd_futimes.
14850 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14851 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14852 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14853 (__futimens): Move implementation to...
14854 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14855 utime_tvalue_from_tspec): ... new helper functions.
14856 (hurd_futimens): New function.
14857 * sysdeps/mach/hurd/futimesat.c: New file.
14858 * sysdeps/mach/hurd/utimensat.c: New file.
14859
14860 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14861
14862 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14863 UTIME_OMIT): New macros.
14864 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14865 before reverting to converting time spec to time value and calling
14866 __file_utimes.
14867 * sysdeps/mach/hurd/utime-helper.c: New file.
14868 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14869 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14870 reverting to utime_tvalue_from_tval and __file_utimes.
14871 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14872 (__lutimes): Just call hurd_futimens after lookup.
14873 * sysdeps/mach/hurd/utimes.c: Likewise.
14874
14875 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14876
14877 * bits/sigaction.h: Add include guard.
14878 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14879 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14880 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14881 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14882 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14883 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14884 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14885 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14886 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14887
14888 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14889
14890 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14891 -Wmaybe-uninitialized for -Os.
14892 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14893 this disabling.
14894
14895 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14896
14897 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14898 __INO_T_MATCHES_INO64_T is defined.
14899 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14900 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14901 of definition.
14902 * dirent/alphasort64.c: Likewise.
14903 * dirent/scandir.c: Likewise.
14904 * dirent/scandir64-tail.c: Likewise.
14905 * dirent/scandir64.c: Likewise.
14906 * dirent/scandirat.c: Likewise.
14907 * dirent/scandirat64.c: Likewise.
14908 * dirent/versionsort.c: Likewise.
14909 * dirent/versionsort64.c: Likewise.
14910 * include/dirent.h: Likewise.
14911
14912 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14913 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14914 for socketpair endpoint.
14915 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14916 WRITE_BUFFER_SIZE as buffer size for sending socket.
14917 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14918 issue on system where send is implemented with sendto syscall.
14919 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14920 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14921 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14922 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14923
14924 [BZ #21269]
14925 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14926 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14927 sa_restorer for vDSO case.
14928 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14929
14930 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14931
14932 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14933 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14934 * hurd/hurd/ioctl.h: Include <mach/port.h>
14935 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14936 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14937 <mach/mach_types.h> and <mach/message.h>.
14938 (headers): Move mach/param.h to bits/mach/param.h.
14939 * sysdeps/mach/i386/mach/param.h: Move file to ...
14940 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14941 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14942 of <mach/param.h>.
14943 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14944 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14945 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14946 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14947 trivial, for C++ conformity.
14948 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14949 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14950 Process mig output through $(migheadersed).
14951 * hurd/Makefile (migheadersed): Define variable.
14952 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14953 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14954 headers.
14955 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14956 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14957 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14958 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14959 <bits/types/sigset_t.h>.
14960 [!defined __USE_GNU]: Do not #error out.
14961 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14962 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14963 Include <stddef.h> and <bits/types/sigset_t.h>
14964 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14965 instead of sighandler_t.
14966 * stdlib/errno.h (error_t): Move definition to...
14967 * bits/types/error_t.h: ... new header.
14968 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14969 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14970 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14971 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14972 * hurd/hurd.h: Include <bits/types/error_t.h>
14973 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14974 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14975 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14976 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14977 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14978 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14979 * sysdeps/mach/hurd/futimens.c: New file.
14980
14981 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14982
14983 [BZ #22918]
14984 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14985 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14986 * nscd/gai.c (__nss_hosts_database): Readd definition.
14987 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14988 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14989 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14990
14991 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14992
14993 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14994 (ifunc_one): Likewise.
14995
14996 2018-03-01 DJ Delorie <dj@delorie.com>
14997
14998 [BZ #22342]
14999 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15000 key value.
15001
15002 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15003
15004 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15005 `match_pid' parameter.
15006 (td_ta_thr_iter): Update accordingly.
15007
15008 2018-03-01 Florian Weimer <fweimer@redhat.com>
15009
15010 * nptl/Makefile (install-lib-ldscripts): Remove.
15011 (install): Remove rule.
15012 ($(inst_libdir)/libpthread.so): Likewise.
15013
15014 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15015
15016 [BZ #22896]
15017 * localedata/locales/an_ES: update month and day names,
15018 improve d_fmt, improve postal_fmt, add country_post,
15019 add country_isbn
15020
15021 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15022
15023 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15024 Ukrainian instead of Bulgarian.
15025
15026 2018-03-01 Florian Weimer <fweimer@redhat.com>
15027
15028 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15029 reference.
15030
15031 2018-03-01 Florian Weimer <fweimer@redhat.com>
15032
15033 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15034 * nptl/Makefile (routines): Add pthread_atfork.
15035 (static-only-routines): Set to pthread_atfork.
15036 (libpthread-routines): Remove pthread_atfork.
15037 (libpthread-static-only-routines): Remove.
15038 (install): Update comment.
15039 (libpthread.so): Do not install libpthread_nonshared.a.
15040 (tests): Do not link with libpthread_nonshared.a.
15041 (generated): Remove libpthread_nonshared.a.
15042 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15043 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15044 with libpthread_nonshared.a.
15045
15046 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15047
15048 [BZ #22902]
15049 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15050 (libc_feholdexcept_setroundf128): New macro.
15051 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15052
15053 [BZ #15105]
15054 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15055 libc_hidden_def.
15056 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15057 * include/inttypes.h: New file.
15058
15059 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15060
15061 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15062 -Os in two more places.
15063
15064 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15065
15066 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15067 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15068 be sorted correctly at the moment because of a bug.
15069
15070 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15071
15072 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15073 treat ñ as a primary different character, sync the collation
15074 for Spanish with CLDR.
15075 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15076 * localedata/Makefile: Add new test files.
15077 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15078 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15079 collation order.
15080 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15081 * localedata/am_ET.UTF-8.in: New test file.
15082 * localedata/az_AZ.UTF-8.in: Likewise.
15083 * localedata/be_BY.UTF-8.in: Likewise.
15084 * localedata/ber_DZ.UTF-8.in: Likewise.
15085 * localedata/ber_MA.UTF-8.in: Likewise.
15086 * localedata/bg_BG.UTF-8.in: Likewise.
15087 * localedata/br_FR.UTF-8.in: Likewise.
15088 * localedata/cmn_TW.UTF-8.in: Likewise.
15089 * localedata/crh_UA.UTF-8.in: Likewise.
15090 * localedata/csb_PL.UTF-8.in: Likewise.
15091 * localedata/cv_RU.UTF-8.in: Likewise.
15092 * localedata/cy_GB.UTF-8.in: Likewise.
15093 * localedata/dz_BT.UTF-8.in: Likewise.
15094 * localedata/eo.UTF-8.in: Likewise.
15095 * localedata/es_ES.UTF-8.in: Likewise.
15096 * localedata/fa_IR.UTF-8.in: Likewise.
15097 * localedata/fi_FI.UTF-8.in: Likewise.
15098 * localedata/fil_PH.UTF-8.in: Likewise.
15099 * localedata/fur_IT.UTF-8.in: Likewise.
15100 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15101 * localedata/ha_NG.UTF-8.in: Likewise.
15102 * localedata/ig_NG.UTF-8.in: Likewise.
15103 * localedata/ik_CA.UTF-8.in: Likewise.
15104 * localedata/kk_KZ.UTF-8.in: Likewise.
15105 * localedata/ku_TR.UTF-8.in: Likewise.
15106 * localedata/ky_KG.UTF-8.in: Likewise.
15107 * localedata/ln_CD.UTF-8.in: Likewise.
15108 * localedata/mi_NZ.UTF-8.in: Likewise.
15109 * localedata/ml_IN.UTF-8.in: Likewise.
15110 * localedata/mn_MN.UTF-8.in: Likewise.
15111 * localedata/mr_IN.UTF-8.in: Likewise.
15112 * localedata/mt_MT.UTF-8.in: Likewise.
15113 * localedata/nb_NO.UTF-8.in: Likewise.
15114 * localedata/om_KE.UTF-8.in: Likewise.
15115 * localedata/os_RU.UTF-8.in: Likewise.
15116 * localedata/ps_AF.UTF-8.in: Likewise.
15117 * localedata/ro_RO.UTF-8.in: Likewise.
15118 * localedata/ru_RU.UTF-8.in: Likewise.
15119 * localedata/sc_IT.UTF-8.in: Likewise.
15120 * localedata/se_NO.UTF-8.in: Likewise.
15121 * localedata/sq_AL.UTF-8.in: Likewise.
15122 * localedata/sv_SE.UTF-8.in: Likewise.
15123 * localedata/szl_PL.UTF-8.in: Likewise.
15124 * localedata/tg_TJ.UTF-8.in: Likewise.
15125 * localedata/tk_TM.UTF-8.in: Likewise.
15126 * localedata/tt_RU.UTF-8.in: Likewise.
15127 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15128 * localedata/ug_CN.UTF-8.in: Likewise.
15129 * localedata/uz_UZ.UTF-8.in: Likewise.
15130 * localedata/vi_VN.UTF-8.in: Likewise.
15131 * localedata/yi_US.UTF-8.in: Likewise.
15132 * localedata/yo_NG.UTF-8.in: Likewise.
15133 * localedata/zh_CN.UTF-8.in: Likewise.
15134 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15135 file and fix bugs in the collation.
15136 * localedata/locales/az_AZ: Likewise.
15137 * localedata/locales/be_BY: Likewise.
15138 * localedata/locales/ber_DZ: Likewise.
15139 * localedata/locales/ber_MA: Likewise.
15140 * localedata/locales/bg_BG: Likewise.
15141 * localedata/locales/br_FR: Likewise.
15142 * localedata/locales/br_FR@euro: Likewise.
15143 * localedata/locales/ca_ES: Likewise.
15144 * localedata/locales/cns11643_stroke: Likewise.
15145 * localedata/locales/crh_UA: Likewise.
15146 * localedata/locales/cs_CZ: Likewise.
15147 * localedata/locales/csb_PL: Likewise.
15148 * localedata/locales/cv_RU: Likewise.
15149 * localedata/locales/cy_GB: Likewise.
15150 * localedata/locales/da_DK: Likewise.
15151 * localedata/locales/dz_BT: Likewise.
15152 * localedata/locales/en_CA: Likewise.
15153 * localedata/locales/eo: Likewise.
15154 * localedata/locales/es_CU: Likewise.
15155 * localedata/locales/es_EC: Likewise.
15156 * localedata/locales/es_ES: Likewise.
15157 * localedata/locales/es_US: Likewise.
15158 * localedata/locales/et_EE: Likewise.
15159 * localedata/locales/fa_IR: Likewise.
15160 * localedata/locales/fi_FI: Likewise.
15161 * localedata/locales/fil_PH: Likewise.
15162 * localedata/locales/fur_IT: Likewise.
15163 * localedata/locales/gez_ER@abegede: Likewise.
15164 * localedata/locales/ha_NG: Likewise.
15165 * localedata/locales/hr_HR: Likewise.
15166 * localedata/locales/hsb_DE: Likewise.
15167 * localedata/locales/hu_HU: Likewise.
15168 * localedata/locales/ig_NG: Likewise.
15169 * localedata/locales/ik_CA: Likewise.
15170 * localedata/locales/is_IS: Likewise.
15171 * localedata/locales/iso14651_t1_pinyin: Likewise.
15172 * localedata/locales/kk_KZ: Likewise.
15173 * localedata/locales/ku_TR: Likewise.
15174 * localedata/locales/ky_KG: Likewise.
15175 * localedata/locales/ln_CD: Likewise.
15176 * localedata/locales/lt_LT: Likewise.
15177 * localedata/locales/lv_LV: Likewise.
15178 * localedata/locales/mi_NZ: Likewise.
15179 * localedata/locales/ml_IN: Likewise.
15180 * localedata/locales/mn_MN: Likewise.
15181 * localedata/locales/mr_IN: Likewise.
15182 * localedata/locales/mt_MT: Likewise.
15183 * localedata/locales/nb_NO: Likewise.
15184 * localedata/locales/om_KE: Likewise.
15185 * localedata/locales/os_RU: Likewise.
15186 * localedata/locales/pl_PL: Likewise.
15187 * localedata/locales/ps_AF: Likewise.
15188 * localedata/locales/ro_RO: Likewise.
15189 * localedata/locales/ru_RU: Likewise.
15190 * localedata/locales/ru_UA: Likewise.
15191 * localedata/locales/sc_IT: Likewise.
15192 * localedata/locales/se_NO: Likewise.
15193 * localedata/locales/si_LK: Likewise.
15194 * localedata/locales/sq_AL: Likewise.
15195 * localedata/locales/sv_FI: Likewise.
15196 * localedata/locales/sv_FI@euro: Likewise.
15197 * localedata/locales/sv_SE: Likewise.
15198 * localedata/locales/szl_PL: Likewise.
15199 * localedata/locales/tg_TJ: Likewise.
15200 * localedata/locales/ti_ER: Likewise.
15201 * localedata/locales/tk_TM: Likewise.
15202 * localedata/locales/tl_PH: Likewise.
15203 * localedata/locales/tr_TR: Likewise.
15204 * localedata/locales/tt_RU: Likewise.
15205 * localedata/locales/tt_RU@iqtelif: Likewise.
15206 * localedata/locales/ug_CN: Likewise.
15207 * localedata/locales/uk_UA: Likewise.
15208 * localedata/locales/uz_UZ: Likewise.
15209 * localedata/locales/uz_UZ@cyrillic: Likewise.
15210 * localedata/locales/vi_VN: Likewise.
15211 * localedata/locales/yi_US: Likewise.
15212 * localedata/locales/yo_NG: Likewise.
15213
15214 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15215
15216 * gen-locales.mk: Make test files which contain @ modifiers in their
15217 name work.
15218 * localedata/gen-locale.sh: Likewise.
15219
15220 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15221
15222 * posix/tst-fnmatch.input: Fix results for range expressions
15223 for non C locales.
15224 * posix/tst-regexloc.c: Do not use a range expression for
15225 de_DE.ISO-8859-1 locale.
15226
15227 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15228
15229 * posix/bug-regex5.c: Fix test case because with the new
15230 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15231 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15232 file.
15233
15234 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15235
15236 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15237 downloaded from ISO, the collation order of @-. and space has changed.
15238 Therefore, this test file needed to be adapted.
15239 * localedata/fr_CA.UTF-8.in: Likewise.
15240 * localedata/fr_FR.UTF-8.in: Likewise.
15241 * localedata/uk_UA.UTF-8.in: Likewise.
15242
15243 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15244
15245 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15246 order of ȥ in the new iso14651_t1_common file.
15247 * localedata/pl_PL.UTF-8.in: Likewise.
15248
15249 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15250
15251 * localedata/locales/iso14651_t1_common: Add sections for various
15252 scripts to the iso14651_t1_common file.
15253
15254 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15255
15256 * localedata/locales/iso14651_t1_common: Use the code point of a
15257 character in the fourth collation level instead of IGNORE for all
15258 entries which have IGNORE on all 4 levels.
15259
15260 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15261
15262 * localedata/locales/iso14651_t1_common: Add some convenient collation
15263 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15264 rules similar to those in CLDR.
15265
15266 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15267
15268 * localedata/locales/iso14651_t1_common: The new version of this
15269 file downloaded from ISO contained several syntax errors which
15270 are fixed by this patch.
15271
15272 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15273
15274 * localedata/locales/iso14651_t1_common: replace all <U.....>
15275 with <U000.....> because glibc understands only 4 digit or 8 digit
15276
15277 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15278
15279 * localedata/locales/iso14651_t1_common: Necessary changes
15280 to make the file downloaded from ISO usable by glibc.
15281
15282 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15283
15284 [BZ #14095]
15285 * localedata/locales/iso14651_t1_common: Update file to
15286 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15287
15288 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15289
15290 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15291 of <nptl/pthreadP.h>
15292 (thread_attr_compare): Move function to...
15293 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15294 * sysdeps/nptl/timer_routines.h: ... new header.
15295 * sysdeps/mach/hurd/gai_misc.h: New file.
15296
15297 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15298
15299 * string/strcoll_l.c: Include <libc-diag.h>.
15300 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15301 declarations of seq1 and seq2.
15302
15303 [BZ #15105]
15304 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15305 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15306
15307 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15308
15309 [BZ #22433]
15310 [BZ #22807]
15311 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15312 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15313 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15314 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15315 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15316 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15317
15318 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15319
15320 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15321 macros used in __ptrace_request.
15322
15323 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15324
15325 [BZ #22792]
15326 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15327 to $(CC).
15328 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15329 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15330 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15331 <tcb-offsets.h>.
15332
15333 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15334
15335 [BZ #15105]
15336 * ctype/ctype.c (tolower): Use libc_hidden_def.
15337 (toupper): Likewise.
15338 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15339 [!_ISOMAC] (toupper): Likewise.
15340
15341 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15342
15343 * localedata/Makefile: Remove --quiet argument when
15344 installing locales
15345
15346 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15347
15348 [BZ #17438]
15349 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15350 in d_fmt.
15351 * localedata/locales/pt_PT (LC_TIME): likewise
15352
15353 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15354
15355 [BZ #22646]
15356 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15357 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15358 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15359
15360 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15361
15362 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15363
15364 * nptl/Makefile (routines): Remove unregister-atfork.
15365 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15366 (fork_handler_alloc): Remove function.
15367 (fork_handlers, fork_handler_init): New variables.
15368 (__fork_lock): Rename to atfork_lock.
15369 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15370 to use a dynamic array to add/remove atfork handlers.
15371 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15372 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15373 Remove declaration.
15374 (fork_handler): Remove next, refcntr, and need_signal member.
15375 (__run_fork_handler_type): New enum.
15376 (__run_fork_handlers): New prototype.
15377 * nptl/register-atfork.c: Remove file.
15378 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15379
15380 * sysdeps/nptl/nptl-signals.h: Move to ...
15381 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15382 comments.
15383 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15384 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15385 unnecessary check for SIGTIMER.
15386 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15387 remove unnecessary removal of SIGTIMER.
15388 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15389 include-signals.h rename.
15390 * nptl/pthreadP.h: Likewise.
15391 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15392 __is_internal_signal instead of __nptl_is_internal_signal.
15393
15394 2018-02-22 Andrew Waterman <andrew@sifive.com>
15395
15396 [BZ # 22884]
15397 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15398 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15399 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15400 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15401
15402 2018-02-22 DJ Delorie <dj@delorie.com>
15403
15404 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15405
15406 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15407
15408 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15409 do_misaligned, not misaligned8.
15410
15411 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15412
15413 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15414 Add memcpy_thunderx2.
15415 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15416 Increment to 4.
15417 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15418 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15419 and IS_THUNDERX2PA checks.
15420 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15421 Use macro to set name appropriately.
15422 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15423 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15424 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15425 New macro.
15426 (IS_THUNDERX2): New macro.
15427
15428 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15429
15430 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15431
15432 2018-02-21 Zack Weinberg <zackw@panix.com>
15433
15434 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15435 Define here, unconditionally.
15436 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15437 * libio/libioP.h: Remove #if 0 blocks.
15438 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15439 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15440 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15441
15442 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15443 Assume weak_alias is always defined.
15444
15445 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15446 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15447 Remove #if 0 and #ifdef TODO blocks.
15448 Assume text_set_element is always defined.
15449
15450 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15451 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15452 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15453
15454 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15455 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15456 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15457 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15458 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15459 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15460 Reformat bit flags for _flags field to make occupancy clearer.
15461 Update commentary.
15462 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15463 Keep definitions consistent with those in libio/libio.h.
15464
15465 * libio/libio.h (_IO_file_flags): Remove macro.
15466 All uses changed to _flags.
15467
15468 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15469 (__HAVE_COLUMN, _IO_BE): Don't define.
15470 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15471 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15472 * libio/libioP.h (EOF): Don't define.
15473 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15474 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15475 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15476 testing _IO_UNIFIED_JUMPTABLES.
15477
15478 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15479 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15480 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15481 (_IO_size_t): Delete; all uses changed to size_t.
15482 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15483 (_IO_off_t): Delete; all uses changed to off_t.
15484 (_IO_off64_t): Delete; all uses changed to off64_t.
15485 (_IO_pid_t): Delete; all uses changed to pid_t.
15486 (_IO_uid_t): Delete; all uses changed to uid_t.
15487 (_IO_wint_t): Delete; all uses changed to wint_t.
15488 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15489 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15490 (_IO_cookie_io_functions_t): Delete; all uses changed to
15491 cookie_io_functions_t.
15492 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15493 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15494 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15495 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15496
15497 * libio/iofopncook.c: Remove unnecessary forward declarations.
15498 * libio/iolibio.h: Correct outdated commentary.
15499 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15500 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15501 Remove unnecessary casts.
15502 * stdio-common/getline.c: Use _IO_getdelim directly.
15503 Don't redefine ssize_t.
15504 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15505 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15506 Remove outdated comments.
15507 * stdio-common/vfscanf.c: Don't redefine va_list.
15508
15509 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15510 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15511 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15512 which are always true, and __cplusplus, which is always false.
15513
15514 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15515
15516 [BZ #15105]
15517 [BZ #19463]
15518 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15519 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15520 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15521 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15522 libc_hidden_proto.
15523 [!_ISOMAC] (putc_unlocked): Likewise.
15524 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15525 define inline if [__USE_EXTERN_INLINES].
15526 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15527 putc_unlocked.
15528
15529 [BZ #15105]
15530 [BZ #19463]
15531 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15532 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15533 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15534 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15535 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15536 getc_unlocked.
15537 * time/tzfile.c (__tzfile_read): Likewise.
15538
15539 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15540
15541 [BZ #22517]
15542 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15543
15544 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15545
15546 * io/fcntl.h: Fix a typo in a comment.
15547
15548 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15549
15550 [BZ #22862]
15551 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15552 define _DEFAULT_SOURCE.
15553 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15554
15555 2018-02-21 Florian Weimer <fweimer@redhat.com>
15556
15557 [BZ #20890]
15558 * elf/cache.c (save_cache): Call fsync on temporary file before
15559 renaming it.
15560 (save_aux_cache): Call fdatasync on temporary file before renaming
15561 it.
15562
15563 2018-02-21 Florian Weimer <fweimer@redhat.com>
15564
15565 [BZ #22787]
15566 * include/caller.h: Remove file.
15567 * elf/dl-caller.c: Likewise.
15568 * elf/Makefile (dl-routines): Remove dl-caller.
15569 (shared-only-routines): Do not add dl-caller.
15570 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15571 __check_caller.
15572 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15573 member.
15574 (dl_open_worker): Do not call __check_caller.
15575 (_dl_open): Do not set caller_dl_open member.
15576 * elf/rtld.c (_rtld_global_ro): Do not initialize
15577 _dl_check_caller member.
15578 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15579 _dl_check_caller member.
15580 (_dl_check_caller): Remove declaration.
15581 * sysdeps/unix/sysv/linux/dl-execstack.c
15582 (_dl_make_stack_executable): Do not call __check_caller.
15583
15584 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15585
15586 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15587 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15588
15589 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15590
15591 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15592 description.
15593
15594 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15595
15596 [BZ #16335]
15597 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15598 of 199606L, 200112L, and 200809L.
15599 (_XOPEN_SOURCE): Document special values of 600 and 700.
15600 (_ISOC11_SOURCE): Document macro.
15601 (_ATFILE_SOURCE): Likewise.
15602 (_FORTIFY_SOURCE): Likewise.
15603
15604 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15605
15606 [BZ #15105]
15607 [BZ #19463]
15608 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15609 and define as weak alias of __ferror_unlocked. Use
15610 libc_hidden_weak.
15611 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15612 libc_hidden_proto.
15613 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15614 function if [__USE_EXTERN_INLINES].
15615 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15616 ferror_unlocked.
15617
15618 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15619
15620 [BZ #6889]
15621 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15622
15623 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15624
15625 [BZ #22818]
15626 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15627 the GLIBC_2.1 version.
15628
15629 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15630
15631 [BZ #21508]
15632 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15633 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15634 intl/tst-gettext-de.po from po/de.po by removing the
15635 POT-Creation-Date line.
15636 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15637 ../po/de.po.
15638 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15639 ../po/de.po.
15640
15641 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15642
15643 * mach/Makefile (headers): Add mach/param.h.
15644 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15645 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15646 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15647 (__ptsname_r): Move implementation to...
15648 (__ptsname_internal): ... new function. Add filling the STP
15649 structure.
15650
15651 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15652
15653 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15654 idouble to 1 ULP.
15655
15656 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15657
15658 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15659 syntax.
15660
15661 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15662
15663 * nptl/Makefile (tst-mutex8-ENV): Delete.
15664 * nptl/tst-mutex8.c (check_type):
15665 Add runtime check if mutex will be elided.
15666
15667 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15668
15669 [BZ #20980]
15670 [BZ #21234]
15671 * manual/install.texi (Configuring and compiling): Describe
15672 passing CC and CFLAGS on configure command line, not as
15673 environment variables. Use @code markup on those variables.
15674 Specify what options go in CC and what go in CFLAGS. Note the
15675 requirement to compile with optimization.
15676 * INSTALL: Regenerated.
15677
15678 [BZ #18124]
15679 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15680 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15681 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15682 __sigprocmask instead of sigprocmask.
15683 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15684 Likewise.
15685 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15686 __sigsetjmp and sigprocmask.
15687
15688 [BZ #15105]
15689 * include/argz.h (argz_next): Use libc_hidden_proto.
15690 (__argz_next): Likewise.
15691 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15692 (argz_next): Use libc_hidden_weak.
15693
15694 [BZ #15105]
15695 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15696 libc_hidden_proto.
15697 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15698 libc_hidden_def.
15699
15700 [BZ #15105]
15701 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15702 libc_hidden_proto.
15703 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15704
15705 [BZ #15105]
15706 [BZ #19463]
15707 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15708 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15709 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15710 (__feof_unlocked): New declaration, and inline function if
15711 [__USE_EXTERN_INLINES].
15712 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15713 instead of feof_unlocked.
15714 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15715 * nss/nsswitch.c (nss_parse_file): Likewise.
15716 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15717 Likewise.
15718 * time/getdate.c (__getdate_r): Likewise.
15719 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15720 Define as macro to call __feof_unlocked.
15721
15722 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15723
15724 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15725
15726 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15727
15728 * math/Makefile: Remove mpexp.c and mplog.c
15729 * sysdeps/i386/fpu/mpexp.c: Delete file.
15730 * sysdeps/i386/fpu/mplog.c: Likewise.
15731 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15732 * sysdeps/ia64/fpu/mplog.c: Likewise.
15733 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15734 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15735 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15736 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15737 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15738 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15739 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15740 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15741 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15742 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15743 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15744 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15745 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15746 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15747 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15748 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15749
15750 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15751
15752 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15753
15754 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15755
15756 * sysdeps/sh/libm-test-ulps: Update.
15757
15758 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15759
15760 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15761 idouble to 1 ULP.
15762
15763 2018-02-12 Zack Weinberg <zackw@panix.com>
15764
15765 [BZ #19239]
15766 * posix/sys/types.h: Don't include sys/sysmacros.h.
15767 * misc/sys/sysmacros.h: Remove the conditional deprecation
15768 warnings for the macros defined by this header.
15769
15770 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15771
15772 * manual/probes.texi: Remove slowexp probes.
15773 * math/Makefile: Remove slowexp.
15774 * sysdeps/generic/math_private.h (__slowexp): Remove.
15775 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15776 document error bounds.
15777 * sysdeps/i386/fpu/slowexp.c: Remove.
15778 * sysdeps/ia64/fpu/slowexp.c: Remove.
15779 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15780 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15781 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15782 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15783 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15784 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15785 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15786 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15787 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15788 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15789 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15790
15791 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15792
15793 [BZ #13932]
15794 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15795 * benchtests/pow-inputs: Update comment for slow path cases.
15796 * manual/probes.texi (slowpow_p10): Delete removed probe.
15797 (slowpow_p10): Likewise.
15798 * math/Makefile: Remove halfulp.c and slowpow.c.
15799 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15800 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15801 (__halfulp): Remove.
15802 (__slowpow): Remove.
15803 * sysdeps/i386/fpu/halfulp.c: Delete file.
15804 * sysdeps/i386/fpu/slowpow.c: Likewise.
15805 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15806 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15807 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15808 improve comments and add error analysis.
15809 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15810 (power1): Remove function:
15811 (log1): Remove error argument, add error analysis.
15812 (my_log2): Remove function.
15813 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15814 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15815 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15816 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15817 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15818 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15819 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15820 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15821 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15822 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15823 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15824 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15825 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15826 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15827
15828 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15829
15830 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15831 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15832
15833 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15834
15835 [BZ #22433]
15836 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15837 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15838 and PTRACE_SETHBPREGS.
15839
15840 2018-02-10 Zack Weinberg <zackw@panix.com>
15841
15842 [BZ #22830]
15843 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15844 correctly.
15845 * malloc/tst-malloc-stats-cancellation.c: New test case.
15846 * malloc/Makefile: Add new test case.
15847
15848 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15849
15850 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15851
15852 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15853
15854 * math/Makefile (libm-narrow-fns): Add add.
15855 (libm-test-funcs-narrow): Likewise.
15856 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15857 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15858 * math/gen-auto-libm-tests.c (test_functions): Add add.
15859 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15860 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15861 (NARROW_ADD_TRIVIAL): Likewise.
15862 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15863 macro.
15864 (__daddl): Likewise.
15865 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15866 dadd.
15867 (CFLAGS-nldbl-dadd.c): New variable.
15868 (CFLAGS-nldbl-fadd.c): Likewise.
15869 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15870 __nldbl_daddl.
15871 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15872 prototype.
15873 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15874 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15875 * math/auto-libm-test-in: Add tests of add.
15876 * math/auto-libm-test-out-narrow-add: New generated file.
15877 * math/libm-test-narrow-add.inc: New file.
15878 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15879 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15880 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15881 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15882 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15883 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15884 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15885 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15886 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15887 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15888 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15889 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15890 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15891 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15892 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15893 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15894 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15895 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15896 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15897 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15898 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15899 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15900 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15901 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15902 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15903 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15904 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15905 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15906 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15907 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15908 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15909 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15914 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15915 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15916 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15917 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15918 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15919 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15920 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15921 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15922 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15923 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15924
15925 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15926 (f128-pairs): New variable.
15927 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15928 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15929 to CFLAGS.
15930 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15931 Also make tests add $(f128-loader-link) to gnulib-tests.
15932
15933 2018-02-09 DJ Delorie <dj@redhat.com>
15934
15935 [BZ #22827]
15936 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15937 64-bit ELF type for 64-bit ELF objects.
15938
15939 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15940
15941 * math/libm-test-driver.c (snan_tests_arg): New variable.
15942 * math/libm-test-support.h (snan_tests_arg): New declaration.
15943 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15944
15945 * math/Makefile (test-type-pairs): New variable.
15946 (test-type-pairs-f64xf128-yes): Likewise.
15947 (tests): Add test-narrow-macros.
15948 (libm-test-funcs-narrow): New variable.
15949 (libm-test-c-narrow): Likewise.
15950 (generated): Add $(libm-test-c-narrow).
15951 (libm-tests-base-narrow): New variable.
15952 (libm-tests-narrow): Likewise.
15953 (libm-tests): Add $(libm-tests-narrow).
15954 (libm-tests-for-type): Handle $(libm-tests-narrow).
15955 (libm-test-c-narrow-obj): New variable.
15956 ($(libm-test-c-narrow-obj)): New rule.
15957 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15958 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15959 $(o-iterator) to set dependencies and CFLAGS.
15960 * math/gen-auto-libm-tests.c: Document use for narrowing
15961 functions.
15962 (output_for_one_input_case): Take argument NARROW.
15963 (generate_output): Likewise. Update call to
15964 output_for_one_input_case.
15965 (main): Take --narrow option. Update call to generate_output.
15966 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15967 (apply_lit): Update call to _apply_lit.
15968 (apply_arglit): New function.
15969 (parse_args): Handle "a" arguments.
15970 (parse_auto_input): Handle format names using ":".
15971 * math/README.libm-test: Document "a" parameter type.
15972 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15973 (ARG_TYPE_TRUE_MIN): Likewise.
15974 (ARG_TYPE_MAX): Likwise.
15975 (ARG_MIN_EXP): Likewise.
15976 (ARG_MAX_EXP): Likewise.
15977 (ARG_MANT_DIG): Likewise.
15978 (TEST_COND_arg_ibm128): Likewise.
15979 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15980 (TEST_COND_arg_fmt): New macro.
15981 (init_max_error): Update prototype.
15982 * math/libm-test-support.c (test_ibm128): New variable.
15983 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15984 instead of using [TEST_COND_ibm128] conditional.
15985 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15986 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15987 [TEST_NARROW] (TEST_MSG): New definition.
15988 (arg_plus_zero): New macro.
15989 (arg_minus_zero): Likewise.
15990 (arg_plus_infty): Likewise.
15991 (arg_minus_infty): Likewise.
15992 (arg_qnan_value_pl): Likewise.
15993 (arg_qnan_value): Likewise.
15994 (arg_snan_value_pl): Likewise.
15995 (arg_snan_value): Likewise.
15996 (arg_max_value): Likewise.
15997 (arg_min_value): Likewise.
15998 (arg_min_subnorm_value): Likewise.
15999 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16000 (RUN_TEST_LOOP_aa_f): New macro.
16001 (TEST_SUFF): New macro.
16002 (TEST_SUFF_STR): Likewise.
16003 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16004 (TEST_COND_any_ibm128): New macro.
16005 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16006 this_func. Update call to init_max_error.
16007 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16008 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16009 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16010 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16011 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16012 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16013 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16014 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16015 * math/test-math-vector.h (TEST_NARROW): Likewise.
16016 * math/test-arg-double.h: New file.
16017 * math/test-arg-float128.h: Likewise.
16018 * math/test-arg-float32x.h: Likewise.
16019 * math/test-arg-float64.h: Likewise.
16020 * math/test-arg-float64x.h: Likewise.
16021 * math/test-arg-ldouble.h: Likewise.
16022 * math/test-math-narrow.h: Likewise.
16023 * math/test-narrow-macros.c: Likewise.
16024 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16025 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16026 test-narrow-macros-ldbl-64.
16027 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16028
16029 * math/bits/mathcalls-narrow.h: New file.
16030 * include/bits/mathcalls-narrow.h: Likewise.
16031 * math/math-narrow.h: Likewise.
16032 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16033 (__MATHCALL_NARROW_ARGS_2): Likewise.
16034 (__MATHCALL_NARROW_ARGS_3): Likewise.
16035 (__MATHCALL_NARROW_NORMAL): Likewise.
16036 (__MATHCALL_NARROW_REDIR): Likewise.
16037 (__MATHCALL_NARROW): Likewise.
16038 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16039 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16040 defined.
16041 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16042 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16043 (libm-narrow-fns): New variable.
16044 (libm-narrow-types-basic): Likewise.
16045 (libm-narrow-types-ldouble-yes): Likewise.
16046 (libm-narrow-types-float128-yes): Likewise.
16047 (libm-narrow-types-float128-alias-yes): Likewise.
16048 (libm-narrow-types): Likewise.
16049 (libm-routines): Add narrowing functions.
16050 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16051 (libc_feholdexcept_setroundf128): New macro.
16052 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16053 * sysdeps/ieee754/float128/float128_private.h: Include
16054 <math/math-narrow.h>.
16055 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16056 Undefine and redefine.
16057 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16058 (libm_alias_float_ldouble): Undefine and redefine.
16059 (libm_alias_double_ldouble): Likewise.
16060
16061 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16062
16063 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16064
16065 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16066 FPCR/FPSR.
16067
16068 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16069
16070 * manual/creature.texi: Convert references to gcc.info to gcc.
16071 * manual/stdio.texi: Likewise.
16072 * manual/string.texi: Likewise.
16073
16074 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16075
16076 [BZ #17979]
16077 * posix/bits/types.h (__int_least8_t): New typedef.
16078 (__uint_least8_t): Likewise.
16079 (__int_least16_t): Likewise.
16080 (__uint_least16_t): Likewise.
16081 (__int_least32_t): Likewise.
16082 (__uint_least32_t): Likewise.
16083 (__int_least64_t): Likewise.
16084 (__uint_least64_t): Likewise.
16085 * sysdeps/generic/stdint.h (int_least8_t): Define using
16086 __int_least8_t.
16087 (int_least16_t): Define using __int_least16_t.
16088 (int_least32_t): Define using __int_least32_t.
16089 (int_least64_t): Define using __int_least64_t.
16090 (uint_least8_t): Define using __uint_least8_t.
16091 (uint_least16_t): Define using __uint_least16_t.
16092 (uint_least32_t): Define using __uint_least32_t.
16093 (uint_least64_t): Define using __uint_least64_t.
16094 * wcsmbs/uchar.h: Include <bits/types.h>.
16095 (char16_t): Define using __uint_least16_t conditional only on
16096 [!__USE_ISOCXX11].
16097 (char32_t): Define using __uint_least32_t conditional only on
16098 [!__USE_ISOCXX11].
16099 * wcsmbs/test-char-types.c: New file.
16100 * wcsmbs/Makefile (tests): Add test-char-types.
16101
16102 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16103 version to 4.0.1.
16104
16105 2018-02-07 Zack Weinberg <zackw@panix.com>
16106
16107 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16108 Delete all contents except for definitions of _G_HAVE_MMAP and
16109 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16110 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16111 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16112 change as above.
16113
16114 * libio/libio.h: Don't include bits/_G_config.h here.
16115 Include stddef.h with __need_wchar_t defined. Include
16116 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16117 Define _IO_iconv_t here, directly.
16118 Don't define _IO_HAVE_ST_BLKSIZE.
16119 * libio/libioP.h: Include _G_config.h here. Move include of
16120 shlib-compat.h up with rest of includes. Simplify conditionals
16121 controlling definition of _IO_JUMPS_OFFSET.
16122
16123 * csu/init.c: Remove always-true #if around entire file.
16124 Don't include stdio.h. Set _IO_stdin_used to hardwired
16125 constant 0x20001, and update commentary.
16126 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16127 Replace all uses of _G_va_list with __gnuc_va_list.
16128 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16129 instead of #if _IO_HAVE_ST_BLKSIZE.
16130 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16131 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16132 not #ifdef.
16133
16134 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16135 multiple-include guard to match.
16136 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16137 into this file.
16138 Remove preprocessor conditionals that are always true and/or
16139 redundant to other preprocessor conditionals in the same nest.
16140 Include shlib-compat.h unconditionally.
16141 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16142 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16143 defined after including stdio.h.
16144 Use __BEGIN_DECLS/__END_DECLS.
16145
16146 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16147 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16148 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16149
16150 2018-02-07 Zack Weinberg <zackw@panix.com>
16151
16152 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16153 New single-type headers split from _G_config.h.
16154 * libio/bits/types/cookie_io_functions_t.h
16155 * libio/bits/types/struct_FILE.h
16156 New single-type headers split from libio.h.
16157
16158 * libio/Makefile: Install the above new headers. Don't install
16159 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16160 bits/libio-ldbl.h.
16161 * libio/_G_config.h, libio/libio.h: Delete file.
16162
16163 * libio/bits/libio.h: Remove improper-inclusion guard.
16164 Include stdio.h and don't repeat anything that it does.
16165 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16166 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16167 __io_read_fn as cookie_read_function_t,
16168 __io_write_fn as cookie_write_function_t,
16169 __io_seek_fn as cookie_seek_function_t,
16170 __io_close_fn as cookie_close_function_t,
16171 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16172 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16173 here, in the "compatibility defines" section. Remove an #if 0
16174 block. Use the "body" macros from bits/types/struct_FILE.h to
16175 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16176 and _IO_ferror_unlocked.
16177 Move prototypes of __uflow and __overflow...
16178
16179 * libio/stdio.h: ...here. Don't include bits/libio.h.
16180 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16181 directly from stdarg.h. Include bits/types/__fpos_t.h,
16182 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16183 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16184 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16185 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16186 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16187 __ssize_t, not _IO_ssize_t. Unconditionally define
16188 BUFSIZ as 8192 and EOF as (-1).
16189
16190 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16191 macros from bits/types/struct_FILE.h instead of _IO_* macros
16192 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16193 instead of _IO_ssize_t.
16194 * libio/bits/stdio2.h: Similarly.
16195
16196 * libio/iolibio.h: Add multiple-include guard.
16197 Include bits/libio.h after stdio.h.
16198 * libio/libioP.h: Add multiple-include guard.
16199 Include stdio.h and bits/libio.h before iolibio.h.
16200
16201 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16202 * include/bits/types/cookie_io_functions_t.h
16203 * include/bits/types/struct_FILE.h: New wrappers.
16204
16205 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16206 Get definitions of _G_fpos_t and _G_fpos64_t from
16207 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16208 respectively. Remove improper-inclusion guards.
16209
16210 * conform/data/stdio.h-data: Update expectations of va_list.
16211 * scripts/check-installed-headers.sh: Remove special case for
16212 libio.h and _G_config.h.
16213
16214 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16215
16216 [BZ #15105]
16217 [BZ #19463]
16218 * include/sys/sysmacros.h [!_ISOMAC]
16219 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16220 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16221 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16222 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16223 libc_hidden_proto.
16224 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16225 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16226 Likewise.
16227 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16228 Undefine and redefine to add use __gnu_dev_ prefix.
16229 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16230 Likewise.
16231 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16232 and define as hidden inline function.
16233 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16234 Likewise.
16235 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16236 Likewise.
16237 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16238 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16239 (gnu_dev_minor): Likewise.
16240 (gnu_dev_makedev): Likewise.
16241 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16242 makedev.
16243 * posix/wordexp.c (exec_comm_child): Likewise.
16244 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16245 instead of minor and __gnu_dev_major instead of major.
16246 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16247 __gnu_dev_major instead of major.
16248 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16249 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16250 instead of gnu_dev_minor.
16251 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16252 (SLAVE_P): Likewise.
16253 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16254 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16255 instead of major.
16256
16257 [BZ #21313]
16258 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16259 in another place.
16260 * locale/weightwc.h (findidx): Likewise.
16261
16262 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16263
16264 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16265 (slowlog_inexact): Likewise
16266 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16267 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16268
16269 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16270
16271 [BZ #22797]
16272 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16273 missing second underscore to parameter name.
16274
16275 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16276
16277 [BZ #14508]
16278 [BZ #15512]
16279 [BZ #17082]
16280 [BZ #20530]
16281 * bits/byteswap.h: Update file comment. Do not include
16282 <bits/byteswap-16.h>.
16283 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16284 constant.
16285 (__bswap_16): Define as inline function.
16286 (__bswap_constant_32): Reformat definition.
16287 (__bswap_32): Always define as inline function, not macro, using
16288 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16289 otherwise __bswap_constant_32.
16290 (__bswap_constant_64): Reformat definition. Do not use
16291 __extension__ here.
16292 (__bswap_64): Always define as inline function, not macro. Use
16293 __extension__ on function definition. Use __builtin_bswap64 if
16294 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16295 * string/test-endian-file-scope.c: New file.
16296 * string/test-endian-sign-conversion.c: Likewise.
16297 * string/Makefile (headers): Remove bits/byteswap-16.h.
16298 (tests): Add test-endian-file-scope and
16299 test-endian-sign-conversion.
16300 (CFLAGS-test-endian-sign-conversion.c): New variable.
16301 * bits/byteswap-16.h: Remove file.
16302 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16303 * sysdeps/ia64/bits/byteswap.h: Likewise.
16304 * sysdeps/m68k/bits/byteswap.h: Likewise.
16305 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16306 * sysdeps/s390/bits/byteswap.h: Likewise.
16307 * sysdeps/tile/bits/byteswap.h: Likewise.
16308 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16309 * sysdeps/x86/bits/byteswap.h: Likewise.
16310
16311 [BZ #17721]
16312 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16313 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16314 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16315 199901L] (__restrict): Define to restrict.
16316
16317 [BZ #19667]
16318 * string/testcopy.c: Include <support/support.h>. Do not include
16319 <malloc.h>. Use <support/test-driver.c>.
16320 (main): Rename to do_test. Make static. Use xmalloc instead of
16321 malloc.
16322
16323 [BZ #13575]
16324 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16325 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16326 (SSIZE_MAX): Define to INT_MAX.
16327 * posix/test-ssize-max.c: New file.
16328 * posix/Makefile (tests): Add test-ssize-max.
16329
16330 [BZ #19668]
16331 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16332 <support/support.h>. Do not include <malloc.h>.
16333 (query_auxv): Use xmalloc instead of malloc.
16334
16335 [BZ #14553]
16336 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16337 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16338 instead of loff_t.
16339
16340 2018-02-06 Florian Weimer <fweimer@redhat.com>
16341
16342 [BZ #18023]
16343 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16344 Use scratch_buffer instead of extend_alloca.
16345
16346 2018-02-06 Zack Weinberg <zackw@panix.com>
16347
16348 * libio/stdio.h: Don't define getc or putc as macros.
16349 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16350 not _IO_getc and _IO_putc.
16351
16352 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16353 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16354
16355 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16356
16357 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16358 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16359
16360 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16361
16362 [BZ #14890]
16363 * elf/elf.h (NT_PRFPREG): New macro.
16364 (NT_S390_VXRS_LOW): Likewise.
16365 (NT_S390_VXRS_HIGH): Likewise.
16366 (NT_S390_GS_CB): Likewise.
16367 (NT_S390_GS_BC): Likewise.
16368 (NT_S390_RI_CB): Likewise.
16369
16370 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16371 (MAP_SYNC): New macro.
16372 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16373 Likewise.
16374 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16375 (MAP_SYNC): Likewise.
16376 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16377 (MAP_SYNC): Likewise.
16378 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16379 (MAP_SYNC): Likewise.
16380 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16381 (MAP_SYNC): Likewise.
16382 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16383 (MAP_SYNC): Likewise.
16384 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16385 (MAP_SYNC): Likewise.
16386 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16387 Likewise.
16388 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16389 Likewise.
16390
16391 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16392 (MAP_SHARED_VALIDATE): New macro.
16393 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16394 (MAP_SHARED_VALIDATE): Likewise.
16395
16396 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16397
16398 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16399 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16400 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16401
16402 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16403
16404 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16405 (DT_NUM): Updated to 35.
16406
16407 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16408
16409 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16410 __builtin_expect with __glibc_likely and __glibc_unlikely.
16411 (elf_machine_rela): Likewise.
16412 (elf_machine_lazy_rel): Likewise.
16413
16414 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16415
16416 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16417 __builtin_expect with __glibc_likely and __glibc_unlikely.
16418 (elf_machine_lazy_rel): Likewise.
16419
16420 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16421
16422 [BZ #22638]
16423 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16424 SHARED.
16425 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16426
16427 2018-02-05 Andreas Schwab <schwab@suse.de>
16428
16429 [BZ #22761]
16430 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16431 string.
16432
16433 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16434
16435 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16436 not check against PTHREAD_STACK_MIN.
16437
16438 2018-02-02 Sean McKean <smckean83@gmail.com>
16439
16440 [BZ #22735]
16441 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16442
16443 2018-02-02 Florian Weimer <fweimer@redhat.com>
16444
16445 [BZ #22753]
16446 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16447 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16448 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16449 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16450 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16451 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16452 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16453 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16454 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16455 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16456 * misc/tst-preadvwritev2.c (do_test): Call it.
16457 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16458
16459 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16460
16461 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16462
16463 * benchtests/bench-memcmp.c: Print json instead of plain text.
16464
16465 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16466 every test run.
16467
16468 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16469
16470 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16471 version to 4.15.
16472 (s390_sthyi): New syscall.
16473
16474 * sysdeps/generic/ldbl-classify-compat.h: New file.
16475 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16476 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16477 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16478 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16479 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16480 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16481 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16482 <ldbl-classify-compat.h>.
16483 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16484 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16485 <ldbl-classify-compat.h>.
16486 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16487 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16488 <ldbl-classify-compat.h>.
16489 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16490 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16491 <ldbl-classify-compat.h>.
16492 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16493 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16494 <ldbl-classify-compat.h>.
16495 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16496 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16497 <ldbl-classify-compat.h>.
16498 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16499 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16500 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16501 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16502 * sysdeps/microblaze/math_private.h: Likewise.
16503 * sysdeps/nios2/math_private.h: Likewise.
16504 * sysdeps/sh/math_private.h: Likewise.
16505
16506 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16507 * sysdeps/m68k/coldfire/math_private.h: ... here.
16508 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16509 * sysdeps/tile/math_private.h: Likewise.
16510 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16511 Remove macro.
16512 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16513 Likewise.
16514
16515 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16516 Remove macro.
16517 (libc_fetestexcept): Likewise.
16518 (libc_feupdateenv_test): Likewise.
16519 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16520 (libc_fetestexcept): Likewise.
16521 (libc_feupdateenv_test): Likewise.
16522 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16523 (libc_fetestexcept): Likewise.
16524 (libc_feupdateenv_test): Likewise.
16525 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16526 (libc_fetestexcept): Likewise.
16527 (libc_feupdateenv_test): Likewise.
16528
16529 * sysdeps/generic/math_private.h
16530 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16531 New inline function.
16532 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16533 Likewise.
16534
16535 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16536 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16537 * sysdeps/generic/math_private.h
16538 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16539 inline function.
16540 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16541 Likewise.
16542 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16543 Likewise.
16544 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16545 Likewise.
16546 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16547 Likewise.
16548 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16549 Likewise.
16550 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16551 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16552 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16553 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16554 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16555 (__fegetenv): Likewise.
16556 (fesetenv): Likewise.
16557 (__fesetenv): Likewise.
16558 (feupdateenv): Likewise.
16559 (__feupdateenv): Likewise.
16560 (fegetround): Likewise.
16561 (__fegetround): Likewise.
16562 (fesetround): Likewise.
16563 (__fesetround): Likewise.
16564
16565 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16566 (feraiseexcept): New macro.
16567 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16568 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16569 Remove macro.
16570 (__feraiseexcept): Likewise.
16571 (feclearexcept): Likewise.
16572 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16573 (__feraiseexcept): Likewise.
16574 (feclearexcept): Likewise.
16575 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16576 (__feraiseexcept): Likewise.
16577 (feclearexcept): Likewise.
16578 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16579 (__feraiseexcept): Likewise.
16580 (feclearexcept): Likewise.
16581 (fetestexcept): Likewise.
16582
16583 * sysdeps/m68k/coldfire/math-tests.h: New file.
16584
16585 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16586 * sysdeps/m68k/bits/fenv.h: ... here.
16587 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16588 not define.
16589 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16590 Likewise.
16591 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16592 Likewise.
16593 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16594 Likewise.
16595 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16596 Likewise.
16597 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16598 Define to 0.
16599 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16600 (__FE_UNDEFINED): New enum constant.
16601 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16602 Do not define.
16603 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16604 Likewise.
16605 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16606 Likewise.
16607 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16608 to match generic bits/fenv.h.
16609 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16610 Do not define.
16611
16612 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16613 packed on bits.
16614 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16615 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16616 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16617 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16618
16619 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16620 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16621 Joseph Myers <joseph@codesourcery.com>
16622
16623 [BZ #21314]
16624 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16625 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16626 computation using c.
16627 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16628 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16629 computation using c.
16630
16631 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16632
16633 * version.h (RELEASE): Set to "development".
16634 (VERSION): Set to "2.27.9000".
16635 * NEWS (2.28): New section.
16636
16637 * version.h (RELEASE): Set to "stable".
16638 (VERSION): Set to "2.27".
16639 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16640
16641 * NEWS: Add the list of bugs fixed in 2.27.
16642
16643 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16644
16645 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16646 against PTHREAD_STACK_MIN.
16647
16648 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16649
16650 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16651 New entries.
16652 (Rafal Luzynski, Andreas Schwab): Update.
16653
16654 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16655
16656 [BZ #10871]
16657 * NEWS: List the languages which actually use the alternative
16658 months feature in this release. Also explain that "alt_mon" and
16659 "ab_alt_mon" are optional.
16660
16661 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16662
16663 [BZ #22765]
16664 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16665
16666 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16667
16668 * manual/install.texi (Tools for Compilation): Update the newest
16669 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16670 * INSTALL: Regenerated.
16671
16672 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16673
16674 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16675 instead of __builtin_expect.
16676
16677 2018-01-30 Florian Weimer <fweimer@redhat.com>
16678
16679 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16680 data.
16681 * nss/tst-nss-getpwent.c (do_test): Likewise.
16682
16683 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16684
16685 [BZ #10871]
16686 * localedata/locales/hr_HR (mon): Rename to...
16687 (alt_mon): This.
16688 (mon): Import from CLDR (genitive case).
16689 (d_t_fmt): Update the comment.
16690
16691 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16692
16693 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16694 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16695 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16696
16697 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16698
16699 * mach/Versions: Fix version when __mach_host_self_ was added.
16700 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16701 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16702 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16703 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16704 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16705 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16706 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16707 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16708 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16709 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16710 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16711 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16712 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16713 || to respect codestyle.
16714 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16715 (do_test_bz20181): Rename accordingly.
16716 * malloc/malloc.c: Include <assert.h>.
16717 (assert): Do not define.
16718 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16719 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16720 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16721 * sysdeps/mach/hurd/hp-timing.h: New file.
16722 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16723
16724 2018-01-29 Darius Rad <darius@bluespec.com>
16725
16726 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16727
16728 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16729
16730 * sysdeps/init_array/crti.S (.section .init_array): Add
16731 PREINIT_FUNCTION when defined.
16732 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16733 * config.h.in: Regenerate.
16734 * manual/platform.texi: Add RISC-V documenation for
16735 __riscv_flush_icache.
16736 * sysdeps/riscv/__longjmp.S: New file.
16737 * sysdeps/riscv/backtrace.c: Likewise.
16738 * sysdeps/riscv/bits/endian.h: Likewise.
16739 * sysdeps/riscv/bits/setjmp.h: Likewise.
16740 * sysdeps/riscv/bits/wordsize.h: Likewise.
16741 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16742 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16743 * sysdeps/riscv/dl-trampoline.S: Likewise.
16744 * sysdeps/riscv/gccframe.h: Likewise.
16745 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16746 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16747 * sysdeps/riscv/machine-gmon.h: Likewise.
16748 * sysdeps/riscv/memusage.h: Likewise.
16749 * sysdeps/riscv/setjmp.S: Likewise.
16750 * sysdeps/riscv/sys/asm.h: Likewise.
16751 * sysdeps/riscv/tls-macros.h: Likewise.
16752 * sysdeps/riscv/dl-tls.h: New file.
16753 * sysdeps/riscv/libc-tls.c: Likewise.
16754 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16755 * sysdeps/riscv/nptl/tls.h: Likewise.
16756 * sysdeps/riscv/stackinfo.h: Likewise.
16757 * sysdeps/riscv/bits/fenv.h: New file.
16758 * sysdeps/riscv/e_sqrtl.c: Likewise.
16759 * sysdeps/riscv/fpu_control.h: Likewise.
16760 * sysdeps/riscv/math-tests.h: Likewise.
16761 * sysdeps/riscv/nofpu/Implies: Likewise.
16762 * sysdeps/riscv/sfp-machine.h: Likewise.
16763 * sysdeps/riscv/tininess.h: Likewise.
16764 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16765 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16766 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16767 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16768 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16769 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16770 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16771 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16772 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16773 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16774 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16775 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16776 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16777 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16778 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16779 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16780 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16781 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16782 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16783 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16784 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16785 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16786 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16787 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16788 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16789 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16790 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16791 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16792 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16793 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16794 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16795 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16796 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16797 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16798 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16799 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16800 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16801 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16802 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16803 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16804 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16805 * sysdeps/riscv/rvf/math_private.h: Likewise.
16806 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16807 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16808 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16809 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16810 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16811 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16812 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16813 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16814 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16815 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16816 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16817 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16818 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16819 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16820 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16821 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16822 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16823 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16824 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16825 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16826 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16827 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16828 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16829 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16830 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16831 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16832 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16833 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16834 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16835 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16836 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16837 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16838 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16839 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16840 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16841 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16842 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16843 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16844 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16845 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16846 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16847 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16848 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16849 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16850 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16851 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16852 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16853 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16854 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16855 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16856 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16857 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16858 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16859 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16860 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16861 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16862 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16863 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16864 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16865 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16866 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16867 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16868 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16869 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16870 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16871 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16872 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16873 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16874 * sysdeps/riscv/Implies: New file.
16875 * sysdeps/riscv/Makefile: Likewise.
16876 * sysdeps/riscv/configure: Likewise.
16877 * sysdeps/riscv/configure.ac: Likewise.
16878 * sysdeps/riscv/nptl/Makefile: Likewise.
16879 * sysdeps/riscv/preconfigure: Likewise.
16880 * sysdeps/riscv/rv64/Implies-after: Likewise.
16881 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16882 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16883 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16884 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16885 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16886 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16887 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16888 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16889 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16890 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16891 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16892 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16893 (Config): Likewise.
16894
16895 2018-01-29 Florian Weimer <fweimer@redhat.com>
16896
16897 [BZ #22701]
16898 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16899 libnsl_hidden_proto.
16900 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16901 libnsl_hidden_proto.
16902 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16903 * nis/Makefile (libnsl-routines): Add nss-default only for
16904 build-obsolete-nsl.
16905 * nis/nis_defaults.c (__nis_default_ttl): Add
16906 libnsl_hidden_nolink_def.
16907 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16908 declaration.
16909 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16910 * nis/ypclnt.c (yp_maplist): Likewise.
16911
16912 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16913
16914 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16915 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16916
16917 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16918
16919 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16920 clean -dxfq for git updates when replacing sources.
16921
16922 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16923 --disable-libcilkrts unconditionally, not just for the final GCC
16924 build for Hurd.
16925
16926 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16927 version to 4.15.
16928
16929 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16930
16931 [BZ #10871]
16932 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16933 case).
16934
16935 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16936
16937 [BZ #10871]
16938 * localedata/locales/be_BY (mon): Rename to...
16939 (alt_mon): This, then synchronize with CLDR (nominative case).
16940 (abmon): Rename to...
16941 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16942 (mon): Import from CLDR (genitive case).
16943 (abmon): Likewise.
16944 * localedata/locales/be_BY@latin (mon): Rename to...
16945 (alt_mon): This.
16946 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16947
16948 * localedata/locales/be_BY@latin (lang_name): Reworded to
16949 "biełaruskaja mova".
16950
16951 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16952
16953 [BZ #10871]
16954 * localedata/locales/el_CY (mon): Renamed to...
16955 (alt_mon): This.
16956 (mon): Import from CLDR (genitive case).
16957 * localedata/locales/el_GR: Likewise.
16958
16959 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16960
16961 [BZ #10871]
16962 * localedata/locales/ru_RU (mon): Rename to...
16963 (alt_mon): This.
16964 (abmon): Rename to...
16965 (ab_alt_mon): This.
16966 (mon): Import from CLDR (genitive case).
16967 (abmon): Copy from the old content except the 5th month which is
16968 now in the genitive case, even when abbreviated.
16969 * localedata/locales/ru_UA: Likewise.
16970 * time/tst-strptime.c (day_tests): Add an actual example of
16971 a difference between %b and %Ob in Russian.
16972
16973 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16974
16975 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16976 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16977 a `c' variable.
16978 * resolv/res-close.c: Include <stdlib.h>.
16979 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16980 <sys/wait.h>, <time.h>, <sys/uio.h>.
16981 (NOT_CANCEL_H): Add inclusion guard.
16982 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16983 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16984 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16985 return 0.
16986 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16987 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16988 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16989 instead of void *.
16990 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16991 timer_ptr2id to cast struct timer_node * to void *.
16992 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16993 --disable-libcilkrts to gcc configure.
16994 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16995 and make them the default for now.
16996 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16997 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16998 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16999 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17000 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17001 MACH_IPC_COMPAT.
17002 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17003 __task_terminate would ever return successfully.
17004 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17005 to global scope.
17006 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17007 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17008 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17009 critical section to make code simpler and avoid warning.
17010 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17011 critical section to make code simpler and avoid warning.
17012 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17013 const char * instead of char *.
17014 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17015 __hurd_file_name_split, hurd_file_name_split,
17016 __hurd_directory_name_split, hurd_directory_name_split,
17017 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17018 hurd_file_name_path_lookup): Make lookup function parameter take a
17019 const char *name instead of char *name.
17020 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17021 __hurd_directory_name_split): Likewise.
17022 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17023 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17024 * sysdeps/mach/hurd/check_native.c: New file.
17025 * sysdeps/mach/hurd/check_pf.c: New file.
17026 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17027 (__freeifaddrs): Define macro to freeifaddrs.
17028 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17029 * sysdeps/mach/libmachuser.abilist: New file.
17030 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17031 (do_test_bz20181): Rename accordingly.
17032 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17033 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17034 <sys/mount.h>.
17035 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17036 version only if __USE_EXTERN_INLINES is defined.
17037 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17038 __hurd_sockfail): Likewise.
17039 (_hurd_fd_get): Always declare functions, and provide inline versions
17040 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17041 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17042 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17043 _hurd_port_set): Always declare functions, and provide inline versions
17044 only if __USE_EXTERN_INLINES and _LIBC are defined and
17045 IS_IN(libc).
17046 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17047 _hurd_critical_section_unlock): Likewise.
17048 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17049 * __hurd_threadvar_location): Likewise.
17050 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17051 _hurd_userlink_clear): Likewise.
17052 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17053 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17054 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17055 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17056 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17057 __spin_lock_locked): Likewise.
17058 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17059 __spin_lock_locked): Likewise.
17060 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17061 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17062 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17063 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17064 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17065 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17066 _POSIX_NO_TRUNC): Define to 0.
17067 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17068 check size against PTHREAD_STACK_MIN.
17069 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17070 IS_IN(libpthread)]: Include <sigsetops.h>.
17071 * mach/Makefile (user-interfaces): Add mach/gnumach.
17072 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17073 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17074 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17075 instead of invalid -1.
17076 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17077 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17078 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17079 <net/ppp_defs.h>.
17080
17081 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17082
17083 * hurd/fcntl-internal.h: New file.
17084
17085 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17086
17087 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17088
17089 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17090
17091 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17092
17093 [BZ #22701]
17094 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17095 Build only shared objects.
17096
17097 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17098
17099 * README: Update for hppa.
17100
17101 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17102
17103 * sysdeps/sparc/fpu/libm-test-ulps: Update
17104 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17105
17106 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17107
17108 Revert:
17109
17110 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17111
17112 [BZ #22563]
17113 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17114 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17115 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17116 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17117 to feature_1.
17118
17119 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17120
17121 [BZ #22563]
17122 * bits/types/__cancel_jmp_buf_tag.h: New file.
17123 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17124 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17125 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17126 * nptl/Makefile (headers): Add
17127 bits/types/__cancel_jmp_buf_tag.h.
17128 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17129 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17130 * sysdeps/nptl/pthread.h: Include
17131 <bits/types/__cancel_jmp_buf_tag.h>.
17132 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17133 __cancel_jmp_buf.
17134 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17135
17136 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17137
17138 [BZ #10871]
17139 * localedata/locales/uk_UA (mon): Renamed to...
17140 (alt_mon): This.
17141 (alt_digits): "0" removed and then renamed to...
17142 (mon): This.
17143 (date_fmt): Definition changed not to use the alternative
17144 digits hack.
17145
17146 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17147
17148 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17149 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17150 * elf/elf.h (EF_RISCV_RVC): New define.
17151 (EF_RISCV_FLOAT_ABI): Likewise.
17152 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17153 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17154 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17155 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17156 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17157 define.
17158 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17159
17160 2018-01-25 Andreas Schwab <schwab@suse.de>
17161
17162 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17163 single quotes.
17164 * sysdeps/gnu/configure: Regenerate.
17165 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17166 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17168 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17169 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17170 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17171 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17172 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17173
17174 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17175
17176 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17177 URL, and run autoconf, make it the default for now.
17178
17179 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17180
17181 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17182 soft-float ColdFire configuration.
17183
17184 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17185 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17186 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17187
17188 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17189 MicroBlaze file.
17190
17191 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17192 ....
17193 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17194 ... here.
17195 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17196 New file.
17197
17198 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17199 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17200 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17201 file.
17202
17203 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17204
17205 [BZ #22742]
17206 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17207 Rename to __reserved and add comment.
17208 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17209 Rename to __reserved.
17210
17211 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17212
17213 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17214 i686-gnu configurations.
17215 (Context.run_builds): Include mig, gnumach and hurd in components
17216 considered.
17217 (Context.checkout): Add mig, gnumach and hurd to components.
17218 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17219 hurd.
17220 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17221 (Config.build): Install gnumach headers, build mig and install
17222 hurd headers for 'gnu' OS.
17223 (Config.install_gnumach_headers): New function.
17224 (Config.install_hurd_headers): Likewise.
17225 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17226 when building for 'gnu' OS.
17227
17228 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17229
17230 * manual/tunables.texi (Hardware Capability Tunables): Fix
17231 spelling.
17232
17233 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17234
17235 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17236 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17237 (ALTMON_11, ALTMON_12): Improve documentation.
17238 * manual/time.texi (strftime): Likewise.
17239
17240 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17241
17242 [BZ #10871]
17243 * localedata/locales/pl_PL: Alternative month names added,
17244 primary month names are genitive now.
17245 * time/tst-strptime.c (day_tests): Actually use a genitive case
17246 of a month name in Polish language.
17247
17248 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17249
17250 [BZ #10871]
17251 * manual/locale.texi: Document ALTMON_1..12 constants for
17252 nl_langinfo. Specify when to use ALTMON instead of MON.
17253 * manual/time.texi (strftime, strptime): Document GNU extension
17254 permitting O modifier with %B and %b. Specify when to use
17255 %OB instead of %B.
17256
17257 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17258
17259 [BZ #10871]
17260 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17261 names, define them as the same as abbreviated month names explicitly.
17262 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17263 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17264 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17265 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17266 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17267 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17268 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17269 _NL_WABALTMON_12): New enum constants.
17270 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17271 wab_alt_mon, and ab_alt_mon_defined members.
17272 (time_output): Output ab_alt_mon and wab_alt_mon members.
17273 (time_read): Read them, initialize them as copies of abmon and wabmon
17274 respectively if they are missing, initialize ab_alt_mon_defined.
17275 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17276 * locale/programs/locfile-kw.h: Regenerate.
17277 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17278 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17279 and ru_RU.UTF-8.
17280 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17281 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17282 (__strftime_internal): Handle %Ob and %Oh formats.
17283 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17284 (__strptime_internal): Handle %Ob and %Oh formats.
17285 * time/tst-strptime.c (day_tests): Add more tests to parse different
17286 forms of month names including the new %Ob format specifier.
17287
17288 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17289
17290 [BZ #10871]
17291 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17292 define them as the same as primary full month names explicitly.
17293 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17294 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17295 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17296 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17297 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17298 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17299 _NL_WALTMON_12): New enum constants.
17300 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17301 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17302 macros.
17303 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17304 walt_mon, and alt_mon_defined members.
17305 (time_output): Output alt_mon and walt_mon members.
17306 (time_read): Read them, initialize them as copies of mon and wmon
17307 respectively if they are missing, initialize alt_mon_defined.
17308 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17309 * locale/programs/locfile-kw.h: Regenerate.
17310 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17311 * localedata/tst-langinfo.c (map): Add tests for the new constants
17312 ALTMON_1 .. ALTMON_12.
17313 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17314 and pl_PL.UTF-8.
17315 * time/strftime_l.c (f_altmonth): New macro.
17316 (__strftime_internal): Handle %OB format.
17317 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17318 (__strptime_internal): Handle %OB format.
17319 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17320 of month names including the new %OB format specifier.
17321
17322 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17323
17324 [BZ #22685]
17325 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17326 from ABORT_TRANSACTION.
17327 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17328 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17329 ABORT_TRANSACTION_IMPL): Likewise.
17330 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17331 Linux code, but remove the code that aborts transactions.
17332
17333 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17334
17335 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17336
17337 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17338
17339 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17340 in date: "2004-14-09" should be "2004-09-14".
17341 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17342 "2003-15-09" should be "2003-09-15".
17343
17344 2018-01-18 Arjun Shankar <arjun@redhat.com>
17345
17346 [BZ #22343]
17347 [BZ #22774]
17348 CVE-2018-6485
17349 CVE-2018-6551
17350 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17351 after padding.
17352 (_int_memalign): check for integer overflow before calling
17353 _int_malloc.
17354 * malloc/tst-malloc-too-large.c: New test.
17355 * malloc/Makefile: Add tst-malloc-too-large.
17356
17357 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17358
17359 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17360 in date: "2017-24-07" should be "2017-07-24".
17361 * localedata/locales/mai_IN: Likewise.
17362 * localedata/locales/mai_NP: Likewise.
17363
17364 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17365
17366 * po/ru.po: Update translations.
17367
17368 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17369
17370 [BZ #22719]
17371 * sysdeps/hppa/backtrace.c: New file.
17372
17373 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17374
17375 [BZ #22715]
17376 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17377 align La_x86_64_retval to VEC_SIZE.
17378
17379 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17380
17381 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17382 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17383
17384 2018-01-16 Florian Weimer <fweimer@redhat.com>
17385
17386 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17387 Move tst-thread-exit-clobber ...
17388 [$(CXX)] (tests-unsupported): ... to here.
17389
17390 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17391
17392 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17393 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17394 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17395 (_dl_aarch64_cap_flags): Update.
17396 (_DL_HWCAP_COUNT): Update.
17397
17398 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17399
17400 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17401 (_DL_HWCAP_LAST): Remove.
17402 (_DL_HWCAP_COUNT): Move to ...
17403 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17404 (_DL_HWCAP_COUNT): ... here.
17405
17406 2018-01-16 Florian Weimer <fweimer@redhat.com>
17407
17408 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17409 mode with GNU extensions.
17410
17411 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17412
17413 * elf/elf.h (NT_ARM_SVE): Define.
17414
17415 2018-01-15 Florian Weimer <fweimer@redhat.com>
17416
17417 [BZ #22636]
17418 * nptl/tst-minstack-throw.cc: New file.
17419 * nptl/Makefile (tests): Add tst-minstack-throw.
17420 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17421 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17422
17423 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17424
17425 * scripts/build-many-glibcs.py (Context.checkout): Default
17426 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17427 version to 1.1.0.
17428
17429 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17430
17431 [BZ #22707]
17432 * elf/elf.h (DF_1_STUB): Define.
17433 (DF_1_PIE): Define.
17434
17435 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17436
17437 [BZ #22697]
17438 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17439 Do not add 0.5 to integer or out-of-range arguments.
17440
17441 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17442
17443 * po/bg.po: Update translations.
17444 * po/cs.po: Likewise.
17445 * po/de.po: Likewise.
17446 * po/ko.po: Likewise.
17447 * po/pl.po: Likewise.
17448 * po/sv.po: Likewise.
17449 * po/uk.po: Likewise.
17450 * po/vi.po: Likewise.
17451
17452 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17453
17454 * aarch64/start.S (_start): Use __wrap_main.
17455 (__wrap_main): New local symbol.
17456
17457 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17458
17459 [BZ #22679]
17460 CVE-2018-1000001
17461 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17462 generic_getcwd if the path returned by getcwd syscall is not absolute.
17463 * io/tst-getcwd-abspath.c: New test.
17464 * io/Makefile (tests): Add tst-getcwd-abspath.
17465
17466 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17467
17468 * malloc/malloc.c (malloc_consolidate): Add size check.
17469
17470 2018-01-12 Florian Weimer <fweimer@redhat.com>
17471
17472 * support/write_message.c (write_message): Preserve errno.
17473 * support/check.c (print_failure): Likewise.
17474 * support/support_test_verify_impl.c (support_test_verify_impl):
17475 Likewise.
17476 * support/support_test_compare_failure.c
17477 (support_test_compare_failure): Likewise.
17478
17479 2018-01-12 Florian Weimer <fweimer@redhat.com>
17480
17481 [BZ #22701]
17482 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17483 Prevent installation of libnsl.so.
17484 (libnsl-inhibit-o): Do not build (or install) static libraries.
17485
17486 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17487
17488 [BZ #22657]
17489 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17490 before the day number which may produce a double space.
17491 (date_fmt): Likewise.
17492
17493 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17494
17495 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17496 instead of fegetenv.
17497
17498 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17499
17500 [BZ #22702]
17501 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17502 comment to say exceptions are discarded.
17503 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17504 __fegetenv.
17505 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17506 be enabled.
17507
17508 2018-01-11 Florian Weimer <fweimer@redhat.com>
17509
17510 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17511 and error message.
17512
17513 2018-01-11 Florian Weimer <fweimer@redhat.com>
17514
17515 [BZ #22636]
17516 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17517 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17518
17519 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17520
17521 [BZ #22693]
17522 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17523 negative arguments in test for NaN or infinity argument.
17524
17525 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17526
17527 * po/libc.pot: Regenerate.
17528
17529 2018-01-10 Florian Weimer <fweimer@redhat.com>
17530
17531 [BZ #22636]
17532 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17533 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17534
17535 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17536
17537 * hurd/hurd/fd.h: Include <fcntl.h>
17538 (__hurd_at_flags): New function.
17539 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17540 with call to __hurd_at_flags.
17541 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17542 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17543 __faccessat
17544 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17545 (__access_noerrno): Use __faccessat_common instead of access_common.
17546 (__access): Likewise.
17547 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17548 with a call to __faccessat.
17549 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17550 (__faccessat_common): ... this. Move implementation of __access into it when
17551 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17552 reauthenticate_cwdir_at helper to implement AT mechanism.
17553 (__faccessat_noerrno): New function, just calls __faccessat_common.
17554 (__faccessat): New function, just calls __faccessat_common.
17555 (faccessat): Define weak alias.
17556
17557 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17558
17559 [BZ #22691]
17560 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17561 (CFLAGS-s_fmaxmagl.c): New variable.
17562 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17563
17564 [BZ #22690]
17565 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17566 long int for arguments of possibly overflowing addition or
17567 subtraction.
17568 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17569
17570 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17571
17572 [BZ #22688]
17573 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17574 (CFLAGS-e_remainderl.c): New variable.
17575
17576 [BZ #22687]
17577 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17578 variable.
17579 (CFLAGS-s_cacoshl.c): Likewise.
17580 (CFLAGS-s_casinhl.c): Likewise.
17581 (CFLAGS-s_catanl.c): Likewise.
17582 (CFLAGS-s_catanhl.c): Likewise.
17583 (CFLAGS-s_cexpl.c): Likewise.
17584 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17585 (CFLAGS-s_csinhl.c): Likewise.
17586 (CFLAGS-s_clogl.c): Likewise.
17587 (CFLAGS-s_clog10l.c): Likewise.
17588 (CFLAGS-s_csinl.c): Likewise.
17589 (CFLAGS-s_csqrtl.c): Likewise.
17590
17591 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17592 2017-01-09 Svante Signell <svante.signell@gmail.com>
17593
17594 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17595 (_hurd_exec_paths): New function.
17596 * hurd/hurd.h (_hurd_exec): Deprecate function.
17597 (_hurd_exec_paths): Declare function.
17598 * hurd/Versions: Export _hurd_exec_paths.
17599 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17600 (__execve): Use __getcwd to build absolute path, and use
17601 _hurd_exec_paths instead of _hurd_exec.
17602 * sysdeps/mach/hurd/spawni.c: Likewise.
17603 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17604 _hurd_exec.
17605
17606 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17607
17608 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17609 test instead of failing in case of ENOENT returned by posix_openpt.
17610
17611 2018-01-08 Florian Weimer <fweimer@redhat.com>
17612
17613 resolv: Support binary labels in test framework.
17614 * support/resolv_test.c (struct to_be_freed): Remove.
17615 (struct compressed_name): New.
17616 (allocate_compressed_name, ascii_tolower)
17617 (compare_compressed_name): New functions.
17618 (struct resolv_response_builder): Update type of
17619 compression_offsets for use with tsearch. Rempve to_be_freed.
17620 (response_push_pointer_to_free): Remove function.
17621 (resolv_response_add_name): Rewrite using struct compressed_name
17622 and tsearch instead of hsearch_r.
17623 (response_builder_allocate): Remove initialization of
17624 compression_offsets.
17625 (response_builder_free): Update for removal of to_be_freed. Use
17626 tdestroy instead of hdestroy_r.
17627 * resolv/Makefile (tests): Add tst-resolv-binary.
17628 (tst-resolv-binary): Link with -lresolv -lpthread.
17629
17630 2018-01-08 Florian Weimer <fweimer@redhat.com>
17631
17632 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17633 time. Pass positive flag instead of negative flag to
17634 support_test_compare_failure.
17635 (support_test_compare_failure): Change negative parameter to
17636 positive.
17637 * support/support_test_compare_failure.c (report)
17638 (support_test_compare_failure): Likewise.
17639 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17640 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17641
17642 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17643
17644 [BZ #22637]
17645 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17646 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17647 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17648 stacksize.
17649 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17650
17651 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17652
17653 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17654 Add s_sincosf-sse2 and s_sincosf-fma.
17655 (CFLAGS-s_sincosf-fma.c): New.
17656 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17657 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17658 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17659 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17660 __sincosf is defined.
17661
17662 2018-01-08 Florian Weimer <fweimer@redhat.com>
17663
17664 * nptl/tst-thread-exit-clobber.cc: New file.
17665 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17666 C++11 mode.
17667 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17668 (tests): Add tst-thread-exit-clobber.
17669 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17670
17671 2018-01-08 Florian Weimer <fweimer@redhat.com>
17672
17673 * support/check.h (support_static_assert): Define.
17674 (TEST_COMPARE): Use it.
17675
17676 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17677
17678 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17679 [!__RLIM_T_MATCHES_RLIM64_T]
17680 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17681 __getrlimit64. Add libc_hidden_weak.
17682
17683 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17684
17685 * elf/elf.h (R_RISCV_NONE): New define.
17686 (R_RISCV_32): Likewise.
17687 (R_RISCV_64): Likewise.
17688 (R_RISCV_RELATIVE): Likewise.
17689 (R_RISCV_COPY): Likewise.
17690 (R_RISCV_JUMP_SLOT): Likewise.
17691 (R_RISCV_TLS_DTPMOD32): Likewise.
17692 (R_RISCV_TLS_DTPMOD64): Likewise.
17693 (R_RISCV_TLS_DTPREL32): Likewise.
17694 (R_RISCV_TLS_DTPREL64): Likewise.
17695 (R_RISCV_TLS_TPREL32): Likewise.
17696 (R_RISCV_TLS_TPREL64): Likewise.
17697 * Makerules (make-link-multidir): Make directories before linking into
17698 them.
17699 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17700 define.
17701 (VDSO_HASH_LINUX_4_15): Likewise.
17702 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17703 in subdirectories of lib.
17704 * nptl/Makefile (/librt.so): Always depend on
17705 "$(shared-thread-library)".
17706
17707 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17708
17709 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17710 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17711 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17712 (___tls_get_addr).
17713 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17714 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17715 "-O2 -march=i686".
17716 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17717 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17718 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17719 * sysdeps/gnu/glob-lstat-compat.c: New file.
17720 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17721 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17722
17723 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17724
17725 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17726 Reserve 16 chars to reloc_addr before calling _itoa_word.
17727
17728 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17729
17730 [BZ #22678]
17731 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17732 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17733
17734 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17735 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17736
17737 * resource/tst-getrlimit.c: Add copyright header.
17738
17739 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17740 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17741
17742 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17743 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17744 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17745 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17746 instead.
17747 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17748 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17749 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17750 RLIM64_INFINITY): Fix values to match the kernel ones.
17751 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17752 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17753 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17754 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17755 getrlimit64@@GLIBC_2_27.
17756 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17757 and setrlimit64.
17758 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17759 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17760 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17761 setrlimit, getrlimit64 and setrlimit64.
17762
17763 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17764
17765 [BZ #22648]
17766 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17767 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17768
17769 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17770
17771 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17772 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17773 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17774
17775 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17776
17777 [BZ #15479]
17778 [BZ #22666]
17779 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17780 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17781
17782 [BZ #15479]
17783 [BZ #22665]
17784 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17785 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17786 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17787 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17788
17789 2018-01-04 Florian Weimer <fweimer@redhat.com>
17790
17791 [BZ #22667]
17792 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17793 Align the stack before calling exit.
17794 * stdlib/tst-makecontext-align.c: New file.
17795 * stdlib/Makefile (tests): Add tst-makecontext-align.
17796
17797 2018-01-04 Florian Weimer <fweimer@redhat.com>
17798
17799 Add support for calling dlvsym from libc.so.
17800 * include/dlfcn.h (__libc_dlvsym): Declare.
17801 * elf/Makefile (tests-static-internal): Add
17802 tst-libc_dlvsym-static.
17803 (tests-internal): Add tst-libc_dlvsym.
17804 (modules-names): Add tst-libc_dlvsym-dso.
17805 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17806 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17807 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17808 object tst-libc_dlvsym-dso.so needs to be built before running
17809 these tests.
17810 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17811 * elf/Versions: Export __libc_dlvsym.
17812 * elf/dl-libc.c (struct do_dlvsym_args): New.
17813 (do_dlvsym, __libc_dlvsym): New functions.
17814 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17815 (_dl_open_hook2): New variable.
17816 (__libc_register_dl_open_hook): Set it.
17817 * elf/tst-libc_dlvsym-dso.c: New file.
17818 * elf/tst-libc_dlvsym-static.c: Likewise.
17819 * elf/tst-libc_dlvsym.c: Likewise.
17820 * elf/tst-libc_dlvsym.h: Likewise.
17821
17822 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17823
17824 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17825 include <sys/mount.h>.
17826
17827 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17828
17829 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17830 Add __NO_MATH_ERRNO__ check.
17831
17832 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17833
17834 * sysdeps/mips/mips32/libm-test-ulps: Update.
17835 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17836
17837 2018-01-02 Florian Weimer <fweimer@redhat.com>
17838
17839 * misc/tst-pselect.c: Add copyright header.
17840
17841 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17842
17843 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17844 comment.
17845 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17846 comment.
17847 (settrlimit): Rename into setrlimit.
17848 (__sttrlimit): Rename into __setrlimit.
17849
17850 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17851 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17852 never defined in that case.
17853
17854 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17855
17856 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17857
17858 * sysdeps/arm/libm-test-ulps: Update.
17859
17860 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17861 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17862
17863 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17864
17865 * NEWS: Add cosf and sincosf to list of optimized functions.
17866
17867 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17868
17869 [BZ #22660]
17870 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17871 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17872 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17873 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17874
17875 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17876
17877 [BZ #22433]
17878 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17879
17880 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17881 making a copy of it.
17882
17883 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17884
17885 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17886 trailing whitespace removed.
17887 * scripts/config.guess: Update to version 2018-01-01.
17888 * scripts/config.sub: Update to version 2018-01-01.
17889 * scripts/move-if-change: Update from gnulib.
17890
17891 * NEWS: Update copyright dates.
17892 * catgets/gencat.c (print_version): Likewise.
17893 * csu/version.c (banner): Likewise.
17894 * debug/catchsegv.sh: Likewise.
17895 * debug/pcprofiledump.c (print_version): Likewise.
17896 * debug/xtrace.sh (do_version): Likewise.
17897 * elf/ldconfig.c (print_version): Likewise.
17898 * elf/ldd.bash.in: Likewise.
17899 * elf/pldd.c (print_version): Likewise.
17900 * elf/sotruss.sh: Likewise.
17901 * elf/sprof.c (print_version): Likewise.
17902 * iconv/iconv_prog.c (print_version): Likewise.
17903 * iconv/iconvconfig.c (print_version): Likewise.
17904 * locale/programs/locale.c (print_version): Likewise.
17905 * locale/programs/localedef.c (print_version): Likewise.
17906 * login/programs/pt_chown.c (print_version): Likewise.
17907 * malloc/memusage.sh (do_version): Likewise.
17908 * malloc/memusagestat.c (print_version): Likewise.
17909 * malloc/mtrace.pl: Likewise.
17910 * manual/libc.texinfo: Likewise.
17911 * nptl/version.c (banner): Likewise.
17912 * nscd/nscd.c (print_version): Likewise.
17913 * nss/getent.c (print_version): Likewise.
17914 * nss/makedb.c (print_version): Likewise.
17915 * posix/getconf.c (main): Likewise.
17916 * scripts/test-installation.pl: Likewise.
17917 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17918
17919 * All files with FSF copyright notices: Update copyright dates
17920 using scripts/update-copyrights.
17921 * locale/programs/charmap-kw.h: Regenerated.
17922 * locale/programs/locfile-kw.h: Likewise.
17923
17924 2017-12-31 Zack Weinberg <zackw@panix.com>
17925
17926 * libio/bits/libio-ldbl.h: Correct check for improper
17927 inclusion. Add own multiple include guard.
17928
17929 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17930 Dmitry V. Levin <ldv@altlinux.org>
17931
17932 [BZ #22625]
17933 CVE-2017-16997
17934 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17935 string token expansion. Check for NULL pointer or empty string possibly
17936 returned by expand_dynamic_string_token.
17937 (decompose_rpath): Check for empty path after dynamic string
17938 token expansion.
17939
17940 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17941
17942 [BZ #22433]
17943 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17944
17945 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17946 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17947 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17948 and PTRACE_SYSCALL.
17949 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17950 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17951 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17952 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17953 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17954 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17955
17956 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17957 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17958 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17959 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17960 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17961 bits/ptrace-shared.h.
17962 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17963 <bits/ptrace-shared.h>.
17964 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17965 __ptrace_peeksiginfo_flags, ptrace): Remove.
17966 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17967 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17968 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17969 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17970 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17971
17972 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17973
17974 [BZ #17804]
17975 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17976 end of the loop. Improve comments.
17977
17978 2017-12-29 Zack Weinberg <zackw@panix.com>
17979
17980 [BZ #22615]
17981 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17982 might be set on success.
17983
17984 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17985
17986 [BZ #22611]
17987 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17988 is unchanged on success.
17989
17990 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17991
17992 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17993 updated.
17994 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17995 expand_dynamic_string_token): Likewise.
17996 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17997 is_path argument.
17998
17999 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18000 contains ':'.
18001
18002 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18003 is set and name contains ':', and all code depending on these checks.
18004
18005 2017-12-24 Zack Weinberg <zackw@panix.com>
18006
18007 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18008 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18009 respectively.
18010 * libio/libio.h: Rename the original version of this file to
18011 libio/bits/libio.h. Error out if not included by stdio.h or the
18012 stub libio.h.
18013 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18014 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18015 if not included by bits/libio.h or the stub _G_config.h.
18016 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18017 sysdeps/unix/sysv/linux/bits. Error out if not included by
18018 bits/libio.h or the stub _G_config.h.
18019 * libio/stdio.h: Include bits/libio.h, not libio.h.
18020 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18021 well as libio.h and _G_config.h.
18022
18023 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18024 * libio/strfile.h, stdio-common/vfscanf.c
18025 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18026 Include stdio.h, not _G_config.h nor libio.h.
18027 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18028 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18029
18030 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18031
18032 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18033
18034 [BZ #22347]
18035 * stdlib/getrandom.c (getrandom): Fix comment.
18036 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18037
18038 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18039
18040 [BZ #21161]
18041 * manual/arith.texi (strtoul): Fix a typo.
18042
18043 [BZ #22596]
18044 * manual/arith.texi (finite): Fix the description of the return
18045 value.
18046
18047 2017-12-22 Eric Blake <ebb9@byu.net>
18048
18049 Avoid gcc warnings on cygwin
18050 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18051 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18052 Avoid unused variable.
18053
18054 2017-12-22 Florian Weimer <fweimer@redhat.com>
18055
18056 * io/Makefile (routines): Add copy_file_range.
18057 (tests): Add tst-copy_file_range.
18058 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18059 * io/Versions (GLIBC_2.27): Export copy_file_range.
18060 * io/copy_file_range-compat.c: New file.
18061 * io/copy_file_range.c: Likewise.
18062 * io/tst-copy_file_range-compat.c: Likewise.
18063 * io/tst-copy_file_range.c: Likewise.
18064 * manual/llio.texi (Copying File Data): New section.
18065 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18066 * support/Makefile (libsupport-routines): Add support-xfstat,
18067 xftruncate, xlseek.
18068 * support/support-xfstat.c: New file.
18069 * support/xftruncate.c: Likewise.
18070 * support/xlseek.c: Likewise.
18071 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18072 * sysdeps/unix/sysv/linux/**.abilist: Update.
18073 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18074
18075 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18076
18077 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18078 disable-multi-arch variant to aarch64-linux-gnu.
18079
18080 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18081
18082 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18083 trailing whitespace removed.
18084 * scripts/config.guess: Update to version 2017-12-17.
18085 * scripts/config.sub: Update to version 2017-11-23.
18086 * scripts/install-sh: Update to version 2017-09-23.17.
18087 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18088
18089 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18090
18091 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18092 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18093 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18094 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18095 * sysdeps/tile/crtn.S: Likewise.
18096 * sysdeps/tile/dl-start.S (_start): Likewise.
18097 * sysdeps/tile/dl-trampoline.S: Likewise.
18098 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18099 * sysdeps/tile/start.S (_start): Likewise.
18100 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18101 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18102 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18103 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18104 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18105 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18106 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18107
18108 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18109 comment.
18110 * sysdeps/tile/preconfigure: Remove tilegx folder.
18111 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18112 * sysdeps/tile/Implies: ... here.
18113 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18114 * sysdeps/tile/Makefile: ... here.
18115 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18116 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18117 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18118 * sysdeps/tile/bits/wordsize.h: ... here.
18119 * sysdeps/tile/tilegx/*: Move to ...
18120 * sysdeps/tile/*: ... here.
18121 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18122 * sysdeps/tile/tilegx32/Implies: ... here.
18123 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18124 * sysdeps/tile/tilegx64/Implies: ... here.
18125 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18126 to ...
18127 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18128 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18129 * sysdeps/unix/sysv/linux/tile/*: ... here.
18130 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18131 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18132 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18133 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18134
18135 * README: Remove tilepro-*-linux-gnu from supported architecture.
18136 * scripts/build-many-glibcs.py: Likewise.
18137 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18138 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18139 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18140 elf_machine_matches_host, elf_machine_dynamic,
18141 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18142 howto, elf_machine_rela): Likewise.
18143 * sysdeps/tile/dl-start.S (_start): Likewise.
18144 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18145 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18146 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18147 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18148 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18149 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18150 Likewise.
18151 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18152 * sysdeps/tile/preconfigure: Likewise.
18153 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18154 POINTER_CHK_GUARD): Likewise.
18155 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18156 * sysdeps/tile/start.S (_start): Likewise.
18157 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18158 Likewise.
18159 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18160 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18161 CMOVNEZ): Remove.
18162 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18163 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18164 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18165 Likewise.
18166 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18167 * sysdeps/tile/tilepro/Implies: Remove file.
18168 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18169 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18170 * sysdeps/tile/tilepro/memchr.c: Likewise.
18171 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18172 * sysdeps/tile/tilepro/memset.c: Likewise.
18173 * sysdeps/tile/tilepro/memusage.h: Likewise.
18174 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18175 * sysdeps/tile/tilepro/strchr.c: Likewise.
18176 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18177 * sysdeps/tile/tilepro/strlen.c: Likewise.
18178 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18179 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18180 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18181 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18182 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18183 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18184 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18185 Likewise.
18186 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18187 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18188 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18189 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18190 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18191 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18192 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18193 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18194 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18195 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18196 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18197 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18198 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18199 tilepro mention in comment.
18200
18201 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18202 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18203 * nptl/pthread_join_common.c: New file: common function used on
18204 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18205 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18206 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18207 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18208 (cleanup): Move definition to pthread_join_common.c.
18209 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18210 Remove superflous checks.
18211 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18212 Likewise.
18213
18214 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18215
18216 * sysdeps/aarch64/libm-test-ulps: Update.
18217
18218 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18219
18220 * sysdeps/aarch64/memset.S (MEMSET): Define.
18221
18222 2017-12-20 Florian Weimer <fweimer@redhat.com>
18223
18224 [BZ #22635]
18225 nptl: Provide full implementation of pthread_self in libc.so.
18226 * nptl/Makefile (routines): Add pthread_self.
18227 (libpthread-routines): Replace pthread_self with
18228 compat-pthread_self.
18229 * nptl/forward.c (pthread_self): Remove.
18230 * nptl/nptl-init.c (pthread_functions): Do not initialize
18231 ptr_pthread_self.
18232 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18233 * nptl/compat-pthread_self.c: New file.
18234 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18235 Remove ptr_pthread_self.
18236
18237 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18238
18239 * posix/regcomp.c: Fix spelling in comments.
18240 * posix/regex.h: Likewise.
18241 * posix/regex_internal.c: Likewise.
18242 * posix/regexec.c: Likewise.
18243
18244 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18245
18246 [BZ #22377]
18247 * math/Makefile [C++] (tests): Add test for iseqsig.
18248 * math/math.h [C++] (iseqsig): New implementation, which does
18249 not rely on __MATH_TG/__builtin_types_compatible_p.
18250 * math/test-math-iseqsig.cc: New file.
18251 * sysdeps/powerpc/powerpc64le/Makefile
18252 (CFLAGS-test-math-iseqsig.cc): New variable.
18253
18254 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18255
18256 * elf/dl-load.c (is_trusted_path): Remove.
18257 (fillin_rpath): Remove check_trusted argument and its use,
18258 all callers changed.
18259
18260 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18261
18262 [BZ #22630]
18263 * Makeconfig (link-pie-before-libc): Replace -pie with
18264 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18265 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18266 (tst-dlopen-aout-no-pie): New.
18267 (LDFLAGS-tst-prelink): Removed.
18268 (tst-prelink-no-pie): New.
18269 (LDFLAGS-tst-main1): Removed.
18270 (tst-main1-no-pie): New.
18271 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18272 (tst-gmon-no-pie): New.
18273
18274 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18275
18276 * manual/install.texi: Document that --enable-static-pie
18277 implies PIE.
18278 * INSTALL: Regenerated.
18279
18280 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18281
18282 [BZ #21309]
18283 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18284 unsigned.
18285
18286 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18287
18288 Revert:
18289
18290 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18291
18292 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18293
18294 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18295
18296 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18297 <errno.h>. Include "eexp.tbl".
18298 (half): New constant.
18299 (one): Likewise.
18300 (__ieee754_exp): Rewrite.
18301 (__slowexp): Remove prototype.
18302 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18303 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18304 * sysdeps/i386/fpu/slowexp.c: Likewise.
18305 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18306 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18307 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18308 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18309 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18310 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18311 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18312 comment.
18313 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18314 (CPPFLAGS-slowexp.c): Remove variable.
18315 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18316 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18317 (CFLAGS-slowexp-fma.c): Remove variable.
18318 (CFLAGS-slowexp-fma4.c): Likewise.
18319 (CFLAGS-slowexp-avx.c): Likewise.
18320 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18321 define as macro.
18322 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18323 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18324 * math/Makefile (type-double-routines): Remove slowexp.
18325 * manual/probes.texi (slowexp_p6): Remove.
18326 (slowexp_p32): Likewise.
18327
18328 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18329
18330 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18331 arithmetic.
18332
18333 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18334
18335 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18336
18337 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18338
18339 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18340
18341 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18342 <errno.h>. Include "eexp.tbl".
18343 (half): New constant.
18344 (one): Likewise.
18345 (__ieee754_exp): Rewrite.
18346 (__slowexp): Remove prototype.
18347 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18348 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18349 * sysdeps/i386/fpu/slowexp.c: Likewise.
18350 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18351 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18352 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18353 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18354 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18355 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18356 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18357 comment.
18358 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18359 (CPPFLAGS-slowexp.c): Remove variable.
18360 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18361 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18362 (CFLAGS-slowexp-fma.c): Remove variable.
18363 (CFLAGS-slowexp-fma4.c): Likewise.
18364 (CFLAGS-slowexp-avx.c): Likewise.
18365 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18366 define as macro.
18367 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18368 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18369 * math/Makefile (type-double-routines): Remove slowexp.
18370 * manual/probes.texi (slowexp_p6): Remove.
18371 (slowexp_p32): Likewise.
18372
18373 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18374 James Clarke <jrtc27@jrtc27.com>
18375
18376 [BZ #22603]
18377 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18378 addition.
18379
18380 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18381
18382 [BZ #22605]
18383 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18384 code.
18385
18386 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18387
18388 [BZ #22563]
18389 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18390 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18391 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18392 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18393 to feature_1.
18394
18395 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18396
18397 [BZ #22563]
18398 * bits/types/__cancel_jmp_buf_tag.h: New file.
18399 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18400 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18401 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18402 * nptl/Makefile (headers): Add
18403 bits/types/__cancel_jmp_buf_tag.h.
18404 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18405 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18406 * sysdeps/nptl/pthread.h: Include
18407 <bits/types/__cancel_jmp_buf_tag.h>.
18408 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18409 __cancel_jmp_buf.
18410 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18411
18412 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18413
18414 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18415 --enable-static-pie variants to x86_64, x32 and i686.
18416
18417 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18418
18419 [BZ #22631]
18420 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18421 argument for attrubutes. All callers changed.
18422 (__inline_mathop1): Likewise. All callers changed.
18423 (__inline_mathop): Likewise. All callers changed.
18424 [__USE_MISC] (scalbn): Use __inline_forward instead of
18425 __inline_forward_c.
18426 [__USE_ISOC99] (scalbln): Likewise.
18427 [__USE_ISOC99] (nearbyint): Likewise.
18428 [__USE_ISOC99] (lrint): Likewise.
18429 [__USE_MISC] (scalbnf): Likewise.
18430 [__USE_ISOC99] (scalblnf): Likewise.
18431 [__USE_ISOC99] (nearbyintf): Likewise.
18432 [__USE_ISOC99] (lrintf): Likewise.
18433 [__USE_MISC] (scalbnl): Likewise.
18434 [__USE_ISOC99] (scalblnl): Likewise.
18435 [__USE_ISOC99] (nearbyintl): Likewise.
18436 [__USE_ISOC99] (lrintl): Likewise.
18437 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18438 __inline_mathop and __m81_defun changed.
18439
18440 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18441 CPU or FPU for ARM hard-float configurations.
18442
18443 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18444
18445 * nptl/tst-attr3.c: Include <libc-diag.h>.
18446 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18447
18448 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18449
18450 * string/tester.c (test_strncat): Also disable -Warray-bounds
18451 warnings for two tests.
18452
18453 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18454
18455 [BZ #22614]
18456 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18457 $(cc-pie-default) == yes.
18458 * config.make.in (cc-pie-default): New.
18459 * configure.ac (libc_cv_pie_default): Renamed to ...
18460 (libc_cv_cc_pie_default): This.
18461 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18462 * configure: Regenerated.
18463
18464 2017-12-18 Florian Weimer <fweimer@redhat.com>
18465
18466 [BZ #20204]
18467 ld.so: Harden dl-libc/libdl hooks.
18468 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18469 (rtld_active): New function.
18470 * dlfcn/dladdr.c (__dladdr): Call it.
18471 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18472 * dlfcn/dlclose.c (__dlcose): Likewise.
18473 * dlfcn/dlerror.c (__dlerror): Likewise.
18474 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18475 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18476 * dlfcn/dlopen.c (__dlopen): Likewise.
18477 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18478 * dlfcn/dlsym.c (__dlsym): Likewise.
18479 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18480 * libio/vtables.c (_IO_vtable_check): Likewise.
18481 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18482 (__libc_dlclose): Likewise.
18483 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18484 assignment.
18485
18486 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18487
18488 [BZ #22446]
18489 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18490 buffers for readlink input and output.
18491
18492 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18493
18494 [BZ #22624]
18495 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18496 inhibit_stack_protector.
18497
18498 [BZ #22624]
18499 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18500 inhibit_stack_protector.
18501
18502 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18503
18504 [BZ #22627]
18505 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18506 code and invocation.
18507
18508 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18509
18510 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18511
18512 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18513
18514 [BZ #22505]
18515 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18516
18517 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18518
18519 * sysdeps/s390/fpu/libm-test-ulps: Update.
18520
18521 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18522
18523 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18524
18525 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18526
18527 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18528 constants to s_sincosf.h file.
18529 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18530 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18531 implementation.
18532 * sysdeps/ieee754/flt-32/s_sincosf.h:
18533 New file.
18534
18535 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18536
18537 [BZ #14681]
18538 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18539 before mtrace.
18540
18541 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18542
18543 [BZ #19574]
18544 * INSTALL: Regenerated.
18545 * Makeconfig (real-static-start-installed-name): New.
18546 (pic-default): Updated for --enable-static-pie.
18547 (pie-default): New for --enable-static-pie.
18548 (default-pie-ldflag): Likewise.
18549 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18550 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18551 Replace $(static-start-installed-name) with
18552 $(real-static-start-installed-name).
18553 (+prectorT): Updated for --enable-static-pie.
18554 (+postctorT): Likewise.
18555 (CFLAGS-.o): Add $(pie-default).
18556 (CFLAGS-.op): Likewise.
18557 * NEWS: Mention --enable-static-pie.
18558 * config.h.in (ENABLE_STATIC_PIE): New.
18559 * configure.ac (--enable-static-pie): New configure option.
18560 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18561 (have-static-pie): Likewise.
18562 Enable static PIE if linker supports --no-dynamic-linker.
18563 (ENABLE_STATIC_PIE): New AC_DEFINE.
18564 (enable-static-pie): New LIBC_CONFIG_VAR.
18565 * configure: Regenerated.
18566 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18567 gr$(start-installed-name) for --enable-static-pie.
18568 (extra-objs): Likewise.
18569 (install-lib): Likewise.
18570 (extra-objs): Add static-reloc.o and static-reloc.os
18571 ($(objpfx)$(start-installed-name)): Also depend on
18572 $(objpfx)static-reloc.o.
18573 ($(objpfx)r$(start-installed-name)): New.
18574 ($(objpfx)g$(start-installed-name)): Also depend on
18575 $(objpfx)static-reloc.os.
18576 ($(objpfx)gr$(start-installed-name)): New.
18577 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18578 in libc.a.
18579 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18580 initimage.
18581 * csu/static-reloc.c: New file.
18582 * elf/Makefile (routines): Add dl-reloc-static-pie.
18583 (elide-routines.os): Likewise.
18584 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18585 (tst-tls1-static-non-pie-no-pie): New.
18586 * elf/dl-reloc-static-pie.c: New file.
18587 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18588 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18589 STATIC_PIE_BOOTSTRAP.
18590 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18591 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18592 (tests-static): Likewise.
18593 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18594 (tst-gmon-static-no-pie): New.
18595 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18596 (CRT-tst-gmon-static-pie): Likewise.
18597 (tst-gmon-static-pie-ENV): Likewise.
18598 (tests-special): Likewise.
18599 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18600 (clean-tst-gmon-static-pie-data): Likewise.
18601 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18602 * gmon/tst-gmon-static-pie.c: New file.
18603 * manual/install.texi: Document --enable-static-pie.
18604 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18605 (_dl_get_dl_main_map): Likewise.
18606 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18607 * sysdeps/x86_64/configure.ac: Likewise.
18608 * sysdeps/i386/configure: Regenerated.
18609 * sysdeps/x86_64/configure: Likewise.
18610 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18611 (ASFLAGS-.op): Likewise.
18612
18613 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18614
18615 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18616 * posix/tst-mmap-offset.c (fname): Use /tmp.
18617 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18618
18619 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18620
18621 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18622
18623 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18624
18625 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18626 errno.
18627
18628 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18629
18630 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18631 --with-float=hard for arm-linux-gnueabihf configurations.
18632
18633 [BZ #14121]
18634 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18635 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18636 ($(mo-installed)): Use $(objpfx)%.mo.
18637 (realclean): Remove rule.
18638
18639 * po/Makefile (linguas): Remove rule and dependencies.
18640 (linguas.mo): Likewise.
18641 (.PHONY): Do not depend on linguas and linguas.mo.
18642 (podir): Remove variable.
18643 (pofiles): Likewise.
18644 [$(pofiles)] (%.po): Remove rule.
18645
18646 * sysdeps/sparc/sparc32/Makefile
18647 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18648 start-of-line whitespace in argument of echo.
18649 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18650 with whitespace. Generate __wrap_.udiv alias.
18651 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18652 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18653 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18654 * sysdeps/sparc/sparc32/urem.S: Likewise.
18655
18656 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18657
18658 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18659 for aligned inputs.
18660
18661 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18662
18663 * benchtests/bench-strcmp.c: Print output in JSON format.
18664
18665 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18666
18667 2017-12-14 Florian Weimer <fweimer@redhat.com>
18668
18669 [BZ #22607]
18670 CVE-2017-1000409
18671 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18672 the expanded path string.
18673
18674 2017-12-14 Florian Weimer <fweimer@redhat.com>
18675
18676 [BZ #22606]
18677 CVE-2017-1000408
18678 * elf/dl-load.c (system_dirs): Update comment.
18679 (nsystem_dirs_len): Use array_length.
18680 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18681
18682 2017-12-14 Florian Weimer <fweimer@redhat.com>
18683
18684 Simplify compiling most of support/ outside of glibc.
18685 * support/check_addrinfo.c: Include <string.h>.
18686 * support/check_dns_packet.c: Likewise.
18687 * support/check_hostent.c: Likewise.
18688 * support/support_can_chroot.c: Include <support/xunistd.h>.
18689 * support/support_format_addrinfo.c: Include <stdlib.h>
18690 * support/support_format_dns_packet.c: Include <stdbool.h>.
18691 * support/support_format_hostent.c: Include <stdlib.h>.
18692 * support/support_format_netent.c: Likewise.
18693 * support/support_write_string.c: Include <support/xunistd.h>.
18694 * support/xdlfcn.c: Include <stddef.h>.
18695
18696 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18697
18698 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18699
18700 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18701 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18702
18703 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18704 (sysdeps_routines): Add memset-niagara7.
18705 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18706 Likewise.
18707 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18708 file.
18709 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18710 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18711 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18712 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18713 Add niagara7 option.
18714 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18715 memset.
18716
18717 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18718 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18719 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18720 Likewise.
18721 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18722 New file.
18723 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18724 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18725 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18726 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18727 and __memmove_niagara7.
18728 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18729 Add niagara7 option.
18730 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18731 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18732 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18733 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18734 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18735
18736 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18737
18738 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18739 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18740 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18741 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18742
18743 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18744 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18745 _dl_sparc_cap_flags array.
18746 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18747
18748 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18749
18750 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18751 time whenever possible.
18752
18753 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18754
18755 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18756 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18757
18758 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18759
18760 * soft-fp/fmadf4.c: Move to ....
18761 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18762 * soft-fp/fmasf4.c: Move to ....
18763 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18764 * soft-fp/fmatf4.c: Move to ....
18765 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18766 * sysdeps/ieee754/soft-fp/Makefile: New file.
18767 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18768 * sysdeps/arm/preconfigure: Regenerated.
18769 * sysdeps/arm/nofpu/Implies: New file.
18770 * sysdeps/arm/s_fma.c: Remove file.
18771 * sysdeps/arm/s_fmaf.c: Likewise.
18772 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18773 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18774 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18775 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18776 * sysdeps/microblaze/s_fma.c: Remove file.
18777 * sysdeps/microblaze/s_fmaf.c: Likewise.
18778 * sysdeps/mips/mips32/nofpu/Implies: New file.
18779 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18780 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18781 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18782 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18783 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18784 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18785 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18786 implementation.
18787 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18788 * sysdeps/nios2/s_fma.c: Remove file.
18789 * sysdeps/nios2/s_fmaf.c: Likewise.
18790 * sysdeps/sh/nofpu/Implies: New file.
18791 * sysdeps/sh/s_fma.c: Remove file.
18792 * sysdeps/sh/s_fmaf.c: Likewise.
18793 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18794 * sysdeps/tile/s_fma.c: Remove file.
18795 * sysdeps/tile/s_fmaf.c: Likewise.
18796
18797 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18798
18799 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18800 Add s_cosf-sse2 and s_cosf-fma.
18801 (CFLAGS-s_cosf-fma.c): New.
18802 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18803 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18804 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18805
18806 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18807
18808 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18809
18810 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18811
18812 * libio/Makefile (tests): Add tst-bz22415.
18813 (tst-bz22415-ENV): New rule.
18814 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18815 (tests-special): Add tst-bz22415-mem.out.
18816 ($(objpfx)tst-bz22415-mem.out): New rule.
18817 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18818 in case of a successful seek operation.
18819 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18820 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18821 buffer is required.
18822 * libio/tst-bz22415.c: New test.
18823
18824 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18825
18826 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18827
18828 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18829 __IPC_64 to 0 to avoid IPC_64 being set.
18830
18831 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18832
18833 [BZ #22593]
18834 * math/bits/mathcalls.h (nextafter): Remove const.
18835 (nexttoward): Likewise.
18836
18837 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18838
18839 * configure.ac (--with-fp): Remove configure option.
18840 (with_fp_cond): New variable.
18841 (libc_cv_with_fp): New configure test. Use this variable instead
18842 of with_fp.
18843 * configure: Regenerated.
18844 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18845 * manual/install.texi (Configuring and compiling): Remove
18846 --without-fp.
18847 * INSTALL: Regenerated.
18848 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18849 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18850 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18851 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18852 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18853 use --without-fp to configure glibc.
18854
18855 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18856
18857 * manual/locale.texi (nl_langinfo): Fix a typo.
18858
18859 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18860
18861 [BZ #22588]
18862 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18863
18864 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18865
18866 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18867 (CFLAGS-argp-parse.c): Likewise.
18868 (CFLAGS-argp-fmtstream.c): Likewise.
18869 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18870 (CPPFLAGS-sha512-crypt.c): Likewise.
18871 (CPPFLAGS-md5-crypt.c): Likewise.
18872 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18873 (CFLAGS-stack_chk_fail_local.c): Likewise.
18874 (CFLAGS-backtrace.c): Likewise.
18875 (CFLAGS-sprintf_chk.c): Likewise.
18876 (CFLAGS-snprintf_chk.c): Likewise.
18877 (CFLAGS-vsprintf_chk.c): Likewise.
18878 (CFLAGS-vsnprintf_chk.c): Likewise.
18879 (CFLAGS-asprintf_chk.c): Likewise.
18880 (CFLAGS-vasprintf_chk.c): Likewise.
18881 (CFLAGS-obprintf_chk.c): Likewise.
18882 (CFLAGS-dprintf_chk.c): Likewise.
18883 (CFLAGS-vdprintf_chk.c): Likewise.
18884 (CFLAGS-printf_chk.c): Likewise.
18885 (CFLAGS-fprintf_chk.c): Likewise.
18886 (CFLAGS-vprintf_chk.c): Likewise.
18887 (CFLAGS-vfprintf_chk.c): Likewise.
18888 (CFLAGS-gets_chk.c): Likewise.
18889 (CFLAGS-fgets_chk.c): Likewise.
18890 (CFLAGS-fgets_u_chk.c): Likewise.
18891 (CFLAGS-fread_chk.c): Likewise.
18892 (CFLAGS-fread_u_chk.c): Likewise.
18893 (CFLAGS-swprintf_chk.c): Likewise.
18894 (CFLAGS-vswprintf_chk.c): Likewise.
18895 (CFLAGS-wprintf_chk.c): Likewise.
18896 (CFLAGS-fwprintf_chk.c): Likewise.
18897 (CFLAGS-vwprintf_chk.c): Likewise.
18898 (CFLAGS-vfwprintf_chk.c): Likewise.
18899 (CFLAGS-fgetws_chk.c): Likewise.
18900 (CFLAGS-fgetws_u_chk.c): Likewise.
18901 (CFLAGS-read_chk.c): Likewise.
18902 (CFLAGS-pread_chk.c): Likewise.
18903 (CFLAGS-pread64_chk.c): Likewise.
18904 (CFLAGS-recv_chk.c): Likewise.
18905 (CFLAGS-recvfrom_chk.c): Likewise.
18906 (CFLAGS-tst-longjmp_chk.c): Likewise.
18907 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18908 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18909 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18910 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18911 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18912 (CFLAGS-tst-chk1.c): Likewise.
18913 (CFLAGS-tst-chk2.c): Likewise.
18914 (CFLAGS-tst-chk3.c): Likewise.
18915 (CFLAGS-tst-chk4.cc): Likewise.
18916 (CFLAGS-tst-chk5.cc): Likewise.
18917 (CFLAGS-tst-chk6.cc): Likewise.
18918 (CFLAGS-tst-lfschk1.c): Likewise.
18919 (CFLAGS-tst-lfschk2.c): Likewise.
18920 (CFLAGS-tst-lfschk3.c): Likewise.
18921 (CFLAGS-tst-lfschk4.cc): Likewise.
18922 (CFLAGS-tst-lfschk5.cc): Likewise.
18923 (CFLAGS-tst-lfschk6.cc): Likewise.
18924 (CFLAGS-tst-ssp-1.c): Likewise.
18925 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18926 (CFLAGS-scandir64.c): Likewise.
18927 (CFLAGS-scandir-tail.c): Likewise.
18928 (CFLAGS-scandir64-tail.c): Likewise.
18929 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18930 (CFLAGS-dl-tunables.c): Likewise.
18931 (CFLAGS-dl-runtime.c): Likewise.
18932 (CFLAGS-dl-lookup.c): Likewise.
18933 (CFLAGS-dl-iterate-phdr.c): Likewise.
18934 (CFLAGS-vismain.c): Likewise.
18935 (CFLAGS-tst-linkall-static.c): Likewise.
18936 (CFLAGS-tst-linkall-static.c): Likewise.
18937 (CPPFLAGS-dl-load.c): Likewise.
18938 (CFLAGS-ldconfig.c): Likewise.
18939 (CFLAGS-dl-cache.c): Likewise.
18940 (CFLAGS-cache.c): Likewise.
18941 (CFLAGS-rtld.c): Likewise.
18942 (CFLAGS-multiload.c): Likewise.
18943 (CFLAGS-filtmod1.c): Likewise.
18944 (CFLAGS-tst-align.c): Likewise.
18945 (CFLAGS-tst-align2.c): Likewise.
18946 (CFLAGS-tst-alignmod.c): Likewise.
18947 (CFLAGS-tst-alignmod2.c): Likewise.
18948 (CPPFLAGS-tst-execstack.c): Likewise.
18949 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18950 (CFLAGS-tst-latepthreadmod.c): Likewise.
18951 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18952 (CFLAGS-getgrnam_r.c): Likewise.
18953 (CFLAGS-getgrent_r.c): Likewise.
18954 (CFLAGS-getgrent.c): Likewise.
18955 (CFLAGS-fgetgrent.c): Likewise.
18956 (CFLAGS-fgetgrent_r.c): Likewise.
18957 (CFLAGS-putgrent.c): Likewise.
18958 (CFLAGS-initgroups.c): Likewise.
18959 (CFLAGS-getgrgid.c): Likewise.
18960 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18961 (CFLAGS-getsgent.c): Likewise.
18962 (CFLAGS-fgetsgent.c): Likewise.
18963 (CFLAGS-fgetsgent_r.c): Likewise.
18964 (CFLAGS-putsgent.c): Likewise.
18965 (CFLAGS-getsgnam.c): Likewise.
18966 (CFLAGS-getsgnam_r.c): Likewise.
18967 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18968 (CFLAGS-iconv_charmap.c): Likewise.
18969 (CFLAGS-dummy-repertoire.c): Likewise.
18970 (CFLAGS-charmap.c): Likewise.
18971 (CFLAGS-linereader.c): Likewise.
18972 (CFLAGS-simple-hash.c): Likewise.
18973 (CFLAGS-gconv_conf.c): Likewise.
18974 (CFLAGS-iconvconfig.c): Likewise.
18975 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18976 (CFLAGS-gethstbyad.c): Likewise.
18977 (CFLAGS-gethstbynm_r.c): Likewise.
18978 (CFLAGS-gethstbynm.c): Likewise.
18979 (CFLAGS-gethstbynm2_r.c): Likewise.
18980 (CFLAGS-gethstbynm2.c): Likewise.
18981 (CFLAGS-gethstent_r.c): Likewise.
18982 (CFLAGS-gethstent.c): Likewise.
18983 (CFLAGS-rcmd.c): Likewise.
18984 (CFLAGS-getnetbynm_r.c): Likewise.
18985 (CFLAGS-getnetbynm.c): Likewise.
18986 (CFLAGS-getnetbyad_r.c): Likewise.
18987 (CFLAGS-getnetbyad.c): Likewise.
18988 (CFLAGS-getnetent_r.c): Likewise.
18989 (CFLAGS-getnetent.c): Likewise.
18990 (CFLAGS-getaliasent_r.c): Likewise.
18991 (CFLAGS-getaliasent.c): Likewise.
18992 (CFLAGS-getrpcent_r.c): Likewise.
18993 (CFLAGS-getrpcent.c): Likewise.
18994 (CFLAGS-getservent_r.c): Likewise.
18995 (CFLAGS-getservent.c): Likewise.
18996 (CFLAGS-getprtent_r.c): Likewise.
18997 (CFLAGS-getprtent.c): Likewise.
18998 (CFLAGS-either_ntoh.c): Likewise.
18999 (CFLAGS-either_hton.c): Likewise.
19000 (CFLAGS-getnetgrent.c): Likewise.
19001 (CFLAGS-getnetgrent_r.c): Likewise.
19002 (CFLAGS-tst-checks-posix.c): Likewise.
19003 (CFLAGS-tst-sockaddr.c): Likewise.
19004 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19005 (CFLAGS-tst-translit.c): Likewise.
19006 (CFLAGS-tst-gettext2.c): Likewise.
19007 (CFLAGS-tst-codeset.c): Likewise.
19008 (CFLAGS-tst-gettext3.c): Likewise.
19009 (CFLAGS-tst-gettext4.c): Likewise.
19010 (CFLAGS-tst-gettext5.c): Likewise.
19011 (CFLAGS-tst-gettext6.c): Likewise.
19012 * io/Makefile (CFLAGS-open.c): Likewise.
19013 (CFLAGS-open64.c): Likewise.
19014 (CFLAGS-creat.c): Likewise.
19015 (CFLAGS-creat64.c): Likewise.
19016 (CFLAGS-fcntl.c): Likewise.
19017 (CFLAGS-poll.c): Likewise.
19018 (CFLAGS-ppoll.c): Likewise.
19019 (CFLAGS-lockf.c): Likewise.
19020 (CFLAGS-statfs.c): Likewise.
19021 (CFLAGS-fstatfs.c): Likewise.
19022 (CFLAGS-statvfs.c): Likewise.
19023 (CFLAGS-fstatvfs.c): Likewise.
19024 (CFLAGS-fts.c): Likewise.
19025 (CFLAGS-fts64.c): Likewise.
19026 (CFLAGS-ftw.c): Likewise.
19027 (CFLAGS-ftw64.c): Likewise.
19028 (CFLAGS-lockf.c): Likewise.
19029 (CFLAGS-posix_fallocate.c): Likewise.
19030 (CFLAGS-posix_fallocate64.c): Likewise.
19031 (CFLAGS-fallocate.c): Likewise.
19032 (CFLAGS-fallocate64.c): Likewise.
19033 (CFLAGS-read.c): Likewise.
19034 (CFLAGS-write.c): Likewise.
19035 (CFLAGS-test-stat.c): Likewise.
19036 (CFLAGS-test-lfs.c): Likewise.
19037 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19038 (CFLAGS-fputc.c): Likewise.
19039 (CFLAGS-fputwc.c): Likewise.
19040 (CFLAGS-freopen64.c): Likewise.
19041 (CFLAGS-freopen.c): Likewise.
19042 (CFLAGS-fseek.c): Likewise.
19043 (CFLAGS-fseeko64.c): Likewise.
19044 (CFLAGS-fseeko.c): Likewise.
19045 (CFLAGS-ftello64.c): Likewise.
19046 (CFLAGS-ftello.c): Likewise.
19047 (CFLAGS-fwide.c): Likewise.
19048 (CFLAGS-genops.c): Likewise.
19049 (CFLAGS-getc.c): Likewise.
19050 (CFLAGS-getchar.c): Likewise.
19051 (CFLAGS-getwc.c): Likewise.
19052 (CFLAGS-getwchar.c): Likewise.
19053 (CFLAGS-iofclose.c): Likewise.
19054 (CFLAGS-iofflush.c): Likewise.
19055 (CFLAGS-iofgetpos64.c): Likewise.
19056 (CFLAGS-iofgetpos.c): Likewise.
19057 (CFLAGS-iofgets.c): Likewise.
19058 (CFLAGS-iofgetws.c): Likewise.
19059 (CFLAGS-iofputs.c): Likewise.
19060 (CFLAGS-iofputws.c): Likewise.
19061 (CFLAGS-iofread.c): Likewise.
19062 (CFLAGS-iofsetpos64.c): Likewise.
19063 (CFLAGS-iofsetpos.c): Likewise.
19064 (CFLAGS-ioftell.c): Likewise.
19065 (CFLAGS-iofwrite.c): Likewise.
19066 (CFLAGS-iogetdelim.c): Likewise.
19067 (CFLAGS-iogetline.c): Likewise.
19068 (CFLAGS-iogets.c): Likewise.
19069 (CFLAGS-iogetwline.c): Likewise.
19070 (CFLAGS-ioputs.c): Likewise.
19071 (CFLAGS-ioseekoff.c): Likewise.
19072 (CFLAGS-ioseekpos.c): Likewise.
19073 (CFLAGS-iosetbuffer.c): Likewise.
19074 (CFLAGS-iosetvbuf.c): Likewise.
19075 (CFLAGS-ioungetc.c): Likewise.
19076 (CFLAGS-ioungetwc.c): Likewise.
19077 (CFLAGS-oldfileops.c): Likewise.
19078 (CFLAGS-oldiofclose.c): Likewise.
19079 (CFLAGS-oldiofgetpos64.c): Likewise.
19080 (CFLAGS-oldiofgetpos.c): Likewise.
19081 (CFLAGS-oldiofsetpos64.c): Likewise.
19082 (CFLAGS-oldiofsetpos.c): Likewise.
19083 (CFLAGS-peekc.c): Likewise.
19084 (CFLAGS-putc.c): Likewise.
19085 (CFLAGS-putchar.c): Likewise.
19086 (CFLAGS-putwc.c): Likewise.
19087 (CFLAGS-putwchar.c): Likewise.
19088 (CFLAGS-rewind.c): Likewise.
19089 (CFLAGS-wfileops.c): Likewise.
19090 (CFLAGS-wgenops.c): Likewise.
19091 (CFLAGS-oldiofopen.c): Likewise.
19092 (CFLAGS-iofopen.c): Likewise.
19093 (CFLAGS-iofopen64.c): Likewise.
19094 (CFLAGS-oldtmpfile.c): Likewise.
19095 (CFLAGS-tst_putwc.c): Likewise.
19096 * locale/Makefile (CFLAGS-md5.c): Likewise.
19097 (CFLAGS-charmap.c): Likewise.
19098 (CFLAGS-locfile.c): Likewise.
19099 (CFLAGS-charmap-dir.c): Likewise.
19100 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19101 (CFLAGS-getpt.c): Likewise.
19102 (CFLAGS-pt_chown.c): Likewise.
19103 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19104 (CFLAGS-obstack.c): Likewise.
19105 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19106 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19107 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19108 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19109 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19110 (CFLAGS-test-tgmath.c): Likewise.
19111 (CFLAGS-test-tgmath2.c): Likewise.
19112 (CFLAGS-test-tgmath-ret.c): Likewise.
19113 (CFLAGS-test-powl.c): Likewise.
19114 (CFLAGS-test-snan.c): Likewise.
19115 (CFLAGS-test-signgam-finite.c): Likewise.
19116 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19117 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19118 (CFLAGS-test-signgam-uchar.c): Likewise.
19119 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19120 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19121 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19122 (CFLAGS-test-signgam-uint.c): Likewise.
19123 (CFLAGS-test-signgam-uint-init.c): Likewise.
19124 (CFLAGS-test-signgam-uint-static.c): Likewise.
19125 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19126 (CFLAGS-test-signgam-ullong.c): Likewise.
19127 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19128 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19129 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19130 (CFLAGS-test-math-cxx11.cc): Likewise.
19131 (CFLAGS-test-math-isinff.cc): Likewise.
19132 (CFLAGS-test-math-iszero.cc): Likewise.
19133 (CFLAGS-test-math-issignaling.cc): Likewise.
19134 (CFLAGS-test-math-iscanonical.cc): Likewise.
19135 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19136 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19137 (CFLAGS-test-flt-eval-method.c): Likewise.
19138 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19139 (CFLAGS-test-finite-macros.c): Likewise.
19140 * misc/Makefile (CFLAGS-select.c): Likewise.
19141 (CFLAGS-tsearch.c): Likewise.
19142 (CFLAGS-lsearch.c): Likewise.
19143 (CFLAGS-pselect.c): Likewise.
19144 (CFLAGS-readv.c): Likewise.
19145 (CFLAGS-writev.c): Likewise.
19146 (CFLAGS-preadv.c): Likewise.
19147 (CFLAGS-preadv64.c): Likewise.
19148 (CFLAGS-pwritev.c): Likewise.
19149 (CFLAGS-pwritev64.c): Likewise.
19150 (CFLAGS-preadv2.c): Likewise.
19151 (CFLAGS-preadv64v2.c): Likewise.
19152 (CFLAGS-pwritev2.c): Likewise.
19153 (CFLAGS-pwritev64v2.c): Likewise.
19154 (CFLAGS-usleep.c): Likewise.
19155 (CFLAGS-syslog.c): Likewise.
19156 (CFLAGS-error.c): Likewise.
19157 (CFLAGS-getpass.c): Likewise.
19158 (CFLAGS-mkstemp.c): Likewise.
19159 (CFLAGS-mkstemp64.c): Likewise.
19160 (CFLAGS-getsysstats.c): Likewise.
19161 (CFLAGS-getusershell.c): Likewise.
19162 (CFLAGS-err.c): Likewise.
19163 (CFLAGS-tst-tsearch.c): Likewise.
19164 (CFLAGS-msync.c): Likewise.
19165 (CFLAGS-fdatasync.c): Likewise.
19166 (CFLAGS-fsync.c): Likewise.
19167 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19168 (CFLAGS-unwind.c): Likewise.
19169 (CFLAGS-unwind-forcedunwind.c): Likewise.
19170 (CFLAGS-pthread_cancel.c): Likewise.
19171 (CFLAGS-pthread_setcancelstate.c): Likewise.
19172 (CFLAGS-pthread_setcanceltype.c): Likewise.
19173 (CFLAGS-cancellation.c): Likewise.
19174 (CFLAGS-libc-cancellation.c): Likewise.
19175 (CFLAGS-pthread_exit.c): Likewise.
19176 (CFLAGS-forward.c): Likewise.
19177 (CFLAGS-pthread_testcancel.c): Likewise.
19178 (CFLAGS-pthread_join.c): Likewise.
19179 (CFLAGS-pthread_timedjoin.c): Likewise.
19180 (CFLAGS-pthread_once.c): Likewise.
19181 (CFLAGS-pthread_cond_wait.c): Likewise.
19182 (CFLAGS-sem_wait.c): Likewise.
19183 (CFLAGS-sem_timedwait.c): Likewise.
19184 (CFLAGS-fcntl.c): Likewise.
19185 (CFLAGS-lockf.c): Likewise.
19186 (CFLAGS-pread.c): Likewise.
19187 (CFLAGS-pread64.c): Likewise.
19188 (CFLAGS-pwrite.c): Likewise.
19189 (CFLAGS-pwrite64.c): Likewise.
19190 (CFLAGS-wait.c): Likewise.
19191 (CFLAGS-waitpid.c): Likewise.
19192 (CFLAGS-sigwait.c): Likewise.
19193 (CFLAGS-msgrcv.c): Likewise.
19194 (CFLAGS-msgsnd.c): Likewise.
19195 (CFLAGS-tcdrain.c): Likewise.
19196 (CFLAGS-open.c): Likewise.
19197 (CFLAGS-open64.c): Likewise.
19198 (CFLAGS-pause.c): Likewise.
19199 (CFLAGS-recv.c): Likewise.
19200 (CFLAGS-send.c): Likewise.
19201 (CFLAGS-accept.c): Likewise.
19202 (CFLAGS-sendto.c): Likewise.
19203 (CFLAGS-connect.c): Likewise.
19204 (CFLAGS-recvfrom.c): Likewise.
19205 (CFLAGS-recvmsg.c): Likewise.
19206 (CFLAGS-sendmsg.c): Likewise.
19207 (CFLAGS-close.c): Likewise.
19208 (CFLAGS-read.c): Likewise.
19209 (CFLAGS-write.c): Likewise.
19210 (CFLAGS-nanosleep.c): Likewise.
19211 (CFLAGS-sigsuspend.c): Likewise.
19212 (CFLAGS-msync.c): Likewise.
19213 (CFLAGS-fdatasync.c): Likewise.
19214 (CFLAGS-fsync.c): Likewise.
19215 (CFLAGS-pt-system.c): Likewise.
19216 (CFLAGS-tst-cleanup2.c): Likewise.
19217 (CFLAGS-tst-cleanupx2.c): Likewise.
19218 (CFLAGS-flockfile.c): Likewise.
19219 (CFLAGS-ftrylockfile.c): Likewise.
19220 (CFLAGS-funlockfile.c): Likewise.
19221 (CFLAGS-tst-initializers1.c): Likewise.
19222 (CFLAGS-tst-initializers1-c89.c): Likewise.
19223 (CFLAGS-tst-initializers1-c99.c): Likewise.
19224 (CFLAGS-tst-initializers1-c11.c): Likewise.
19225 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19226 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19227 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19228 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19229 (CFLAGS-nscd_getgr_r.c): Likewise.
19230 (CFLAGS-nscd_gethst_r.c): Likewise.
19231 (CFLAGS-nscd_getai.c): Likewise.
19232 (CFLAGS-nscd_initgroups.c): Likewise.
19233 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19234 (CFLAGS-pause.c): Likewise.
19235 (CFLAGS-pread.c): Likewise.
19236 (CFLAGS-pread64.c): Likewise.
19237 (CFLAGS-pwrite.c): Likewise.
19238 (CFLAGS-pwrite64.c): Likewise.
19239 (CFLAGS-sleep.c): Likewise.
19240 (CFLAGS-wait.c): Likewise.
19241 (CFLAGS-waitid.c): Likewise.
19242 (CFLAGS-waitpid.c): Likewise.
19243 (CFLAGS-getopt.c): Likewise.
19244 (CFLAGS-wordexp.c): Likewise.
19245 (CFLAGS-sysconf.c): Likewise.
19246 (CFLAGS-pathconf.c): Likewise.
19247 (CFLAGS-fpathconf.c): Likewise.
19248 (CFLAGS-spawn.c): Likewise.
19249 (CFLAGS-spawnp.c): Likewise.
19250 (CFLAGS-spawni.c): Likewise.
19251 (CFLAGS-glob.c): Likewise.
19252 (CFLAGS-glob64.c): Likewise.
19253 (CFLAGS-getconf.c): Likewise.
19254 (CFLAGS-nanosleep.c): Likewise.
19255 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19256 (CFLAGS-getpwent.c): Likewise.
19257 (CFLAGS-getpw.c): Likewise.
19258 (CFLAGS-fgetpwent_r.c): Likewise.
19259 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19260 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19261 (CFLAGS-mq_timedreceive.c): Likewise.
19262 (CFLAGS-mq_timedsend.c): Likewise.
19263 (CFLAGS-clock_nanosleep.c): Likewise.
19264 (CFLAGS-librt-cancellation.c): Likewise.
19265 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19266 (CFLAGS-getspent.c): Likewise.
19267 (CFLAGS-fgetspent.c): Likewise.
19268 (CFLAGS-fgetspent_r.c): Likewise.
19269 (CFLAGS-putspent.c): Likewise.
19270 (CFLAGS-getspnam.c): Likewise.
19271 (CFLAGS-getspnam_r.c): Likewise.
19272 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19273 (CFLAGS-sigsuspend.c): Likewise.
19274 (CFLAGS-sigtimedwait.c): Likewise.
19275 (CFLAGS-sigwait.c): Likewise.
19276 (CFLAGS-sigwaitinfo.c): Likewise.
19277 (CFLAGS-sigreturn.c): Likewise.
19278 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19279 (CFLAGS-vfwprintf.c): Likewise.
19280 (CFLAGS-tmpfile.c): Likewise.
19281 (CFLAGS-tmpfile64.c): Likewise.
19282 (CFLAGS-tempname.c): Likewise.
19283 (CFLAGS-psignal.c): Likewise.
19284 (CFLAGS-vprintf.c): Likewise.
19285 (CFLAGS-cuserid.c): Likewise.
19286 (CFLAGS-errlist.c): Likewise.
19287 (CFLAGS-siglist.c): Likewise.
19288 (CFLAGS-scanf15.c): Likewise.
19289 (CFLAGS-scanf17.c): Likewise.
19290 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19291 (CFLAGS-msort.c): Likewise.
19292 (CFLAGS-qsort.c): Likewise.
19293 (CFLAGS-system.c): Likewise.
19294 (CFLAGS-fmtmsg.c): Likewise.
19295 (CFLAGS-strfmon.c): Likewise.
19296 (CFLAGS-strfmon_l.c): Likewise.
19297 (CFLAGS-strfromd.c): Likewise.
19298 (CFLAGS-strfromf.c): Likewise.
19299 (CFLAGS-strfroml.c): Likewise.
19300 (CFLAGS-tst-bsearch.c): Likewise.
19301 (CFLAGS-tst-qsort.c): Likewise.
19302 (CFLAGS-tst-makecontext2.c): Likewise.
19303 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19304 (CFLAGS-xnlm_prot.c): Likewise.
19305 (CFLAGS-xrstat.c): Likewise.
19306 (CFLAGS-xyppasswd.c): Likewise.
19307 (CFLAGS-xklm_prot.c): Likewise.
19308 (CFLAGS-xrex.c): Likewise.
19309 (CFLAGS-xsm_inter.c): Likewise.
19310 (CFLAGS-xmount.c): Likewise.
19311 (CFLAGS-xrusers.c): Likewise.
19312 (CFLAGS-xspray.c): Likewise.
19313 (CFLAGS-xnfs_prot.c): Likewise.
19314 (CFLAGS-xrquota.c): Likewise.
19315 (CFLAGS-xkey_prot.c): Likewise.
19316 (CFLAGS-auth_unix.c): Likewise.
19317 (CFLAGS-key_call.c): Likewise.
19318 (CFLAGS-pmap_rmt.c): Likewise.
19319 (CFLAGS-clnt_perr.c): Likewise.
19320 (CFLAGS-openchild.c): Likewise.
19321 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19322 (CFLAGS-msgsnd.c): Likewise.
19323 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19324 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19325 (CFLAGS-tzset.c): Likewise.
19326 (CFLAGS-getdate.c): Likewise.
19327 (CFLAGS-test_time.c): Likewise.
19328 (CPPFLAGS-tst-tzname.c): Likewise.
19329 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19330 (CFLAGS-zic.c): Likewise.
19331 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19332 (CFLAGS-wcswidth.c): Likewise.
19333 (CFLAGS-wcstol.c): Likewise.
19334 (CFLAGS-wcstoul.c): Likewise.
19335 (CFLAGS-wcstoll.c): Likewise.
19336 (CFLAGS-wcstoull.c): Likewise.
19337 (CFLAGS-wcstod.c): Likewise.
19338 (CFLAGS-wcstold.c): Likewise.
19339 (CFLAGS-wcstof128.c): Likewise.
19340 (CFLAGS-wcstof.c): Likewise.
19341 (CFLAGS-wcstol_l.c): Likewise.
19342 (CFLAGS-wcstoul_l.c): Likewise.
19343 (CFLAGS-wcstoll_l.c): Likewise.
19344 (CFLAGS-wcstoull_l.c): Likewise.
19345 (CFLAGS-wcstod_l.c): Likewise.
19346 (CFLAGS-wcstold_l.c): Likewise.
19347 (CFLAGS-wcstof128_l.c): Likewise.
19348 (CFLAGS-wcstof_l.c): Likewise.
19349 (CPPFLAGS-tst-wchar-h.c): Likewise.
19350 (CPPFLAGS-wcstold_l.c): Likewise.
19351
19352 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19353
19354 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19355
19356 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19357 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19358
19359 * manual/tunables.texi (Hardware Capability Tunables): Document
19360 glibc.tune.cached_memopt.
19361 * sysdeps/powerpc/cpu-features.c: New file.
19362 * sysdeps/powerpc/cpu-features.h: New file.
19363 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19364 _dl_powerpc_cpu_features.
19365 * sysdeps/powerpc/dl-tunables.list: New file.
19366 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19367 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19368 (INIT_ARCH): Initialize use_aligned_memopt.
19369 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19370 IS_IN(rtld))]: Restrict dl_platform_init availability and
19371 initialize CPU features used by tunables.
19372 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19373 Add memcpy-power8-cached.
19374 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19375 __memcpy_power8_cached.
19376 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19377 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19378 New file.
19379
19380 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19381
19382 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19383 (CFLAGS-noinl-tester.c): Likewise.
19384 (CFLAGS-tst-strlen.c): Likewise.
19385 (CFLAGS-stratcliff.c): Likewise.
19386 (CFLAGS-test-ffs.c): Likewise.
19387 (CFLAGS-tst-inlcall.c): Likewise.
19388 (CFLAGS-tst-xbzero-opt.c): Likewise.
19389 (CFLAGS-memcpy.c): Likewise.
19390 (CFLAGS-wordcopy.c): Likewise.
19391
19392 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19393
19394 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19395 Store r15 on stack and add cfi rule.
19396 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19397 Likewise.
19398
19399 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19400
19401 [BZ #22577]
19402 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19403 call.
19404
19405 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19406
19407 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19408 Add s_sinf-sse2 and s_sinf-fma.
19409 (CFLAGS-s_sinf-fma.c): New.
19410 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19411 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19412 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19413
19414 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19415
19416 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19417
19418 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19419
19420 [BZ #22568]
19421 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19422 part of result to imaginary part of argument if it is zero and the
19423 real part of the argument is not finite.
19424 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19425 of result to real part of argument if it is zero and the imaginary
19426 part of the argument is not finite.
19427
19428 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19429
19430 [BZ #22524]
19431 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19432 and to the list of locales to be built for testing.
19433 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19434 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19435 and build the collation rules upon that.
19436
19437 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19438
19439 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19440 * manual/math.texi (Mathematics): Document support for _Float32.
19441 * math/Makefile (test-types): Add float32.
19442 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19443 * stdlib/Versions (GLIBC_2.27): Likewise.
19444 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19445 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19446 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19447 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19448 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19449 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19450 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19451 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19452 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19453 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19454 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19455 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19456 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19457 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19458 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19459 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19460 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19461 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19462 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19463 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19464 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19465 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19466 Likewise.
19467 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19468 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19469 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19470 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19471 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19472 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19473 Likewise.
19474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19475 Likewise.
19476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19477 Likewise.
19478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19479 Likewise.
19480
19481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19482 Likewise.
19483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19484 Likewise.
19485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19486 Likewise.
19487 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19488 Likewise.
19489 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19490 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19491 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19492 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19493 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19494 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19495 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19496 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19497 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19498 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19499 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19500 Likewise.
19501 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19502 Likewise.
19503 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19504 Likewise.
19505 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19506 Likewise.
19507 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19508 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19509 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19510 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19511 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19512 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19513 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19514 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19515
19516 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19517
19518 * stdlib/strtof.c: Include <bits/floatn.h>
19519 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19520 and later undefine as macro. Define as weak alias if
19521 [!USE_WIDE_CHAR].
19522 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19523 and later undefine as macro. Define as weak alias if
19524 [USE_WIDE_CHAR].
19525 * stdlib/strtof_l.c: Include <bits/floatn.h>
19526 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19527 and later undefine as macro. Define as weak alias if
19528 [!USE_WIDE_CHAR].
19529 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19530 and later undefine as macro. Define as weak alias if
19531 [USE_WIDE_CHAR].
19532
19533 * stdlib/strfromf.c: Include <bits/floatn.h>.
19534 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19535 and later undefine as macro and define as weak alias.
19536
19537 * math/test-float32.h: New file.
19538
19539 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19540 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19541 (libm_alias_float_other_r): Create f32 alias.
19542 (libm_alias_float_r): Use semicolon before call to
19543 libm_alias_float_other_r.
19544
19545 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19546 second argument to libm_alias_float_other.
19547 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19548 second argument to libm_alias_float_other.
19549 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19550 argument to libm_alias_float_other.
19551
19552 [BZ #22561]
19553 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19554 real part of result for argument 0 + i * NaN.
19555 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19556 results for tests of 0 + i * NaN.
19557
19558 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19559
19560 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19561
19562 2017-12-06 David S. Miller <davem@davemloft.net>
19563
19564 * sysdeps/sparc/fpu/libm-test-ulps: Update
19565 exp_{downward,towardzero,upward} ulps.
19566
19567 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19568
19569 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19570 variables static.
19571
19572 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19573 (Y0_2D): Likewise.
19574 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19575 (Y0_2D): Likewise.
19576 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19577 (Y0_2D): Likewise.
19578 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19579 (Y0_2D): Likewise.
19580
19581 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19582
19583 [BZ #22515]
19584 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19585 and to the list of locales to be built for testing.
19586 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19587 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19588 and build the collation rules upon that.
19589
19590 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19591
19592 * NEWS: Add sinf to list of optimized functions.
19593
19594 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19595
19596 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19597 (__HAVE_FLOAT32X): Likewise.
19598 * manual/math.texi (Mathematics): Document support for _Float64
19599 and _Float32x.
19600 * math/Makefile (test-types): Add float64 and float32x.
19601 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19602 functions.
19603 * stdlib/Versions (GLIBC_2.27): Likewise.
19604 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19605 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19606 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19607 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19608 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19609 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19610 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19611 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19612 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19613 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19614 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19615 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19616 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19617 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19618 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19619 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19620 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19621 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19622 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19623 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19624 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19625 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19626 Likewise.
19627 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19628 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19629 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19630 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19631 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19633 Likewise.
19634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19635 Likewise.
19636 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19637 Likewise.
19638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19639 Likewise.
19640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19641 Likewise.
19642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19643 Likewise.
19644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19645 Likewise.
19646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19647 Likewise.
19648 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19649 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19650 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19651 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19652 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19653 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19654 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19655 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19656 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19657 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19658 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19659 Likewise.
19660 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19661 Likewise.
19662 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19663 Likewise.
19664 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19665 Likewise.
19666 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19667 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19668 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19669 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19670 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19671 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19672 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19673 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19674
19675 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19676
19677 * bits/floatn-common.h: Include <bits/long-double.h>.
19678 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19679 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19680 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19681 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19682 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19683 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19684 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19685 (__builtin_huge_valf64): Use __builtin_huge_vall.
19686 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19687 (__builtin_inff64): Use __builtin_infl.
19688 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19689 (__builtin_nanf64): Use __builtin_nanl.
19690 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19691 (__builtin_nansf64): Use __builtin_nansl.
19692
19693 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19694 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19695 Carlos O'Donnell <carlos@redhat.com>
19696
19697 * elf/dl-tunables.list: Add elision parameters.
19698 * manual/tunables.texi: Add entries about elision tunable.
19699 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19700 Add callback functions to dynamically enable/disable elision.
19701 Add multiple callbacks functions to set elision parameters.
19702 Deleted __libc_enable_secure check.
19703 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19704 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19705 * configure: Regenerated.
19706 * configure.ac: Option enable_lock_elision was deleted.
19707 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19708 * config.make.in: Remove references to enable_lock_elision.
19709 * manual/install.texi: Elision configure option was removed.
19710 * INSTALL: Regenerated to remove enable_lock_elision.
19711 * nptl/Makefile:
19712 Disable elision so it can verify error case for destroying a mutex.
19713 * sysdeps/powerpc/nptl/elide.h:
19714 Cleanup ENABLE_LOCK_ELISION check.
19715 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19716 * sysdeps/s390/configure: Regenerated.
19717 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19718 * nptl/tst-mutex8.c:
19719 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19720 * sysdeps/powerpc/powerpc32/sysdep.h:
19721 Deleted all ENABLE_LOCK_ELISION checks.
19722 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19723 * sysdeps/powerpc/sysdep.h: Likewise.
19724 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19725 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19726 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19727 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19728 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19729 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19730 enable-lock-elision.
19731
19732 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19733
19734 * stdlib/strtod.c: Include <bits/floatn.h>.
19735 (BUILD_DOUBLE): New macro.
19736 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19737 (strtof64): Define and later undefine as macro. Define as weak
19738 alias if [!USE_WIDE_CHAR].
19739 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19740 (wcstof64): Define and later undefine as macro. Define as weak
19741 alias if [USE_WIDE_CHAR].
19742 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19743 (strtof32x): Define and later undefine as macro. Define as weak
19744 alias if [!USE_WIDE_CHAR].
19745 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19746 (wcstof32x): Define and later undefine as macro. Define as weak
19747 alias if [USE_WIDE_CHAR].
19748 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19749 (BUILD_DOUBLE): New macro.
19750 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19751 (strtof64_l): Define and later undefine as macro. Define as weak
19752 alias if [!USE_WIDE_CHAR].
19753 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19754 (wcstof64_l): Define and later undefine as macro. Define as weak
19755 alias if [USE_WIDE_CHAR].
19756 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19757 (strtof32x_l): Define and later undefine as macro. Define as weak
19758 alias if [!USE_WIDE_CHAR].
19759 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19760 (wcstof32x_l): Define and later undefine as macro. Define as weak
19761 alias if [USE_WIDE_CHAR].
19762
19763 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19764
19765 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19766 (reduced): Use ones as double instead of integer.
19767
19768 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19769
19770 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19771
19772 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19773
19774 * stdlib/strfromd.c: Include <bits/floatn.h>.
19775 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19776 and later undefine as macro and define as weak alias.
19777 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19778 Likewise.
19779
19780 * math/test-float32x.h: New file.
19781 * math/test-float64.h: Likewise.
19782
19783 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19784 (libm_alias_double_other_r_f64): New macro.
19785 (libm_alias_double_other_r_f32x): Likewise.
19786 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19787 libm_alias_double_other_r_f32x.
19788 (libm_alias_double_r): Use semicolon before call to
19789 libm_alias_double_other_r.
19790 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19791 <bits/floatn.h>.
19792 (libm_alias_double_other_r_f64): New macro.
19793 (libm_alias_double_other_r_f32x): Likewise.
19794 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19795 libm_alias_double_other_r_f32x.
19796
19797 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19798
19799 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19800 int.
19801 (SINF_FUNC): Likewise. Replace floor with simple casts.
19802
19803 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19804
19805 [BZ #22517]
19806 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19807 and to the list of locales to be built for testing.
19808 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19809 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19810 and build the collation rules upon that.
19811
19812 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19813
19814 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19815 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19816 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19817 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19818 instead of __insn__xxx.
19819 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19820 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19821 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19822 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19823 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19824 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19825
19826 2017-12-05 Florian Weimer <fweimer@redhat.com>
19827
19828 Linux: Implement interfaces for memory protection keys
19829 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19830 xsignal, xsysconf.
19831 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19832 * support/xunistd.h (xsysconf): Declare.
19833 * support/xraise.c: New file.
19834 * support/xsigaction.c: Likewise.
19835 * support/xsignal.c: Likewise.
19836 * support/xsysconf.c: Likewise.
19837 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19838 pkey_set, pkey_get, pkey_mprotect.
19839 [misc] (tests): Add tst-pkey.
19840 (tst-pkey): Link with -lpthread.
19841 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19842 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19843 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19844 (PKEY_DISABLE_WRITE): Define.
19845 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19846 Declare.
19847 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19848 (SEGV_PKUERR): Add.
19849 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19850 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19851 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19852 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19853 Add.
19854 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19855 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19856 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19857 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19858 * sysdeps/unix/sysv/linux/**.abilist: Update.
19859
19860 2017-12-05 Florian Weimer <fweimer@redhat.com>
19861
19862 * support/tst-test_compare.c (subprocess): Use long long instead
19863 of long argument for consistent type width across 32-bit and
19864 64-bit architectures.
19865 (do_test): Adjust expected output.
19866
19867 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19868
19869 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19870 (cosf): Define using libm_alias_float.
19871 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19872 (fabsf): Define using libm_alias_float.
19873 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19874 (fmaf): Define using libm_alias_float.
19875 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19876 (rintf): Define using libm_alias_float.
19877 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19878 (sinf): Define using libm_alias_float.
19879 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19880 <libm-alias-float.h>.
19881 (modff): Define using libm_alias_float.
19882 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19883 <libm-alias-float.h>.
19884 (logbf): Define using libm_alias_float.
19885 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19886 <libm-alias-float.h>.
19887 (ceilf): Define using libm_alias_float.
19888 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19889 <libm-alias-float.h>.
19890 (copysignf): Define using libm_alias_float.
19891 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19892 <libm-alias-float.h>.
19893 (floorf): Define using libm_alias_float.
19894 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19895 <libm-alias-float.h>.
19896 (llrintf): Define using libm_alias_float.
19897 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19898 <libm-alias-float.h>.
19899 (llroundf): Define using libm_alias_float.
19900 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19901 <libm-alias-float.h>.
19902 (lrintf): Define using libm_alias_float.
19903 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19904 <libm-alias-float.h>.
19905 (lroundf): Define using libm_alias_float.
19906 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19907 <libm-alias-float.h>.
19908 (nearbyintf): Define using libm_alias_float.
19909 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19910 <libm-alias-float.h>.
19911 (rintf): Define using libm_alias_float.
19912 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19913 <libm-alias-float.h>.
19914 (roundf): Define using libm_alias_float.
19915 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19916 <libm-alias-float.h>.
19917 (truncf): Define using libm_alias_float.
19918 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19919 Include <libm-alias-float.h>.
19920 (ceilf): Define using libm_alias_float.
19921 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19922 Include <libm-alias-float.h>.
19923 (copysignf): Define using libm_alias_float.
19924 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19925 Include <libm-alias-float.h>.
19926 (floorf): Define using libm_alias_float.
19927 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19928 Include <libm-alias-float.h>.
19929 (llrintf): Define using libm_alias_float.
19930 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19931 Include <libm-alias-float.h>.
19932 (llroundf): Define using libm_alias_float.
19933 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19934 Include <libm-alias-float.h>.
19935 (logbf): Define using libm_alias_float.
19936 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19937 Include <libm-alias-float.h>.
19938 (lrintf): Define using libm_alias_float.
19939 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19940 Include <libm-alias-float.h>.
19941 (lroundf): Define using libm_alias_float.
19942 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19943 Include <libm-alias-float.h>.
19944 (modff): Define using libm_alias_float.
19945 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19946 Include <libm-alias-float.h>.
19947 (roundf): Define using libm_alias_float.
19948 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19949 Include <libm-alias-float.h>.
19950 (truncf): Define using libm_alias_float.
19951 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19952 <libm-alias-float.h>.
19953 (llrintf): Define using libm_alias_float.
19954 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19955 <libm-alias-float.h>.
19956 (llroundf): Define using libm_alias_float.
19957 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19958 <libm-alias-float.h>.
19959 (ceilf): Define using libm_alias_float.
19960 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19961 <libm-alias-float.h>.
19962 (floorf): Define using libm_alias_float.
19963 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19964 <libm-alias-float.h>.
19965 (llroundf): Define using libm_alias_float.
19966 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19967 <libm-alias-float.h>.
19968 (lroundf): Define using libm_alias_float.
19969 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19970 <libm-alias-float.h>.
19971 (roundf): Define using libm_alias_float.
19972 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19973 <libm-alias-float.h>.
19974 (truncf): Define using libm_alias_float.
19975 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19976 <libm-alias-float.h>.
19977 (copysignf): Define using libm_alias_float.
19978 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19979 <libm-alias-float.h>.
19980 (llrintf): Define using libm_alias_float.
19981 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19982 <libm-alias-float.h>.
19983 (llroundf): Define using libm_alias_float.
19984 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19985 <libm-alias-float.h>.
19986 (lrintf): Define using libm_alias_float.
19987 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19988 <libm-alias-float.h>.
19989 (lroundf): Define using libm_alias_float.
19990 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19991 <libm-alias-float.h>.
19992 (ceilf): Define using libm_alias_float.
19993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19994 <libm-alias-float.h>.
19995 (copysignf): Define using libm_alias_float.
19996 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19997 <libm-alias-float.h>.
19998 (cosf): Define using libm_alias_float.
19999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20000 <libm-alias-float.h>.
20001 (floorf): Define using libm_alias_float.
20002 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20003 <libm-alias-float.h>.
20004 (llrintf): Define using libm_alias_float.
20005 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20006 <libm-alias-float.h>.
20007 (llroundf): Define using libm_alias_float.
20008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20009 <libm-alias-float.h>.
20010 (logbf): Define using libm_alias_float.
20011 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20012 <libm-alias-float.h>.
20013 (modff): Define using libm_alias_float.
20014 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20015 <libm-alias-float.h>.
20016 (roundf): Define using libm_alias_float.
20017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20018 <libm-alias-float.h>.
20019 (sinf): Define using libm_alias_float.
20020 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20021 <libm-alias-float.h>.
20022 (truncf): Define using libm_alias_float.
20023 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20024 <libm-alias-float.h>.
20025 (ceilf): Define using libm_alias_float.
20026 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20027 <libm-alias-float.h>.
20028 (copysignf): Define using libm_alias_float.
20029 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20030 <libm-alias-float.h>.
20031 (floorf): Define using libm_alias_float.
20032 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20033 <libm-alias-float.h>.
20034 (llrintf): Define using libm_alias_float.
20035 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20036 <libm-alias-float.h>.
20037 (llroundf): Define using libm_alias_float.
20038 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20039 <libm-alias-float.h>.
20040 (nearbyintf): Define using libm_alias_float.
20041 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20042 <libm-alias-float.h>.
20043 (rintf): Define using libm_alias_float.
20044 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20045 <libm-alias-float.h>.
20046 (roundf): Define using libm_alias_float.
20047 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20048 <libm-alias-float.h>.
20049 (truncf): Define using libm_alias_float.
20050 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20051 <libm-alias-float.h>.
20052 (ceilf): Define using libm_alias_float.
20053 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20054 <libm-alias-float.h>.
20055 (floorf): Define using libm_alias_float.
20056 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20057 <libm-alias-float.h>.
20058 (llroundf): Define using libm_alias_float.
20059 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20060 <libm-alias-float.h>.
20061 (roundf): Define using libm_alias_float.
20062 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20063 <libm-alias-float.h>.
20064 (truncf): Define using libm_alias_float.
20065 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20066 <libm-alias-float.h>.
20067 (copysignf): Define using libm_alias_float.
20068 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20069 <libm-alias-float.h>.
20070 (llrintf): Define using libm_alias_float.
20071 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20072 <libm-alias-float.h>.
20073 (llroundf): Define using libm_alias_float.
20074 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20075 <libm-alias-float.h>.
20076 (cosf): Define using libm_alias_float.
20077 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20078 <libm-alias-float.h>.
20079 (llrintf): Define using libm_alias_float.
20080 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20081 <libm-alias-float.h>.
20082 (llroundf): Define using libm_alias_float.
20083 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20084 <libm-alias-float.h>.
20085 (sinf): Define using libm_alias_float.
20086
20087 2017-12-04 Florian Weimer <fweimer@redhat.com>
20088
20089 * support/check.h (TEST_COMPARE): Define.
20090 (support_test_compare_failure): Declare.
20091 * support/Makefile (libsupport-routines): Add
20092 support_test_compare_failure.
20093 (tests): Add tst-test_compare.
20094 * support /support_test_compare_failure.c: New file.
20095 * support/tst-test_compare.c: Likewise.
20096
20097 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20098
20099 [BZ #22527]
20100 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20101 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20102 available, this rewrite of the collation rules does reproduce
20103 the test file in the same order.
20104
20105 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20106
20107 [BZ #10580]
20108 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20109 digraphs in the month and day names. Using single code points for
20110 digraphs is deprecated. While there are dedicated Unicode
20111 codepoints, for the digraphs, these are included for backwards
20112 compatibility and modern texts use a sequence of Basic Latin
20113 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20114 This makes the month and day names agree exactly with CLDR now,
20115 CLDR does not use the single code points for the digraphs either.
20116
20117 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20118
20119 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20120
20121 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20122
20123 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20124 of floor.
20125
20126 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20127
20128 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20129 Define only for libc.so.
20130
20131 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20132
20133 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20134 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20135 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20136 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20137 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20138
20139 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20140
20141 [BZ #5997]
20142 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20143
20144 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20145
20146 [BZ libc/19170]
20147 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20148 PREINIT_FUNCTION_WEAK is nonzero.
20149 (gmon_initializer): New function. Put procedure label for it in
20150 .init_array section.
20151 (_init): Don't call PREINIT_FUNCTION.
20152 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20153 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20154 value when map argument is null.
20155
20156 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20157 depi instruction from PIC pc-relative sequence.
20158 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20159 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20160 (elf_machine_load_address): Likewise.
20161 (elf_machine_runtime_setup): Likewise.
20162
20163 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20164
20165 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20166 <libm-alias-double.h>.
20167 (logb): Define using libm_alias_double.
20168 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20169 <libm-alias-double.h>.
20170 (copysign): Define using libm_alias_double.
20171 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20172 <libm-alias-double.h>.
20173 (llrint): Define using libm_alias_double.
20174 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20175 <libm-alias-double.h>.
20176 (llround): Define using libm_alias_double.
20177 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20178 <libm-alias-double.h>.
20179 (lrint): Define using libm_alias_double.
20180 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20181 <libm-alias-double.h>.
20182 (lround): Define using libm_alias_double.
20183 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20184 Include <libm-alias-double.h>.
20185 (copysign): Define using libm_alias_double.
20186 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20187 Include <libm-alias-double.h>.
20188 (llrint): Define using libm_alias_double.
20189 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20190 Include <libm-alias-double.h>.
20191 (llround): Define using libm_alias_double.
20192 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20193 <libm-alias-double.h>.
20194 (logb): Define using libm_alias_double.
20195 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20196 Include <libm-alias-double.h>.
20197 (lrint): Define using libm_alias_double.
20198 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20199 Include <libm-alias-double.h>.
20200 (lround): Define using libm_alias_double.
20201 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20202 <libm-alias-double.h>.
20203 (llrint): Define using libm_alias_double.
20204 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20205 <libm-alias-double.h>.
20206 (llround): Define using libm_alias_double.
20207 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20208 <libm-alias-double.h>.
20209 (llround): Define using libm_alias_double.
20210 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20211 <libm-alias-double.h>.
20212 (lround): Define using libm_alias_double.
20213 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20214 <libm-alias-double.h>.
20215 (copysign): Define using libm_alias_double.
20216 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20217 <libm-alias-double.h>.
20218 (llrint): Define using libm_alias_double.
20219 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20220 <libm-alias-double.h>.
20221 (llround): Define using libm_alias_double.
20222 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20223 <libm-alias-double.h>.
20224 (lrint): Define using libm_alias_double.
20225 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20226 <libm-alias-double.h>.
20227 (lround): Define using libm_alias_double.
20228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20229 <libm-alias-double.h>.
20230 (copysign): Define using libm_alias_double.
20231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20232 <libm-alias-double.h>.
20233 (llrint): Define using libm_alias_double.
20234 (lrint): Likewise.
20235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20236 <libm-alias-double.h>.
20237 (llround): Define using libm_alias_double.
20238 (lround): Likewise.
20239 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20240 <libm-alias-double.h>.
20241 (logb): Define using libm_alias_double.
20242 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20243 <libm-alias-double.h>.
20244 (copysign): Define using libm_alias_double.
20245 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20246 <libm-alias-double.h>.
20247 (llrint): Define using libm_alias_double.
20248 (lrint): Likewise.
20249 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20250 <libm-alias-double.h>.
20251 (llround): Define using libm_alias_double.
20252 (lround): Likewise.
20253 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20254 <libm-alias-double.h>.
20255 (llround): Define using libm_alias_double.
20256 (lround): Likewise.
20257 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20258 <libm-alias-double.h>.
20259 (copysign): Define using libm_alias_double.
20260 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20261 <libm-alias-double.h>.
20262 (llrint): Define using libm_alias_double.
20263 (lrint): Likewise.
20264 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20265 <libm-alias-double.h>.
20266 (llround): Define using libm_alias_double.
20267 (lround): Likewise.
20268 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20269 <libm-alias-double.h>.
20270 (llrint): Define using libm_alias_double.
20271 (lrint): Likewise.
20272 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20273 <libm-alias-double.h>.
20274 (llround): Define using libm_alias_double.
20275 (lround): Likewise.
20276
20277 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20278
20279 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20280 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20281 compat symbol based on llround.
20282
20283 * sysdeps/powerpc/power7/fpu/s_logb.c
20284 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20285 symbol based on __logb, not on logb.
20286 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20287 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20289 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20290
20291 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20292 (rint): Define using libm_alias_double.
20293 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20294 <libm-alias-double.h>.
20295 (modf): Define using libm_alias_double.
20296 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20297 <libm-alias-double.h>.
20298 (ceil): Define using libm_alias_double.
20299 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20300 <libm-alias-double.h>.
20301 (floor): Define using libm_alias_double.
20302 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20303 <libm-alias-double.h>.
20304 (nearbyint): Define using libm_alias_double.
20305 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20306 <libm-alias-double.h>.
20307 (rint): Define using libm_alias_double.
20308 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20309 <libm-alias-double.h>.
20310 (round): Define using libm_alias_double.
20311 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20312 <libm-alias-double.h>.
20313 (trunc): Define using libm_alias_double.
20314 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20315 <libm-alias-double.h>.
20316 (ceil): Define using libm_alias_double.
20317 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20318 Include <libm-alias-double.h>.
20319 (floor): Define using libm_alias_double.
20320 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20321 <libm-alias-double.h>.
20322 (modf): Define using libm_alias_double.
20323 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20324 Include <libm-alias-double.h>.
20325 (round): Define using libm_alias_double.
20326 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20327 Include <libm-alias-double.h>.
20328 (trunc): Define using libm_alias_double.
20329 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20330 <libm-alias-double.h>.
20331 (ceil): Define using libm_alias_double.
20332 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20333 <libm-alias-double.h>.
20334 (floor): Define using libm_alias_double.
20335 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20336 <libm-alias-double.h>.
20337 (round): Define using libm_alias_double.
20338 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20339 <libm-alias-double.h>.
20340 (trunc): Define using libm_alias_double.
20341 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20342 <libm-alias-double.h>.
20343 (ceil): Define using libm_alias_double.
20344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20345 <libm-alias-double.h>.
20346 (floor): Define using libm_alias_double.
20347 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20348 <libm-alias-double.h>.
20349 (modf): Define using libm_alias_double.
20350 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20351 <libm-alias-double.h>.
20352 (round): Define using libm_alias_double.
20353 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20354 <libm-alias-double.h>.
20355 (trunc): Define using libm_alias_double.
20356 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20357 <libm-alias-double.h>.
20358 (ceil): Define using libm_alias_double.
20359 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20360 <libm-alias-double.h>.
20361 (floor): Define using libm_alias_double.
20362 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20363 <libm-alias-double.h>.
20364 (nearbyint): Define using libm_alias_double.
20365 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20366 <libm-alias-double.h>.
20367 (rint): Define using libm_alias_double.
20368 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20369 <libm-alias-double.h>.
20370 (round): Define using libm_alias_double.
20371 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20372 <libm-alias-double.h>.
20373 (trunc): Define using libm_alias_double.
20374 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20375 <libm-alias-double.h>.
20376 (ceil): Define using libm_alias_double.
20377 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20378 <libm-alias-double.h>.
20379 (floor): Define using libm_alias_double.
20380 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20381 <libm-alias-double.h>.
20382 (round): Define using libm_alias_double.
20383 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20384 <libm-alias-double.h>.
20385 (trunc): Define using libm_alias_double.
20386
20387 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20388 (fabs): Define using libm_alias_double.
20389 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20390 (fma): Define using libm_alias_double.
20391 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20392 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20393 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20394 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20395
20396 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20397
20398 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20399
20400 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20401 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20402 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20403
20404 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20405 due redirect macro.
20406
20407 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20408
20409 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20410
20411 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20412
20413 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20414 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20415 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20416 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20417
20418 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20419 (libm-sysdep_routines): Add s_nearbyintf-generic and
20420 s_nearbyint-generic.
20421 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20422 New file.
20423 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20424 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20425 Likewise.
20426 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20427 Likewise.
20428 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20429 file.
20430 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20431 Likewise.
20432
20433 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20434 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20435 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20436 file.
20437 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20438 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20439 Likewise.
20440 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20441 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20442 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20443
20444 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20445 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20446 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20447 file.
20448 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20449 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20450 Likewise.
20451 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20452 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20453 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20454
20455 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20456 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20457 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20458 file.
20459 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20460 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20461 Likewise.
20462 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20463 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20464 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20465
20466 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20467 (sysdep_calls): New rule.
20468 (sysdep_routines): Use sysdep_calls as base.
20469 (libm-sysdep_routines): Add generic rule for symbols shared with
20470 libc. Add s_copysign-generic and s_copysign-generic objects.
20471 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20472 New file.
20473 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20474 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20475 Likewise.
20476 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20477 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20478 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20479
20480 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20481
20482 [BZ #22519]
20483 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20484 the list of locales to be built for testing.
20485 * localedata/is_IS.UTF-8.in: New file.
20486 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20487 on iso14651_t1.
20488
20489 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20490
20491 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20492 <libm-alias-float.h>.
20493 (fabsf): Define using libm_alias_float.
20494
20495 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20496
20497 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20498
20499 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20500
20501 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20502 <libm-alias-float.h>.
20503 (fabsf): Define using libm_alias_float.
20504 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20505 <libm-alias-float.h>.
20506 (lrintf): Define using libm_alias_float.
20507 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20508 <libm-alias-float.h>.
20509 (rintf): Define using libm_alias_float.
20510
20511 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20512 <libm-alias-double.h>.
20513 (fabs): Define using libm_alias_double.
20514 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20515 <libm-alias-double.h>.
20516 (lrint): Define using libm_alias_double.
20517 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20518 <libm-alias-double.h>.
20519 (rint): Define using libm_alias_double.
20520
20521 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20522 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20523 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20524 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20525 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20526 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20527 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20528 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20529 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20530 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20531 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20532 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20533 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20534 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20535 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20536 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20537 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20538 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20539 s_atan_template.c.
20540 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20541 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20542 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20543 s_ceil_template.c.
20544 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20545 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20546 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20547 s_cos_template.c.
20548 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20549 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20550 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20551 s_expm1_template.c.
20552 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20553 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20554 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20555 s_fabs_template.c.
20556 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20557 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20558 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20559 s_floor_template.c.
20560 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20561 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20562 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20563 s_frexp_template.c.
20564 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20565 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20566 s_lrint_template.c.
20567 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20568 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20569 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20570 s_modf_template.c.
20571 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20572 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20573 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20574 s_nearbyint_template.c.
20575 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20576 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20577 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20578 s_remquo_template.c.
20579 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20580 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20581 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20582 s_rint_template.c.
20583 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20584 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20585 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20586 s_sin_template.c.
20587 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20588 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20589 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20590 s_sincos_template.c.
20591 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20592 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20593 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20594 s_tan_template.c.
20595 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20596 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20597 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20598 s_tanh_template.c.
20599 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20600 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20601 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20602 s_trunc_template.c.
20603 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20604 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20605 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20606 s_atan.c instead of including s_atan.c.
20607 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20608 s_atanf.c instead of including s_atanf.c.
20609 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20610 s_atanl.c instead of including s_atanl.c.
20611 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20612 instead of s_atan.c.
20613 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20614 instead of s_atanf.c.
20615 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20616 instead of s_atanl.c.
20617
20618 * scripts/update-copyrights: Do not handle intl/plural.c
20619 specially.
20620
20621 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20622
20623 [BZ #22432]
20624 * configure.ac (BISON): Require to be present.
20625 * configure: Regenerated.
20626 * intl/Makefile (generated): Add plural.c.
20627 [$(BISON) != no]: Make code unconditional.
20628 (plural.c): Change rule to $(objpfx)plural.c.
20629 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20630 * intl/plural.c: Remove.
20631 * manual/install.texi (Tools for Compilation): Document bison as
20632 required.
20633 * INSTALL: Regenerated.
20634
20635 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20636
20637 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20638 <libm-alias-double.h>.
20639 (llrint): Define using libm_alias_double.
20640 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20641 <libm-alias-float.h>.
20642 (llrintf): Define using libm_alias_float.
20643 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20644 <libm-alias-ldouble.h>.
20645 (llrintl): Define using libm_alias_ldouble.
20646
20647 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20648 declare_mgen_alias instead of weak_alias.
20649 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20650 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20651 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20652
20653 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20654
20655 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20656 Add add_n-generic.
20657 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20658 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20659 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20660
20661 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20662 Add submul_1-generic.
20663 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20664 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20665 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20666
20667 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20668 Add addmul_1-generic.
20669 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20670 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20671 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20672
20673 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20674 Add sub_n-generic.
20675 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20676 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20677 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20678
20679 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20680 Add mul_1-generic.
20681 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20682 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20683 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20684
20685 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20686
20687 According to CLDR, collation rules for Serbian and Bosnian
20688 should be the same as for Croatian.
20689
20690 [BZ #22534]
20691 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20692 and to the list of locales to be built for testing.
20693 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20694 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20695 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20696 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20697
20698 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20699
20700 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20701 to make test case pass.
20702 * localedata/hr_HR.UTF-8.in: Add more test strings.
20703
20704 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20705
20706 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20707
20708 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20709
20710 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20711 the list of locales to built for testing.
20712 * localedata/hr_HR.UTF-8.in: New file.
20713
20714 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20715
20716 [BZ #10580]
20717 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20718 iso14651_t1.
20719 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20720 CLDR (except use ligatures for the digraphs, CLDR does not use
20721 the ligatures), add first_workday, some fixes in the date and time
20722 formats.
20723 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20724 for Đ and đ.
20725 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20726 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20727 Add int_p_cs_precedes and int_n_cs_precedes.
20728 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20729 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20730 LC_MONETARY now).
20731 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20732 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20733 name_miss.
20734 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20735 and lang_lib. Change postal_fmt.
20736
20737 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20738
20739 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20740 <setjmp.h>.
20741 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20742 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20743 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20744 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20745 * sysdeps/generic/setjmpP.h: New file.
20746 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20747 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20748 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20749 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20750 Add jmp_buf-ssp.sym.
20751 (tests): Add tst-saved_mask-1.
20752
20753 2017-11-30 Arjun Shankar <arjun@redhat.com>
20754
20755 [BZ #22375]
20756 CVE-2017-17426
20757 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20758 instead of request2size.
20759
20760 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20761
20762 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20763 (__lllrint): Remove alias.
20764 (lllrint): Likewise.
20765 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20766 (__lllrintf): Likewise.
20767 (lllrintf): Likewise.
20768
20769 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20770 <libm-alias-float.h>.
20771 (copysignf): Define using libm_alias_float.
20772 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20773 <libm-alias-float.h>.
20774 (fabsf): Define using libm_alias_float.
20775 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20776 Include <libm-alias-float.h>.
20777 (copysignf): Define using libm_alias_float.
20778 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20779 <libm-alias-float.h>.
20780 (fabsf): Define using libm_alias_float.
20781 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20782 <libm-alias-float.h>.
20783 (fdimf): Define using libm_alias_float.
20784 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20785 <libm-alias-float.h>.
20786 (fmaf): Define using libm_alias_float.
20787 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20788 <libm-alias-float.h>.
20789 (llrintf): Define using libm_alias_float.
20790 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20791 Include <libm-alias-float.h>.
20792 (nearbyintf): Define using libm_alias_float.
20793 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20794 <libm-alias-float.h>.
20795 (rintf): Define using libm_alias_float.
20796 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20797 <libm-alias-float.h>.
20798 (llrintf): Define using libm_alias_float.
20799 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20800 <libm-alias-float.h>.
20801 (lrintf): Define using libm_alias_float.
20802 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20803 <libm-alias-float.h>.
20804 (nearbyintf): Define using libm_alias_float.
20805 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20806 <libm-alias-float.h>.
20807 (rintf): Define using libm_alias_float.
20808 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20809 <libm-alias-float.h>.
20810 (ceilf): Define using libm_alias_float.
20811 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20812 <libm-alias-float.h>.
20813 (floorf): Define using libm_alias_float.
20814 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20815 <libm-alias-float.h>.
20816 (fmaf): Define using libm_alias_float.
20817 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20818 <libm-alias-float.h>.
20819 (lrintf): Define using libm_alias_float.
20820 (llrintf): Likewise.
20821 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20822 <libm-alias-float.h>.
20823 (nearbyintf): Define using libm_alias_float.
20824 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20825 <libm-alias-float.h>.
20826 (rintf): Define using libm_alias_float.
20827 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20828 <libm-alias-float.h>.
20829 (truncf): Define using libm_alias_float.
20830 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20831 <libm-alias-float.h>.
20832 (copysignf): Define using libm_alias_float.
20833 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20834 <libm-alias-float.h>.
20835 (fabsf): Define using libm_alias_float.
20836 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20837 <libm-alias-float.h>.
20838 (lrintf): Define using libm_alias_float.
20839 (llrintf): Likewise.
20840 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20841 <libm-alias-float.h>.
20842 (nearbyintf): Define using libm_alias_float.
20843 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20844 <libm-alias-float.h>.
20845 (rintf): Define using libm_alias_float.
20846
20847 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20848
20849 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20850 <libm-alias-double.h>.
20851 (copysign): Define using libm_alias_double.
20852 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20853 <libm-alias-double.h>.
20854 (fabs): Define using libm_alias_double.
20855 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20856 Include <libm-alias-double.h>.
20857 (copysign): Define using libm_alias_double.
20858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20859 <libm-alias-double.h>.
20860 (fabs): Define using libm_alias_double.
20861 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20862 <libm-alias-double.h>.
20863 (fdim): Define using libm_alias_double.
20864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20865 <libm-alias-double.h>.
20866 (fma): Define using libm_alias_double.
20867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20868 <libm-alias-double.h>.
20869 (llrint): Define using libm_alias_double.
20870 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20871 Include <libm-alias-double.h>.
20872 (nearbyint): Define using libm_alias_double.
20873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20874 <libm-alias-double.h>.
20875 (rint): Define using libm_alias_double.
20876 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20877 <libm-alias-double.h>.
20878 (fabs): Define using libm_alias_double.
20879 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20880 <libm-alias-double.h>.
20881 (llrint): Define using libm_alias_double.
20882 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20883 <libm-alias-double.h>.
20884 (nearbyint): Define using libm_alias_double.
20885 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20886 <libm-alias-double.h>.
20887 (rint): Define using libm_alias_double.
20888 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20889 <libm-alias-double.h>.
20890 (ceil): Define using libm_alias_double.
20891 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20892 <libm-alias-double.h>.
20893 (floor): Define using libm_alias_double.
20894 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20895 <libm-alias-double.h>.
20896 (fma): Define using libm_alias_double.
20897 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20898 <libm-alias-double.h>.
20899 (lrint): Define using libm_alias_double.
20900 (llrint): Likewise.
20901 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20902 <libm-alias-double.h>.
20903 (nearbyint): Define using libm_alias_double.
20904 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20905 <libm-alias-double.h>.
20906 (rint): Define using libm_alias_double.
20907 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20908 <libm-alias-double.h>.
20909 (trunc): Define using libm_alias_double.
20910 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20911 <libm-alias-double.h>.
20912 (copysign): Define using libm_alias_double.
20913 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20914 <libm-alias-double.h>.
20915 (fabs): Define using libm_alias_double.
20916 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20917 <libm-alias-double.h>.
20918 (lrint): Define using libm_alias_double.
20919 (llrint): Likewise.
20920 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20921 <libm-alias-double.h>.
20922 (nearbyint): Define using libm_alias_double.
20923 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20924 <libm-alias-double.h>.
20925 (rint): Define using libm_alias_double.
20926
20927 [BZ #22229]
20928 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20929 <math_ldbl_opt.h>.
20930 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20931
20932 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20933 SPARC --disable-multi-arch glibc variants.
20934
20935 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20936 <libm-alias-float.h>.
20937 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20938 if [SHARED].
20939 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20940 <libm-alias-float.h>.
20941 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20942 if [SHARED].
20943 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20944 <libm-alias-float.h>.
20945 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20946 if [SHARED].
20947 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20948 <libm-alias-float.h>.
20949 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20950 if [SHARED].
20951 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20952 <libm-alias-float.h>.
20953 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20954 if [SHARED].
20955 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20956 <libm-alias-float.h>.
20957 (ceilf): Define using libm_alias_float.
20958 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20959 <libm-alias-float.h>.
20960 (floorf): Define using libm_alias_float.
20961 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20962 <libm-alias-float.h>.
20963 (fmaf): Define using libm_alias_float.
20964 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20965 <libm-alias-float.h>.
20966 (nearbyintf): Define using libm_alias_float.
20967 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20968 <libm-alias-float.h>.
20969 (rintf): Define using libm_alias_float.
20970 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20971 <libm-alias-float.h>.
20972 (truncf): Define using libm_alias_float.
20973 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20974 (copysignf): Define using libm_alias_float.
20975 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20976 (cosf): Define using libm_alias_float.
20977 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20978 (fabsf): Define using libm_alias_float.
20979 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20980 (fmaxf): Define using libm_alias_float.
20981 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20982 (fminf): Define using libm_alias_float.
20983 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20984 (llrintf): Define using libm_alias_float.
20985 [!__ILP32__] (lrintf): Likewise.
20986 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20987 (sincosf): Define using libm_alias_float.
20988 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20989 (sinf): Define using libm_alias_float.
20990 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20991 (lrintf): Define using libm_alias_float.
20992
20993 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20994 <libm-alias-double.h>.
20995 (atan): Define using libm_alias_double.
20996 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20997 <libm-alias-double.h>.
20998 (ceil): Define using libm_alias_double.
20999 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21000 <libm-alias-double.h>.
21001 (floor): Define using libm_alias_double.
21002 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21003 <libm-alias-double.h>.
21004 (fma): Define using libm_alias_double.
21005 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21006 <libm-alias-double.h>.
21007 (nearbyint): Define using libm_alias_double.
21008 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21009 <libm-alias-double.h>.
21010 (rint): Define using libm_alias_double.
21011 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21012 <libm-alias-double.h>.
21013 (sin): Define using libm_alias_double.
21014 (cos): Likewise.
21015 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21016 <libm-alias-double.h>.
21017 (tan): Define using libm_alias_double.
21018 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21019 <libm-alias-double.h>.
21020 (trunc): Define using libm_alias_double.
21021 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21022 (copysign): Define using libm_alias_double.
21023 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21024 (fabs): Define using libm_alias_double.
21025 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21026 (fmax): Define using libm_alias_double.
21027 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21028 (fmin): Define using libm_alias_double.
21029 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21030 (llrint): Define using libm_alias_double.
21031 [!__ILP32__] (lrint): Likewise.
21032 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21033 (lrint): Define using libm_alias_double.
21034
21035 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21036
21037 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21038 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21039 objects.
21040 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21041 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21042 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21043 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21044 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21045 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21046
21047 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21048 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21049 objects.
21050 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21051 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21052 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21053 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21054 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21055 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21056
21057 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21058 (libm-sysdep_routines): Add s_nearbyint-generic and
21059 s_nearbyintf-generic objects.
21060 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21061 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21062 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21063 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21064 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21065 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21066
21067 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21068 Add s_finitef-generic and s_finite-generic objects.
21069 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21070 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21071 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21072 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21073 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21074 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21075
21076 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21077 Add s_isinff-generic and s_isinf-generic objects.
21078 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21079 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21080 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21081 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21082 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21083 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21084
21085 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21086 Add s_isnanf-generic and s_isnan-generic objects.
21087 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21088 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21089 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21090 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21091 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21092 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21093
21094 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21095 macro.
21096 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21097 rule.
21098 (sysdep_routines): Use sysdep_calls as base.
21099 (libm-sysdep_routines): Add generic rule for symbols shared with
21100 libc. Add s_signbit-generic and s_signbitf-generic objects.
21101 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21102 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21103 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21104 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21105 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21106 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21107
21108 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21109
21110 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21111 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21112 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21113 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21114 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21115 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21116 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21117 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21118 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21119 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21120 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21121 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21122 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21123 libm_alias_float_r.
21124 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21125 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21126 (logf): Likewise.
21127 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21128 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21129 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21130 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21131 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21132 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21133 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21134 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21135 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21136 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21137 libm_alias_float.
21138 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21139 (cosf): Likewise.
21140 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21141 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21142 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21143 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21144 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21145 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21146 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21147 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21148 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21149 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21150 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21151 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21152 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21153 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21154 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21155 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21156 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21157 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21158 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21159 libm_alias_float.
21160 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21161 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21162 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21163 * sysdeps/ia64/fpu/w_lgammaf_main.c
21164 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21165 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21166
21167 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21168 Alexandre Oliva <aoliva@redhat.com>
21169
21170 [BZ #17750]
21171 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21172 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21173 accents sorting.
21174 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21175 sorting.
21176 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21177 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21178 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21179 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21180 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21181 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21182 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21183 instead of “ifdef DIACRIT_BACKWARD”.
21184
21185 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21186
21187 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21188 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21189 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21190 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21191 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21192 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21193 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21194 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21195 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21196 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21197 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21198 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21199 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21200 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21201 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21202 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21203 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21204 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21205 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21206 ($(have-as-vis3) == yes): Remove conditional.
21207 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21208 Likewise.
21209 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21210 file.
21211 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21212 file.
21213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21214 file.
21215 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21216 file.
21217 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21218 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21219 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21220 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21221 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21222 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21223 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21224 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21225
21226 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21227
21228 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21229 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21230 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21231 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21232 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21233 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21234 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21235 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21236 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21237 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21238 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21239 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21240 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21241 libm_alias_double_r.
21242 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21243 (log): Likewise.
21244 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21245 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21246 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21247 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21248 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21249 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21250 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21251 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21252 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21253 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21254 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21255 libm_alias_double.
21256 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21257 (cos): Likewise.
21258 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21259 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21260 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21261 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21262 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21263 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21264 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21265 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21266 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21267 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21268 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21269 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21270 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21271 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21272 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21273 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21274 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21275 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21276 libm_alias_double.
21277 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21278 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21279 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21280 * sysdeps/ia64/fpu/w_lgamma_main.c
21281 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21282 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21283
21284 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21285
21286 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21287 address of $global$ into %dp register earlier. Use pc-relative
21288 instruction sequence for PIC case.
21289
21290 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21291
21292 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21293 (asinhf): Define using libm_alias_float.
21294 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21295 (atanf): Define using libm_alias_float.
21296 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21297 (cbrtf): Define using libm_alias_float.
21298 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21299 (ceilf): Define using libm_alias_float.
21300 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21301 (copysignf): Define using libm_alias_float.
21302 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21303 (expm1f): Define using libm_alias_float.
21304 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21305 (fabsf): Define using libm_alias_float.
21306 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21307 (floorf): Define using libm_alias_float.
21308 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21309 (fmaxf): Define using libm_alias_float.
21310 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21311 (fminf): Define using libm_alias_float.
21312 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21313 (frexpf): Define using libm_alias_float.
21314 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21315 (llrintf): Define using libm_alias_float.
21316 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21317 (logbf): Define using libm_alias_float.
21318 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21319 (lrintf): Define using libm_alias_float.
21320 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21321 (nearbyintf): Define using libm_alias_float.
21322 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21323 (remquof): Define using libm_alias_float.
21324 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21325 (rintf): Define using libm_alias_float.
21326 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21327 (truncf): Define using libm_alias_float.
21328 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21329 <libm-alias-float.h>.
21330 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21331 if [SHARED].
21332 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21333 <libm-alias-float.h>.
21334 (expf): Define using libm_alias_float, or libm_alias_float_other
21335 if [SHARED].
21336 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21337 <libm-alias-float.h>.
21338 (log2f): Define using libm_alias_float, or libm_alias_float_other
21339 if [SHARED].
21340 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21341 <libm-alias-float.h>.
21342 (logf): Define using libm_alias_float, or libm_alias_float_other
21343 if [SHARED].
21344 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21345 <libm-alias-float.h>.
21346 (powf): Define using libm_alias_float, or libm_alias_float_other
21347 if [SHARED].
21348 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21349 <libm-alias-float.h>.
21350 (cosf): Define using libm_alias_float.
21351 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21352 <libm-alias-float.h>.
21353 (sincosf): Define using libm_alias_float.
21354 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21355 <libm-alias-float.h>.
21356 (sinf): Define using libm_alias_float.
21357 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21358 (fmaxf): Define using libm_alias_float.
21359 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21360 (fminf): Define using libm_alias_float.
21361 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21362 <libm-alias-float.h>.
21363 (fmaf): Define using libm_alias_float.
21364
21365 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21366 (asinh): Define using libm_alias_double.
21367 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21368 (atan): Define using libm_alias_double.
21369 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21370 (cbrt): Define using libm_alias_double.
21371 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21372 (ceil): Define using libm_alias_double.
21373 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21374 (copysign): Define using libm_alias_double.
21375 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21376 (expm1): Define using libm_alias_double.
21377 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21378 (fabs): Define using libm_alias_double.
21379 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21380 (fdim): Define using libm_alias_double.
21381 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21382 (floor): Define using libm_alias_double.
21383 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21384 (fmax): Define using libm_alias_double.
21385 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21386 (fmin): Define using libm_alias_double.
21387 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21388 (frexp): Define using libm_alias_double.
21389 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21390 (llrint): Define using libm_alias_double.
21391 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21392 (logb): Define using libm_alias_double.
21393 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21394 (lrint): Define using libm_alias_double.
21395 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21396 (nearbyint): Define using libm_alias_double.
21397 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21398 (remquo): Define using libm_alias_double.
21399 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21400 (rint): Define using libm_alias_double.
21401 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21402 (trunc): Define using libm_alias_double.
21403 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21404 (fmax): Define using libm_alias_double.
21405 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21406 (fmin): Define using libm_alias_double.
21407 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21408 (fma): Define using libm_alias_double.
21409
21410 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21411
21412 [BZ #22370]
21413 * elf/dl-hwcaps.c (ROUND): Removed.
21414 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21415 and ELF_NOTE_NEXT_OFFSET.
21416 * elf/dl-load.c (ROUND): Removed.
21417 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21418 * elf/readelflib.c (ROUND): Removed.
21419 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21420 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21421 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21422 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21423
21424 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21425
21426 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21427 [!__fmaf] (fmaf): Define using libm_alias_float.
21428
21429 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21430 [!__fma] (fma): Define using libm_alias_double.
21431 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21432
21433 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21434
21435 [BZ #22336]
21436 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21437 and implement the collation rules for cs from CLDR on top of that.
21438 * Makefile: Add cs_CZ.UTF-8 to test-input.
21439 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21440
21441 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21442
21443 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21444
21445 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21446 Icarus Sparry <icarus.w.sparry@intel.com>
21447
21448 * benchtests/Makefile:Add BENCHSET to allow subsets of
21449 benchmarks to be run.
21450 * benchtests/README: Add documentation for: Running subsets of
21451 benchmarks.
21452
21453 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21454
21455 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21456 range of tests names.
21457
21458 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21459 result from property and remove "max", min" and "mean" from
21460 required properties based on benchtests/bench-skeleton.c.
21461
21462 2017-11-28 Florian Weimer <fweimer@redhat.com>
21463
21464 [BZ #20826]
21465 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21466 due to Internet requirement.
21467 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21468 tst-getaddrinfo5.
21469 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21470
21471 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21472
21473 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21474 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21475 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21476 (sysdep_routines): Add memset-ultra1.
21477 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21478 file.
21479 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21480 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21481 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21482 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21483 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21484 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21485 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21486 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21487
21488 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21489 file.
21490 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21491 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21492 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21493 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21494 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21495 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21496 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21497 macro.
21498 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21499 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21500 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21501 (sysdep_routines): Add memcpy-ultra1.
21502 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21503 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21504
21505 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21506
21507 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21508 (cfloat_versions): Take function argument without trailing 'f'.
21509 Call libm_alias_float_other.
21510 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21511 * sysdeps/alpha/fpu/cargf.c: Likewise.
21512 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21513 * sysdeps/alpha/fpu/conjf.c: Likewise.
21514 * sysdeps/alpha/fpu/crealf.c: Likewise.
21515 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21516 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21517 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21518 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21519 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21520 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21521 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21522 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21523 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21524 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21525 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21526 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21527 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21528 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21529 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21530 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21531 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21532 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21533 (clog10f): Use libm_alias_float_other.
21534 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21535 (ceilf): Define using libm_alias_float.
21536 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21537 (copysignf): Define using libm_alias_float.
21538 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21539 (fabsf): Define using libm_alias_float.
21540 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21541 (floorf): Define using libm_alias_float.
21542 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21543 (fmaxf): Define using libm_alias_float.
21544 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21545 (fminf): Define using libm_alias_float.
21546 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21547 (lrintf): Define using libm_alias_float.
21548 (llrintf): Likewise.
21549 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21550 (lroundf): Define using libm_alias_float.
21551 (llroundf): Likewise.
21552 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21553 (rintf): Define using libm_alias_float.
21554 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21555 (truncf): Define using libm_alias_float.
21556
21557 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21558 (ceilf): Define using libm_alias_float.
21559 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21560 (floorf): Define using libm_alias_float.
21561 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21562 (fmaf): Define using libm_alias_float.
21563 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21564 (fmaxf): Define using libm_alias_float.
21565 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21566 (fminf): Define using libm_alias_float.
21567 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21568 (llrintf): Define using libm_alias_float.
21569 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21570 (llroundf): Define using libm_alias_float.
21571 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21572 (lrintf): Define using libm_alias_float.
21573 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21574 (lroundf): Define using libm_alias_float.
21575 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21576 <libm-alias-float.h>.
21577 (nearbyintf): Define using libm_alias_float.
21578 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21579 (rintf): Define using libm_alias_float.
21580 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21581 (roundf): Define using libm_alias_float.
21582 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21583 (truncf): Define using libm_alias_float.
21584
21585 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21586 (ceil): Define using libm_alias_double.
21587 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21588 (copysign): Define using libm_alias_double.
21589 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21590 (fabs): Define using libm_alias_double.
21591 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21592 (floor): Define using libm_alias_double.
21593 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21594 (fmax): Define using libm_alias_double.
21595 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21596 (fmin): Define using libm_alias_double.
21597 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21598 (lrint): Define using libm_alias_double.
21599 (llrint): Likewise.
21600 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21601 (lround): Define using libm_alias_double.
21602 (llround): Likewise.
21603 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21604 (rint): Define using libm_alias_double.
21605 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21606 (trunc): Define using libm_alias_double.
21607
21608 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21609 (libm_alias_double_r): Add semicolon after weak_alias call.
21610
21611 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21612
21613 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21614 (ceil): Define using libm_alias_double.
21615 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21616 (floor): Define using libm_alias_double.
21617 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21618 (fma): Define using libm_alias_double.
21619 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21620 (fmax): Define using libm_alias_double.
21621 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21622 (fmin): Define using libm_alias_double.
21623 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21624 (llrint): Define using libm_alias_double.
21625 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21626 (llround): Define using libm_alias_double.
21627 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21628 (lrint): Define using libm_alias_double.
21629 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21630 (lround): Define using libm_alias_double.
21631 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21632 (nearbyint): Define using libm_alias_double.
21633 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21634 (rint): Define using libm_alias_double.
21635 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21636 (round): Define using libm_alias_double.
21637 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21638 (trunc): Define using libm_alias_double.
21639
21640 2017-11-27 Florian Weimer <fweimer@redhat.com>
21641
21642 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21643 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21644 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21645 (tests): Add tst-mlock2.
21646 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21647 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21648 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21649 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21650 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21651 for mlock. Document mlock2.
21652
21653 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21654
21655 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21656 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21657 Likewise.
21658 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21659 Likewise.
21660 * sysdeps/x86/Makeconfig: New file.
21661 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21662 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21663 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21664 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21665 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21666 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21667 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21668 Likewise.
21669 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21670 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21671 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21672 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21673 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21674 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21675 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21676 * manual/math.texi (Mathematics): Document support for _Float64x.
21677 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21678 * stdlib/Versions (GLIBC_2.27): Likewise.
21679 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21680 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21681 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21682 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21683 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21684 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21685 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21686 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21687 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21688 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21689 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21690 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21692 Likewise.
21693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21694 Likewise.
21695 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21696 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21697 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21698 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21699 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21700 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21701 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21702 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21703 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21704 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21705 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21706 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21707 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21708 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21709
21710 2017-11-27 Andreas Schwab <schwab@suse.de>
21711
21712 * elf/Makefile (dl-routines): Add dl-sort-maps.
21713 * elf/dl-sort-maps.c: New file.
21714 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21715 (_dl_sort_maps): Declare.
21716 * elf/dl-fini.c (_dl_sort_fini): Remove.
21717 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21718 * elf/dl-close.c (_dl_close_worker): Likewise.
21719 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21720 open-coding it.
21721 * elf/dl-open.c (dl_open_worker): Likewise.
21722
21723 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21724
21725 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21726 using libm_alias_float128.
21727 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21728 Likewise.
21729 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21730 Likewise.
21731 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21732 (setpayloadsigf128): Likewise.
21733 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21734 Likewise.
21735 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21736 Likewise.
21737
21738 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21739 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21740 -mfloat128 to CFLAGS.
21741 ($(foreach
21742 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21743 Likewise.
21744 (CFLAGS-libm-test-support-float64x.c): New variable.
21745 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21746 $(f128-loader-link) to gnulib-tests.
21747
21748 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21749 (libm_alias_float128_other_r): If
21750 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21751 alias.
21752 (libm_alias_float128_r): Add semicolon after weak_alias call.
21753 * sysdeps/generic/libm-alias-ldouble.h
21754 (libm_alias_ldouble_other_r_f128): New macro.
21755 (libm_alias_ldouble_other_r_f64x): Likewise.
21756 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21757 and libm_alias_ldouble_other_r_f64x.
21758 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21759 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21760 (libm_alias_ldouble_other_r_f128): New macro.
21761 (libm_alias_ldouble_other_r_f64x): Likewise.
21762 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21763 and libm_alias_ldouble_other_r_f64x.
21764
21765 * stdlib/strfroml.c: Always include <stdlib.h>.
21766 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21767 undefine as macro and define as weak alias.
21768 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21769 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21770 <stdlib.h>.
21771 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21772 Define and later undefine as macro and define as weak alias.
21773
21774 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21775 Define and later undefine as macro. Define as weak alias if
21776 [!USE_WIDE_CHAR].
21777 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21778 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21779 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21780 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21781 Define and later undefine as macro. Define as weak alias if
21782 [!USE_WIDE_CHAR].
21783 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21784 Define and later undefine as macro. Define as weak alias if
21785 [USE_WIDE_CHAR].
21786 * sysdeps/ieee754/float128/strtof128_l.c
21787 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21788 Define and later undefine as macro. Define as weak alias if
21789 [!USE_WIDE_CHAR].
21790 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21791 Define and later undefine as macro. Define as weak alias if
21792 [USE_WIDE_CHAR].
21793 * sysdeps/ieee754/ldbl-128/strtold_l.c
21794 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21795 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21796 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21797 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21798 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21799 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21800 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21801 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21802 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21803 * sysdeps/ieee754/ldbl-96/strtold_l.c
21804 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21805 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21806 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21807 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21808
21809 * math/test-float64x.h: New file.
21810 * math/Makefile (type-float64x-yes): New variable.
21811 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21812
21813 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21814 function-like macro.
21815 (min_of_type_): Likewise.
21816 (min_of_type_l): Likewise.
21817 (min_of_type_f128): Likewise.
21818 (min_of_type): Pass () as last argument of __MATH_TG.
21819
21820 * stdlib/tst-strtod-round-skeleton.c
21821 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21822 headers.
21823
21824 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21825 for combinations of long double with _Float64 and _Float64x.
21826
21827 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21828 (__DECL_SIMD_cosf32): Likewise.
21829 (__DECL_SIMD_cosf64): Likewise.
21830 (__DECL_SIMD_cosf32x): Likewise.
21831 (__DECL_SIMD_cosf64x): Likewise.
21832 (__DECL_SIMD_cosf128x): Likewise.
21833 (__DECL_SIMD_sinf16): Likewise.
21834 (__DECL_SIMD_sinf32): Likewise.
21835 (__DECL_SIMD_sinf64): Likewise.
21836 (__DECL_SIMD_sinf32x): Likewise.
21837 (__DECL_SIMD_sinf64x): Likewise.
21838 (__DECL_SIMD_sinf128x): Likewise.
21839 (__DECL_SIMD_sincosf16): Likewise.
21840 (__DECL_SIMD_sincosf32): Likewise.
21841 (__DECL_SIMD_sincosf64): Likewise.
21842 (__DECL_SIMD_sincosf32x): Likewise.
21843 (__DECL_SIMD_sincosf64x): Likewise.
21844 (__DECL_SIMD_sincosf128x): Likewise.
21845 (__DECL_SIMD_logf16): Likewise.
21846 (__DECL_SIMD_logf32): Likewise.
21847 (__DECL_SIMD_logf64): Likewise.
21848 (__DECL_SIMD_logf32x): Likewise.
21849 (__DECL_SIMD_logf64x): Likewise.
21850 (__DECL_SIMD_logf128x): Likewise.
21851 (__DECL_SIMD_expf16): Likewise.
21852 (__DECL_SIMD_expf32): Likewise.
21853 (__DECL_SIMD_expf64): Likewise.
21854 (__DECL_SIMD_expf32x): Likewise.
21855 (__DECL_SIMD_expf64x): Likewise.
21856 (__DECL_SIMD_expf128x): Likewise.
21857 (__DECL_SIMD_powf16): Likewise.
21858 (__DECL_SIMD_powf32): Likewise.
21859 (__DECL_SIMD_powf64): Likewise.
21860 (__DECL_SIMD_powf32x): Likewise.
21861 (__DECL_SIMD_powf64x): Likewise.
21862 (__DECL_SIMD_powf128x): Likewise.
21863
21864 * stdlib/Versions (libc): Move entries for wcstof128 and
21865 wcstof128_l to ....
21866 * wcsmbs/Versions (libc): ... here.
21867 Include <float128-abi.h>.
21868
21869 2017-11-24 Florian Weimer <fweimer@redhat.com>
21870
21871 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21872 bits/mman-shared.h.
21873 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21874 <bits/mman-shared.h>.
21875 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21876 to ...
21877 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21878 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21879 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21880 <bits/mman-shared.h>.
21881
21882 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21883
21884 [BZ #22457]
21885 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21886 posix_memalign/free.
21887 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21888
21889 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21890
21891 [BZ #22469]
21892 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21893 and implement the collation rules for pl from CLDR on top of that.
21894 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21895 of locales to be built for testing.
21896 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21897
21898 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21899
21900 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21901 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21902 libm_alias_ldouble_other.
21903 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21904 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21905 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21906 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21907 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21908 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21909 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21910 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21911 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21912 libm_alias_ldouble_r.
21913 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21914 libm_alias_ldouble_other.
21915 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21916 (log10l): Likewise.
21917 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21918 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21919 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21920 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21921 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21922 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21923 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21924 (atan2l): Likewise.
21925 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21926 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21927 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21928 libm_alias_ldouble.
21929 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21930 (cosl): Likewise.
21931 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21932 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21933 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21934 (expl): Likewise.
21935 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21936 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21937 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21938 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21939 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21940 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21941 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21942 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21943 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21944 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21945 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21946 libm_alias_ldouble.
21947 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21948 libm_alias_ldouble_other.
21949 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21950 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21951 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21952 libm_alias_ldouble.
21953 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21954 libm_alias_ldouble_other.
21955 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21956 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21957 * sysdeps/ia64/fpu/w_lgammal_main.c
21958 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21959 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21960
21961 2017-11-23 Florian Weimer <fweimer@redhat.com>
21962
21963 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21964 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21965 alike. Remove freeres marker.
21966 * malloc/arena.c (arena_thread_freeres): Call
21967 tcache_thread_shutdown.
21968
21969 2017-11-23 Florian Weimer <fweimer@redhat.com>
21970
21971 [BZ #22459]
21972 Export nscd hash function as __nss_hash.
21973 * include/nss.h (__nss_hash): Declare.
21974 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21975 symbol.
21976 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21977 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21978 of __nscd_hash.
21979 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21980 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21981 * nss/Makefiles (routines): Add nss_hash.
21982 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21983 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21984 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21985 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21986
21987 2017-11-23 Florian Weimer <fweimer@redhat.com>
21988
21989 [BZ #22478]
21990 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21991 Return error code, not -1.
21992 * signal/tst-sigwait-eintr.c: New file.
21993 * signal/Makefile (tests): Add tst-sigwait-eintr.
21994
21995 2017-11-23 Florian Weimer <fweimer@redhat.com>
21996
21997 Linux: Add memfd_create system call wrapper
21998 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21999 tst-memfd_create.
22000 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22001 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22002 [__USE_GNU] (memfd_create): Declare.
22003 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22004 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22005 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22006 * sysdeps/unix/sysv/linux/**.abilist: Update.
22007 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22008
22009 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22010
22011 * localedata/gen-locale.sh: Fix typo in variable name.
22012
22013 * resolv/res_debug.c (p_secstodate): Condition definition on
22014 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22015 directly as __p_secstodate, and as a compat symbol. Do not use
22016 libresolv_hidden_def.
22017 * resolv/resolv.h (p_secstodate): Remove macro and function
22018 declaration.
22019 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22020 using p_secstodate.
22021 * include/resolv.h (__p_secstodate): Do not use
22022 libresolv_hidden_proto.
22023 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22024 (tests-internal): ... here.
22025 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22026 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22027 and declare and use __p_secstodate and use compat_symbol_reference
22028 in that case.
22029 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22030 implementation returning 77.
22031
22032 [BZ #22463]
22033 * resolv/res_debug.c: Include <libc-diag.h>.
22034 (p_secstodate): Assert time_t at least as wide as u_long. On
22035 overflow, use integer seconds since the epoch as output, or use
22036 "<overflow>" as output and set errno to EOVERFLOW if integer
22037 seconds since the epoch would be 14 or more characters.
22038 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22039 for sprintf call.
22040 * resolv/tst-p_secstodate.c: New file.
22041 * resolv/Makefile (tests): Add tst-p_secstodate.
22042 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22043
22044 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22045 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22046 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22047
22048 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22049
22050 * posix/regcomp.c (init_word_char): Add comments.
22051
22052 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22053
22054 [BZ #22447]
22055 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22056 strlen to compute length of ut_user and set trailing NUL byte of
22057 result explicitly.
22058
22059 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22060
22061 [BZ #15537]
22062 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22063 using “copy "iso14651_t1"” and then implementing the
22064 collation rules for lv from CLDR on top of that.
22065 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22066 of locales to be built for testing.
22067 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22068 sorting.
22069
22070 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22071
22072 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22073 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22074 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22075 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22076 [__USE_MISC] (MADV_HWPOISON): New macro.
22077 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22078
22079 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22080
22081 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22082 -Wmissing-braces on GCC 4.9.
22083
22084 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22085
22086 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22087 * sysdeps/s390/s390-32/start.S (_start): Likewise
22088 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22089 (thread_start): Likewise.
22090 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22091 (thread_start): Likewise.
22092 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22093 (__makecontext_ret): Likewise.
22094 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22095 (__makecontext_ret): Likewise.
22096
22097 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22098
22099 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22100 __wcschrnul): Remove attribute_hidden.
22101
22102 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22103
22104 regex: don't assume uint64_t or uint32_t
22105 This avoids -Werror=overflow errors for 32-bit systems in
22106 the 64-bit case. Problem reported by Joseph Myers in:
22107 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22108 Also, when this code is used in Gnulib it ports to platforms
22109 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22110 them, and on some 32-bit compilers there is no uint64_t.
22111 Problem reported by Gianluigi Tiesi in:
22112 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22113 * posix/regcomp.c (init_word_char): Don't assume that the types
22114 uint64_t and uint32_t exist. Adapted from Gnulib patch
22115 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22116 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22117
22118 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22119
22120 * sysdeps/aarch64/memset-reg.h: New file.
22121 * sysdeps/aarch64/memset.S: Use it.
22122 (__memset): Rename to MEMSET macro.
22123 [ZVA_MACRO]: Use zva_macro.
22124 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22125 Add memset_generic and memset_falkor.
22126 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22127 (__libc_ifunc_impl_list): Add memset ifuncs.
22128 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22129 local variable zva_size.
22130 * sysdeps/aarch64/multiarch/memset.c: New file.
22131 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22132 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22133 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22134 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22135 (DCZID_DZP_MASK): New macro.
22136 (DCZID_BS_MASK): Likewise.
22137 (init_cpu_features): Read and set zva_size.
22138 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22139 (struct cpu_features): New member zva_size.
22140
22141 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22142 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22143 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22144
22145 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22146 backwards. Fix timing computation.
22147 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22148 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22149 on memset by N at a time. Fix timing computation.
22150
22151 2017-11-20 Florian Weimer <fweimer@redhat.com>
22152
22153 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22154 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22155
22156 2017-11-19 Florian Weimer <fweimer@redhat.com>
22157
22158 manual: Document mprotect
22159 * manual/memory.texi (Memory Protection): New section.
22160 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22161 documentation of PROT_* flags and reference the Memory Protection
22162 section instead.
22163
22164 2017-11-19 Florian Weimer <fweimer@redhat.com>
22165
22166 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22167 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22168 (Scatter-Gather): ... to here. Remove misleading comment.
22169
22170 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22171
22172 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22173 style.
22174
22175 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22176 when /proc/<pid>/setgroups does not exist.
22177
22178 2017-11-18 Florian Weimer <fweimer@redhat.com>
22179
22180 * sysdeps/unix/sysv/linux/tst-ttyname.c
22181 (become_root_in_mount_ns): Remove.
22182 (do_in_chroot_1): Call support_enter_mount_namespace.
22183 (do_in_chroot_2): Likewise.
22184 (do_test): Call support_become_root early.
22185
22186 2017-11-18 Florian Weimer <fweimer@redhat.com>
22187
22188 * support/namespace.h (support_enter_mount_namespace): Declare.
22189 * support/support_enter_mount_namespace.c: New file.
22190 * support/Makefile (libsupport-routines): Add
22191 support_enter_mount_namespace.
22192
22193 2017-11-18 Florian Weimer <fweimer@redhat.com>
22194
22195 * support/temp_file.c (support_create_temp_directory): Use
22196 test_dir and do not rely on the presence of the XXXXXX suffix.
22197 * support/temp_file.h (support_create_temp_directory): Update
22198 comment.
22199 * support/tst-xreadlink.c (do_test): Adjust.
22200 * support/support_chroot.c (support_chroot_create): Likewise.
22201
22202 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22203
22204 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22205 macro.
22206 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22207 htm-no-suspend.
22208
22209 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22210
22211 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22212 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22213 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22214 (ceill): Define using libm_alias_ldouble.
22215 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22216 <libm-alias-ldouble.h>.
22217 (copysignl): Define using libm_alias_ldouble.
22218 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22219 (fabsl): Define using libm_alias_ldouble.
22220 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22221 (floorl): Define using libm_alias_ldouble.
22222 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22223 (fmaxl): Define using libm_alias_ldouble.
22224 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22225 (fminl): Define using libm_alias_ldouble.
22226 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22227 (llrintl): Define using libm_alias_ldouble.
22228 (lrintl): Likewise.
22229 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22230 <libm-alias-ldouble.h>.
22231 (nearbyintl): Define using libm_alias_ldouble.
22232 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22233 (truncl): Define using libm_alias_ldouble.
22234 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22235 <libm-alias-ldouble.h>.
22236 (lrintl): Define using libm_alias_ldouble.
22237
22238 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22239 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22240 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22241 (asinhl): Define using libm_alias_ldouble.
22242 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22243 (atanl): Define using libm_alias_ldouble.
22244 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22245 (cbrtl): Define using libm_alias_ldouble.
22246 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22247 (ceill): Define using libm_alias_ldouble.
22248 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22249 (copysignl): Define using libm_alias_ldouble.
22250 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22251 (fabsl): Define using libm_alias_ldouble.
22252 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22253 (floorl): Define using libm_alias_ldouble.
22254 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22255 (fmaxl): Define using libm_alias_ldouble.
22256 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22257 (fminl): Define using libm_alias_ldouble.
22258 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22259 (frexpl): Define using libm_alias_ldouble.
22260 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22261 (llrintl): Define using libm_alias_ldouble.
22262 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22263 (logbl): Define using libm_alias_ldouble.
22264 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22265 (lrintl): Define using libm_alias_ldouble.
22266 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22267 (nearbyintl): Define using libm_alias_ldouble.
22268 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22269 (nextafterl): Define using libm_alias_ldouble.
22270 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22271 (remquol): Define using libm_alias_ldouble.
22272 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22273 (rintl): Define using libm_alias_ldouble.
22274 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22275 (truncl): Define using libm_alias_ldouble.
22276 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22277 (fmaxl): Define using libm_alias_ldouble.
22278 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22279 (fminl): Define using libm_alias_ldouble.
22280
22281 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22282 to C syntax instead of availability and properties of types.
22283 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22284 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22285 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22286 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22287 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22288 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22289
22290 2017-11-17 Florian Weimer <fweimer@redhat.com>
22291
22292 support_become_root: Enable file creation in namespaces.
22293 * support/support_become_root.c (setup_mapping): New function.
22294 (support_become_root): Call it.
22295
22296 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22297
22298 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22299 macro.
22300
22301 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22302
22303 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22304 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22305
22306 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22307
22308 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22309
22310 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22311 version to 4.14.
22312
22313 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22314
22315 * INSTALL: Fix botched up regeneration.
22316
22317 * NEWS: Update sourceare link to https.
22318 * configure.ac: Likewise.
22319 * crypt/md5test-giant.c: Likewise.
22320 * dlfcn/bug-atexit1.c: Likewise.
22321 * dlfcn/bug-atexit2.c: Likewise.
22322 * localedata/README: Likewise.
22323 * malloc/tst-mallocfork.c: Likewise.
22324 * manual/install.texi: Likewise.
22325 * nptl/tst-pthread-getattr.c: Likewise.
22326 * stdio-common/tst-fgets.c: Likewise.
22327 * stdio-common/tst-fwrite.c: Likewise.
22328 * sunrpc/Makefile: Likewise.
22329 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22330 * wcsmbs/tst-mbrtowc2.c: Likewise.
22331 * configure: Regenerate.
22332 * INSTALL: Regenerate.
22333
22334 2017-11-15 Martin Sebor <msebor@redhat.com>
22335
22336 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22337 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22338 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22339
22340 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22341
22342 [BZ #22145]
22343 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22344 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22345
22346 [BZ #22145]
22347 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22348 Defer is_pty check until end of the function.
22349 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22350
22351 [BZ #22145]
22352 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22353 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22354 (ttyname): Likewise.
22355 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22356 (__ttyname_r): Likewise.
22357
22358 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22359 int to bool.
22360
22361 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22362
22363 * manual/terminal.texi (Is It a Terminal):
22364 Mention ENODEV for ttyname and ttyname_r.
22365
22366 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22367
22368 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22369 constant and macro.
22370
22371 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22372 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22373 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22374 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22375 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22376 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22377
22378 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22379
22380 * signal/sigrelse.c (sigrelse): Optimize implementation.
22381
22382 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22383 (__sigpause): Rely on __sigsuspend to implement single thread
22384 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22385
22386 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22387
22388 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22389 kernel version to 4.14.
22390
22391 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22392
22393 [BZ #22442]
22394 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22395 Check if ifname is too long.
22396
22397 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22398
22399 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22400
22401 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22402
22403 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22404 was accidentally lost.
22405
22406 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22407
22408 * localedata/locales/az_IR: Add standard copyright header.
22409
22410 2017-11-15 Florian Weimer <fweimer@redhat.com>
22411
22412 [BZ #22439]
22413 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22414 not just the top one. Output a new "subheaps" statistic.
22415
22416 2017-11-15 Florian Weimer <fweimer@redhat.com>
22417
22418 [BZ #22408]
22419 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22420 under the per-arena lock.
22421 * malloc/Makefile (tests): Add tst-malloc_info.
22422 (tst-malloc_info): Link with libpthread.
22423 * malloc/tst-malloc_info.c: New file.
22424
22425 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22426
22427 [BZ #21660]
22428 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22429 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22430 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22431 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22432 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22433 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22434 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22435 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22436 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22437 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22438 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22439 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22440 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22441 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22442 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22443 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22444 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22445 (__floating_type): Likewise.
22446 (__real_integer_type): Likewise.
22447 (__complex_integer_type): Likewise.
22448 (__expr_is_real): Likewise.
22449 (__tgmath_real_type_sub): Likewise.
22450 (__tgmath_real_type): Likewise.
22451 (__tgmath_complex_type_sub): Likewise.
22452 (__tgmath_complex_type): Likewise.
22453 (__TGMATH_F128): Likewise.
22454 (__TGMATH_CF128): Likewise.
22455 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22456 new macros.
22457 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22458 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22459 Likewise.
22460 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22461 Likewise.
22462 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22463 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22464 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22465 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22466 Likewise.
22467 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22468 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22469 Likewise.
22470 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22471 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22472 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22473 Likewise.
22474 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22475 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22476 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22477 (cimag): Likewise.
22478 (creal): Likewise.
22479
22480 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22481
22482 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22483 for stpncpy calls for GCC 8.
22484 (test_strncat): Disable -Wstringop-truncation warning for strncat
22485 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22486 strncat call for GCC 7.
22487 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22488 calls for GCC 8.
22489 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22490 trailing NUL.
22491
22492 * string/bug-strncat1.c: Include <libc-diag.h>.
22493 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22494
22495 2017-11-13 Claude Paroz <claude@2xlibre.net>
22496
22497 [BZ #22387]
22498 * localedata/locales/aa_DJ: Improved readibility by replacing
22499 <Uxxxx> sequences in the ASCII printable range by their ASCII
22500 character equivalents.
22501 * localedata/locales/aa_ER: Likewise.
22502 * localedata/locales/aa_ER@saaho: Likewise.
22503 * localedata/locales/aa_ET: Likewise.
22504 * localedata/locales/af_ZA: Likewise.
22505 * localedata/locales/agr_PE: Likewise.
22506 * localedata/locales/ak_GH: Likewise.
22507 * localedata/locales/am_ET: Likewise.
22508 * localedata/locales/anp_IN: Likewise.
22509 * localedata/locales/ar_AE: Likewise.
22510 * localedata/locales/ar_BH: Likewise.
22511 * localedata/locales/ar_DZ: Likewise.
22512 * localedata/locales/ar_EG: Likewise.
22513 * localedata/locales/ar_IN: Likewise.
22514 * localedata/locales/ar_IQ: Likewise.
22515 * localedata/locales/ar_JO: Likewise.
22516 * localedata/locales/ar_KW: Likewise.
22517 * localedata/locales/ar_LB: Likewise.
22518 * localedata/locales/ar_LY: Likewise.
22519 * localedata/locales/ar_MA: Likewise.
22520 * localedata/locales/ar_OM: Likewise.
22521 * localedata/locales/ar_QA: Likewise.
22522 * localedata/locales/ar_SA: Likewise.
22523 * localedata/locales/ar_SD: Likewise.
22524 * localedata/locales/ar_SS: Likewise.
22525 * localedata/locales/ar_SY: Likewise.
22526 * localedata/locales/ar_TN: Likewise.
22527 * localedata/locales/ar_YE: Likewise.
22528 * localedata/locales/as_IN: Likewise.
22529 * localedata/locales/ast_ES: Likewise.
22530 * localedata/locales/ayc_PE: Likewise.
22531 * localedata/locales/az_AZ: Likewise.
22532 * localedata/locales/az_IR: Likewise.
22533 * localedata/locales/be_BY: Likewise.
22534 * localedata/locales/be_BY@latin: Likewise.
22535 * localedata/locales/bem_ZM: Likewise.
22536 * localedata/locales/ber_DZ: Likewise.
22537 * localedata/locales/ber_MA: Likewise.
22538 * localedata/locales/bg_BG: Likewise.
22539 * localedata/locales/bhb_IN: Likewise.
22540 * localedata/locales/bho_IN: Likewise.
22541 * localedata/locales/bi_VU: Likewise.
22542 * localedata/locales/bn_BD: Likewise.
22543 * localedata/locales/bn_IN: Likewise.
22544 * localedata/locales/bo_CN: Likewise.
22545 * localedata/locales/bo_IN: Likewise.
22546 * localedata/locales/br_FR: Likewise.
22547 * localedata/locales/brx_IN: Likewise.
22548 * localedata/locales/bs_BA: Likewise.
22549 * localedata/locales/byn_ER: Likewise.
22550 * localedata/locales/ca_AD: Likewise.
22551 * localedata/locales/ca_ES: Likewise.
22552 * localedata/locales/ca_FR: Likewise.
22553 * localedata/locales/ca_IT: Likewise.
22554 * localedata/locales/ce_RU: Likewise.
22555 * localedata/locales/chr_US: Likewise.
22556 * localedata/locales/cmn_TW: Likewise.
22557 * localedata/locales/crh_UA: Likewise.
22558 * localedata/locales/cs_CZ: Likewise.
22559 * localedata/locales/csb_PL: Likewise.
22560 * localedata/locales/cv_RU: Likewise.
22561 * localedata/locales/cy_GB: Likewise.
22562 * localedata/locales/da_DK: Likewise.
22563 * localedata/locales/de_AT: Likewise.
22564 * localedata/locales/de_BE: Likewise.
22565 * localedata/locales/de_CH: Likewise.
22566 * localedata/locales/de_DE: Likewise.
22567 * localedata/locales/de_IT: Likewise.
22568 * localedata/locales/de_LI: Likewise.
22569 * localedata/locales/de_LU: Likewise.
22570 * localedata/locales/doi_IN: Likewise.
22571 * localedata/locales/dv_MV: Likewise.
22572 * localedata/locales/dz_BT: Likewise.
22573 * localedata/locales/el_CY: Likewise.
22574 * localedata/locales/el_GR: Likewise.
22575 * localedata/locales/en_AG: Likewise.
22576 * localedata/locales/en_AU: Likewise.
22577 * localedata/locales/en_BW: Likewise.
22578 * localedata/locales/en_CA: Likewise.
22579 * localedata/locales/en_DK: Likewise.
22580 * localedata/locales/en_GB: Likewise.
22581 * localedata/locales/en_HK: Likewise.
22582 * localedata/locales/en_IE: Likewise.
22583 * localedata/locales/en_IL: Likewise.
22584 * localedata/locales/en_IN: Likewise.
22585 * localedata/locales/en_NG: Likewise.
22586 * localedata/locales/en_NZ: Likewise.
22587 * localedata/locales/en_PH: Likewise.
22588 * localedata/locales/en_SG: Likewise.
22589 * localedata/locales/en_US: Likewise.
22590 * localedata/locales/en_ZA: Likewise.
22591 * localedata/locales/en_ZM: Likewise.
22592 * localedata/locales/en_ZW: Likewise.
22593 * localedata/locales/eo: Likewise.
22594 * localedata/locales/es_AR: Likewise.
22595 * localedata/locales/es_BO: Likewise.
22596 * localedata/locales/es_CL: Likewise.
22597 * localedata/locales/es_CO: Likewise.
22598 * localedata/locales/es_CR: Likewise.
22599 * localedata/locales/es_CU: Likewise.
22600 * localedata/locales/es_DO: Likewise.
22601 * localedata/locales/es_EC: Likewise.
22602 * localedata/locales/es_ES: Likewise.
22603 * localedata/locales/es_GT: Likewise.
22604 * localedata/locales/es_HN: Likewise.
22605 * localedata/locales/es_MX: Likewise.
22606 * localedata/locales/es_NI: Likewise.
22607 * localedata/locales/es_PA: Likewise.
22608 * localedata/locales/es_PE: Likewise.
22609 * localedata/locales/es_PR: Likewise.
22610 * localedata/locales/es_PY: Likewise.
22611 * localedata/locales/es_SV: Likewise.
22612 * localedata/locales/es_US: Likewise.
22613 * localedata/locales/es_UY: Likewise.
22614 * localedata/locales/es_VE: Likewise.
22615 * localedata/locales/et_EE: Likewise.
22616 * localedata/locales/eu_ES: Likewise.
22617 * localedata/locales/eu_ES@euro: Likewise.
22618 * localedata/locales/fa_IR: Likewise.
22619 * localedata/locales/ff_SN: Likewise.
22620 * localedata/locales/fi_FI: Likewise.
22621 * localedata/locales/fil_PH: Likewise.
22622 * localedata/locales/fo_FO: Likewise.
22623 * localedata/locales/fr_BE: Likewise.
22624 * localedata/locales/fr_CA: Likewise.
22625 * localedata/locales/fr_CH: Likewise.
22626 * localedata/locales/fr_FR: Likewise.
22627 * localedata/locales/fr_LU: Likewise.
22628 * localedata/locales/fur_IT: Likewise.
22629 * localedata/locales/fy_DE: Likewise.
22630 * localedata/locales/fy_NL: Likewise.
22631 * localedata/locales/ga_IE: Likewise.
22632 * localedata/locales/gd_GB: Likewise.
22633 * localedata/locales/gez_ER: Likewise.
22634 * localedata/locales/gez_ET: Likewise.
22635 * localedata/locales/gl_ES: Likewise.
22636 * localedata/locales/gu_IN: Likewise.
22637 * localedata/locales/gv_GB: Likewise.
22638 * localedata/locales/ha_NG: Likewise.
22639 * localedata/locales/hak_TW: Likewise.
22640 * localedata/locales/he_IL: Likewise.
22641 * localedata/locales/hi_IN: Likewise.
22642 * localedata/locales/hif_FJ: Likewise.
22643 * localedata/locales/hne_IN: Likewise.
22644 * localedata/locales/hr_HR: Likewise.
22645 * localedata/locales/hsb_DE: Likewise.
22646 * localedata/locales/ht_HT: Likewise.
22647 * localedata/locales/hu_HU: Likewise.
22648 * localedata/locales/hy_AM: Likewise.
22649 * localedata/locales/i18n: Likewise.
22650 * localedata/locales/ia_FR: Likewise.
22651 * localedata/locales/id_ID: Likewise.
22652 * localedata/locales/ig_NG: Likewise.
22653 * localedata/locales/ik_CA: Likewise.
22654 * localedata/locales/is_IS: Likewise.
22655 * localedata/locales/it_CH: Likewise.
22656 * localedata/locales/it_IT: Likewise.
22657 * localedata/locales/iu_CA: Likewise.
22658 * localedata/locales/ja_JP: Likewise.
22659 * localedata/locales/ka_GE: Likewise.
22660 * localedata/locales/kk_KZ: Likewise.
22661 * localedata/locales/kl_GL: Likewise.
22662 * localedata/locales/kn_IN: Likewise.
22663 * localedata/locales/ko_KR: Likewise.
22664 * localedata/locales/kok_IN: Likewise.
22665 * localedata/locales/ks_IN: Likewise.
22666 * localedata/locales/ks_IN@devanagari: Likewise.
22667 * localedata/locales/ku_TR: Likewise.
22668 * localedata/locales/kw_GB: Likewise.
22669 * localedata/locales/ky_KG: Likewise.
22670 * localedata/locales/lb_LU: Likewise.
22671 * localedata/locales/lg_UG: Likewise.
22672 * localedata/locales/li_BE: Likewise.
22673 * localedata/locales/li_NL: Likewise.
22674 * localedata/locales/lij_IT: Likewise.
22675 * localedata/locales/ln_CD: Likewise.
22676 * localedata/locales/lo_LA: Likewise.
22677 * localedata/locales/lt_LT: Likewise.
22678 * localedata/locales/lv_LV: Likewise.
22679 * localedata/locales/lzh_TW: Likewise.
22680 * localedata/locales/mag_IN: Likewise.
22681 * localedata/locales/mai_IN: Likewise.
22682 * localedata/locales/mg_MG: Likewise.
22683 * localedata/locales/mhr_RU: Likewise.
22684 * localedata/locales/mi_NZ: Likewise.
22685 * localedata/locales/mk_MK: Likewise.
22686 * localedata/locales/ml_IN: Likewise.
22687 * localedata/locales/mn_MN: Likewise.
22688 * localedata/locales/mni_IN: Likewise.
22689 * localedata/locales/mr_IN: Likewise.
22690 * localedata/locales/ms_MY: Likewise.
22691 * localedata/locales/mt_MT: Likewise.
22692 * localedata/locales/my_MM: Likewise.
22693 * localedata/locales/nan_TW: Likewise.
22694 * localedata/locales/nan_TW@latin: Likewise.
22695 * localedata/locales/nb_NO: Likewise.
22696 * localedata/locales/nds_DE: Likewise.
22697 * localedata/locales/nds_NL: Likewise.
22698 * localedata/locales/ne_NP: Likewise.
22699 * localedata/locales/nhn_MX: Likewise.
22700 * localedata/locales/niu_NU: Likewise.
22701 * localedata/locales/niu_NZ: Likewise.
22702 * localedata/locales/nl_AW: Likewise.
22703 * localedata/locales/nl_BE: Likewise.
22704 * localedata/locales/nl_NL: Likewise.
22705 * localedata/locales/nn_NO: Likewise.
22706 * localedata/locales/nr_ZA: Likewise.
22707 * localedata/locales/nso_ZA: Likewise.
22708 * localedata/locales/oc_FR: Likewise.
22709 * localedata/locales/om_ET: Likewise.
22710 * localedata/locales/om_KE: Likewise.
22711 * localedata/locales/or_IN: Likewise.
22712 * localedata/locales/os_RU: Likewise.
22713 * localedata/locales/pa_IN: Likewise.
22714 * localedata/locales/pa_PK: Likewise.
22715 * localedata/locales/pap_AW: Likewise.
22716 * localedata/locales/pap_CW: Likewise.
22717 * localedata/locales/pl_PL: Likewise.
22718 * localedata/locales/ps_AF: Likewise.
22719 * localedata/locales/pt_BR: Likewise.
22720 * localedata/locales/pt_PT: Likewise.
22721 * localedata/locales/quz_PE: Likewise.
22722 * localedata/locales/raj_IN: Likewise.
22723 * localedata/locales/ro_RO: Likewise.
22724 * localedata/locales/ru_RU: Likewise.
22725 * localedata/locales/ru_UA: Likewise.
22726 * localedata/locales/rw_RW: Likewise.
22727 * localedata/locales/sa_IN: Likewise.
22728 * localedata/locales/sat_IN: Likewise.
22729 * localedata/locales/sc_IT: Likewise.
22730 * localedata/locales/sd_IN: Likewise.
22731 * localedata/locales/sd_IN@devanagari: Likewise.
22732 * localedata/locales/se_NO: Likewise.
22733 * localedata/locales/sgs_LT: Likewise.
22734 * localedata/locales/shs_CA: Likewise.
22735 * localedata/locales/si_LK: Likewise.
22736 * localedata/locales/sid_ET: Likewise.
22737 * localedata/locales/sk_SK: Likewise.
22738 * localedata/locales/sl_SI: Likewise.
22739 * localedata/locales/sm_WS: Likewise.
22740 * localedata/locales/so_DJ: Likewise.
22741 * localedata/locales/so_ET: Likewise.
22742 * localedata/locales/so_KE: Likewise.
22743 * localedata/locales/so_SO: Likewise.
22744 * localedata/locales/sq_AL: Likewise.
22745 * localedata/locales/sq_MK: Likewise.
22746 * localedata/locales/sr_ME: Likewise.
22747 * localedata/locales/sr_RS: Likewise.
22748 * localedata/locales/sr_RS@latin: Likewise.
22749 * localedata/locales/ss_ZA: Likewise.
22750 * localedata/locales/st_ZA: Likewise.
22751 * localedata/locales/sv_FI: Likewise.
22752 * localedata/locales/sv_SE: Likewise.
22753 * localedata/locales/sw_KE: Likewise.
22754 * localedata/locales/sw_TZ: Likewise.
22755 * localedata/locales/szl_PL: Likewise.
22756 * localedata/locales/ta_IN: Likewise.
22757 * localedata/locales/ta_LK: Likewise.
22758 * localedata/locales/tcy_IN: Likewise.
22759 * localedata/locales/te_IN: Likewise.
22760 * localedata/locales/tg_TJ: Likewise.
22761 * localedata/locales/th_TH: Likewise.
22762 * localedata/locales/the_NP: Likewise.
22763 * localedata/locales/ti_ER: Likewise.
22764 * localedata/locales/ti_ET: Likewise.
22765 * localedata/locales/tig_ER: Likewise.
22766 * localedata/locales/tk_TM: Likewise.
22767 * localedata/locales/tl_PH: Likewise.
22768 * localedata/locales/tn_ZA: Likewise.
22769 * localedata/locales/to_TO: Likewise.
22770 * localedata/locales/tpi_PG: Likewise.
22771 * localedata/locales/tr_CY: Likewise.
22772 * localedata/locales/tr_TR: Likewise.
22773 * localedata/locales/ts_ZA: Likewise.
22774 * localedata/locales/tt_RU: Likewise.
22775 * localedata/locales/tt_RU@iqtelif: Likewise.
22776 * localedata/locales/ug_CN: Likewise.
22777 * localedata/locales/uk_UA: Likewise.
22778 * localedata/locales/unm_US: Likewise.
22779 * localedata/locales/ur_IN: Likewise.
22780 * localedata/locales/ur_PK: Likewise.
22781 * localedata/locales/uz_UZ: Likewise.
22782 * localedata/locales/uz_UZ@cyrillic: Likewise.
22783 * localedata/locales/ve_ZA: Likewise.
22784 * localedata/locales/vi_VN: Likewise.
22785 * localedata/locales/wa_BE: Likewise.
22786 * localedata/locales/wae_CH: Likewise.
22787 * localedata/locales/wal_ET: Likewise.
22788 * localedata/locales/wo_SN: Likewise.
22789 * localedata/locales/xh_ZA: Likewise.
22790 * localedata/locales/yi_US: Likewise.
22791 * localedata/locales/yo_NG: Likewise.
22792 * localedata/locales/yue_HK: Likewise.
22793 * localedata/locales/yuw_PG: Likewise.
22794 * localedata/locales/zh_CN: Likewise.
22795 * localedata/locales/zh_HK: Likewise.
22796 * localedata/locales/zh_SG: Likewise.
22797 * localedata/locales/zh_TW: Likewise.
22798 * localedata/locales/zu_ZA: Likewise.
22799
22800 2017-11-13 Florian Weimer <fweimer@redhat.com>
22801
22802 * support/next_to_fault.h, support/next_to_fault.c: New files.
22803 * support/Makefile (libsupport-routines): Add next_to_fault.
22804 * resolv/tst-inet_pton.c (struct next_to_fault)
22805 (next_to_fault_allocate, next_to_fault_free): Remove.
22806 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22807
22808 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22809
22810 * elf/dl-support.c: Include <dl-procruntime.c>.
22811 * include/link.h: Include <link_map.h>.
22812 * sysdeps/generic/dl-procruntime.c: New file.
22813 * sysdeps/generic/link_map.h: Likewise.
22814 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22815 the writable ld.so namespace.
22816
22817 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22818
22819 timezone: pacify GCC -Wstringop-truncation
22820 Problem reported by Martin Sebor in:
22821 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22822 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22823
22824 2017-11-12 Florian Weimer <fweimer@redhat.com>
22825
22826 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22827 tst-xreadlink.
22828 (tests): Add tst-xreadlink.
22829 * support/support.h (xstrndup): Declare.
22830 * support/xunistd.h (xunlink, xreadlink): Declare.
22831 * support/temp_file.h (support_create_temp_directory): Declare.
22832 * support/temp_file.c (support_create_temp_directory): New function.
22833 * support/support_chroot.c (support_chroot_create): Use it.
22834 * support/xreadlink.c: New file.
22835 * support/xstrndup.c: Likewise.
22836 * support/xunlink.c: Likewise.
22837 * support/tst-xreadlink.c: Likewise.
22838
22839 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22840
22841 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22842
22843 2017-11-11 Florian Weimer <fweimer@redhat.com>
22844
22845 [BZ #22409]
22846 [BZ #22412]
22847 * resolv/res_comp.c (printable_string, binary_hnok)
22848 (binary_leading_dash): New functions.
22849 (res_hnok): Reimplement using these functions and ns_name_pton.
22850 (res_ownok): Likewise.
22851 (res_mailok): Reimplement using printable_string, ns_name_pton and
22852 binary_hnok.
22853 (res_dnok): Reimplement using printable_string and ns_name_pton.
22854 * resolv/tst-res_hnok.c (tests): Add additional tests.
22855 (LETTERDIGITS, PRINTABLE): Define.
22856 (do_test): Adjust one_char results.
22857
22858 2017-11-11 Florian Weimer <fweimer@redhat.com>
22859
22860 [BZ #22413]
22861 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22862 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22863
22864 2017-11-11 Florian Weimer <fweimer@redhat.com>
22865
22866 * resolv/tst-ns_name_pton.c: New file.
22867 * resolv/Makefile (tests): Add tst-ns_name_pton.
22868 (tst-ns_name_pton): Link against libresolv.
22869
22870 2017-11-11 Florian Weimer <fweimer@redhat.com>
22871
22872 * resolv/tst-res_hnok.c: New file.
22873 * resolv/Makefile (tests): Add tst-res_hnok.
22874 (tst-res_hnok): Link against libresolv.
22875
22876 2017-11-11 Florian Weimer <fweimer@redhat.com>
22877
22878 * resolv/tst-resolv-network.c: Use test framework instead explicit
22879 main function.
22880
22881 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22882
22883 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22884 <jmp_buf-macros.h>.
22885 [!_ISOMAC] (STR_HELPER): New.
22886 [!_ISOMAC] (STR): Likewise.
22887 [!_ISOMAC] (TEST_SIZE): Likewise.
22888 [!_ISOMAC] (TEST_ALIGN): Likewise.
22889 [!_ISOMAC] (TEST_OFFSET): Likewise.
22890 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22891 field offsets of jmp_buf as well as sigjmp_buf.
22892 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22893 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22894 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22895 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22896 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22897 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22898 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22899 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22900 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22901 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22902 Likewise.
22903 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22904 Likewise.
22905 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22907 Likewise.
22908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22909 Likewise.
22910 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22911 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22912 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22913 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22914 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22915 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22916 Likewise.
22917 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22918 Likewise.
22919 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22920 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22921 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22922
22923 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22924
22925 * include/float.h
22926 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22927 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22928 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22929 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22930 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22931 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22932 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22933 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22934 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22935 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22936 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22937 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22938 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22939 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22940 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22941 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22942 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22943 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22944 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22945 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22946 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22947 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22948 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22949 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22950 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22951 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22952 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22953 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22954 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22955 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22956 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22957 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22958 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22959 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22960 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22961 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22962 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22963 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22964 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22965 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22966 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22967 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22968 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22969 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22970 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22971 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22972 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22973 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22974 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22975 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22976 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22977 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22978 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22979 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22980 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22981 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22982 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22983 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22984 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22985 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22986 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22987 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22988 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22989 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22990 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22991 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22992 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22993 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22994 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22995 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22996 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22997 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22998 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22999 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23000 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23001 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23002 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23003 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23004 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23005 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23006 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23007 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23008 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23009 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23010 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23011 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23012 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23013 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23014
23015 * stdlib/tst-strtod.h (F16): New macro.
23016 (F32): Likewise.
23017 (F64): Likewise.
23018 (F32X): Likewise.
23019 (F64X): Likewise.
23020 (F128X): Likewise.
23021 (IF_FLOAT16): Likewise.
23022 (IF_FLOAT32): Likewise.
23023 (IF_FLOAT64): Likewise.
23024 (IF_FLOAT32X): Likewise.
23025 (IF_FLOAT64X): Likewise.
23026 (IF_FLOAT128X): Likewise.
23027 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23028 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23029 (STRTOD_TEST_FOREACH): Likewise.
23030 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23031 (CHOOSE_f64): Likewise.
23032 (CHOOSE_f32x): Likewise.
23033 (CHOOSE_f64x): Likewise.
23034
23035 2017-11-07 Andreas Schwab <schwab@suse.de>
23036
23037 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23038
23039 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23040
23041 [BZ #22403]
23042 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23043 to be escaped.
23044 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23045 to be escaped.
23046
23047 2017-11-07 Claude Paroz <claude@2xlibre.net>
23048
23049 [BZ #22403]
23050 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23051 to be escaped.
23052 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23053 to be escaped.
23054 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23055 to be escaped.
23056
23057 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23058
23059 [BZ #22298]
23060 * nptl/allocatestack.c (allocate_stack): Check if
23061 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23062 __PTHREAD_MUTEX_HAVE_PREV is defined.
23063 * nptl/descr.h (pthread): Likewise.
23064 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23065 Likewise.
23066 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23067 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23068 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23069 * sysdeps/nptl/bits/thread-shared-types.h
23070 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23071 defines.
23072 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23073 of __WORDSIZE for internal layout.
23074 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23075 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23076 instead of __WORDSIZE whether to use an union for __spins and __list
23077 fields.
23078 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23079 case.
23080 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23081 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23082 defines.
23083 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23084 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23085 Likewise.
23086 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23087 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23088 Likewise.
23089 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23090 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23091 Likewise.
23092 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23093 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23094 Likewise.
23095 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23096 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23097 Likewise.
23098 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23099 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23100 Likewise.
23101 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23102 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23103 Likewise.
23104 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23105 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23106 Likewise.
23107 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23108 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23109 Likewise.
23110 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23111 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23112 Likewise.
23113 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23114 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23115 Likewise.
23116 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23117 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23118 Likewise.
23119 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23120 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23121 Likewise.
23122 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23123 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23124 Likewise.
23125
23126 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23127 New macros.
23128 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23129 checks for expected input type size.
23130 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23131 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23132 Likewise.
23133 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23134 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23135 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23136 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23137 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23138 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23139 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23140 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23141 superflous runtime assert check.
23142 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23143 Likewise.
23144 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23145 Likewise.
23146 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23147 Likewise.
23148 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23149 Likewise.
23150 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23151 Likewise.
23152 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23153 Likewise.
23154 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23155 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23156 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23157 Likewise.
23158 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23159 Likewise.
23160 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23161 Likewise.
23162 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23163 Likewise.
23164 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23165 Likewise.
23166 * nptl/pthread_attr_setinheritsched.c
23167 (__pthread_attr_setinheritsched): Likewise.
23168 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23169 Likewise.
23170 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23171 Likewise.
23172 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23173 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23174 __old_pthread_attr_setstack): Likewise.
23175 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23176 Likewise.
23177 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23178 Likewise.
23179 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23180 Likewise.
23181 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23182 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23183 Likewise.
23184 * nptl/tst-typesizes.c: Remove file.
23185
23186 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23187 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23188 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23189 checks for internal pthread_mutex_t offsets.
23190 * sysdeps/aarch64/nptl/pthread-offsets.h
23191 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23192 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23193 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23194 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23195 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23196 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23197 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23198 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23199 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23200 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23201 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23202 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23203 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23204 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23205 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23206 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23207 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23208 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23209
23210 2017-11-07 Florian Weimer <fweimer@redhat.com>
23211
23212 * bits/mman-linux.h: Move ...
23213 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23214 comment.
23215 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23216 outdated comment.
23217
23218 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23219
23220 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23221 Redefine STRNLEN as __strnlen_power8.
23222
23223 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23224
23225 * signal/sighold.c (sighold): Optimize implementation.
23226
23227 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23228 __NR_rt_sigqueueinfo.
23229
23230 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23231 __sigtimedwait.
23232 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23233 assume __NR_rt_sigtimedwait.
23234 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23235 and add LIBC_CANCEL_HANDLED for cancellation marking.
23236 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23237
23238 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23239 (sysdeps_routines): Add memchr_noneon.
23240 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23241 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23242 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23243 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23244 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23245 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23246 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23247
23248 * sysdeps/arm/arm-ifunc.h: New file.
23249 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23250 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23251 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23252 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23253 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23254 (__memcpy_neon): Avoid create hidden alias.
23255 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23256 (__memcpy_vfp): Likewise.
23257 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23258 (sysdep_routines): Add memcpy_arm.
23259 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23260
23261 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23262
23263 [BZ #22362]
23264 * Makerules (make-link-multidir): New.
23265 * config.make.in (multidir): New.
23266 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23267 * configure: Regenerated.
23268 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23269 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23270 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23271 New target.
23272
23273 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23274
23275 [BZ #22402]
23276 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23277 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23278
23279 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23280
23281 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23282 to be escaped.
23283
23284 2017-11-04 Florian Weimer <fweimer@redhat.com>
23285
23286 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23287
23288 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23289
23290 * math/math.h [__HAVE_DISTINCT_FLOAT16
23291 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23292 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23293 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23294 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23295 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23296 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23297 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23298 (__MATH_TG_F32): New macro.
23299 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23300 (__MATH_TG_F64X): Likewise.
23301 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23302 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23303
23304 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23305
23306 * po/de.po: Update translations.
23307 * po/ru.po: Likewise.
23308
23309 2017-11-03 Florian Weimer <fweimer@redhat.com>
23310
23311 * manual/filesys.texi (Hard Links): Document linkat.
23312
23313 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23314
23315 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23316 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23317 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23318 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23319 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23320 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23321 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23322 the same as _Float128.
23323 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23324 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23325 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23326
23327 * stdlib/stdlib.h
23328 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23329 Declare.
23330 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23331 Likewise.
23332 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23333 Likewise.
23334 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23335 (strtof32x): Likewise.
23336 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23337 (strtof64x): Likewise.
23338 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23339 (strtof128x): Likewise.
23340 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23341 (strfromf16): Likewise.
23342 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23343 (strfromf32): Likewise.
23344 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23345 (strfromf64): Likewise.
23346 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23347 (strfromf32x): Likewise.
23348 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23349 (strfromf64x): Likewise.
23350 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23351 (strfromf128x): Likewise.
23352 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23353 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23354 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23355 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23356 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23357 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23358
23359 2017-11-03 Richard Henderson <rth@twiddle.net>
23360
23361 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23362
23363 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23364
23365 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23366
23367 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23368
23369 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23370 DT_TLSDESC_GOT initialization.
23371 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23372 (_dl_tlsdesc_resolve_hold): Likewise.
23373 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23374 (_dl_tlsdesc_resolve_hold): Likewise.
23375 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23376 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23377
23378 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23379
23380 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23381
23382 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23383
23384 [BZ #18572]
23385 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23386 non-lazily for R_ARM_TLS_DESC.
23387
23388 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23389
23390 [BZ #17078]
23391 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23392 R_ARM_TLS_DESC case.
23393 (elf_machine_lazy_rel): Remove the prelink check.
23394
23395 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23396
23397 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23398 DT_TLSDESC_GOT initialization.
23399 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23400 (_dl_tlsdesc_resolve_rela): Likewise.
23401 (_dl_tlsdesc_resolve_hold): Likewise.
23402 (_dl_tlsdesc_undefweak): Remove ldar.
23403 (_dl_tlsdesc_dynamic): Likewise.
23404 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23405 (_dl_tlsdesc_resolve_rela): Likewise.
23406 (_dl_tlsdesc_resolve_hold): Likewise.
23407 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23408 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23409 (_dl_tlsdesc_resolve_rela): Likewise.
23410 (_dl_tlsdesc_resolve_hold): Likewise.
23411
23412 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23413
23414 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23415 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23416
23417 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23418
23419 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23420 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23421
23422 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23423
23424 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23425 Declare.
23426 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23427 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23428 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23429 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23430 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23431 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23432 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23433 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23434 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23435 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23436 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23437
23438 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23439
23440 [BZ #22382]
23441 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23442 * localedata/locales/tpi_PG: Add standard header.
23443
23444 2017-11-02 Florian Weimer <fweimer@redhat.com>
23445
23446 test-errno-linux: quotactl can fail with EPERM in containers.
23447 * sysdeps/unix/sysv/linux/test-errno-linux.c
23448 (LIST, LIST_FORWARD): New macros.
23449 (check_error_in_list): New function.
23450 (test_wrp_rv): Accept list of permitted error codes.
23451 (test_wrp_rv2): Remove.
23452 (test_wrp): Call test_wrp_rv with list of error codes.
23453 (test_wrp2): Accept list of error codes.
23454 (do_test): Adjust. Allow EPERM for quotactl.
23455
23456 2017-11-02 Florian Weimer <fweimer@redhat.com>
23457
23458 * stdio-common/bug16.c (do_test): Use array_length.
23459 * stdio-common/errlist.c (_sys_nerr): Likewise.
23460 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23461 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23462 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23463 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23464 (do_test): Use array_length.
23465 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23466 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23467 * stdio-common/tst-printf-round.c (do_test): Likewise.
23468 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23469 (CHECK): Use array_length.
23470 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23471 * stdio-common/tstscanf.c (main): Likewise.
23472 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23473
23474 2017-11-02 Florian Weimer <fweimer@redhat.com>
23475
23476 Add array_length and array_end macros.
23477 * include/array_length.h: New file.
23478
23479 2017-11-02 Florian Weimer <fweimer@redhat.com>
23480
23481 [BZ #22332]
23482 * posix/tst-glob-tilde.c (do_noescape): New variable.
23483 (one_test): Process it.
23484 (do_test): Set do_noescape. Add unescaping test case.
23485
23486 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23487
23488 * math/complex.h
23489 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23490 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23491 with appropriate macros defined and undefined.
23492 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23493 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23494 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23495 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23496 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23497 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23498 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23499 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23500 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23501 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23502
23503 * math/complex.h
23504 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23505 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23506 that for long double. Do not condition define and undefine of
23507 _Mdouble_complex_ on [__CFLOAT128].
23508
23509 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23510
23511 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23512 of <sysdeps/generic/sysdep.h>.
23513 (ALIGNARG): Removed.
23514 (ASM_SIZE_DIRECTIVE): Likewise.
23515 (ENTRY): Likewise.
23516 (END): Likewise.
23517 (ENTRY_CHK): Likewise.
23518 (END_CHK): Likewise.
23519 (syscall_error): Likewise.
23520 (mcount): Likewise.
23521 (PSEUDO_END): Likewise.
23522 (L): Likewise.
23523 (atom_text_section): Likewise.
23524 * sysdeps/x86/sysdep.h: New file.
23525 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23526 of <sysdeps/generic/sysdep.h>.
23527 (ALIGNARG): Removed.
23528 (ASM_SIZE_DIRECTIVE): Likewise.
23529 (ENTRY): Likewise.
23530 (END): Likewise.
23531 (ENTRY_CHK): Likewise.
23532 (END_CHK): Likewise.
23533 (syscall_error): Likewise.
23534 (mcount): Likewise.
23535 (PSEUDO_END): Likewise.
23536 (L): Likewise.
23537 (atom_text_section): Likewise.
23538
23539 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23540
23541 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23542 category of LC_CTYPE set to "i18n:2012".
23543 * localedata/locales/i18n_ctype: Regenerate.
23544
23545 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23546
23547 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23548 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23549 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23550 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23551
23552 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23553 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23554 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23555 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23556
23557 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23558
23559 * math/complex.h
23560 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23561 New macro.
23562 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23563 Likewise.
23564 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23565 Likewise.
23566 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23567 (CMPLXF32X): Likewise.
23568 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23569 (CMPLXF64X): Likewise.
23570 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23571 (CMPLXF128X): Likewise.
23572
23573 * math/math.h
23574 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23575 (__MATH_EVAL_FMT2): Define to add 0.0f.
23576
23577 2017-10-31 Alan Modra <amodra@gmail.com>
23578
23579 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23580 include sysdep.h.
23581 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23582 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23583 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23584 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23585 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23586 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23587 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23588 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23589 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23590 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23592 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23593 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23594 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23595 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23596 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23597 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23598 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23599 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23600 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23601 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23602 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23603 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23604 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23605 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23606 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23607 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23608 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23609 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23610 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23611 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23612 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23613 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23614 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23615 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23616 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23617 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23618 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23619 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23620 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23621 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23622 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23623 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23624 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23625 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23626 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23627 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23628 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23629 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23630 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23631 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23632 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23633 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23634 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23635 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23636 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23637 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23638 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23639 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23640 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23641 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23642 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23643 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23644 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23645 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23646 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23647 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23648 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23649 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23650
23651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23652 include sysdep.h and math_ldbl_opt.h.
23653
23654 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23655 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23656 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23657 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23658 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23660 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23661 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23662 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23663 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23664 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23665 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23667 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23669 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23671 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23673 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23674 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23675 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23676 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23677 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23678 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23679 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23680
23681 2017-10-31 Alan Modra <amodra@gmail.com>
23682
23683 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23684 string/strncase_l.c, not string/strncase.c.
23685 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23686 (libc_hidden_def): Redefine.
23687
23688 2017-10-31 Alan Modra <amodra@gmail.com>
23689
23690 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23691 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23692 (__strcasecmp): Don't define.
23693
23694 2017-10-31 Alan Modra <amodra@gmail.com>
23695
23696 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23697 IS_IN (libc).
23698 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23699 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23700 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23701
23702 2017-10-31 Alan Modra <amodra@gmail.com>
23703
23704 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23705 USE_AS_STPNCPY.
23706
23707 2017-10-31 Alan Modra <amodra@gmail.com>
23708
23709 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23710 Redefine only when SHARED.
23711
23712 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23713
23714 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23715 Include <bits/math-finite.h> with appropriate macros defined and
23716 undefined.
23717 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23718 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23719 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23720 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23721 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23722
23723 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23724 [!_Mlong_double_] (_Mlong_double_): Likewise.
23725 [!_Mfloat16_] (_Mfloat16_): Likewise.
23726 [!_Mfloat32_] (_Mfloat32_): Likewise.
23727 [!_Mfloat64_] (_Mfloat64_): Likewise.
23728 [!_Mfloat128_] (_Mfloat128_): Likewise.
23729 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23730 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23731 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23732 (_Mdouble_): Define without indirection through those macros.
23733 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23734 [!_Mfloat128_] (_Mfloat128_): Likewise.
23735 [_Mlong_double_] (_Mlong_double_): Likewise.
23736 (_Mdouble_): Define without indirection through those macros.
23737 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23738 not add -D_Mlong_double_=double.
23739 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23740 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23741
23742 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23743
23744 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23745
23746 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23747
23748 * sysdeps/x86/libc-start.c: Reformat.
23749
23750 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23751
23752 [BZ #22353]
23753 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23754 (1): Renamed to ...
23755 (L(Src0)): This.
23756 (L(Src1)): New.
23757 (L(Src2)): Likewise.
23758 (L(1)): Renamed to ...
23759 (L(Src3)): This.
23760
23761 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23762
23763 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23764 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23765 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23766 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23767 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23768 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23769 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23770 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23771 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23772 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23773 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23774 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23775 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23776 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23777 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23778 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23779 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23780 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23781 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23782 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23783 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23784 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23785 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23786 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23787 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23788 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23789 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23790 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23791 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23792 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23793 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23794 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23795 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23796 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23797 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23798 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23799 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23800 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23801 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23802 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23803 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23804 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23805 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23806 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23807 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23808 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23809 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23810 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23811 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23812 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23813 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23814 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23815 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23816 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23817 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23818 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23819 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23820 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23821 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23822 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23823 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23824 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23825 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23826 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23827 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23828 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23829
23830 2017-10-30 Florian Weimer <fweimer@redhat.com>
23831
23832 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23833 always defined.
23834 * io/tst-mkdirat.c (do_test): Likewise.
23835 * io/tst-mkfifoat.c (do_test): Likewise.
23836 * io/tst-mknodat.c (do_test): Likewise.
23837 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23838 * locale/programs/locale.c (select_dirs): Likewise.
23839 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23840 * posix/bug-glob2.c (my_readdir): Likewise.
23841 * posix/tst-dir.c (main): Likewise.
23842 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23843 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23844
23845 2017-10-30 Florian Weimer <fweimer@redhat.com>
23846
23847 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23848 just __USE_GNU.
23849
23850 2017-10-30 Florian Weimer <fweimer@redhat.com>
23851
23852 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23853 Convert to support/test-driver.c.
23854 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23855 New macro parameters.
23856 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23857 * posix/tst-gnuglob.c: New file.
23858 * posix/tst-gnuglob64.c: Likewise.
23859 * posix/Makefile (tests): Add tst-gnuglob64.
23860
23861 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23862
23863 [BZ #19485]
23864 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23865 and use a better translation for March in “mon”.
23866 * localedata/locales/csb_PL: Use more ASCII to improve the
23867 readability of the source.
23868
23869 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23870
23871 [BZ #13953]
23872 * localedata/locales/km_KH: Use ASCII as much
23873 as possible for better readability of the source and
23874 remove useless comments.
23875 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23876 was commented out and apparently wrong anyway because it was
23877 using Lao characters. If Buddhist era should be used
23878 for km_KH, a native speaker should write the correct formaat
23879 for Khmer.
23880 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23881 (According to CLDR, the first weekday for Cambodia is Sunday).
23882 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23883 (These were using Lao characters which must be wrong. If we get
23884 the correct data from a native speaker, we could add it back, until
23885 then it is better not to have name_mr and name_mrs at all than
23886 having it wrong).
23887
23888 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23889
23890 * locale/loadlocale.c: Correct size of
23891 _nl_value_type_LC_<category> arrays.
23892
23893 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23894
23895 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23896 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23897 with appropriate macros defined and undefined.
23898 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23899 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23900 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23901 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23902 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23903
23904 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23905
23906 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23907 "-O2 -march=i586".
23908
23909 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23910
23911 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23912 with lowercase letters to make it agree with CLDR.
23913
23914 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23915
23916 [BZ #15260]
23917 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23918 first letters of yesstr and nostr in yesexpr and noexpr,
23919 not for the full words.
23920 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23921 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23922 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23923 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23924 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23925 first letters of yesstr and nostr in yesexpr and noexpr,
23926 until now only English was matched in yesexpr and noexpr.
23927 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23928 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23929 fil but not for tl. As tl and fil are very similar, using fil
23930 is probably better than using English.
23931
23932 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23933
23934 [BZ #21706]
23935 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23936 in yesstr and nostr.
23937
23938 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23939
23940 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23941 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23942 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23943 Likewise.
23944 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23945 Likewise.
23946 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23947 Likewise.
23948 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23949 Likewise.
23950 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23951 (SNANF128X): Likewise.
23952
23953 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23954 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23955 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23956 (HUGE_VAL_F32): Likewise.
23957 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23958 (HUGE_VAL_F64): Likewise.
23959 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23960 (HUGE_VAL_F32X): Likewise.
23961 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23962 (HUGE_VAL_F64X): Likewise.
23963 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23964 (HUGE_VAL_F128X): Likewise.
23965
23966 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23967
23968 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23969 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23970 for the br_FR locale.
23971
23972 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23973
23974 [BZ #21706]
23975 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23976
23977 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23978
23979 * locale/programs/record-status.h: Define globals, and function
23980 prototypes. Move function bodies...
23981 * locale/programs/record-status.c: ... to here. New file.
23982 * iconv/Makefile (iconv_prog-modules): Add record-status.
23983 * locale/Makefile (lib-modules): Likewise.
23984 * iconv/iconv_prog.c: Remove verbose.
23985 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23986 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23987 record a warning about ASCII compatibility.
23988 * locale/programs/ld-monetary.c (monetary_finish): If
23989 warn_int_curr_symbol is true then record a warning about the symbol
23990 not being in our ISO 4217 list.
23991 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23992 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23993 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23994 (OPT_NO_WARN): Define.
23995 (OPT_WARN): Define.
23996 (options): Add entry for --no-warnings, and --warnings.
23997 (set_warnings): New function to enable/disable warnings.
23998 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23999 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24000 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24001 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24002 Pass flags to generate_locale.
24003 (generate_locale): Accept new flag argument and pass it to localedef
24004 invocation.
24005 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24006 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24007
24008 * localedata/Makefile (test-input-data): Use full file name.
24009 * localedata/da_DK.in: Rename to...
24010 * localedata/da_DK.ISO-8859-1.in: ...this.
24011 * localedata/de_DE.in: Rename to...
24012 * localedata/de_DE.ISO-8859-1.in: ...this.
24013 * localedata/en_US.in: Rename to...
24014 * localedata/en_US.ISO-8859-1.in: ...this.
24015 * localedata/fr_FR.in: Rename to...
24016 * localedata/fr_FR.UTF-8.in: ... this.
24017 * localedata/hr_HR.in: Rename to...
24018 * localedata/hr_HR.ISO-8859-2.in: ...this.
24019 * localedata/hu_HU.in: Rename to...
24020 * localedata/hu_HU.UTF-8.in: ...this.
24021 * localedata/si_LK.in: Rename to...
24022 * localedata/si_LK.UTF-8.in: ...this.
24023 * localedata/sv_SE.in: Rename to...
24024 * localedata/sv_SE.ISO-8859-1.in: ...this.
24025 * localedata/tr_TR.in: Rename to...
24026 * localedata/tr_TR.UTF-8.in: ...this.
24027 * localedata/uk_UA.in: Rename to...
24028 * localedata/uk_UA.UTF-8.in: ...this.
24029 * localedata/sort-test.sh: Test file is locale name with the
24030 suffix.
24031
24032 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24033 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24034 file.
24035 * localedata/locales/i18n_ctype: Regenerate.
24036 * localedata/locales/tr_TR: Likewise.
24037 * localedata/locales/translit_circle: Likewise.
24038 * localedata/locales/translit_cjk_compat: Likewise.
24039 * localedata/locales/translit_combining: Likewise.
24040 * localedata/locales/translit_compat: Likewise.
24041 * localedata/locales/translit_font: Likewise.
24042 * localedata/locales/translit_fraction: Likewise.
24043
24044 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24045
24046 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24047 lxvd2x/stxvd2x with lvx/stvx.
24048 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24049
24050 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24051
24052 * include/alloc_buffer.h: Replace "if if " with "if " in
24053 comments.
24054 * sysdeps/mips/memcpy.S: Likkewise.
24055 * sysdeps/mips/memset.S: Likewise.
24056 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24057 Likewise.
24058 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24059 Likewise.
24060 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24061 Likewise.
24062
24063 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24064
24065 [BZ #15261]
24066 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24067 yesexpr and noexpr.
24068 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24069 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24070 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24071 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24072 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24073 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24074 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24075
24076 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24077
24078 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24079 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24080 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24081 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24082 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24083 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24084 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24085 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24086 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24087 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24088 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24089 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24090
24091 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24092
24093 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24094 as possible for better readability of the source.
24095 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24096 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24097 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24098 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24099 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24100 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24101 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24102 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24103 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24104 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24105 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24106 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24107 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24108 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24109 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24110 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24111 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24112 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24113 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24114 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24115 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24116 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24117 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24118 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24119 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24120 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24121 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24122 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24123 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24124 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24125 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24126 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24127 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24128 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24129 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24130 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24131 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24132 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24133 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24134 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24135 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24136 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24137 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24138 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24139 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24140 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24141 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24142 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24143 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24144 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24145 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24146 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24147 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24148 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24149 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24150 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24151 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24152 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24153 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24154 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24155 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24156 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24157 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24158 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24159 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24160 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24161 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24162 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24163 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24164 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24165 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24166 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24167 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24168 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24169 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24170 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24171 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24172 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24173 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24174 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24175 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24176 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24177 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24178 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24179 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24180 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24181 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24182 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24183 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24184 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24185 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24186 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24187 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24188 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24189 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24190 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24191 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24192 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24193 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24194 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24195 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24196 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24197 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24198 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24199 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24200 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24201 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24202 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24203 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24204 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24205 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24206 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24207 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24208 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24209 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24210 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24211 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24212 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24213 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24214 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24215 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24216 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24217 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24218 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24219 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24220 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24221 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24222 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24223 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24224 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24225 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24226 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24227 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24228 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24229 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24230 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24231 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24232 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24233 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24234 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24235 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24236 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24237 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24238 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24239 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24240 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24241 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24242 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24243 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24244 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24245 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24246 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24247 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24248 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24249 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24250 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24251 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24252 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24253 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24254 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24255 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24256 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24257 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24258 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24259 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24260 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24261 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24262 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24263 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24264 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24265 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24266 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24267 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24268 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24269
24270 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24271
24272 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24273 (Use first letters of yesstr and nostr correctly instead of using
24274 full words).
24275
24276 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24277
24278 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24279 (Use first letters of yesstr and nostr correctly).
24280
24281 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24282
24283 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24284 also check for the first characters of yesstr and nostr.
24285 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24286 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24287
24288 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24289
24290 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24291 also check for Chinese characters.
24292
24293 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24294
24295 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24296 match also for the contents of yesstr and nostr. As the first letter
24297 of yesstr and nostr is equal, checking only for the first letter
24298 is not enough.
24299
24300 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24301
24302 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24303 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24304
24305 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24306
24307 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24308 of main contributor.
24309
24310 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24311
24312 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24313 instead of using English.
24314
24315 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24316
24317 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24318 by including the first letters of nostr and yesexpr in the regexp.
24319 Also make it more readable by using ASCII where possible.
24320
24321 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24322
24323 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24324 the first letter of nostr in the regexp. It agrees with CLDR now.
24325 Also make it more readable by using ASCII where possible.
24326
24327 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24328
24329 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24330 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24331 these strings contain a U+17D6 (which somewhat looks like a colon)
24332 instead of a real colon to separate the full words for “yes”
24333 and “no” from the single letter responses.
24334
24335 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24336
24337 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24338 it agree with CLDR (include the first letter of yesstr).
24339 Also make it more readable by using ASCII where possible.
24340
24341 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24342
24343 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24344 and improve yesexpr and noexpr. The yesstr and nostr apparently
24345 came from CLDR. And CLDR has a bug there: these strings contain
24346 a U+0903 (which looks like a colon) instead of a real colon
24347 to separate the full words for “yes” and “no” from the single
24348 letter responses.
24349
24350 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24351
24352 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24353 letters of the full yesstr and nostr in yesexpr and noexpr.
24354
24355 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24356
24357 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24358 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24359 * localedata/locales/an_ES: Make source more readable by using ASCII
24360 where possible.
24361
24362 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24363
24364 [BZ #20952]
24365 * localedata/locales/yuw_PG: New file.
24366 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24367 * locale/iso-639.def: Add Yau (Uruwa).
24368
24369 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24370
24371 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24372
24373 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24374
24375 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24376 (__libc_realloc): Likewise.
24377 (_mid_memalign): Likewise.
24378 (__libc_calloc): Likewise.
24379
24380 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24381
24382 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24383 by adding the generic +1 and -0 as in all other locales.
24384 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24385 day names and make it more readable by using ASCII where possible.
24386
24387 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24388
24389 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24390 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24391
24392 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24393
24394 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24395 WNOHANG in waitpid call.
24396
24397 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24398
24399 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24400 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24401
24402 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24403 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24404 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24405 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24406 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24407 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24408 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24409 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24410 variables.
24411
24412 2017-10-23 Michael Collison <michael.collison@arm.com>
24413
24414 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24415 with __builtin_sqrt.
24416 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24417 with __builtin_sqrtf.
24418 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24419 with __builtin_ceil.
24420 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24421 with __builtin_ceilf.
24422 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24423 with __builtin_floor.
24424 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24425 with __builtin_floorf.
24426 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24427 with __builtin_fma.
24428 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24429 with __builtin_fmaf.
24430 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24431 with __builtin_fmax.
24432 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24433 with __builtin_fmaxf.
24434 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24435 with __builtin_fmin.
24436 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24437 with __builtin_fminf.
24438 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24439 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24440 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24441 with builtin_rint and conversion to int.
24442 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24443 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24444 with builtin_llround.
24445 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24446 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24447 with builtin_rint and conversion to long int.
24448 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24449 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24450 with builtin_lround.
24451 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24452 with builtin_lroundf.
24453 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24454 statements with __builtin_nearbyint.
24455 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24456 statements with __builtin_nearbyintf.
24457 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24458 with __builtin_rint.
24459 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24460 with __builtin_rintf.
24461 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24462 with __builtin_round.
24463 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24464 with __builtin_roundf.
24465 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24466 with __builtin_trunc.
24467 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24468 with __builtin_truncf.
24469 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24470 and s_l[l]round[f].c too.
24471
24472 2017-10-23 Alan Modra <amodra@gmail.com>
24473
24474 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24475 Adjust stack after restoring regs. Add missing LR cfi_restore.
24476
24477 2017-10-23 Alan Modra <amodra@gmail.com>
24478
24479 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24480 Move LR save and frame setup/teardown and LR restore to
24481 immediately around memset call. Provide cfi.
24482
24483 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24484
24485 * sysdeps/i386/fpu/e_powf.S: Removed.
24486 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24487 * sysdeps/i386/fpu/w_powf.c: Likewise.
24488 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24489 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24490 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24491 Add e_powf-sse2.
24492 (CFLAGS-e_powf-sse2.c): New.
24493 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24494 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24495
24496 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24497
24498 * sysdeps/i386/fpu/e_log2f.S: Removed.
24499 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24500 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24501 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24502 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24503 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24504 Add e_log2f-sse2.
24505 (CFLAGS-e_log2f-sse2.c): New.
24506 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24507 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24508
24509 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24510
24511 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24512 Add e_powf-fma.
24513 (CFLAGS-e_powf-fma.c): New.
24514 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24515 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24516
24517 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24518
24519 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24520 Add e_log2f-fma.
24521 (CFLAGS-e_log2f-fma.c): New.
24522 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24523 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24524
24525 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24526
24527 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24528 Add e_logf-fma.
24529 (CFLAGS-e_logf-fma.c): New.
24530 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24531 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24532
24533 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24534
24535 * sysdeps/i386/fpu/e_logf.S: Removed.
24536 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24537 * sysdeps/i386/fpu/w_logf.c: Likewise.
24538 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24539 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24540 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24541 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24542 Add e_logf-sse2.
24543 (CFLAGS-e_logf-sse2.c): New.
24544 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24545 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24546
24547 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24548
24549 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24550 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24551 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24552 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24553 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24554 Add e_exp2f-sse2.
24555 (CFLAGS-e_exp2f-sse2.c): New.
24556 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24557 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24558
24559 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24560
24561 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24562 Add e_exp2f-fma.
24563 (CFLAGS-e_exp2f-fma.c): New.
24564 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24565 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24566
24567 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24568
24569 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24570 * sysdeps/i386/fpu/e_expf.S: Likewise.
24571 * sysdeps/i386/fpu/math_errf.c: Likewise.
24572 * sysdeps/i386/fpu/w_expf.c: Likewise.
24573 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24574 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24575 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24576 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24577 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24578 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24579 Remove e_expf-ia32.
24580 (CFLAGS-e_expf-sse2.c): New.
24581 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24582 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24583
24584 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24585
24586 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24587 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24588 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24589 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24590 e_expf.c.
24591 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24592 New.
24593 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24594 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24595 Renamed to ...
24596 (__redirect_expf): This.
24597 (SYMBOL_NAME): Changed to expf.
24598 (__ieee754_expf): Renamed to ...
24599 (__expf): This.
24600 (__GI___expf): This.
24601 (__ieee754_expf): Add strong_alias.
24602 (__expf_finite): Likewise.
24603 (__expf): New.
24604 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24605
24606 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24607
24608 [BZ #22332]
24609 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24610 unescaping.
24611
24612 2017-10-21 Florian Weimer <fweimer@redhat.com>
24613
24614 * posix/Makefile (tests): Add tst-glob-tilde.
24615 (tests-special): Add tst-glob-tilde-mem.out
24616 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24617 (tst-glob-tilde-mem.out): Add mtrace check.
24618 * posix/tst-glob-tilde.c: New file.
24619
24620 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24621
24622 * bits/floatn-common.h: New file.
24623 * math/Makefile (headers): Add bits/floatn-common.h.
24624 * bits/floatn.h: Include <bits/floatn-common.h>.
24625 * sysdeps/ia64/bits/floatn.h: Likewise.
24626 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24627 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24628 * sysdeps/powerpc/bits/floatn.h: Likewise.
24629 * sysdeps/x86/bits/floatn.h: Likewise.
24630
24631 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24632
24633 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24634 indicates whether compiler emits an warning for alias for
24635 functions with incompatible types.
24636
24637 [BZ #22273]
24638 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24639 the auxiliary process is terminated by a signal before calling _exit
24640 or execve.
24641
24642 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24643
24644 [BZ #21265]
24645 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24646 New.
24647 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24648 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24649 and bit_arch_XSAVEC_Usable if needed.
24650 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24651 and bit_arch_Use_dl_runtime_resolve_opt.
24652 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24653 Removed.
24654 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24655 (bit_arch_Prefer_No_AVX512): Updated.
24656 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24657 (bit_arch_XSAVEC_Usable): New.
24658 (STATE_SAVE_OFFSET): Likewise.
24659 (STATE_SAVE_MASK): Likewise.
24660 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24661 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24662 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24663 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24664 (index_arch_XSAVEC_Usable): New.
24665 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24666 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24667 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24668 is enabled.
24669 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24670 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24671 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24672 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24673 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24674 _dl_runtime_resolve_xsavec.
24675 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24676 Removed.
24677 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24678 instead of VEC_SIZE.
24679 (REGISTER_SAVE_BND0): Removed.
24680 (REGISTER_SAVE_BND1): Likewise.
24681 (REGISTER_SAVE_BND3): Likewise.
24682 (REGISTER_SAVE_RAX): Always defined to 0.
24683 (VMOV): Removed.
24684 (_dl_runtime_resolve_avx): Likewise.
24685 (_dl_runtime_resolve_avx_slow): Likewise.
24686 (_dl_runtime_resolve_avx_opt): Likewise.
24687 (_dl_runtime_resolve_avx512): Likewise.
24688 (_dl_runtime_resolve_avx512_opt): Likewise.
24689 (_dl_runtime_resolve_sse): Likewise.
24690 (_dl_runtime_resolve_sse_vex): Likewise.
24691 (USE_FXSAVE): New.
24692 (_dl_runtime_resolve_fxsave): Likewise.
24693 (USE_XSAVE): Likewise.
24694 (_dl_runtime_resolve_xsave): Likewise.
24695 (USE_XSAVEC): Likewise.
24696 (_dl_runtime_resolve_xsavec): Likewise.
24697 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24698 Removed.
24699 (_dl_runtime_resolve_avx512_opt): Likewise.
24700 (_dl_runtime_resolve_avx): Likewise.
24701 (_dl_runtime_resolve_avx_opt): Likewise.
24702 (_dl_runtime_resolve_sse): Likewise.
24703 (_dl_runtime_resolve_sse_vex): Likewise.
24704 (_dl_runtime_resolve_fxsave): New.
24705 (_dl_runtime_resolve_xsave): Likewise.
24706 (_dl_runtime_resolve_xsavec): Likewise.
24707
24708 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24709
24710 [BZ #22320]
24711 CVE-2017-15670
24712 * posix/glob.c (__glob): Fix one-byte overflow.
24713
24714 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24715
24716 * malloc/malloc.c (sysdep-cancel.h): Add include.
24717
24718 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24719
24720 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24721
24722 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24723
24724 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24725 (tests): Remove $(objpfx)ga_test depdendency.
24726 * resolv/ga_test.c: Remove file.
24727
24728 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24729
24730 [BZ #18812]
24731 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24732 * localedata/locales/kab_DZ: New file.
24733
24734 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24735
24736 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24737 _dl_relocate_static_pie instead of _dl_start to compute load
24738 address in static PIE.
24739
24740 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24741
24742 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24743
24744 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24745
24746 [BZ #13605]
24747 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24748 * localedata/locales/shn_MM: New file.
24749
24750 2017-10-20 Florian Weimer <fweimer@redhat.com>
24751
24752 [BZ #22321]
24753 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24754 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24755 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24756 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24757 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24758 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24759
24760 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24761
24762 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24763
24764 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24765
24766 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24767
24768 [BZ #22322]
24769 * sysdeps/mips/bits/long-double.h: Move to ....
24770 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24771
24772 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24773
24774 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24775
24776 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24777 H.J. Lu <hongjiu.lu@intel.com>
24778
24779 [BZ #22299]
24780 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24781 GLRO(dl_platform) to NULL.
24782 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24783 (modules-names): Add tst-platformmod-1 and
24784 x86_64/tst-platformmod-2.
24785 (CFLAGS-tst-platform-1.c): New.
24786 (CFLAGS-tst-platformmod-1.c): Likewise.
24787 (CFLAGS-tst-platformmod-2.c): Likewise.
24788 (LDFLAGS-tst-platformmod-2.so): Likewise.
24789 ($(objpfx)tst-platform-1): Likewise.
24790 ($(objpfx)tst-platform-1.out): Likewise.
24791 (tst-platform-1-ENV): Likewise.
24792 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24793 * sysdeps/x86_64/tst-platform-1.c: New file.
24794 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24795 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24796
24797 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24798
24799 [BZ #13994]
24800 * locale/iso-639.def: Add Karbi.
24801 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24802 * localedata/locales/mjw_IN: New file.
24803
24804 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24805
24806 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24807 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24808 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24809 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24810 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24811 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24812 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24813 <bits/floatn.h>.
24814 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24815 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24816 * manual/math.texi (Mathematics): Document additional architecture
24817 support for _Float128.
24818 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24819 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24820 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24821 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24822 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24823 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24824 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24825 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24826 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24827 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24828 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24829 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24830 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24831 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24832 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24833
24834 2017-10-18 Renlin Li <renlin.li@arm.com>
24835
24836 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24837 _DYNAMIC symbol to calculate load address.
24838
24839 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24840
24841 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24842 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24843 summary bits.
24844 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24845 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24846
24847 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24848
24849 [BZ #16777]
24850 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24851 and improve readability by using more ASCII.
24852 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24853 and improve readability by using more ASCII.
24854
24855 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24856
24857 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24858 not all targets support atomics on bool.
24859
24860 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24861
24862 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24863 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24864 __f128.
24865 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24866 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24867 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24868 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24869 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24870 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24871
24872 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24873
24874 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24875 defines.
24876
24877 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24878
24879 [BZ #22159]
24880 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24881 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24882 (do_check_remalloced_chunk): Fix build bug.
24883 (do_check_malloc_state): Add assert that checks arena->top.
24884 (malloc_consolidate): Remove initialization.
24885 (int_mallinfo): Remove call to malloc_consolidate.
24886 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24887
24888 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24889
24890 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24891 (have_fastchunks): Remove.
24892 (clear_fastchunks): Remove.
24893 (set_fastchunks): Remove.
24894 (malloc_state): Add have_fastchunks.
24895 (malloc_init_state): Use have_fastchunks.
24896 (do_check_malloc_state): Remove incorrect invariant checks.
24897 (_int_malloc): Use have_fastchunks.
24898 (_int_free): Likewise.
24899 (malloc_consolidate): Likewise.
24900
24901 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24902
24903 * malloc/malloc.c (tcache_put): Inline.
24904 (tcache_get): Inline.
24905
24906 2017-10-17 Jordi Mallach <jordi@gnu.org>
24907
24908 Aurelien Jarno <aurelien@aurel32.net>
24909 [BZ #2522]
24910 * localedata/locales/ca_ES@valencia: New file.
24911 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24912
24913 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24914
24915 [BZ #22296]
24916 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24917 < 6.x
24918
24919 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24920
24921 * scripts/build-many-glibcs.py (Context.add_all_configs):
24922 Add arm-linux-gnueabihf multiarch extra_glibcs.
24923
24924 * sysdeps/generic/ifunc-init.h: New file.
24925 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24926
24927 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24928
24929 [BZ #22019]
24930 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24931 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24932 * stdlib/tst-strfmon_l.c: adapt test case.
24933
24934 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24935
24936 * sysdeps/generic/float128-abi.h: New file.
24937 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24938 non-__prefixed symbols to ....
24939 * math/Versions: ... here. Include <float128-abi.h>.
24940 * stdlib/Versions ... and here. Include <float128-abi.h>
24941
24942 2017-10-16 Florian Weimer <fweimer@redhat.com>
24943
24944 * version.h (VERSION): Switch to ".9000" as the development
24945 version suffix.
24946
24947 2017-10-16 Florian Weimer <fweimer@redhat.com>
24948
24949 [BZ #22050]
24950 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24951 compat_symbol_reference to access non-default version.
24952
24953 2017-10-16 Florian Weimer <fweimer@redhat.com>
24954
24955 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24956
24957 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24958
24959 * include/shlib-compat.h (compat_symbol_reference): Update
24960 comment.
24961
24962 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24963
24964 * math/Makefile (test-types): Add
24965 $(type-float128-$(float128-alias-fcts)).
24966 * math/test-float128.h (TYPE_STR): Define conditional on
24967 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24968 (ULP_IDX): Likewise.
24969 (ULP_I_IDX): Likewise.
24970
24971 * stdlib/strtold.c: Include <bits/floatn.h>
24972 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24973 and later undefine as macro. Define as weak alias if
24974 [!USE_WIDE_CHAR].
24975 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24976 and later undefine as macro. Define as weak alias if
24977 [USE_WIDE_CHAR].
24978 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24979 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24980 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24981 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24982 Define and later undefine as macro. Define as weak alias if
24983 [USE_WIDE_CHAR].
24984 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24985 <bits/floatn.h>.
24986 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24987 Define and later undefine as macro. Define as weak alias if
24988 [!USE_WIDE_CHAR].
24989 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24990 Define and later undefine as macro. Define as weak alias if
24991 [USE_WIDE_CHAR].
24992
24993 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24994
24995 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24996 record_verbose messages.
24997
24998 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24999
25000 [BZ #22052]
25001 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25002 to silence -O3 -Wall warning with GCC 7.
25003
25004 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25005
25006 * Makeconfig (+link-static-before-libc): Use the first of
25007 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25008 * gmon/Makefile (tests): Add tst-gmon-static.
25009 (tests-static): Likewise.
25010 (CFLAGS-tst-gmon-static.c): New.
25011 (CRT-tst-gmon-static): Likewise.
25012 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25013 (tst-gmon-static-ENV): Likewise.
25014 (tests-special): Likewise.
25015 ($(objpfx)tst-gmon-static.out): Likewise.
25016 (clean-tst-gmon-static-data): Likewise.
25017 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25018 * gmon/tst-gmon-static-gprof.sh: New file.
25019 * gmon/tst-gmon-static.c: Likewise.
25020
25021 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25022
25023 [BZ #22295]
25024 * locale/programs/linereader.c (get_string): Don't warn on
25025 non-symbolic character.
25026
25027 [BZ #22294]
25028 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25029 int_curr_symbol.
25030
25031 [BZ #22292]
25032 * locale/programs/record-status.h: New file
25033 * locale/programs/locale.c: Add comment.
25034 * locale/programs/charmap-dir.c: Don't include error.h.
25035 (charmap_opendir): Use record_error.
25036 * locale/programs/charmap.c: Don't include error.h.
25037 (charmap_read): Use record_error, and record_warning.
25038 (parse_charmap): Likewise.
25039 * locale/programs/ld-address.c: Don't include error.h.
25040 (address_finish): Use record_error, and record_warning.
25041 * locale/programs/ld-collate.c: Don't include error.h.
25042 (collate_finish): Use record_error, and record_error_at_line.
25043 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25044 (ctype_class_new): Likewise.
25045 (ctype_map_new): Likewise.
25046 (set_one_default): Likewise.
25047 (set_class_defaults): Likewise.
25048 (translit_flatten): Likewise.
25049 (allocate_arrays): Use record_error, and record_verbose.
25050 * locale/programs/ld-identification.c: Don't include error.h.
25051 (indentation_finish): Use record_error and record_warning.
25052 * locale/programs/ld-measurement.c: Don't include error.h.
25053 (measurement_finish): Use record_error.
25054 * locale/programs/ld-messages.c
25055 (message_finish): Likewise.
25056 * locale/programs/ld-monetary.c
25057 (monetary_finish): Likewise.
25058 * locale/programs/ld-name.c (name_finish): Use record_error
25059 and record_warning.
25060 * locale/programs/ld-numeric.c
25061 (numeric_finish): Use record_error.
25062 * locale/programs/ld-paper.c: Don't include error.h.
25063 (paper_finish): Use record_error.
25064 * locale/programs/ld-telephone.c: Don't include error.h.
25065 (telephone_finish): Use record_error.
25066 * locale/programs/ld-time.c (time_finish): Likewise.
25067 * locale/programs/linereader.h (lr_error): Make inline func.
25068 * locale/programs/localedef.c: Define recorded_warning_count,
25069 and recorded_error_count.
25070 (main): Use record_error. Use recorded_error_count and
25071 recorded_warning_count to issue correct error returns.
25072 (add_to_readlist): Use record_error.
25073 (find_locale): Likewise.
25074 (load_locale): Likewise.
25075 * locale/programs/localedef.h: Remove be_quiet
25076 and WITH_CUR_LOCALE.
25077 * locale/programs/locarchive.c (compare_from_file): Use
25078 record_error.
25079 * locale/programs/locfile.c (write_locale_data): Use
25080 record_error.
25081 * locale/programs/repertoire.c: Dont include error.h.
25082 (repertoire_complain): Use record_error.
25083 * localedata/tst-fmon.sh: Expect failures from localedef.
25084 * localedata/tst-locale.sh: Likewise.
25085 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25086
25087 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25088 (REPORTS): Likewise.
25089 (check): Likewise.
25090 (i18n): Rename to...
25091 (i18n_ctype): ...this.
25092 (i18n-report): Rename to...
25093 (i18n_ctype-report): ...this.
25094 * localedata/locales/i18n_ctype: Regenerate.
25095 * localedata/locales/i18n: copy i18n_ctype.
25096
25097 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25098
25099 * stdlib/strfroml.c: Include <bits/floatn.h>.
25100 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25101 Define before include of <stdlib.h> and undefine afterwards, then
25102 define as weak alias.
25103
25104 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25105 Undefine and restore default definition. Use
25106 libm_alias_ldouble_other.
25107
25108 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25109
25110 [BZ #22153]
25111 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25112 in coredumps.
25113
25114 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25115
25116 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25117 Assign sym_map to be map for local symbols, as TLS relocations
25118 use sym_map to determine whether the symbol is defined and to
25119 extract the TLS information.
25120 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25121 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25122
25123 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25124
25125 [BZ #22189]
25126 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25127 (math_force_eval): Add powerpc version.
25128
25129 [BZ #22142]
25130 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25131 -DBL_MAX.
25132 (do_test): Likewise.
25133 * stdio-common/tst-printf.sh: Likewise.
25134 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25135 ifdef clause in order to set the carry bit right. Replace r0 by
25136 0 without changing the behavior.
25137
25138 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25139
25140 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25141 <libm-alias-ldouble.h>.
25142 (fabsl): Define using libm_alias_ldouble.
25143 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25144 <libm-alias-ldouble.h>.
25145 (fabsl): Define using libm_alias_ldouble.
25146
25147 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25148 Remove conditional code.
25149
25150 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25151 Rename to __clog10_internal_l.
25152 (__clog10_internal_l): Define aliases using
25153 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25154 with __clog10.
25155
25156 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25157
25158 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25159 * benchtests/sincosf-inputs: New file.
25160 * benchtests/cosf-inputs: New file.
25161 * benchtests/sinf-inputs: New file.
25162
25163 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25164
25165 * posix/tst-spawn.c (do_test): Wait for both children.
25166
25167 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25168
25169 [BZ #22284]
25170 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25171 tests-pie): Add tst-gmon-pie.
25172 (CFLAGS-tst-gmon-pie.c): New.
25173 (CRT-tst-gmon-pie): Likewise.
25174 (tst-gmon-pie-ENV): Likewise.
25175 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25176 ($(objpfx)tst-gmon-pie.out): Likewise.
25177 (clean-tst-gmon-pie-data): Likewise.
25178 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25179 * gmon/gmon.c [PIC]: Include <link.h>.
25180 [PIC] (callback): New function.
25181 (write_hist): Add an argument for load address. Subtract load
25182 address from PCs.
25183 (write_call_graph): Likewise.
25184 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25185 it to write_hist and write_call_graph.
25186 * gmon/tst-gmon-pie.c: New file.
25187
25188 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25189
25190 * math/Makefile (test-types-basic): New variable.
25191 (test-types): Likewise.
25192 (libm-test-support): Use $(test-types) instead of $(types).
25193 (libm-tests-base-normal): Likewise.
25194 (libm-tests-base-finite): Likewise.
25195 (libm-tests-base-inline): Likewise.
25196 (generated): Likewise.
25197 ($(objpfx)libm-test-support-$(t).c): Likewise.
25198 (libm-tests-for-type iterator): Likewise.
25199 (libm-test-support iterator): Likewise.
25200 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25201 (ulp_idx): Use ULP_IDX.
25202 * math/test-ldouble.h: Include <float.h>.
25203 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25204 (ULP_IDX): New macro.
25205 (ULP_I_IDX): Likewise.
25206 * math/test-double.h (ULP_IDX): Likewise.
25207 (ULP_I_IDX): Likewise.
25208 * math/test-float.h (ULP_IDX): Likewise.
25209 (ULP_I_IDX): Likewise.
25210 * math/test-float128.h (ULP_IDX): Likewise.
25211 (ULP_I_IDX): Likewise.
25212
25213 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25214
25215 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25216 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25217 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25218 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25219 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25220 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25221 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25222 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25223 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25224 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25225 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25226 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25227 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25228 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25229 (SINGLE_THREAD_BY_GLOBAL): Define.
25230 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25231 Likewise.
25232 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25233 Likewise.
25234 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25235 Likewise.
25236 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25237 Likewise.
25238 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25239 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25240 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25241 Likewise.
25242
25243 2017-10-11 Andreas Schwab <schwab@suse.de>
25244
25245 * nis/Makefile (aux): Remove.
25246 * nscd/Makefile (aux): Add nscd_hash.
25247 (nscd-modules): Likewise.
25248 ($(objpfx)nscd): Don't depend on libnsl.
25249 * nscd/nscd_hash.c: New file.
25250 * nscd/nscd_hash.h: Likewise.
25251 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25252 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25253 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25254 instead of <nis/rpcsvc/nis.h>.
25255 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25256
25257 2017-10-11 Florian Weimer <fweimer@redhat.com>
25258
25259 [BZ #22078]
25260 Avoid large NSS buffers with many addresses, aliases.
25261 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25262 using dynarrays and struct alloc_buffer.
25263 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25264 (tst-nss-files-hosts-multi): Link with -ldl.
25265 * nss/tst-nss-files-hosts-multi.c: New file.
25266
25267 2017-10-11 Florian Weimer <fweimer@redhat.com>
25268
25269 [BZ #18023]
25270 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25271 scratch_buffer. Eliminate gotos.
25272
25273 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25274
25275 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25276 libm_alias_ldouble_other.
25277 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25278 undefine and redefine.
25279 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25280 (exp10l): Do not define here.
25281 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25282 (weak_alias): Undefine and redefine.
25283 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25284 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25285 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25286 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25287
25288 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25289 [!__fma] (fma): Define using libm_alias_double.
25290 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25291 [!__fmaf] (fmaf): Define using libm_alias_float.
25292 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25293 (fmal): Define using libm_alias_ldouble.
25294
25295 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25296
25297 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25298 New macro.
25299 (libm_alias_double_other): Likewise.
25300 (libm_alias_double_r): Use libm_alias_double_other_r.
25301 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25302 New macro.
25303 (libm_alias_float_other): Likewise.
25304 (libm_alias_float_r): Use libm_alias_float_other_r.
25305 * sysdeps/generic/libm-alias-float128.h
25306 (libm_alias_float128_other_r): New macro.
25307 (libm_alias_float128_other): Likewise.
25308 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25309 * sysdeps/generic/libm-alias-ldouble.h
25310 (libm_alias_ldouble_other_r): New macro.
25311 (libm_alias_ldouble_other): Likewise.
25312 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25313 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25314 (libm_alias_double_other_r): New macro.
25315 (libm_alias_double_other): Likewise.
25316 (libm_alias_double_r): Use libm_alias_double_other_r.
25317 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25318 (libm_alias_ldouble_other_r): New macro.
25319 (libm_alias_ldouble_other): Likewise.
25320 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25321 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25322 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25323 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25324 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25325 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25326 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25327 * math/w_exp2f.c: Use libm_alias_float_other.
25328 * math/w_expf.c: Likewise.
25329 * math/w_log2f.c: Likewise.
25330 * math/w_logf.c: Likewise.
25331 * math/w_powf.c: Likewise.
25332 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25333 [!__exp2f]: Use libm_alias_float_other.
25334 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25335 [!__expf]: Use libm_alias_float_other.
25336 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25337 [!__log2f]: Use libm_alias_float_other.
25338 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25339 [!__logf]: Use libm_alias_float_other.
25340 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25341 [!__powf]: Use libm_alias_float_other.
25342
25343 2017-10-10 Florian Weimer <fweimer@redhat.com>
25344
25345 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25346 function.
25347 (_nss_files_gethostbyname3_r): Call it.
25348
25349 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25350
25351 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25352 error. Remove default definition of declare_mgen_alias.
25353 [!declare_mgen_alias_r]: Likewise.
25354 * sysdeps/generic/math-type-macros-double.h
25355 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25356 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25357 (declare_mgen_alias_r): Likewise.
25358 * sysdeps/generic/math-type-macros-float128.h
25359 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25360 * sysdeps/generic/math-type-macros-ldouble.h
25361 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25362 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25363 macro.
25364 (declare_mgen_alias_r_s): Likewise.
25365 (declare_mgen_alias_r): Likewise.
25366 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25367 (lgamma_r): Define using libm_alias_double_r.
25368 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25369 (lgammaf_r): Define using libm_alias_float_r.
25370 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25371 (lgammal_r): Define using libm_alias_ldouble_r.
25372 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25373 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25374
25375 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25376
25377 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25378 extern declaration.
25379
25380 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25381
25382 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25383
25384 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25385
25386 [BZ #21326]
25387 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25388 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25389 * math/Makefile (test-math-cxx11): New test.
25390 * math/test-math-cxx11.cc: New file.
25391
25392 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25393
25394 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25395
25396 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25397 call to allocate the slave pty file descriptor.
25398
25399 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25400
25401 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25402 [!__fma] (fma): Define using libm_alias_double.
25403 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25404 [!__fma] (fma): Define using libm_alias_double.
25405
25406 * sysdeps/ieee754/float128/float128_private.h: Include
25407 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25408 (libm_alias_ldouble_r): Undefine and redefine.
25409 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25410 <libm-alias-ldouble.h>.
25411 (asinhl): Define using libm_alias_ldouble.
25412 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25413 <libm-alias-ldouble.h>.
25414 (atanl): Define using libm_alias_ldouble.
25415 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25416 <libm-alias-ldouble.h>.
25417 (cbrtl): Define using libm_alias_ldouble.
25418 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25419 <libm-alias-ldouble.h>.
25420 (ceill): Define using libm_alias_ldouble.
25421 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25422 <libm-alias-ldouble.h>.
25423 (copysignl): Define using libm_alias_ldouble.
25424 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25425 <libm-alias-ldouble.h>.
25426 (cosl): Define using libm_alias_ldouble.
25427 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25428 <libm-alias-ldouble.h>.
25429 (erfl): Define using libm_alias_ldouble.
25430 (erfcl): Likewise.
25431 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25432 <libm-alias-ldouble.h>.
25433 (expm1l): Define using libm_alias_ldouble.
25434 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25435 <libm-alias-ldouble.h>.
25436 (fabsl): Define using libm_alias_ldouble.
25437 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25438 <libm-alias-ldouble.h>.
25439 (floorl): Define using libm_alias_ldouble.
25440 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25441 <libm-alias-ldouble.h>.
25442 (fmal): Define using libm_alias_ldouble.
25443 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25444 <libm-alias-ldouble.h>.
25445 (frexpl): Define using libm_alias_ldouble.
25446 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25447 libm_alias_ldouble.
25448 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25449 <libm-alias-ldouble.h>.
25450 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25451 libm_alias_ldouble.
25452 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25453 <libm-alias-ldouble.h>.
25454 (getpayloadl): Define using libm_alias_ldouble.
25455 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25456 <libm-alias-ldouble.h>.
25457 (llrintl): Define using libm_alias_ldouble.
25458 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25459 <libm-alias-ldouble.h>.
25460 (llroundl): Define using libm_alias_ldouble.
25461 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25462 <libm-alias-ldouble.h>.
25463 (logbl): Define using libm_alias_ldouble.
25464 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25465 <libm-alias-ldouble.h>.
25466 (lrintl): Define using libm_alias_ldouble.
25467 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25468 <libm-alias-ldouble.h>.
25469 (lroundl): Define using libm_alias_ldouble.
25470 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25471 <libm-alias-ldouble.h>.
25472 (modfl): Define using libm_alias_ldouble.
25473 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25474 <libm-alias-ldouble.h>.
25475 (nearbyintl): Define using libm_alias_ldouble.
25476 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25477 <libm-alias-ldouble.h>.
25478 (nextafterl): Define using libm_alias_ldouble.
25479 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25480 <libm-alias-ldouble.h>.
25481 (nextupl): Define using libm_alias_ldouble.
25482 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25483 <libm-alias-ldouble.h>.
25484 (remquol): Define using libm_alias_ldouble.
25485 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25486 <libm-alias-ldouble.h>.
25487 (rintl): Define using libm_alias_ldouble.
25488 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25489 <libm-alias-ldouble.h>.
25490 (roundevenl): Define using libm_alias_ldouble.
25491 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25492 <libm-alias-ldouble.h>.
25493 (roundl): Define using libm_alias_ldouble.
25494 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25495 using libm_alias_ldouble.
25496 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25497 <libm-alias-ldouble.h>.
25498 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25499 Define using libm_alias_ldouble.
25500 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25501 <libm-alias-ldouble.h>.
25502 (sincosl): Define using libm_alias_ldouble.
25503 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25504 <libm-alias-ldouble.h>.
25505 (sinl): Define using libm_alias_ldouble.
25506 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25507 <libm-alias-ldouble.h>.
25508 (tanhl): Define using libm_alias_ldouble.
25509 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25510 <libm-alias-ldouble.h>.
25511 (tanl): Define using libm_alias_ldouble.
25512 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25513 <libm-alias-ldouble.h>.
25514 (totalorderl): Define using libm_alias_ldouble.
25515 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25516 <libm-alias-ldouble.h>.
25517 (totalordermagl): Define using libm_alias_ldouble.
25518 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25519 <libm-alias-ldouble.h>.
25520 (truncl): Define using libm_alias_ldouble.
25521 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25522 libm_alias_ldouble.
25523 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25524 libm_alias_ldouble.
25525 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25526 <libm-alias-ldouble.h>.
25527 (weak_alias): Do not undefine and redefine.
25528 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25529 (copysignl): Define with long_double_symbol only if [IS_IN
25530 (libc)].
25531 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25532 <libm-alias-ldouble.h>.
25533 (weak_alias): Do not undefine and redefine.
25534 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25535 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25536 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25537 <libm-alias-ldouble.h>.
25538 (weak_alias): Do not undefine and redefine.
25539 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25540 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25541 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25542 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25543 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25544 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25545 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25546 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25547 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25548 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25549 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25550 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25551 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25552 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25553 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25554 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25555 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25556 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25557 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25558 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25559 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25560 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25561 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25562 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25563 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25564 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25565
25566 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25567
25568 [BZ #22111]
25569 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25570 (tcache_thread_freeres): Set tcache_shutting_down before
25571 freeing the tcache.
25572 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25573 * malloc/tst-malloc-tcache-leak.c: New file.
25574
25575 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25576
25577 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25578 back to powerpc32 file.
25579 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25580 (memrchr): Add __memrchr_power8 to ifunc list.
25581 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25582 extra bytes for unaligned inputs.
25583
25584 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25585
25586 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25587 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25588 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25589 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25590 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25591
25592 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25593
25594 * sysdeps/arm/libm-test-ulps: Update.
25595
25596 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25597 <libm-alias-ldouble.h>.
25598 (asinhl): Define using libm_alias_ldouble.
25599 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25600 <libm-alias-ldouble.h>.
25601 (cbrtl): Define using libm_alias_ldouble.
25602 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25603 <libm-alias-ldouble.h>.
25604 (copysignl): Define using libm_alias_ldouble.
25605 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25606 <libm-alias-ldouble.h>.
25607 (cosl): Define using libm_alias_ldouble.
25608 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25609 <libm-alias-ldouble.h>.
25610 (erfl): Define using libm_alias_ldouble.
25611 (erfcl): Likewise.
25612 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25613 <libm-alias-ldouble.h>.
25614 (fmal): Define using libm_alias_ldouble.
25615 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25616 <libm-alias-ldouble.h>.
25617 (frexpl): Define using libm_alias_ldouble.
25618 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25619 libm_alias_ldouble.
25620 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25621 <libm-alias-ldouble.h>.
25622 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25623 libm_alias_ldouble.
25624 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25625 <libm-alias-ldouble.h>.
25626 (getpayloadl): Define using libm_alias_ldouble.
25627 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25628 <libm-alias-ldouble.h>.
25629 (llrintl): Define using libm_alias_ldouble.
25630 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25631 <libm-alias-ldouble.h>.
25632 (llroundl): Define using libm_alias_ldouble.
25633 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25634 <libm-alias-ldouble.h>.
25635 (lrintl): Define using libm_alias_ldouble.
25636 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25637 <libm-alias-ldouble.h>.
25638 (lroundl): Define using libm_alias_ldouble.
25639 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25640 <libm-alias-ldouble.h>.
25641 (modfl): Define using libm_alias_ldouble.
25642 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25643 <libm-alias-ldouble.h>.
25644 (nextupl): Define using libm_alias_ldouble.
25645 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25646 <libm-alias-ldouble.h>.
25647 (remquol): Define using libm_alias_ldouble.
25648 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25649 <libm-alias-ldouble.h>.
25650 (roundevenl): Define using libm_alias_ldouble.
25651 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25652 <libm-alias-ldouble.h>.
25653 (roundl): Define using libm_alias_ldouble.
25654 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25655 using libm_alias_ldouble.
25656 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25657 <libm-alias-ldouble.h>.
25658 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25659 <libm-alias-ldouble.h>.
25660 (setpayloadsigl): Define using libm_alias_ldouble.
25661 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25662 <libm-alias-ldouble.h>.
25663 (sincosl): Define using libm_alias_ldouble.
25664 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25665 <libm-alias-ldouble.h>.
25666 (sinl): Define using libm_alias_ldouble.
25667 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25668 <libm-alias-ldouble.h>.
25669 (tanhl): Define using libm_alias_ldouble.
25670 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25671 <libm-alias-ldouble.h>.
25672 (tanl): Define using libm_alias_ldouble.
25673 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25674 <libm-alias-ldouble.h>.
25675 (totalorderl): Define using libm_alias_ldouble.
25676 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25677 <libm-alias-ldouble.h>.
25678 (totalordermagl): Define using libm_alias_ldouble.
25679 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25680 libm_alias_ldouble.
25681 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25682 libm_alias_ldouble.
25683
25684 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25685
25686 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25687 memmove_falkor.
25688 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25689 (__libc_ifunc_impl_list): Likewise.
25690 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25691 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25692
25693 * benchtests/bench-memmove-walk.c: New file.
25694 * benchtests/Makefile (string-benchset): Add it.
25695
25696 * benchtests/bench-memset-walk.c: New file.
25697 * benchtests/Makefile (string-benchset): Add it.
25698
25699 * benchtests/bench-memcpy-walk.c: New file.
25700 * benchtests/Makefile (string-benchset): Add it.
25701
25702 2017-10-05 Florian Weimer <fweimer@redhat.com>
25703
25704 nscd: Eliminate compilation time dependency in the build output.
25705 * nscd/nscd_stat.c (STATDATA_VERSION)
25706 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25707 (STATDATA_VERSION_FULL): New macro definitions.
25708 (compilation): Remove.
25709 (struct statdata): Adjust version member.
25710 (send_stats): Set version from STATDATA_VERSION_FULL.
25711 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25712
25713 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25714
25715 * configure.ac (--enable-add-ons): Remove option.
25716 (machine): Do not mention add-ons in comment.
25717 (LIBC_PRECONFIGURE): Likewise.
25718 (add_ons): Remove variable and sanity checks and logic to locate
25719 add-ons.
25720 (add_ons_automatic): Remove variable.
25721 (configured_add_ons): Likewise.
25722 (add_ons_sfx): Likewise.
25723 (add_ons_pfx): Likewise.
25724 (add_on_subdirs): Likewise.
25725 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25726 consideration of add-ons in Implies handling.
25727 (sysdeps_add_ons): Likewise.
25728 * configure: Regenerated.
25729 * libidn/configure.ac: Remove.
25730 * libidn/configure: Likewise.
25731 * sysdeps/unix/inet/configure.ac: New file.
25732 * sysdeps/unix/inet/configure: New generated file.
25733 * sysdeps/unix/inet/Subdirs: Add libidn.
25734 * Makeconfig (sysdeps-srcdirs): Remove variable.
25735 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25736 ($(common-objpfx)config.status): Do not depend on add-on files.
25737 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25738 comment.
25739 (all-subdirs): Do not include $(add-on-subdirs).
25740 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25741 * config.make.in (add-ons): Remove variable.
25742 (add-on-subdirs): Likewise.
25743 (sysdeps-add-ons): Likewise.
25744 * manual/Makefile (add-chapters): Remove.
25745 ($(objpfx)texis): Do not depend on $(add-chapters).
25746 (nonexamples): Do not handle $(add-chapters).
25747 (examples): Do not handle $(add-ons).
25748 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25749 libc-texinfo.sh.
25750 * manual/install.texi (Installation): Do not mention add-ons.
25751 (--enable-add-ons): Do not document configure option.
25752 * INSTALL: Regenerated.
25753 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25754 * manual/maint.texi (Hierarchy Conventions): Do not mention
25755 add-ons.
25756 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25757 --enable-add-ons.
25758 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25759 add-ons.
25760 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25761 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25762
25763 2017-10-05 Andreas Schwab <schwab@suse.de>
25764
25765 [BZ #15142]
25766 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25767 (_IO_flush_all_lockp): Always lock list_all_lock.
25768 (_IO_flush_all_linebuffered): Likewise.
25769 (_IO_unbuffer_all): Likewise.
25770
25771 2017-10-05 Florian Weimer <fweimer@redhat.com>
25772
25773 [BZ #15436]
25774 Do not flush stdio streams on abort.
25775 * stdlib/abort.c (fflush): Remove macro definition.
25776 (abort): Remove stages related to stdio flushing.
25777
25778 2017-10-05 Florian Weimer <fweimer@redhat.com>
25779
25780 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25781
25782 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25783
25784 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25785
25786 2017-10-05 Florian Weimer <fweimer@redhat.com>
25787
25788 * support/support_format_hostent.c (support_format_hostent): Add
25789 more error information for NETDB_INTERNAL.
25790
25791 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25792
25793 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25794 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25795 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25796 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25797 AC_DEFINE if multi-arch is enabled.
25798 * sysdeps/i386/configure: Regenerated.
25799
25800 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25801
25802 * Makeconfig (+link-static-before-libc): Use
25803 $(DEFAULT-LDFLAGS-$(@F)).
25804 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25805 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25806 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25807
25808 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25809
25810 * elf/Makefile (tests): Add tst-main1.
25811 (modules-names): Add tst-main1mod.
25812 ($(objpfx)tst-main1): New.
25813 (CRT-tst-main1): Likewise.
25814 (LDFLAGS-tst-main1): Likewise.
25815 (LDLIBS-tst-main1): Likewise.
25816 (tst-main1mod.so-no-z-defs): Likewise.
25817 * elf/tst-main1.c: New file.
25818 * elf/tst-main1mod.c: Likewise.
25819
25820 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25821
25822 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25823
25824 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25825
25826 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25827 (fma): Define using libm_alias_double.
25828 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25829 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25830 <math_ldbl_opt.h>.
25831 (fmal): Do not define as compat symbol here.
25832 * sysdeps/alpha/fpu/s_fma.c: New file.
25833
25834 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25835
25836 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25837
25838 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25839
25840 [BZ #22229]
25841 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25842 <math_ldbl_opt.h>
25843 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25844 and libc.
25845 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25846 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25847 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25848 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25850 Include <math_ldbl_opt.h>
25851 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25852 and libc.
25853 (compat_symbol): Undefine and redefine.
25854 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25855 <math_ldbl_opt.h>
25856 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25857 (compat_symbol): Undefine and redefine.
25858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25859 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25860 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25861 GLIBC_2_1 for libm.
25862 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25863 GLIBC_2.0 copysignl symbol.
25864 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25865 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25866
25867 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25868
25869 2017-10-04 Florian Weimer <fweimer@redhat.com>
25870
25871 * scripts/check-local-headers.sh: Ignore nspr4 header file
25872 directory in addition to nspr.
25873
25874 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25875
25876 [BZ #17956]
25877 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25878 * configure: Regenerate.
25879 * crypt/Makefile (nss-cpp-flags): New variable.
25880 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25881 (CPPFLAGS-md5-crypt.c): Use it.
25882 * scripts/check-local-headers.sh: Ignore nspr header file
25883 directory.
25884
25885 2017-10-04 Andreas Schwab <schwab@suse.de>
25886
25887 * nis/Makefile (services): Remove compat.
25888 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25889 ($(objpfx)libnss_compat.so): Remove rule.
25890 * nis/Versions (libnss_compat): Remove.
25891 * nss/Makefile (services): Add compat.
25892 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25893 * nss/Versions (libnss_compat): Define.
25894 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25895 Don't include <rpc/types.h>. Replace bool_t by bool.
25896 * nss/nss_compat/compat-initgroups.c: Likewise.
25897 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25898 instead of <rpcsrv/ypclnt.h>.
25899 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25900 yp_get_default_domain.
25901 * nss/nss_compat/compat-pwd.c: Likewise.
25902 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25903 yp_get_default_domain.
25904 * nss/nss_compat/nisdomain.c: New file.
25905 * nss/nss_compat/nisdomain.h: Likewise.
25906
25907 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25908
25909 [BZ #22244]
25910 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25911 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25912
25913 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25914
25915 [BZ #22243]
25916 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25917 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25918
25919 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25920
25921 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25922 "movl main@GOTOFF(%ebx), %eax".
25923
25924 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25925
25926 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25927 allow undefined _DYNAMIC in PIE libc.a.
25928 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25929 Likewse.
25930
25931 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25932
25933 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25934 check _DYNAMIC.
25935
25936 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25937
25938 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25939 check _DYNAMIC.
25940
25941 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25942
25943 * math/test-math-iscanonical.cc (error): Replace bool with int.
25944
25945 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25946
25947 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25948 (modf): Define using libm_alias_double, only if [!__modf].
25949 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25950 <libm-alias-double.h>.
25951 (modf): Define using libm_alias_double, only if [!__modf].
25952 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25953 compat symbol here.
25954 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25955 (weak_alias): Do not undefine and redefine.
25956 (strong_alias): Likewise.
25957 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25958 (weak_alias): Likewise.
25959 (strong_alias): Likewise.
25960
25961 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25962 (logb): Define using libm_alias_double, only if [!__logb].
25963 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25964 <libm-alias-double.h>.
25965 (logb): Define using libm_alias_double, only if [!__logb].
25966 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25967 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25968 (weak_alias): Do not undefine and redefine.
25969 (strong_alias): Likewise.
25970 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25971 (weak_alias): Likewise.
25972 (strong_alias): Likewise.
25973
25974 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25975
25976 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25977 Check SHARED instead PIC.
25978
25979 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25980
25981 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25982 [!__fmaf] (fmaf): Define using libm_alias_float.
25983
25984 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25985 (frexp): Define using libm_alias_double.
25986 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25987 <libm-alias-double.h>.
25988 (frexp): Define using libm_alias_double.
25989 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25990 compat symbol here.
25991
25992 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25993
25994 [BZ #22235]
25995 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25996 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25997 (CFLAGS-test-math-iscanonical.cc): New variable.
25998 * math/test-math-iscanonical.cc: New file.
25999 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26000 Provide a C++ implementation based on function overloading,
26001 rather than using __MATH_TG, which uses C-only builtins.
26002 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26003 Likewise.
26004 * sysdeps/powerpc/powerpc64le/Makefile
26005 (CFLAGS-test-math-iscanonical.cc): New variable.
26006
26007 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26008
26009 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26010 (ceil): Define using libm_alias_double.
26011 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26012 (floor): Define using libm_alias_double.
26013 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26014 <libm-alias-double.h>.
26015 (llround): Define using libm_alias_double.
26016 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26017 <libm-alias-double.h>.
26018 (lround): Define using libm_alias_double.
26019 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26020 <libm-alias-double.h>.
26021 (nearbyint): Define using libm_alias_double.
26022 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26023 <libm-alias-double.h>.
26024 (remquo): Define using libm_alias_double.
26025 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26026 (rint): Define using libm_alias_double.
26027 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26028 (round): Define using libm_alias_double.
26029 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26030 (trunc): Define using libm_alias_double.
26031 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26032 <libm-alias-double.h>.
26033 (ceil): Define using libm_alias_double.
26034 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26035 <libm-alias-double.h>.
26036 (floor): Define using libm_alias_double.
26037 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26038 <libm-alias-double.h>.
26039 (llround): Define using libm_alias_double.
26040 [_LP64] (lround): Likewise.
26041 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26042 <libm-alias-double.h>.
26043 [!_LP64] (lround): Define using libm_alias_double.
26044 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26045 <libm-alias-double.h>.
26046 (nearbyint): Define using libm_alias_double.
26047 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26048 <libm-alias-double.h>.
26049 (remquo): Define using libm_alias_double.
26050 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26051 <libm-alias-double.h>.
26052 (rint): Define using libm_alias_double.
26053 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26054 <libm-alias-double.h>.
26055 (round): Define using libm_alias_double.
26056 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26057 <libm-alias-double.h>.
26058 (trunc): Define using libm_alias_double.
26059 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26060 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26061 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26062 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26063 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26064 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26065 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26066 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26067 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26068
26069 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26070
26071 * math/w_remainder.c: New file.
26072 * math/w_remainderf.c: New file.
26073 * math/w_remainderl.c: New file.
26074
26075 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26076
26077 * elf/rtld.c (BOOTSTRAP_MAP): New.
26078 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26079 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26080 Likewise.
26081 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26082 Likewise.
26083 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26084 Likewise.
26085
26086 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26087
26088 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26089 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26090 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26091 rtld_hidden_data_ver): Define to empty.
26092 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26093 __assert_perror_fail): Likewise.
26094 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26095 (__rewinddir): Likewise.
26096 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26097 (__profile_frequency): Likewise.
26098 * include/setjmp.h (__sigsetjmp): Likewise.
26099 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26100 __libc_sigaction): Likewise.
26101 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26102 not set hidden attribute.
26103 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26104 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26105 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26106 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26107 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26108 __fxstatat64): Likewise.
26109 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26110 (__uname): Likewise.
26111 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26112 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26113 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26114 (NO_RTLD_HIDDEN): Set.
26115 * sysdeps/mach/hurd/configure: Refresh.
26116 * config.h.in: Refresh.
26117
26118 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26119
26120 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26121 (atan): Define using libm_alias_double.
26122 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26123 (tan): Define using libm_alias_double.
26124 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26125 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26126
26127 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26128 define as weak alias of __atan. Do not define any aliases if
26129 [__atan].
26130 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26131 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26132 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26133 as weak alias of __tan. Do not define any aliases if [__tan].
26134 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26135 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26136 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26137 __atan.
26138 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26139 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26140 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26141 and define as weak alias of __atan.
26142 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26143 __atan.
26144 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26145 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26146 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26147 define as weak alias of __tan.
26148
26149 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26150
26151 * math/w_lgamma.c: New file.
26152 * math/w_lgammaf.c: New file.
26153 * math/w_lgammal.c: New file.
26154
26155 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26156
26157 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26158 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26159 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26160 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26161 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26162 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26163 * sysdeps/i386/fpu/w_log2f.c: New file.
26164 * sysdeps/i386/fpu/w_logf.c: New file.
26165 * sysdeps/i386/fpu/w_powf.c: New file.
26166 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26167 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26168 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26169
26170 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26171 H.J. Lu <hongjiu.lu@intel.com>
26172
26173 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26174 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26175 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26176 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26177 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26178 the new expf code.
26179 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26180 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26181 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26182 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26183 * sysdeps/i386/fpu/w_exp2f.c: New file.
26184 * sysdeps/i386/fpu/w_expf.c: New file.
26185 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26186 * sysdeps/x86_64/fpu/w_expf.c: New file.
26187
26188 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26189
26190 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26191 (log2f): Likewise.
26192 (powf): Likewise.
26193 * math/w_log2f.c: New file.
26194 * math/w_logf.c: New file.
26195 * math/w_powf.c: New file.
26196 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26197 * math/w_logf_compat.c (__logf_compat): Likewise.
26198 * math/w_powf_compat.c (__powf_compat): Likewise.
26199 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26200 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26201 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26202 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26203 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26204 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26205 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26206 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26207 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26208 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26209 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26210 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26211 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26212 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26213 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26215 Likewise.
26216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26217 Likewise.
26218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26219 Likewise.
26220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26221 Likewise.
26222 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26223 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26224 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26225 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26226 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26227 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26228 Likewise.
26229 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26230 Likewise.
26231 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26232 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26233 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26234
26235 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26236
26237 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26238 (sysdep_routines): Add memrchr_power8.
26239 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26240 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26241 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26242 New file.
26243 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26244 (memrchr): Add __memrchr_power8 to ifunc list.
26245 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26246
26247 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26248
26249 [BZ #18822]
26250 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26251 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26252 libc_hidden_def.
26253 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26254 (__posix_fallocate64_l64): Likewise.
26255
26256 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26257
26258 [BZ #18822]
26259 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26260 (__sched_setaffinity_new): Add libc_hidden_proto and
26261 libc_hidden_def.
26262
26263 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26264
26265 [BZ #18822]
26266 * include/glob.h (__glob64): Add libc_hidden_proto.
26267 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26268 libc_hidden_def.
26269
26270 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26271
26272 [BZ #18822]
26273 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26274 attribute_hidden.
26275
26276 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26277
26278 [BZ #18822]
26279 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26280
26281 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26282
26283 [BZ #18822]
26284 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26285 libc_hidden_def.
26286
26287 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26288
26289 [BZ #18822]
26290 * csu/version.c (__libc_print_version): Add attribute_hidden.
26291
26292 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26293
26294 [BZ #18822]
26295 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26296
26297 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26298
26299 [BZ #18822]
26300 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26301
26302 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26303
26304 [BZ #18822]
26305 * nscd/nscd_helper.c (__nis_hash): New prototype.
26306
26307 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26308
26309 [BZ #18822]
26310 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26311 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26312 libc_hidden_def.
26313 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26314 * termios/tcgetattr.c (__tcgetattr): Likewise.
26315
26316 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26317
26318 [BZ #18822]
26319 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26320 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26321 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26322 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26323 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26324
26325 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26326
26327 [BZ #18822]
26328 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26329
26330 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26331
26332 [BZ #18822]
26333 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26334 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26335
26336 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26337
26338 [BZ #18822]
26339 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26340
26341 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26342
26343 [BZ #18822]
26344 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26345 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26346
26347 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26348
26349 [BZ #18822]
26350 * include/ifreq.h: New file.
26351 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26352 (__ifreq): Likewise.
26353 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26354 (__ifreq): Likewise.
26355
26356 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26357
26358 [BZ #18822]
26359 * include/idna.h: New file.
26360 * inet/getnameinfo.c: Include <idna.h> instead of
26361 <libidn/idna.h>.
26362 (__idna_to_unicode_lzlz): Removed.
26363 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26364 <libidn/idna.h>.
26365 (__idna_to_ascii_lz): Removed.
26366 (__idna_to_unicode_lzlz): Likewise.
26367
26368 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26369
26370 [BZ #18822]
26371 * include/plural-exp.h: New file.
26372 * intl/plural-exp.c: Include <plural-exp.h> instead of
26373 "plural-exp.h".
26374
26375 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26376
26377 [BZ #18822]
26378 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26379 "getsourcefilter.h".
26380 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26381 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26382 "getsourcefilter.h".
26383 (__get_sol): Removed.
26384
26385 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26386
26387 [BZ #18822]
26388 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26389 to ...
26390 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26391
26392 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26393
26394 [BZ #18822]
26395 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26396 attribute_hidden.
26397
26398 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26399
26400 [BZ #18822]
26401 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26402
26403 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26404
26405 [BZ #18822]
26406 * include/search.h (__tdestroy): Add libc_hidden_proto.
26407 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26408
26409 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26410
26411 [BZ #18822]
26412 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26413
26414 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26415
26416 [BZ #18822]
26417 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26418 attribute_hidden.
26419
26420 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26421
26422 [BZ #18822]
26423 * include/signal.h (__kill): Add libc_hidden_proto.
26424 (__sigblock): Likewise.
26425 (__sigprocmask): Likewise.
26426 (__sigaltstack): Likewise.
26427 * signal/kill.c (__kill): Add libc_hidden_def.
26428 * signal/sigblock.c (__sigblock): Likewise.
26429 * signal/sigprocmask.c (__sigprocmask): Likewise.
26430 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26431 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26432 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26433 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26434 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26435 Likewise.
26436 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26437 Likewise.
26438 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26439 (__sigprocmask): Likewise.
26440 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26441 Likewise.
26442 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26443 (__sigprocmask): Likewise.
26444 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26445 Likewise.
26446
26447 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26448
26449 [BZ #18822]
26450 * include/string.h (__strsep): Add libc_hidden_proto.
26451 * string/strsep.c (__strsep): Add libc_hidden_def.
26452
26453 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26454
26455 [BZ #18822]
26456 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26457 attribute_hidden.
26458 (__spawni): Likewise.
26459
26460 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26461
26462 [BZ #18822]
26463 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26464 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26465 libc_hidden_def.
26466
26467 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26468
26469 [BZ #18822]
26470 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26471
26472 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26473
26474 [BZ #18822]
26475 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26476 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26477 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26478 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26479 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26480 Likewise.
26481 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26482 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26483
26484 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26485
26486 [BZ #18822]
26487 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26488 (__dcigettext): Likewise.
26489
26490 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26491
26492 [BZ #18822]
26493 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26494 libc_hidden_proto.
26495 (__get_nprocs): Likewise.
26496 (__get_phys_pages): Likewise.
26497 (__get_avphys_pages): Likewise.
26498 (__get_child_max): Add attribute_hidden.
26499 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26500 (__get_nprocs): Likewise.
26501 (__get_phys_pages): Likewise.
26502 (__get_avphys_pages): Likewise.
26503 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26504 libc_hidden_def.
26505 (__get_nprocs): Likewise.
26506 (__get_phys_pages): Likewise.
26507 (__get_avphys_pages): Likewise.
26508 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26509 libc_hidden_def.
26510 (__get_nprocs_conf): Likewise.
26511 (__get_phys_pages): Likewise.
26512 (__get_avphys_pages): Likewise.
26513
26514 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26515
26516 [BZ #18822]
26517 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26518 attribute_hidden.
26519 (__netlink_close): Likewise.
26520 (__netlink_free_handle): Likewise.
26521 (__netlink_request): Likewise.
26522
26523 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26524
26525 [BZ #18822]
26526 * include/rpc/rpc.h (__rpc_thread_variables): Add
26527 attribute_hidden.
26528 (__rpc_thread_svc_cleanup): Likewise.
26529 (__rpc_thread_clnt_cleanup): Likewise.
26530 (__rpc_thread_key_cleanup): Likewise.
26531
26532 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26533
26534 [BZ #18822]
26535 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26536 (__writev): Likewise.
26537 * misc/readv.c (__readv): Add libc_hidden_def.
26538 * misc/writev.c (__writev): Likewise.
26539 * sysdeps/posix/readv.c (__readv): Likewise.
26540 * sysdeps/posix/writev.c (__writev): Likewise.
26541 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26542 (__readv): Likewise.
26543 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26544 (__writev): Likewise.
26545
26546 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26547
26548 [BZ #18822]
26549 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26550 (__regcomp): Add libc_hidden_proto.
26551 (__regexec): Likewise.
26552 (__regfree): Likewise.
26553 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26554 (__regfree): Likewise.
26555 * posix/regexec.c (__regexec): Likewise.
26556
26557 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26558
26559 [BZ #18822]
26560 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26561 (__getutent): Likewise.
26562 (__getutid): Likewise.
26563 (__getutline): Likewise.
26564 (__pututline): Likewise.
26565 (__getutent_r): Likewise.
26566 (__getutid_r): Likewise.
26567 (__getutline_r): Likewise.
26568 (__utmpname): Add attribute_hidden.
26569 (__setutent): Likewise.
26570 (__endutent): Likewise.
26571 * login/getutent.c (__getutent): Add libc_hidden_def.
26572 * login/getutent_r.c (__getutent_r): Likewise.
26573 (__pututline): Likewise.
26574 * login/getutid.c (__getutid): Likewise.
26575 * login/getutid_r.c (__getutid_r): Likewise.
26576 * login/getutline.c (__getutline): Likewise.
26577 * login/getutline_r.c (__getutline_r): Likewise.
26578 * login/updwtmp.c (__updwtmp): Likewise.
26579
26580 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26581
26582 [BZ #18822]
26583 * include/dirent.h (__opendir): Always add attribute_hidden.
26584 (__fdopendir): Likewise.
26585 (__closedir): Likewise.
26586 (__readdir): Likewise.
26587 (__readdir64): Add libc_hidden_proto.
26588 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26589 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26590 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26591 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26592 New alias.
26593
26594 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26595
26596 [BZ #18822]
26597 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26598 * include/netdb.h (__gethostbyaddr_r): Likewise.
26599 (__gethostbyname_r): Likewise.
26600 (__gethostbyname2_r): Likewise.
26601 (__getnetbyaddr_r): Likewise.
26602 (__getnetbyname_r): Likewise.
26603 (__getservbyname_r): Likewise.
26604 (__getservbyport_r): Likewise.
26605 (__getprotobyname_r): Likewise.
26606 (__getprotobynumber_r): Likewise.
26607 (__getnetgrent_r): Likewise.
26608 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26609 (__getrpcbynumber_r): Likewise.
26610 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26611
26612 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26613
26614 [BZ #18822]
26615 * include/stdio.h (__fcloseall): Add attribute_hidden.
26616 (__getline): Likewise.
26617 (__path_search): Likewise.
26618 (__gen_tempname): Likewise.
26619 (__libc_message): Likewise.
26620 (__flockfile): Likewise.
26621 (__funlockfile): Likewise.
26622 (__fxprintf): Likewise.
26623 (__fxprintf_nocancel): Likewise.
26624
26625 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26626
26627 [BZ #18822]
26628 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26629 (__sgetsgent_r): Likewise.
26630
26631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26632
26633 [BZ #18822]
26634 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26635 (__statfs64): Likewise.
26636 (__fstatfs64): Likewise.
26637 * include/sys/statvfs.h (__statvfs64): Likewise.
26638 (__fstatvfs64): Likewise.
26639 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26640 (__statfs_filesize_max): Likewise.
26641 (__statfs_symlinks): Likewise.
26642 (__statfs_chown_restricted): Likewise.
26643
26644 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26645
26646 [BZ #18822]
26647 * include/time.h (__tzstring): Add attribute_hidden.
26648 (__tzfile_read): Likewise.
26649 (__tzfile_compute): Likewise.
26650 (__tzfile_default): Likewise.
26651 (__tzset_parse_tz): Likewise.
26652 (__offtime): Likewise.
26653 (__asctime_r): Likewise.
26654 (__tzset): Likewise.
26655 (__tz_convert): Likewise.
26656 (__getdate_r): Likewise.
26657 (__getclktck): Likewise.
26658
26659 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26660
26661 [BZ #18822]
26662 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26663 (__nscd_unmap): Likewise.
26664 (__nscd_cache_search): Likewise.
26665 (__nscd_get_nl_timestamp): Likewise.
26666 (__nscd_getpwnam_r): Likewise.
26667 (__nscd_getpwuid_r): Likewise.
26668 (__nscd_getgrnam_r): Likewise.
26669 (__nscd_getgrgid_r): Likewise.
26670 (__nscd_gethostbyname_r): Likewise.
26671 (__nscd_gethostbyname2_r): Likewise.
26672 (__nscd_gethostbyaddr_r): Likewise.
26673 (__nscd_getai): Likewise.
26674 (__nscd_getgrouplist): Likewise.
26675 (__nscd_getservbyname_r): Likewise.
26676 (__nscd_getservbyport_r): Likewise.
26677 (__nscd_innetgr): Likewise.
26678 (__nscd_setnetgrent): Likewise.
26679
26680 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26681
26682 [BZ #18822]
26683 * include/gmp.h: Declare internal functions only if _ISOMAC is
26684 undefined.
26685 (__mpn_extract_double): Add attribute_hidden.
26686 (__mpn_extract_long_double): Likewise.
26687 (__mpn_extract_float128): Likewise.
26688 (__mpn_construct_float): Likewise.
26689 (__mpn_construct_double): Likewise.
26690 (__mpn_construct_long_double): Likewise.
26691 (__mpn_construct_float128): Likewise.
26692 (mpn_add_1): Likewise.
26693 (mpn_addmul_1): Likewise.
26694 (mpn_add_n): Likewise.
26695 (mpn_cmp): Likewise.
26696 (mpn_divrem): Likewise.
26697 (mpn_lshift): Likewise.
26698 (mpn_mul): Likewise.
26699 (mpn_mul_1): Likewise.
26700 (mpn_rshift): Likewise.
26701 (mpn_sub_1): Likewise.
26702 (mpn_submul_1): Likewise.
26703 (mpn_sub_n): Likewise.
26704
26705 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26706
26707 [BZ #18822]
26708 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26709 (__wcscat): Likewise.
26710 (__btowc): Likewise.
26711 (__wcrtomb): Likewise.
26712 (__mbsrtowcs): Likewise.
26713 (__wcsrtombs): Likewise.
26714 (__mbsnrtowcs): Likewise.
26715 (__wcsnrtombs): Likewise.
26716 (__wcsncpy): Likewise.
26717 (__wcpncpy): Likewise.
26718 (__wmemcpy): Likewise.
26719 (__wmempcpy): Likewise.
26720 (__wmemmove): Likewise.
26721 (__wcschrnul): Likewise.
26722 (__vfwscanf): Likewise.
26723 (__vswprintf): Likewise.
26724 (__fwprintf): Likewise.
26725 (__vfwprintf): Likewise.
26726
26727 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26728
26729 [BZ #18822]
26730 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26731 (__getgrgid_r): Likewise.
26732 (__getgrnam_r): Likewise.
26733 * include/pwd.h (__getpwuid_r): Likewise.
26734 (__getpwnam_r): Likewise.
26735 (__fgetpwent_r): Likewise.
26736 * include/shadow.h (__getspnam_r): Likewise.
26737 (__sgetspent_r): Likewise.
26738 (__fgetspent_r): Likewise.
26739
26740 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26741
26742 [BZ #18822]
26743 * include/unistd.h (__access): Add attribute_hidden.
26744 (__lseek64): Likewise.
26745 (__libc_pread64): Likewise.
26746 (__pipe2): Likewise.
26747 (__sleep): Likewise.
26748 (__chdir): Likewise.
26749 (__fchdir): Likewise.
26750 (__getcwd): Likewise.
26751 (__rmdir): Likewise.
26752 (__execvpe): Likewise.
26753 (__execve): Likewise.
26754 (__setsid): Likewise.
26755 (__getuid): Likewise.
26756 (__geteuid): Likewise.
26757 (__getgid): Likewise.
26758 (__getegid): Likewise.
26759 (__getgroups): Likewise.
26760 (__group_member): Likewise.
26761 (__ttyname_r): Likewise.
26762 (__isatty): Likewise.
26763 (__readlink): Likewise.
26764 (__unlink): Likewise.
26765 (__gethostname): Likewise.
26766 (__profil): Likewise.
26767 (__getdtablesize): Likewise.
26768 (__brk): Likewise.
26769 (__ftruncate): Likewise.
26770 (__ftruncate64): Likewise.
26771
26772 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26773
26774 [BZ #18822]
26775 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26776 * argp/argp-fs-xinl.c: Likewise.
26777 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26778 * argp/argp-parse.c: Include <argp.h>.
26779 * argp/argp-xinl.c: Likewise.
26780 * include/argp-fmtstream.h: New file.
26781 * include/argp.h (__argp_error): Add attribute_hidden.
26782 (__argp_failure): Likewise.
26783 (__argp_input): Likewise.
26784 (__argp_state_help): Likewise.
26785
26786 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26787
26788 [BZ #18822]
26789 * include/wchar.h (____wcstof_l_internal): New prototype.
26790 (____wcstod_l_internal): Likewise.
26791 (____wcstold_l_internal): Likewise.
26792 (____wcstol_l_internal): Likewise.
26793 (____wcstoul_l_internal): Likewise.
26794 (____wcstoll_l_internal): Likewise.
26795 (____wcstoull_l_internal): Likewise.
26796 (____wcstof128_l_internal): Likewise.
26797 * sysdeps/ieee754/float128/wcstof128.c
26798 (____wcstof128_l_internal): Removed.
26799 * sysdeps/ieee754/float128/wcstof128_l.c
26800 (____wcstof128_l_internal): Likewise.
26801 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26802 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26803 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26804 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26805 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26806 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26807 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26808 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26809 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26810 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26811
26812 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26813
26814 [BZ #18822]
26815 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26816 instead of <sys/statvfs.h>.
26817 (__internal_statvfs): Removed.
26818 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26819 instead of <sys/statvfs.h>.
26820 (__internal_statvfs64): Removed.
26821 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26822 "internal_statvfs.h" instead of <sys/statvfs.h>.
26823 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26824 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26825 instead of <sys/statvfs.h>.
26826 (__internal_statvfs): Removed.
26827 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26828 instead of <sys/statvfs.h>.
26829 (__internal_statvfs64): Removed.
26830
26831 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26832
26833 [BZ #18822]
26834 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26835 (__gconv_close): Likewise.
26836 (__gconv): Likewise.
26837 (__gconv_find_transform): Likewise.
26838 (__gconv_lookup_cache): Likewise.
26839 (__gconv_compare_alias_cache): Likewise.
26840 (__gconv_load_cache): Likewise.
26841 (__gconv_get_path): Likewise.
26842 (__gconv_close_transform): Likewise.
26843 (__gconv_release_cache): Likewise.
26844 (__gconv_find_shlib): Likewise.
26845 (__gconv_release_shlib): Likewise.
26846 (__gconv_get_builtin_trans): Likewise.
26847 (__gconv_compare_alias): Likewise.
26848 * include/dlfcn.h (_dlerror_run): Likewise.
26849 * include/stdio.h (__fortify_fail_abort): Likewise.
26850 * include/time.h (__tz_compute): Likewise.
26851 (__strptime_internal): Likewise.
26852 * intl/gettextP.h (_nl_find_domain): Likewise.
26853 (_nl_load_domain): Likewise.
26854 (_nl_find_msg): Likewise.
26855 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26856 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26857 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26858 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26859 (__gai_find_request): Likewise.
26860 (__gai_remove_request): Likewise.
26861 (__gai_notify): Likewise.
26862 (__gai_notify_only): Likewise.
26863 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26864 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26865 (_dl_non_dynamic_init): Likewise.
26866 (_dl_aux_init): Likewise.
26867 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26868 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26869 Likewise.
26870 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26871 (__wcsmbs_clone_conv): Likewise.
26872 (__wcsmbs_named_conv): Likewise.
26873
26874 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26875
26876 [BZ #18822]
26877 * include/stdlib.h (__random): Add attribute_hidden.
26878 (__random_r): Likewise.
26879 (__srandom_r): Likewise.
26880 (__initstate_r): Likewise.
26881 (__setstate_r): Likewise.
26882 (__erand48_r): Likewise.
26883 (__nrand48_r): Likewise.
26884 (__jrand48_r): Likewise.
26885 (__srand48_r): Likewise.
26886 (__seed48_r): Likewise.
26887 (__lcong48_r): Likewise.
26888 (__drand48_iterate): Likewise.
26889 (__setenv): Likewise.
26890 (__unsetenv): Likewise.
26891 (__clearenv): Likewise.
26892 (__ptsname_r): Likewise.
26893 (__posix_openpt): Likewise.
26894 (__add_to_environ): Likewise.
26895 (__realpath): Add libc_hidden_proto.
26896 (__ecvt_r): Likewise.
26897 (__fcvt_r): Likewise.
26898 (__qecvt_r): Likewise.
26899 (__qfcvt_r): Likewise.
26900 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26901 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26902
26903 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26904
26905 [BZ #18822]
26906 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26907 * include/time.h (__mktime_internal): Likewise.
26908 * libio/iolibio.h (__fopen_internal): Likewise.
26909
26910 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26911
26912 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26913 pointer in frame.
26914 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26915 Correct offset used to restore PIC register.
26916
26917 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26918
26919 [BZ libc/22165]
26920 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26921 code to load address of __getcontext_ret when generating PIC code.
26922
26923 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26924
26925 * elf/Makefile (tests-static-internal): Add
26926 tst-tls1-static-non-pie.
26927 (LDFLAGS-tst-tls1-static-non-pie): New.
26928 * elf/tst-tls1-static-non-pie.c: New file.
26929
26930 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26931
26932 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26933 (asinh): Define using libm_alias_double.
26934 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26935 (cbrt): Define using libm_alias_double.
26936 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26937 <libm-alias-double.h>.
26938 (copysign): Define using libm_alias_double.
26939 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26940 (erf): Define using libm_alias_double.
26941 (erfc): Likewise.
26942 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26943 (expm1): Define using libm_alias_double.
26944 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26945 (fabs): Define using libm_alias_double.
26946 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26947 libm_alias_double.
26948 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26949 <libm-alias-double.h>.
26950 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26951 libm_alias_double.
26952 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26953 <libm-alias-double.h>.
26954 (getpayload): Define using libm_alias_double.
26955 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26956 <libm-alias-double.h>.
26957 (llrint): Define using libm_alias_double.
26958 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26959 (lrint): Define using libm_alias_double.
26960 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26961 <libm-alias-double.h>.
26962 (nextup): Define using libm_alias_double.
26963 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26964 <libm-alias-double.h>.
26965 (roundeven): Define using libm_alias_double.
26966 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26967 libm_alias_double.
26968 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26969 <libm-alias-double.h>.
26970 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26971 using libm_alias_double.
26972 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26973 (cos): Define using libm_alias_double.
26974 (sin): Likewise.
26975 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26976 <libm-alias-double.h>.
26977 (sincos): Define using libm_alias_double.
26978 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26979 (tanh): Define using libm_alias_double.
26980 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26981 <libm-alias-double.h>.
26982 (totalorder): Define using libm_alias_double.
26983 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26984 <libm-alias-double.h>.
26985 (totalordermag): Define using libm_alias_double.
26986 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26987 libm_alias_double.
26988 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26989 libm_alias_double.
26990 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26991 <libm-alias-double.h>.
26992 (getpayload): Define using libm_alias_double.
26993 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26994 <libm-alias-double.h>.
26995 (roundeven): Define using libm_alias_double.
26996 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26997 <libm-alias-double.h>.
26998 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26999 <libm-alias-double.h>.
27000 (totalorder): Define using libm_alias_double.
27001 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27002 <libm-alias-double.h>.
27003 (totalordermag): Define using libm_alias_double.
27004 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27005 libc compat symbol here.
27006 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27007 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27008 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27009 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27010 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27011 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27012 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27013 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27014 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27015 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27016
27017 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27018
27019 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27020 _dl_relocate_static_pie instead of _dl_start to compute load
27021 address in static PIE. Return 0 if _DYNAMIC is undefined for
27022 static executable.
27023
27024 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27025
27026 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27027 _DYNAMIC is undefined for static executable.
27028
27029 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27030
27031 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27032
27033 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27034
27035 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27036
27037 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27038
27039 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27040 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27041 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27042 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27043 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27044 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27045 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27046 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27047 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27048 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27049 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27050 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27051 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27052 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27053 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27054 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27055 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27056
27057 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27058
27059 * math/bits/cmathcalls.h (cimag): Remove inline.
27060 (creal): Remove inline.
27061 (conj): Remove inline.
27062
27063 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27064
27065 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27066 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27067 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27068 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27069 (issignalingf_inline): Likewise.
27070 (POWF_LOG2_TABLE_BITS): Likewise.
27071 (POWF_LOG2_POLY_ORDER): Likewise.
27072 (POWF_SCALE_BITS): Likewise.
27073 (POWF_SCALE): Likewise.
27074 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27075 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27076 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27077
27078 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27079
27080 * math/Makefile (type-float-routines): Add e_log2f_data.
27081 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27082 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27083 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27084 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27085 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27086 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27087 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27088
27089 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27090
27091 * math/Makefile (type-float-routines): Add e_logf_data.
27092 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27093 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27094 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27095 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27096 * sysdeps/i386/fpu/e_logf_data.c: New file.
27097 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27098 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27099
27100 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27101
27102 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27103 undefined _DYNAMIC in PIE libc.a.
27104 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27105 Likewse.
27106
27107 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27108
27109 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27110 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27111 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27112 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27113 (__signbit): Remove.
27114 (__signbitl): Remove.
27115 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27116 (__signbit): Remove.
27117 (__signbitl): Remove.
27118 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27119 (__signbit): Remove.
27120 (__signbitl): Remove.
27121 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27122 (__signbit): Remove.
27123 (__signbitl): Remove.
27124 * sysdeps/tile/bits/mathinline.h: Delete file.
27125 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27126 (__signbit): Remove.
27127 (__signbitl): Remove.
27128
27129 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27130
27131 * math/math.h: Improve handling of C99 isgreater macros.
27132 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27133 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27134 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27135 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27136 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27137
27138 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27139
27140 * sysdeps/aarch64/libm-test-ulps: Update.
27141
27142 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27143
27144 [BZ #22225]
27145 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27146 math_opt_barrier on argument when doing arithmetic on it.
27147 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27148 Likewise. Use math_force_eval not math_opt_barrier after
27149 arithmetic.
27150 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27151 math_opt_barrier on argument when doing arithmetic on it.
27152 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27153 Likewise.
27154
27155 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27156
27157 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27158 libc_hidden_def.
27159 (__freeifaddrs): Likewise.
27160
27161 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27162
27163 * include/dirent.h (__dirfd): New declaration.
27164 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27165 alias.
27166 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27167 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27168 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27169 * include/unistd.h (__revoke): New declaration.
27170 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27171 alias.
27172 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27173 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27174 revoke.
27175 * include/dirent.h (__seekdir): New declaration.
27176 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27177 redefine as weak alias.
27178 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27179 of seekdir.
27180 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27181 and use libc_hidden_def on them.
27182 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27183 them.
27184 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27185 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27186 instead of getifaddrs and freeifaddrs.
27187
27188 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27189
27190 [BZ #18822]
27191 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27192 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27193 (__dso_handle): Remove declaration.
27194 * dlfcn/tstatexit.c (__dso_handle): Removed.
27195 (main): Don't check __dso_handle.
27196 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27197 (main): Don't check __dso_handle.
27198 * include/dso_handle.h: New file.
27199 * malloc/mtrace.c: Include <dso_handle.h>.
27200 (mtrace): Pass __dso_handle directly.
27201 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27202 (__dso_handle): Remove declaration.
27203 (__pthread_atfork): Pass __dso_handle directly.
27204 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27205 (__dso_handle): Removed.
27206 * posix/wordexp-test.c: Include <dso_handle.h>.
27207 (__dso_handle): Remove declaration.
27208 (__app_register_atfork): Pass __dso_handle directly.
27209 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27210 (__dso_handle): Remove declaration.
27211 (at_quick_exit): Pass __dso_handle directly.
27212 * stdlib/atexit.c: Include <dso_handle.h>.
27213 (__dso_handle): Remove declaration.
27214 (atexit): Pass __dso_handle directly.
27215 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27216 (__dso_handle): Removed.
27217
27218 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27219
27220 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27221 using VDSO.
27222
27223 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27224
27225 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27226 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27227 values to correct default value for given type.
27228
27229 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27230
27231 [BZ #22101]
27232 * elf/Makefile (tests): Add tst-debug1.
27233 ($(objpfx)tst-debug1): New.
27234 ($(objpfx)tst-debug1.out): Likewise.
27235 ($(objpfx)tst-debug1mod1.so): Likewise.
27236 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27237 with p_filesz == 0.
27238 * elf/tst-debug1.c: New file.
27239
27240 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27241
27242 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27243 Define using __ifunc.
27244
27245 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27246
27247 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27248 exp2f() values.
27249
27250 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27251
27252 [BZ #22156]
27253 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27254
27255 2017-09-26 Florian Weimer <fweimer@redhat.com>
27256
27257 * resolv/Makefile (tests-internal): Fix typo in comment.
27258
27259 2017-09-26 Florian Weimer <fweimer@redhat.com>
27260
27261 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27262
27263 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27264
27265 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27266 Use an union instead of a max_align_t array for __space,
27267 so that __space is the same size on all platforms.
27268 * malloc/scratch_buffer_grow_preserve.c
27269 (__libc_scratch_buffer_grow_preserve): Likewise.
27270
27271 [BZ #22183]
27272 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27273 version to 2.
27274 * posix/Makefile (routines): Add glob-lstat-compat and
27275 glob64-lstat-compat.
27276 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27277 * posix/glob-lstat-compat.c: New file.
27278 * posix/glob64-lstat-compat.c: Likewise.
27279 * posix/tst-glob_lstat_compat.c: Likewise.
27280 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27281 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27282 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27283 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27284 Likewise.
27285 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27286 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27287 * posix/glob.c (glob_lstat): New function.
27288 (glob): Rename to __glob and add versioned symbol to 2.27.
27289 (glob_in_dir): Use glob_lstat.
27290 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27291 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27292 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27293 2.27.
27294 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27295 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27296 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27297 gl_lstat on glob call.
27298 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27299 and glob64 symbols.
27300 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27301 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27302 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27303 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27304 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27305 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27306 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27307 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27308 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27309 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27310 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27311 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27313 Likewise.
27314 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27315 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27316 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27317 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27318 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27319 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27320 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27321 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27322 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27323 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27324 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27325 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27326
27327 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27328
27329 * configure.ac (AS): Require binutils 2.25 or later.
27330 * configure: Regenerated.
27331
27332 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27333
27334 [BZ #22207]
27335 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27336 VM size.
27337
27338 2017-09-25 DJ Delorie <dj@redhat.com>
27339
27340 [BZ #22161]
27341 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27342 resetting timeout.
27343
27344 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27345
27346 * sysdeps/ieee754/dbl-64/sincos32.h
27347 [SINCCOS32_H]: Remove define.
27348 [SINCOS32_H]: Define.
27349
27350 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27351
27352 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27353 (exp2f): Likewise.
27354 * math/w_exp2f.c: New file.
27355 * math/w_expf.c: New file.
27356 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27357 * math/w_expf_compat.c (__expf_compat): Likewise.
27358 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27359 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27360 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27361 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27362 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27363 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27364 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27365 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27366 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27367 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27368 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27369 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27370 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27371 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27373 Likewise.
27374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27375 Likewise.
27376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27377 Likewise.
27378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27379 Likewise.
27380 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27381 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27382 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27383 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27384 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27385 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27386 Likewise.
27387 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27388 Likewise.
27389 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27390 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27391 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27392
27393 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27394
27395 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27396 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27397 (roundtoint, converttoint): Likewise.
27398 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27399 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27400 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27401 * sysdeps/ieee754/flt-32/math_config.h: New file.
27402 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27403 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27404 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27405 * sysdeps/i386/fpu/math_errf.c: New file.
27406 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27407 * sysdeps/ia64/fpu/math_errf.c: New file.
27408 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27409 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27410
27411 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27412
27413 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27414 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27415 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27416 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27417 to make sure that these symbols are defined.
27418 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27419 of <limits.h>
27420 (__need_NULL): Do not define.
27421 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27422 alignment.
27423 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27424 CMGROUP_MAX, cmsgcred): Do not define.
27425 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27426 NULL.
27427 * bits/socket.h: Likewise.
27428 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27429 __gettimeofday instead of gettimeofday.
27430 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27431 instead of settimeofday.
27432
27433 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27434
27435 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27436 (asinhf): Define using libm_alias_float.
27437 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27438 (atanf): Define using libm_alias_float.
27439 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27440 (cbrtf): Define using libm_alias_float.
27441 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27442 (ceilf): Define using libm_alias_float.
27443 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27444 <libm-alias-float.h>.
27445 (copysignf): Define using libm_alias_float.
27446 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27447 (cosf): Define using libm_alias_float.
27448 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27449 (erff): Define using libm_alias_float.
27450 (erfcf): Likewise.
27451 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27452 (expm1f): Define using libm_alias_float.
27453 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27454 (fabsf): Define using libm_alias_float.
27455 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27456 (floorf): Define using libm_alias_float.
27457 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27458 (frexpf): Define using libm_alias_float.
27459 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27460 libm_alias_float.
27461 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27462 <libm-alias-float.h>.
27463 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27464 libm_alias_float.
27465 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27466 <libm-alias-float.h>.
27467 (getpayloadf): Define using libm_alias_float.
27468 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27469 <libm-alias-float.h>.
27470 (llrintf): Define using libm_alias_float.
27471 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27472 <libm-alias-float.h>.
27473 (llroundf): Define using libm_alias_float.
27474 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27475 (logbf): Define using libm_alias_float.
27476 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27477 (lrintf): Define using libm_alias_float.
27478 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27479 (lroundf): Define using libm_alias_float.
27480 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27481 (modff): Define using libm_alias_float.
27482 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27483 <libm-alias-float.h>.
27484 (nearbyintf): Define using libm_alias_float.
27485 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27486 <libm-alias-float.h>.
27487 (nextafterf): Define using libm_alias_float.
27488 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27489 <libm-alias-float.h>.
27490 (nextupf): Define using libm_alias_float.
27491 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27492 <libm-alias-float.h>.
27493 (remquof): Define using libm_alias_float.
27494 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27495 (rintf): Define using libm_alias_float.
27496 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27497 <libm-alias-float.h>.
27498 (roundevenf): Define using libm_alias_float.
27499 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27500 (roundf): Define using libm_alias_float.
27501 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27502 using libm_alias_float.
27503 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27504 <libm-alias-float.h>.
27505 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27506 Define using libm_alias_float.
27507 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27508 <libm-alias-float.h>.
27509 (sincosf): Define using libm_alias_float.
27510 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27511 (sinf): Define using libm_alias_float.
27512 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27513 (tanf): Define using libm_alias_float.
27514 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27515 (tanhf): Define using libm_alias_float.
27516 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27517 <libm-alias-float.h>.
27518 (totalorderf): Define using libm_alias_float.
27519 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27520 <libm-alias-float.h>.
27521 (totalordermagf): Define using libm_alias_float.
27522 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27523 (truncf): Define using libm_alias_float.
27524 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27525 libm_alias_float.
27526 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27527 libm_alias_float.
27528
27529 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27530
27531 [BZ #22146]
27532 math/math.h: Let fpclassify use the builtin in C++ mode, even
27533 when optimazing for size.
27534
27535 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27536
27537 * csu/Makefile (generated): Do not add version-info.h.
27538 (before-compile): Likewise.
27539 (all-Banner-files): Remove variable.
27540 ($(objpfx)version-info.h): Remove rule.
27541 * csu/version.c (banner): Do not include "version-info.h".
27542 * libidn/Banner: Remove.
27543 * manual/contrib.texi (Simon Josefsson): New entry.
27544
27545 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27546
27547 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27548 Remove conditionals on LDBL_MANT_DIG.
27549 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27550 (__ieee754_lgammal_r): Likewise.
27551
27552 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27553
27554 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27555 _Float128 and L().
27556 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27557 _Float128 and L(). Replace _Float128 with long double and L(x)
27558 with xL, throughout the file.
27559 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27560 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27561 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27562 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27563
27564 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27565
27566 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27567 sysdeps/ieee754/ldbl-128ibm.
27568 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27569 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27570 of including it. Keep _Float128 and L() intact. These will be
27571 reviewed by a separate patch.
27572 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27573 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27574 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27575 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27576
27577 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27578
27579 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27580 (__finitef128): Define to __redirect___finitef128.
27581 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27582 (__isinff128): Define to __redirect___isinff128.
27583 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27584 (__isnanf128): Define to __redirect___isnanf128.
27585
27586 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27587
27588 * sysdeps/powerpc/powerpc64le/Makefile
27589 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27590 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27591
27592 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27593 Carlos O'Donell <carlos@redhat.com>
27594
27595 [BZ #22180]
27596 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27597 * stdlib/test-dlclose-exit-race.c: New file.
27598 * stdlib/test-dlclose-exit-race-helper.c: New file.
27599 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27600
27601 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27602
27603 * crypt/Banner: Remove file.
27604 * nptl/Banner: Likewise.
27605 * resolv/Banner: Likewise.
27606 * soft-fp/Banner: Likewise.
27607 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27608 ($(objpfx)version.d): Remove dependency on banner.h.
27609 ($(objpfx)version.os): Likewise.
27610 * nptl/version.c (banner): Do not include banner.h.
27611 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27612 Jelinek and BIND code.
27613
27614 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27615 Carlos O'Donell <carlos@redhat.com>
27616
27617 * support/xdlfcn.h: New file.
27618 * support/xdlfcn.c: New file.
27619 * support/Makefile (libsupport-routines): Add xdlfcn.
27620 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27621
27622 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27623
27624 [BZ #20142]
27625 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27626 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27627 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27628 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27629 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27630 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27631 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27632 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27633
27634 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27635 Ricky Zhou <rickyz@google.com>
27636 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27637
27638 [BZ #14333]
27639 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27640 Remove atomics.
27641 (__new_exitfn): Fail registration when we finished at_exit processing.
27642 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27643 * stdlib/on_exit.c (__on_exit): Likewise.
27644 * stdlib/exit.c (__exit_funcs_done): New variable.
27645 (__run_exit_handlers): Use __exit_funcs_lock.
27646 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27647 declarations.
27648 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27649 (test-cxa_atexit-race, test-on_exit-race): New tests.
27650 * stdlib/test-atexit-race-common.c: New file.
27651 * stdlib/test-atexit-race.c: New file.
27652 * stdlib/test-at_quick_exit-race.c: New file.
27653 * stdlib/test-cxa_atexit-race.c: New file.
27654 * stdlib/test-on_exit-race.c: New file.
27655
27656 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27657
27658 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27659 * benchtests/exp2f-inputs: Copy of expf-inputs.
27660 * benchtests/log2f-inputs: Copy of logf-inputs.
27661
27662 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27663
27664 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27665 Explicitly take address of first element of array arguments in
27666 call to INLINE_SYSCALL.
27667
27668 2017-09-19 Andreas Schwab <schwab@suse.de>
27669
27670 [BZ #22134]
27671 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27672 execveat first.
27673 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27674 unimplemented.
27675 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27676 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27677 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27678 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27679 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27680 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27681 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27682 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27683 * posix/Makefile (tests): Add tst-fexecve.
27684 * posix/tst-fexecve.c: New file.
27685
27686 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27687
27688 * benchtests/Makefile: Add logf benchmark.
27689 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27690
27691 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27692
27693 * benchtests/Makefile: Add expf benchmark.
27694 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27695
27696 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27697
27698 * csu/Makefile: Add -funwind-tables to libc-start.c.
27699 * debug/Makefile: Add -funwind-tables to backtrace.c.
27700 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27701 * sysdeps/arm/Makefile: Likewise.
27702 * sysdeps/i386/Makefile: Likewise.
27703 * sysdeps/m68k/Makefile: Likewise.
27704 * sysdeps/mips/Makefile: Likewise.
27705 * sysdeps/nios2/Makefile: Likewise.
27706 * sysdeps/sh/Makefile: Likewise.
27707 * sysdeps/sparc/Makefile: Likewise.
27708
27709 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27710
27711 * benchtests/Makefile (bench-math): Add trunc and truncf.
27712 (CFLAGS-bench-trunc.c): New variable.
27713 (CFLAGS-bench-truncf.c): Likewise.
27714 * benchtests/trunc-inputs: New file.
27715 * benchtests/truncf-inputs: Likewise.
27716
27717 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27718
27719 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27720
27721 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27722
27723 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27724 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27725 redefine.
27726 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27727 (exp10l): Define as weak alias.
27728 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27729 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27730 and redefine.
27731 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27732 (remainderl): Define as weak alias.
27733
27734 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27735 (fmal): Define using libm_alias_ldouble.
27736 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27737 (acoshl): Define using libm_alias_ldouble.
27738 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27739 (acosl): Define using libm_alias_ldouble.
27740 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27741 (asinl): Define using libm_alias_ldouble.
27742 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27743 (atan2l): Define using libm_alias_ldouble.
27744 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27745 (atanhl): Define using libm_alias_ldouble.
27746 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27747 (coshl): Define using libm_alias_ldouble.
27748 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27749 (exp10l): Define using libm_alias_ldouble.
27750 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27751 (exp2l): Define using libm_alias_ldouble.
27752 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27753 (expl): Define using libm_alias_ldouble.
27754 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27755 (fmodl): Define using libm_alias_ldouble.
27756 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27757 (hypotl): Define using libm_alias_ldouble.
27758 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27759 (j0l): Define using libm_alias_ldouble.
27760 (y0l): Likewise.
27761 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27762 (j1l): Define using libm_alias_ldouble.
27763 (y1l): Likewise.
27764 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27765 (jnl): Define using libm_alias_ldouble.
27766 (ynl): Likewise.
27767 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27768 (log10l): Define using libm_alias_ldouble.
27769 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27770 (log2l): Define using libm_alias_ldouble.
27771 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27772 (logl): Define using libm_alias_ldouble.
27773 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27774 (powl): Define using libm_alias_ldouble.
27775 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27776 (remainderl): Define using libm_alias_ldouble.
27777 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27778 (sinhl): Define using libm_alias_ldouble.
27779 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27780 (sqrtl): Define using libm_alias_ldouble.
27781 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27782 (tgammal): Define using libm_alias_ldouble.
27783 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27784 (exp10l): Do not use long_double_symbol here.
27785 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27786 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27787 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27788 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27789 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27790 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27791 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27792 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27793 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27794 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27795 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27796 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27797 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27798 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27799 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27800 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27801 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27802 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27803 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27804 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27805 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27806 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27807
27808 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27809
27810 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27811 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27812
27813 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27814
27815 * io/read.c (read): Add libc_hidden_weak.
27816 * sysdeps/mach/hurd/read.c (read): Likewise.
27817 * io/write.c (write): Likewise.
27818 * sysdeps/mach/hurd/write.c (write): Likewise.
27819 * io/pread64.c (__pread64): Likewise.
27820 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27821 * posix/pread64.c (__pread64): Add libc_hidden_def.
27822
27823 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27824
27825 * benchtests/scripts/compare_strings.py: New option -g.
27826 (draw_graph): Print a message that a graph is being generated.
27827 (process_results): Generate graph only if -g is passed.
27828 (main): Process option -g.
27829
27830 * benchtests/scripts/compare_strings.py (process_results):
27831 Better spacing for output.
27832
27833 * benchtests/scripts/compare_strings.py: Use argparse.
27834 * benchtests/README: Document existence of compare_strings.py.
27835
27836 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27837
27838 * math/s_fma.c: Include <libm-alias-double.h>.
27839 (fma): Define using libm_alias_double.
27840 * math/s_nextafter.c: Include <libm-alias-double.h>.
27841 (nextafter): Define using libm_alias_double.
27842 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27843 (acos): Define using libm_alias_double.
27844 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27845 (aocsh): Define using libm_alias_double.
27846 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27847 (asin): Define using libm_alias_double.
27848 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27849 (atan2): Define using libm_alias_double.
27850 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27851 (atanh): Define using libm_alias_double.
27852 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27853 (cosh): Define using libm_alias_double.
27854 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27855 (exp10): Define using libm_alias_double.
27856 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27857 (exp2): Define using libm_alias_double.
27858 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27859 (exp): Define using libm_alias_double.
27860 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27861 (fmod): Define using libm_alias_double.
27862 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27863 (hypot): Define using libm_alias_double.
27864 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27865 (j0): Define using libm_alias_double.
27866 (y0): Likewise.
27867 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27868 (j1): Define using libm_alias_double.
27869 (y1): Likewise.
27870 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27871 (jn): Define using libm_alias_double.
27872 (yn): Likewise.
27873 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27874 (log10): Define using libm_alias_double.
27875 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27876 (log2): Define using libm_alias_double.
27877 * math/w_log_compat.c: Include <libm-alias-double.h>.
27878 (log): Define using libm_alias_double.
27879 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27880 (pow): Define using libm_alias_double.
27881 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27882 (remainder): Define using libm_alias_double.
27883 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27884 (sinh): Define using libm_alias_double.
27885 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27886 (sqrt): Define using libm_alias_double.
27887 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27888 (tgamma): Define using libm_alias_double.
27889 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27890 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27891 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27892 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27893 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27894 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27895 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27896 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27897 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27898 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27899 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27900 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27901 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27902 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27903 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27904 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27905 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27906 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27907 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27908 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27909 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27910 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27911 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27912 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27913 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27914
27915 * math/e_acoshl.c: Remove.
27916 * math/e_acosl.c: Likewise.
27917 * math/e_asinl.c: Likewise.
27918 * math/e_atan2l.c: Likewise.
27919 * math/e_atanhl.c: Likewise.
27920 * math/e_coshl.c: Likewise.
27921 * math/e_expl.c: Likewise.
27922 * math/e_fmodl.c: Likewise.
27923 * math/e_gammal_r.c: Likewise.
27924 * math/e_hypotl.c: Likewise.
27925 * math/e_j0l.c: Likewise.
27926 * math/e_j1l.c: Likewise.
27927 * math/e_jnl.c: Likewise.
27928 * math/e_lgammal_r.c: Likewise.
27929 * math/e_log10l.c: Likewise.
27930 * math/e_log2l.c: Likewise.
27931 * math/e_logl.c: Likewise.
27932 * math/e_powl.c: Likewise.
27933 * math/e_rem_pio2l.c: Likewise.
27934 * math/e_sinhl.c: Likewise.
27935 * math/e_sqrtf128.c: Likewise.
27936 * math/e_sqrtl.c: Likewise.
27937 * math/k_cosl.c: Likewise.
27938 * math/k_sinl.c: Likewise.
27939 * math/k_tanl.c: Likewise.
27940 * math/s_asinhl.c: Likewise.
27941 * math/s_atanl.c: Likewise.
27942 * math/s_cbrtl.c: Likewise.
27943 * math/s_erfl.c: Likewise.
27944 * math/s_expm1l.c: Likewise.
27945 * math/s_log1pl.c: Likewise.
27946 * math/s_tanhl.c: Likewise.
27947
27948 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27949
27950 [BZ #21745]
27951 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27952 [$(subdir) = math] (sysdep_calls): New variable. Has the
27953 previous contents of sysdep_routines, but re-sorted..
27954 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27955 sysdep_calls.
27956 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27957 defined in sysdep_calls and replace by the respective m_* names.
27958 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27959 (compat_symbol): Undefine to avoid duplicated compat symbols in
27960 libc.
27961
27962 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27963
27964 * math/s_fmaf.c: Include <libm-alias-float.h>.
27965 (fmaf): Define using libm_alias_float.
27966 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27967 (acosf): Define using libm_alias_float.
27968 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27969 (acoshf): Define using libm_alias_float.
27970 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27971 (asinf): Define using libm_alias_float.
27972 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27973 (atan2f): Define using libm_alias_float.
27974 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27975 (atanhf): Define using libm_alias_float.
27976 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27977 (coshf): Define using libm_alias_float.
27978 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27979 (exp10f): Define using libm_alias_float.
27980 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27981 (fmodf): Define using libm_alias_float.
27982 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27983 (hypotf): Define using libm_alias_float.
27984 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27985 (j0f): Define using libm_alias_float.
27986 (y0f): Likewise.
27987 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27988 (j1f): Define using libm_alias_float.
27989 (y1f): Likewise.
27990 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27991 (jnf): Define using libm_alias_float.
27992 (ynf): Likewise.
27993 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27994 (log10f): Define using libm_alias_float.
27995 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27996 (log2f): Define using libm_alias_float.
27997 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27998 (logf): Define using libm_alias_float.
27999 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28000 (powf): Define using libm_alias_float.
28001 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28002 (remainderf): Define using libm_alias_float.
28003 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28004 (sinhf): Define using libm_alias_float.
28005 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28006 (sqrtf): Define using libm_alias_float.
28007 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28008 (tgammaf): Define using libm_alias_float.
28009
28010 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28011
28012 * include/math.h (roundeven): Change hidden_proto call to
28013 __roundeven.
28014 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28015 alias.
28016 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28017 (y0): Rename to __y0 and define as weak alias.
28018 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28019 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28020 alias.
28021 (y0f): Rename to __y0f and define as weak alias.
28022 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28023 alias.
28024 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28025 (y1): Rename to __y1 and define as weak alias.
28026 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28027 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28028 alias.
28029 (y1f): Rename to __y1f and define as weak alias.
28030 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28031 alias.
28032 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28033 (yn): Rename to __yn and define as weak alias.
28034 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28035 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28036 alias.
28037 (ynf): Rename to __ynf and define as weak alias.
28038 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28039 (fromfp): Define as weak alias.
28040 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28041 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28042 (fromfpx): Define as weak alias.
28043 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28044 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28045 __getpayload and define as weak alias.
28046 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28047 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28048 __roundeven and define as weak alias.
28049 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28050 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28051 __setpayload.
28052 (setpayload): Define as weak alias.
28053 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28054 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28055 __setpayloadsig.
28056 (setpayloadsig): Define as weak alias.
28057 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28058 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28059 __totalorder and define as weak alias.
28060 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28061 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28062 to __totalordermag and define as weak alias.
28063 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28064 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28065 (ufromfp): Define as weak alias.
28066 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28067 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28068 __ufromfpx.
28069 (ufromfpx): Define as weak alias.
28070 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28071 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28072 Rename to __getpayload and define as weak alias.
28073 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28074 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28075 Rename to __roundeven and define as weak alias.
28076 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28077 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28078 Rename to __totalorder and define as weak alias.
28079 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28080 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28081 (totalordermag): Rename to __totalordermag and define as weak
28082 alias.
28083 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28084 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28085 macro.
28086 (__roundevenl): Likewise.
28087 (__totalorderl): Likewise.
28088 (__totalordermagl): Likewise
28089 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28090 __fromfpf128.
28091 (fromfpf128): Define as weak alias.
28092 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28093 __fromfpxf128.
28094 (fromfpxf128): Define as weak alias.
28095 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28096 __setpayloadf128.
28097 (setpayloadf128): Define as weak alias.
28098 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28099 __setpayloadsigf128.
28100 (setpayloadsigf128): Define as weak alias.
28101 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28102 __ufromfpf128.
28103 (ufromfpf128): Define as weak alias.
28104 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28105 __ufromfpxf128.
28106 (ufromfpxf128): Define as weak alias.
28107 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28108 (fromfpf): Define as weak alias.
28109 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28110 __fromfpxf.
28111 (fromfpxf): Define as weak alias.
28112 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28113 __getpayloadf and define as weak alias.
28114 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28115 __roundevenf and define as weak alias.
28116 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28117 __setpayloadf.
28118 (setpayloadf): Define as weak alias.
28119 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28120 __setpayloadsigf.
28121 (setpayloadsigf): Define as weak alias.
28122 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28123 __totalorderf and define as weak alias.
28124 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28125 Rename to __totalordermagf and define as weak alias.
28126 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28127 __ufromfpf.
28128 (ufromfpf): Define as weak alias.
28129 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28130 __ufromfpxf.
28131 (ufromfpxf): Define as weak alias.
28132 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28133 __fromfpl.
28134 (fromfpl): Define as weak alias.
28135 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28136 __fromfpxl.
28137 (fromfpxl): Define as weak alias.
28138 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28139 to __getpayloadl and define as weak alias.
28140 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28141 __roundevenl and define as weak alias.
28142 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28143 __setpayloadl.
28144 (setpayloadl): Define as weak alias.
28145 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28146 __setpayloadsigl.
28147 (setpayloadsigl): Define as weak alias.
28148 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28149 to __totalorderl and define as weak alias.
28150 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28151 Rename to __totalordermagl and define as weak alias.
28152 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28153 __ufromfpl.
28154 (ufromfpl): Define as weak alias.
28155 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28156 __ufromfpxl.
28157 (ufromfpxl): Define as weak alias.
28158 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28159 __fromfpl.
28160 (fromfpl): Define as weak alias.
28161 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28162 __fromfpxl.
28163 (fromfpxl): Define as weak alias.
28164 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28165 Rename to __getpayloadl and define as weak alias.
28166 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28167 to __roundevenl and define as weak alias. Call __roundeven
28168 instead of roundeven.
28169 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28170 __setpayloadl.
28171 (setpayloadl): Define as weak alias.
28172 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28173 __setpayloadsigl.
28174 (setpayloadsigl): Define as weak alias.
28175 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28176 Rename to __totalorderl and define as weak alias.
28177 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28178 Rename to __totalordermagl and define as weak alias.
28179 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28180 __ufromfpl.
28181 (ufromfpl): Define as weak alias.
28182 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28183 __ufromfpxl.
28184 (ufromfpxl): Define as weak alias.
28185 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28186 __fromfpl.
28187 (fromfpl): Define as weak alias.
28188 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28189 __fromfpxl.
28190 (fromfpxl): Define as weak alias.
28191 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28192 __getpayloadl and define as weak alias.
28193 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28194 __roundevenl and define as weak alias.
28195 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28196 __setpayloadl.
28197 (setpayloadl): Define as weak alias.
28198 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28199 __setpayloadsigl.
28200 (setpayloadsigl): Define as weak alias.
28201 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28202 __totalorderl and define as weak alias.
28203 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28204 Rename to __totalordermagl and define as weak alias.
28205 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28206 __ufromfpl.
28207 (ufromfpl): Define as weak alias.
28208 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28209 __ufromfpxl.
28210 (ufromfpxl): Define as weak alias.
28211
28212 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28213
28214 * benchtests/bench-string.h (realloc_bufs): New function.
28215 (test_init): Call it.
28216 * benchtests/bench-memset-large.c (do_test): Likewise.
28217 * benchtests/bench-memset.c (do_test): Likewise.
28218
28219 * benchtests/bench-memset-large.c: Print output in JSON
28220 format.
28221 * benchtests/bench-memset.c: Likewise.
28222
28223 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28224
28225 [BZ #21084]
28226 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28227 * iconvdata/Makefile: Add IBM858.
28228 * iconvdata/gconv-modules: Likewise.
28229 * iconvdata/tst-tables.sh: Likewise.
28230 * iconvdata/ibm858.c: New file.
28231 * localedata/charmaps/IBM858: Likewise.
28232
28233 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28234
28235 [BZ #22023]
28236 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28237 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28238
28239 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28240
28241 [BZ #22112]
28242 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28243 and add tel_int_fmt.
28244
28245 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28246
28247 * sysdeps/generic/libm-alias-float128.h: New file.
28248 * sysdeps/generic/math-type-macros-float128.h: Include
28249 <libm-alias-float128.h>.
28250 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28251
28252 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28253
28254 * sysdeps/generic/libm-alias-ldouble.h: New file.
28255 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28256 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28257 * sysdeps/generic/math-type-macros-ldouble.h: Include
28258 <libm-alias-ldouble.h>.
28259 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28260 libm_alias_ldouble.
28261
28262 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28263
28264 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28265 * math/w_exp_compat.c: ... here.
28266 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28267 * math/w_expf_compat.c: ... here.
28268 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28269 * math/w_expl_compat.c: ... here.
28270 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28271 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28272 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28273 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28274
28275 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28276
28277 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28278 redefine.
28279 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28280 macro.
28281 (ldexpl): Only define as compat symbol for libc, not libm.
28282 (scalbnl): Define as compat symbol for libc here.
28283 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28284 define for [IS_IN (libc)].
28285 (__ldexpl_2): Remove alias.
28286 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28287 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28288 name in long_double_symbol call.
28289 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28290 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28291 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28292 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28293 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28294 Remove macro.
28295 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28296 Define as compat symbol.
28297
28298 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28299
28300 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28301 * sysdeps/unix/sysv/linux/alpha/Makefile
28302 [$(subdir) = csu] (sysdep_routines): Remove rule.
28303
28304 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28305
28306 * sysdeps/generic/libm-alias-double.h: New file.
28307 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28308 * sysdeps/generic/math-type-macros-double.h: Include
28309 <libm-alias-double.h>.
28310 [declare_mgen_alias] (declare_mgen_alias): Define to use
28311 libm_alias_double.
28312 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28313 (M_LIBM_NEED_COMPAT): Remove macro.
28314 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28315 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28316 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28317 code.
28318 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28319 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28320 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28321 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28322 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28323 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28324 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28325 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28326 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28327 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28328 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28329 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28330 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28331 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28332 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28333 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28334 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28335 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28336 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28337 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28338 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28339 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28340 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28341 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28342 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28343 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28344 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28345 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28346 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28347 macro.
28348 (declare_mgen_alias): New macro.
28349 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28350 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28351 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28352 (M_LIBM_NEED_COMPAT): Remove macro.
28353 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28354 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28355 <first-versions.h>.
28356 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28357 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28358
28359 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28360
28361 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28362 (declare_mgen_alias_2): Remove.
28363 * sysdeps/generic/math-type-macros-double.h
28364 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28365 Likewise.
28366 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28367 alias.
28368 (ldexp): Define with declare_mgen_alias.
28369 (scalbn): Likewise.
28370
28371 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28372
28373 * grp/initgroups.c: Include config.h.
28374 (DEFAULT_CONFIG): New macro.
28375 (internal_getgrouplist): Use DEFAULT_CONFIG.
28376 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28377 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28378 (DEFAULT_DEFCONFIG): New macro.
28379 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28380 * nss/grp-lookup.c: Include config.h
28381 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28382 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28383 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28384 * manual/nss.texi: Update default values section.
28385
28386 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28387
28388 [BZ #21967]
28389 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28390 New.
28391 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28392 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28393 Handle MathVec_Prefer_No_AVX512.
28394 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28395 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28396 is set.
28397
28398 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28399
28400 * posix/sched_primax.c (__sched_get_priority_max): Add
28401 libc_hidden_def.
28402 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28403 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28404 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28405 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28406 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28407 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28408 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28409 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28410 Add aliases.
28411
28412 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28413
28414 * sysdeps/generic/libm-alias-float.h: New file.
28415 * sysdeps/generic/math-type-macros-float.h: Include
28416 <libm-alias-float.h>.
28417 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28418
28419 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28420
28421 [BZ #22093]
28422 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28423 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28424 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28425 (HWCAP_IMPORTANT): Likewise.
28426 (HWCAP_X86_64): New enum.
28427 (HWCAP_X86_AVX512_1): Updated.
28428 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28429 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28430 (modules-names): Add x86_64/tst-x86_64mod-1.
28431 (LDFLAGS-tst-x86_64mod-1.so): New.
28432 ($(objpfx)tst-x86_64-1): Likewise.
28433 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28434 (tst-x86_64-1-clean): Likewise.
28435 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28436 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28437
28438 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28439
28440 * po/sv.po: Update translations.
28441 * po/fr.po: Likewise.
28442
28443 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28444
28445 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28446 seconds.
28447 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28448 seconds.
28449 * elf/rtld-Rules: Fix $(error) use.
28450
28451 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28452
28453 [BZ #14925]
28454 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28455 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28456 * localedata/locales/bn_BD: “Bengali” was still used in some
28457 comments. Change it to “Bangla”.
28458
28459 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28460
28461 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28462
28463 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28464
28465 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28466 thunderx2t99p1 to list of cpu names.
28467 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28468 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28469
28470 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28471
28472 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28473 Use strcmp instead of tunable_is_name.
28474
28475 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28476
28477 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28478 (F_GET_RW_HINT): New macro.
28479 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28480 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28481 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28482 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28483 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28484 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28485 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28486 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28487 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28488
28489 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28490 (F_ADD_SEALS): New macro.
28491 [__USE_GNU] (F_GET_SEALS): Likewise.
28492 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28493 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28494 [__USE_GNU] (F_SEAL_GROW): Likewise.
28495 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28496
28497 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28498
28499 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28500 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28501 * posix/glob_internal.h (__glob_pattern_type):
28502 * posix/glob.c (glob):
28503 * posix/glob_pattern_p.c (__glob_pattern_p):
28504 Use them.
28505
28506 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28507 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28508 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28509 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28510 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28512 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28513 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28514 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28515 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28516 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28517 * sysdeps/wordsize-64/glob.c: Likewise.
28518 * sysdeps/wordsize-64/glob64.c: Likewise.
28519 * sysdeps/wordsize-64/globfree.c: Likewise.
28520 * sysdeps/wordsize-64/globfree64.c: Likewise.
28521 * sysdeps/unix/sysv/linux/glob.c: New file.
28522 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28523 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28524 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28525 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28526 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28527 adds !GLOB_NO_OLD_VERSION as an extra condition.
28528 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28529 using relative path instead of absolute one.
28530 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28531 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28532 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28533 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28534 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28535 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28536
28537 [BZ #1062]
28538 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28539 (glob): Use the same scratch buffer for both getlogin_r and
28540 getpwnam_r. Don’t require preallocation of the login name. This
28541 simplifies storage allocation, and corrects the handling of
28542 long login names.
28543
28544 [BZ #1062]
28545 * posix/glob.c (glob): Port recent patches to platforms
28546 lacking getpwnam_r.
28547 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28548 returns an error number rather than setting errno.
28549
28550 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28551 instead of GCC extension.
28552 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28553 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28554 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28555
28556 [BZ #866]
28557 [BZ #1062]
28558 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28559 * posix/bug-glob1.c: Remove file.
28560 * posix/tst-glob_symlinks.c: New file.
28561 * posix/glob.c (__lstat64): New macro.
28562 (is_dir): New function.
28563 (glob, glob_in_dir): Match symlinks even if they are dangling.
28564 (link_stat, link_exists_p): Remove. All uses removed.
28565
28566 [BZ #1062]
28567 [BZ #19971]
28568 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28569 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28570 All uses removed.
28571
28572 [BZ #1062]
28573 CVE-2017-15671
28574 * posix/Makefile (routines): Add globfree, globfree64, and
28575 glob_pattern_p.
28576 * posix/flexmember.h: New file.
28577 * posix/glob_internal.h: Likewise.
28578 * posix/glob_pattern_p.c: Likewise.
28579 * posix/globfree.c: Likewise.
28580 * posix/globfree64.c: Likewise.
28581 * sysdeps/gnu/globfree64.c: Likewise.
28582 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28583 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28584 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28585 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28586 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28587 * sysdeps/wordsize-64/globfree.c: Likewise.
28588 * sysdeps/wordsize-64/globfree64.c: Likewise.
28589 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28590 [NDEBUG): Remove comments.
28591 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28592 (dirent_type): New type. Use uint_fast8_t not
28593 uint8_t, as C99 does not require uint8_t.
28594 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28595 (struct readdir_result): Use dirent_type. Do not define skip_entry
28596 unless it is needed; this saves a byte on platforms lacking d_ino.
28597 (readdir_result_type, readdir_result_skip_entry):
28598 New functions, replacing ...
28599 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28600 these functions, which were removed. This makes the callers
28601 easier to read. All callers changed.
28602 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28603 (size_add_wrapv, glob_use_alloca): New static functions.
28604 (glob, glob_in_dir): Check for size_t overflow in several places,
28605 and fix some size_t checks that were not quite right.
28606 Remove old code using SHELL since Bash no longer
28607 uses this.
28608 (glob, prefix_array): Separate MS code better.
28609 (glob_in_dir): Remove old Amiga and VMS code.
28610 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28611 separate files.
28612 (glob_in_dir): Do not rely on undefined behavior in accessing
28613 struct members beyond their bounds. Use a flexible array member
28614 instead
28615 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28616 0/1. Caller changed.
28617 (glob): Fix memory leaks.
28618 * posix/glob64 (globfree64): Move to separate file.
28619 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28620 (globfree64): Remove hidden alias.
28621 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28622 oldglob.
28623 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28624 separate file.
28625 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28626 define.
28627 Move compat code to separate file.
28628 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28629 separate file.
28630
28631 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28632
28633 * resolv/tst-resolv-qtypes.c (domain): Changed to
28634 "const char domain[] =".
28635
28636 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28637
28638 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28639 version to 3.1.6.
28640
28641 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28642 (TCP_MD5SIG_EXT): Likewise.
28643 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28644 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28645 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28646
28647 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28648
28649 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28650
28651 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28652
28653 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28654
28655 [BZ #22100]
28656 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28657
28658 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28659
28660 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28661 before assuming that the file is empty. Avoid testing buffer content
28662 when nread == 0.
28663
28664 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28665
28666 [BZ #18858]
28667 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28668 Remove define.
28669 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28670 Likewise.
28671 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28672 Likewise.
28673 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28674 Likewise.
28675 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28676 Likewise.
28677 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28678 Likewise.
28679 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28680 Likewise.
28681
28682 2017-09-06 Florian Weimer <fweimer@redhat.com>
28683
28684 * malloc/dynarray_emplace_enlarge.c
28685 (__libc_dynarray_emplace_enlarge): Add missing else.
28686
28687 2017-09-06 Florian Weimer <fweimer@redhat.com>
28688
28689 [BZ #22096]
28690 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28691 case of failure to obtain the global conf object.
28692
28693 2017-09-06 Florian Weimer <fweimer@redhat.com>
28694
28695 [BZ #22095]
28696 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28697 dynarray allocation failure.
28698
28699 2017-09-06 Florian Weimer <fweimer@redhat.com>
28700
28701 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28702 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28703 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28704 New functions.
28705 (response): Call them. Add 'p', '6' flag processing.
28706 (test_reverse): New function.
28707 (test_get2_any): Call it.
28708 (test_no_inet6): Add 'p' test.
28709 (test_inet6): Likewise.
28710
28711 2017-09-06 Florian Weimer <fweimer@redhat.com>
28712
28713 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28714 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28715 the QNAME.
28716 (test_gai): Adjust query names. Add additional tests.
28717 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28718 test_get2. Adjust query names. Add additional tests.
28719 (test_no_inet6): New function, extracted from threadfunc.
28720 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28721 Add additional tests.
28722
28723 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28724
28725 [BZ #22070]
28726 * localedata/unicode-gen/utf8_gen.py: Set the width for
28727 characters with Prepended_Concatenation_Mark property to 1
28728 * localedata/charmaps/UTF-8: Updated using the improved script.
28729
28730 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28731
28732 [BZ #21750]
28733 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28734 use the range notation for all ranges of neighbouring characters
28735 with the same width.
28736
28737 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28738
28739 * sysdeps/generic/math-type-macros-double.h: Include
28740 <math-svid-compat.h>.
28741 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28742 * sysdeps/generic/math-type-macros-float.h: Include
28743 <math-svid-compat.h>.
28744 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28745 * sysdeps/generic/math-type-macros-ldouble.h: Include
28746 <math-svid-compat.h>.
28747 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28748 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28749 condition.
28750 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28751 * math/w_acosf_compat.c: Likewise.
28752 * math/w_acosh_compat.c: Likewise.
28753 * math/w_acoshf_compat.c: Likewise.
28754 * math/w_acoshl_compat.c: Likewise.
28755 * math/w_acosl_compat.c: Likewise.
28756 * math/w_asin_compat.c: Likewise.
28757 * math/w_asinf_compat.c: Likewise.
28758 * math/w_asinl_compat.c: Likewise.
28759 * math/w_atan2_compat.c: Likewise.
28760 * math/w_atan2f_compat.c: Likewise.
28761 * math/w_atan2l_compat.c: Likewise.
28762 * math/w_atanh_compat.c: Likewise.
28763 * math/w_atanhf_compat.c: Likewise.
28764 * math/w_atanhl_compat.c: Likewise.
28765 * math/w_cosh_compat.c: Likewise.
28766 * math/w_coshf_compat.c: Likewise.
28767 * math/w_coshl_compat.c: Likewise.
28768 * math/w_exp10_compat.c: Likewise.
28769 * math/w_exp10f_compat.c: Likewise.
28770 * math/w_exp10l_compat.c: Likewise.
28771 * math/w_exp2_compat.c: Likewise.
28772 * math/w_exp2f_compat.c: Likewise.
28773 * math/w_exp2l_compat.c: Likewise.
28774 * math/w_fmod_compat.c: Likewise.
28775 * math/w_fmodf_compat.c: Likewise.
28776 * math/w_fmodl_compat.c: Likewise.
28777 * math/w_hypot_compat.c: Likewise.
28778 * math/w_hypotf_compat.c: Likewise.
28779 * math/w_hypotl_compat.c: Likewise.
28780 * math/w_j0_compat.c: Likewise.
28781 * math/w_j0f_compat.c: Likewise.
28782 * math/w_j0l_compat.c: Likewise.
28783 * math/w_j1_compat.c: Likewise.
28784 * math/w_j1f_compat.c: Likewise.
28785 * math/w_j1l_compat.c: Likewise.
28786 * math/w_jn_compat.c: Likewise.
28787 * math/w_jnf_compat.c: Likewise.
28788 * math/w_jnl_compat.c: Likewise.
28789 * math/w_lgamma_r_compat.c: Likewise.
28790 * math/w_lgammaf_r_compat.c: Likewise.
28791 * math/w_lgammal_r_compat.c: Likewise.
28792 * math/w_log10_compat.c: Likewise.
28793 * math/w_log10f_compat.c: Likewise.
28794 * math/w_log10l_compat.c: Likewise.
28795 * math/w_log2_compat.c: Likewise.
28796 * math/w_log2f_compat.c: Likewise.
28797 * math/w_log2l_compat.c: Likewise.
28798 * math/w_log_compat.c: Likewise.
28799 * math/w_logf_compat.c: Likewise.
28800 * math/w_logl_compat.c: Likewise.
28801 * math/w_pow_compat.c: Likewise.
28802 * math/w_powf_compat.c: Likewise.
28803 * math/w_powl_compat.c: Likewise.
28804 * math/w_remainder_compat.c: Likewise.
28805 * math/w_remainderf_compat.c: Likewise.
28806 * math/w_remainderl_compat.c: Likewise.
28807 * math/w_sinh_compat.c: Likewise.
28808 * math/w_sinhf_compat.c: Likewise.
28809 * math/w_sinhl_compat.c: Likewise.
28810 * math/w_sqrt_compat.c: Likewise.
28811 * math/w_sqrtf_compat.c: Likewise.
28812 * math/w_sqrtl_compat.c: Likewise.
28813 * math/w_tgamma_compat.c: Likewise.
28814 * math/w_tgammaf_compat.c: Likewise.
28815 * math/w_tgammal_compat.c: Likewise.
28816 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28817 [LIBM_SVID_COMPAT].
28818 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28819 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28820 [LIBM_SVID_COMPAT].
28821 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28822 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28823 [LIBM_SVID_COMPAT].
28824 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28825 * sysdeps/i386/fpu/w_sqrt.c: New file.
28826 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28827 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28828 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28829 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28830 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28831 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28832 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28833 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28834 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28835 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28836 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28837 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28838 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28839 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28840 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28841 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28842 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28843 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28844 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28845 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28846 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28847 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28848 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28849 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28850 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28851 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28852 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28853 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28854 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28855 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28856 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28857 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28858 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28859 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28860 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28861 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28862 * sysdeps/ia64/fpu/w_log.c: Likewise.
28863 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28864 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28865 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28866 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28867 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28868 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28869 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28870 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28871 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28872 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28873 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28874 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28875 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28876 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28877 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28878 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28879 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28880 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28881 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28882 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28883 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28884 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28885 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28886 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28887 [LIBM_SVID_COMPAT].
28888 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28889 * sysdeps/ieee754/k_standard.c: Likewise.
28890 * sysdeps/ieee754/k_standardf.c: Likewise.
28891 * sysdeps/ieee754/k_standardl.c: Likewise.
28892 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28893 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28894 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28895 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28896 long_double_symbol call on [LIBM_SVID_COMPAT].
28897 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28898 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28899 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28900 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28901 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28902 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28903 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28904 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28905 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28906 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28907 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28908 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28909 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28910 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28911 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28912 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28913 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28914 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28915 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28916 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28917 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28918 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28919
28920 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28921
28922 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28923 * malloc/tst-mallocstate.c: Convert from test-skeleton
28924 to test-driver. Ifdef code using TEST_COMPAT macro.
28925 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28926 * math/test-matherr.c: Likewise.
28927
28928 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28929
28930 [BZ #22086]
28931 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28932 comparing word with byte-swapped constant.
28933
28934 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28935
28936 [BZ #20498]
28937 * locale/iso-639.def: add Miskito.
28938 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28939 * localedata/locales/miq_NI: New file.
28940
28941 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28942
28943 [BZ #18822]
28944 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28945 (__mkdir): Likewise.
28946 * io/chmod.c (__chmod): Add libc_hidden_def.
28947 * io/mkdir.c (__mkdir): Likewise.
28948 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28949 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28950 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28951 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28952
28953 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28954
28955 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28956 version to 4.13.
28957
28958 [BZ #22082]
28959 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28960 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28961
28962 2017-09-04 Florian Weimer <fweimer@redhat.com>
28963
28964 * math/math.h: Issue warning if log is defined.
28965
28966 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28967
28968 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28969 kernel version to 4.13.
28970
28971 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28972
28973 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28974 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28975 parameter.
28976 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28977 just <bits/types.h>.
28978 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28979 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28980 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28981 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28982 * misc/preadv2.c: Include <errno.h>.
28983 * misc/preadv64v2.c: Include <errno.h>.
28984 * misc/pwritev2.c: Include <errno.h>.
28985 * misc/pwritev64v2.c: Include <errno.h>.
28986 * sysdeps/posix/preadv2.c: Include <errno.h>.
28987 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28988 Fix <unistd.h> inclusion.
28989 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28990 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28991 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28992 __strtoul_internal): New functions.
28993 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28994 * sysdeps/posix/system.c: Include <sigsetops.h>.
28995 * sysdeps/mach/hurd/i386/Makefile
28996 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28997 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28998 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28999 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29000 __feraiseexcept_renamed to feraiseexcept instead of
29001 __GI_feraiseexcept.
29002 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29003 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29004 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29005 RWF_NOWAIT): Define to 0 if undefined already.
29006 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29007 boils down to 0.
29008 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29009 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29010
29011 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29012
29013 * manual/math.texi (pow10): Do not document.
29014 (pow10f): Likewise.
29015 (pow10l): Likewise.
29016 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29017 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29018 * math/libm-test-exp10.inc (pow10_test): Remove.
29019 (do_test): Do not call pow10.
29020 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29021 [NO_LONG_DOUBLE] (pow10l): Likewise.
29022 * math/w_exp10f_compat.c (pow10f): Likewise.
29023 * math/w_exp10l_compat.c (pow10l): Likewise.
29024 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29025 (pow10): Make into compat symbol.
29026 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29027 (pow10f): Make into compat symbol.
29028 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29029 (pow10l): Make into compat symbol.
29030 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29031 pow10.
29032 (CFLAGS-nldbl-pow10.c): Remove variable..
29033 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29034 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29035 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29036 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29037 Undefine and redefine.
29038 (pow10l): Make into compat symbol.
29039 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29040 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29041 * sysdeps/arm/libm-test-ulps: Likewise.
29042 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29043 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29044 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29045 * sysdeps/microblaze/libm-test-ulps: Likewise.
29046 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29047 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29048 * sysdeps/nios2/libm-test-ulps: Likewise.
29049 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29050 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29051 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29052 * sysdeps/sh/libm-test-ulps: Likewise.
29053 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29054 * sysdeps/tile/libm-test-ulps: Likewise.
29055 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29056
29057 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29058
29059 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29060
29061 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29062
29063 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29064 "../ChangeLog.old/ChangeLog.8".
29065 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29066 "../ChangeLog.old/ChangeLog.14".
29067
29068 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29069
29070 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29071 Threads Library.
29072
29073 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29074
29075 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29076
29077 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29078
29079 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29080 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29081
29082 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29083
29084 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29085 32 atexit handlers.
29086
29087 2017-09-01 Zack Weinberg <zackw@panix.com>
29088
29089 * math/math.h (HUGE_VAL): Improve commentary.
29090
29091 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29092 Andreas Schwab <schwab@suse.de>
29093
29094 [BZ #21530]
29095 * include/stdio.h (__gen_tempfd): New function.
29096 * stdio-common/Makefile (routines): Add gentempfd.
29097 * stdio-common/gentempfd.c: New file.
29098 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29099 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29100 unnamed file first.
29101
29102 2017-09-01 Florian Weimer <fweimer@redhat.com>
29103
29104 [BZ #21915]
29105 [BZ #21922]
29106 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29107 result to determine success or failure, not the errno value.
29108 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29109 (tst-nss-files-hosts-erange): Link with -ldl.
29110 * nss/tst-nss-files-hosts-erange.c: New file.
29111 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29112 (do_test): Add NO_DATA tests.
29113 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29114 (do_test): Call it.
29115
29116 2017-09-01 Florian Weimer <fweimer@redhat.com>
29117
29118 [BZ #21922]
29119 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29120 coming from gethostbyname2_r.
29121
29122 2017-09-01 Florian Weimer <fweimer@redhat.com>
29123
29124 * support/namespace.h (struct support_chroot_configuration): Add
29125 hosts, host_conf.
29126 (struct support_chroot): Add path_hosts, path_host_conf.
29127 * support/support_chroot.c (write_file): New function.
29128 (support_chroot_create): Call it to process /etc/resolv.conf,
29129 /etc/hosts, /etc/host.conf.
29130 (support_chroot_free): Update.
29131
29132 2017-09-01 Florian Weimer <fweimer@redhat.com>
29133
29134 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29135 status indicates it is set.
29136
29137 2017-09-01 Florian Weimer <fweimer@redhat.com>
29138
29139 [BZ #20532]
29140 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29141 function lookup failures more reliable.
29142
29143 2017-09-01 Florian Weimer <fweimer@redhat.com>
29144
29145 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29146 (getcanonname): Likewise.
29147 (gaih_inet): Likewise.
29148
29149 2017-09-01 Florian Weimer <fweimer@redhat.com>
29150
29151 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29152 (getcanonname): Likewise.
29153 (gaih_inet): Likewise.
29154
29155 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29156 Richard Henderson <rth@twiddle.net>
29157
29158 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29159 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29160 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29161 (IREG_SIZE, OREG_SIZE): New macros.
29162 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29163 (IREG_SIZE, OREG_SIZE): New macros.
29164 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29165 (IREG_SIZE): New macro.
29166 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29167 (IREG_SIZE): New macro.
29168 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29169 New includes.
29170 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29171 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29172 (__CONCATX): Handle exceptions correctly on large values that may
29173 set FE_INVALID.
29174 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29175 Initialize if not already set.
29176 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29177
29178 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29179
29180 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29181 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29182 Likewise.
29183 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29184 Likewise.
29185 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29186 Likewise.
29187 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29188 Likewise.
29189 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29190 Likewise.
29191 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29192 Likewise.
29193 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29194 Likewise.
29195 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29196 (NO_CANCELLATION): Likewise.
29197 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29198 Likewise.
29199 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29200 Likewise.
29201 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29202 Likewise.
29203 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29204 (NO_CANCELLATION): Likewise.
29205 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29206 (NO_CANCELLATION): Likewise.
29207 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29208 Likewise
29209 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29210 Likewise.
29211 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29212 Likewise.
29213 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29214 Likewise.
29215 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29216 hidden prototype.
29217 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29218 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29219
29220 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29221
29222 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29223 in resolver call.
29224
29225 2017-08-31 Florian Weimer <fweimer@redhat.com>
29226
29227 * include/libc-symbols.h (internal_function): Remove.
29228
29229 2017-08-31 Florian Weimer <fweimer@redhat.com>
29230
29231 * stdlib/fmtmsg.c (internal_addseverity): Remove
29232 internal_function.
29233
29234 2017-08-31 Florian Weimer <fweimer@redhat.com>
29235
29236 * stdio-common/printf_fp.c (group_number): Remove
29237 internal_function.
29238 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29239
29240 2017-08-31 Florian Weimer <fweimer@redhat.com>
29241
29242 * posix/fnmatch.c (internal_function): Remove definition.
29243 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29244 * posix/regcomp.c (peek_token, init_word_char)
29245 (duplicate_node_closure, fetch_token, peek_token)
29246 (peek_token_bracket, build_range_exp, build_collating_symbol):
29247 Likewise.
29248 * posix/regex_internal.c (re_string_construct_common)
29249 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29250 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29251 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29252 (re_string_translate_buffer, re_string_reconstruct)
29253 (re_string_peek_byte_case, re_string_fetch_byte_case)
29254 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29255 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29256 (re_node_set_add_intersect, re_node_set_init_union)
29257 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29258 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29259 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29260 (re_acquire_state_context): Likewise.
29261 * posix/regex_internal.h (internal_function): Remove definition.
29262 (re_string_realloc_buffers, build_wcs_buffer)
29263 (build_wcs_upper_buffer, build_upper_buffer)
29264 (re_string_translate_buffer, re_string_context_at)
29265 (re_string_char_size_at, re_string_wchar_at)
29266 (re_string_elem_size_at): Likewise.
29267 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29268 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29269 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29270 (re_search_internal, re_search_2_stub, re_search_stub)
29271 (re_copy_regs, prune_impossible_nodes, check_matching)
29272 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29273 (free_fail_stack_return, sift_states_iter_mb)
29274 (sift_states_backward, build_sifted_states)
29275 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29276 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29277 (check_subexp_limits, sift_states_bkref, merge_state_array)
29278 (find_recover_state, transit_state, merge_state_with_log)
29279 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29280 (transit_state_mb, transit_state_bkref, get_subexp)
29281 (get_subexp_sub, find_subexp_node, check_arrival)
29282 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29283 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29284 (check_node_accept_bytes, find_collation_sequence_value)
29285 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29286 (acquire_init_state_context, check_halt_node_context)
29287 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29288 (sub_epsilon_src_nodes): Likewise.
29289 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29290 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29291 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29292 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29293 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29294 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29295 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29296 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29297 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29298 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29299 (PREADV): Likewise.
29300 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29301 (PREADV): Likewise.
29302 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29303 (PWRITEV): Likewise.
29304 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29305 (PWRITEV): Likewise.
29306 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29307 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29308
29309 2017-08-31 Florian Weimer <fweimer@redhat.com>
29310
29311 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29312 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29313 Remove internal_function.
29314 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29315 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29316 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29317 (__deallocate_stack, __libc_pthread_init)
29318 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29319 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29320 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29321 Likewise.
29322 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29323 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29324 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29325 Likewise.
29326 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29327 (__pthread_mutex_unlock_usercnt): Likewise.
29328
29329 2017-08-31 Florian Weimer <fweimer@redhat.com>
29330
29331 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29332 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29333 (fts_safe_changedir): Remove internal_function.
29334 * io/ftw.c (internal_function): Remove definition.
29335 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29336
29337 2017-08-31 Florian Weimer <fweimer@redhat.com>
29338
29339 * inet/deadline.c (__deadline_current_time)
29340 (__deadline_from_timeval, __deadline_to_ms): Remove
29341 internal_function.
29342 * inet/getnameinfo.c (nrl_domainname): Likewise.
29343 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29344 * inet/inet6_option.c (add_pad): Likewise.
29345 * inet/net-internal.h (__deadline_current_time)
29346 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29347 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29348 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29349 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29350
29351 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29352
29353 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29354 include <bits/nan.h>.
29355 * math/Makefile (headers): Remove bits/nan.h.
29356 * bits/nan.h: Remove.
29357 * sysdeps/ieee754/bits/nan.h: Likewise.
29358 * sysdeps/mips/bits/nan.h: Likewise.
29359
29360 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29361 not include <bits/inf.h>.
29362 * math/Makefile (headers): Remove bits/inf.h.
29363 * bits/inf.h: Remove.
29364 * sysdeps/ieee754/bits/inf.h: Likewise.
29365
29366 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29367 bits/huge_vall.h or bits/huge_val_flt128.h.
29368 (HUGE_VAL): Define directly here.
29369 [__USE_ISOC99] (HUGE_VALF): Likewise.
29370 [__USE_ISOC99] (HUGE_VALL): Likewise.
29371 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29372 (HUGE_VAL_F128): Likewise.
29373 * math/Makefile (headers): Remove bits/huge_val.h,
29374 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29375 * bits/huge_val.h: Remove.
29376 * bits/huge_val_flt128.h: Likewise.
29377 * bits/huge_valf.h: Likewise.
29378 * bits/huge_vall.h: Likewise.
29379 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29380 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29381 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29382 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29383 * sysdeps/sh/bits/huge_val.h: Likewise.
29384 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29385 * sysdeps/x86/bits/huge_vall.h: Likewise.
29386
29387 2017-08-31 Florian Weimer <fweimer@redhat.com>
29388
29389 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29390 internal_function.
29391 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29392 Likewise.
29393 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29394 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29395 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29396 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29397 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29398 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29399 * elf/dl-libc.c (dlerror_run): Likewise.
29400 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29401 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29402 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29403 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29404 Likewise.
29405 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29406 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29407 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29408 * elf/dl-profile.c (_dl_start_profile): Likewise.
29409 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29410 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29411 Likewise.
29412 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29413 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29414 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29415 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29416 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29417 (_dl_allocate_tls_storage): Likewise.
29418 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29419 (_dl_check_all_versions): Likewise.
29420 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29421 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29422 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29423 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29424 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29425 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29426 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29427 internal_function from __dl_start.
29428 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29429 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29430 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29431 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29432 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29433 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29434 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29435 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29436 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29437 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29438 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29439 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29440 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29441 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29442 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29443 Likewise.
29444 (struct rtld_global_ro): Remove internal_function from the
29445 _dl_lookup_symbol_x member.
29446 (_dl_symbol_value): Remove. No longer defined anywhere.
29447 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29448 internal_function.
29449 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29450 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29451 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29452 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29453 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29454 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29455 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29456 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29457 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29458 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29459 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29460 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29461
29462 2017-08-31 Florian Weimer <fweimer@redhat.com>
29463
29464 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29465 Remove internal_function.
29466 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29467 Likewise.
29468 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29469 Likewise.
29470
29471 2017-08-31 Florian Weimer <fweimer@redhat.com>
29472
29473 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29474 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29475 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29476
29477 2017-08-31 Florian Weimer <fweimer@redhat.com>
29478
29479 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29480 (__gai_enqueue_request): Remove internal_function.
29481 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29482 (__gai_remove_request, __gai_notify, __gai_notify_only)
29483 (__gai_sigqueue): Likewise.
29484 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29485 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29486 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29487 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29488 Likewise.
29489
29490 2017-08-31 Florian Weimer <fweimer@redhat.com>
29491
29492 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29493 * include/dirent.h (__opendirat, __getdents, __getdents64)
29494 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29495 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29496 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29497 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29498 Likewise.
29499 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29500
29501 2017-08-31 Florian Weimer <fweimer@redhat.com>
29502
29503 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29504 internal_function.
29505 (GETCWD_RETURN_TYPE): Likewise.
29506
29507 2017-08-31 Florian Weimer <fweimer@redhat.com>
29508
29509 * include/time.h (__tz_compute, __strptime_internal): Remove
29510 internal_function.
29511 * time/strptime_l.c (__strptime_internal): Likewise.
29512 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29513
29514 2017-08-31 Florian Weimer <fweimer@redhat.com>
29515
29516 * iconv/gconv.c (__gconv): Remove internal_function.
29517 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29518 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29519 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29520 (__gconv_release_cache): Likewise.
29521 * iconv/gconv_close.c (__gconv_close): Likewise.
29522 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29523 (read_conf_file, __gconv_get_path): Likewise.
29524 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29525 (__gconv_release_step, gen_steps, increment_counter)
29526 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29527 (__gconv_close_transform, free_modules_db): Likewise.
29528 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29529 Likewise.
29530 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29531 (__gconv_find_transform, __gconv_lookup_cache)
29532 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29533 (__gconv_close_transform, __gconv_release_cache)
29534 (__gconv_loaded_object, __gconv_release_shlib)
29535 (__gconv_compare_alias): Likewise.
29536 * iconv/gconv_open.c (__gconv_open): Likewise.
29537 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29538 * iconv/iconvconfig.c (add_module): Likewise.
29539 * intl/dcigettext.c (plural_lookup, guess_category_value)
29540 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29541 * intl/eval-plural.h (plural_eval): Likewise.
29542 * intl/finddomain.c (_nl_find_domain): Likewise.
29543 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29544 (_nl_load_domain, _nl_find_msg): Likewise.
29545 (internal_function): Remove definition.
29546 * intl/loadinfo.h (internal_function): Likewise.
29547 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29548 internal_function.
29549 * intl/localealias.c (internal_function): Remove definition.
29550 (read_alias_file): Remove internal_function.
29551 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29552 * intl/plural-exp.h (internal_function): Remove definition.
29553 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29554 internal_function.
29555 * intl/plural.c: Regenerate.
29556 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29557 * locale/coll-lookup.c (__collidx_table_lookup)
29558 (__collseq_table_lookup): Likewise.
29559 * locale/coll-lookup.h (__collidx_table_lookup)
29560 (__collseq_table_lookup): Likewise.
29561 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29562 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29563 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29564 (_nl_unload_locale): Likewise.
29565 * locale/localeinfo.h (struct __locale_data): Remove
29566 internal_function from cleanup member.
29567 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29568 (_nl_remove_locale, _nl_load_locale_from_archive)
29569 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29570 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29571 (_nl_cleanup_time): Remove internal_function.
29572 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29573 (_nl_parse_alt_digit): Likewise.
29574 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29575 (_nl_select_era_entry): Likewise.
29576 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29577 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29578 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29579 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29580 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29581
29582 2017-08-31 Florian Weimer <fweimer@redhat.com>
29583
29584 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29585 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29586 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29587 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29588 Likewise.
29589 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29590 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29591 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29592 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29593 Likewise.
29594 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29595
29596 2017-08-31 Florian Weimer <fweimer@redhat.com>
29597
29598 * misc/getttyent.c (skip, value): Remove internal_function.
29599 * misc/syslog.c (openlog_internal): Likewise.
29600 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29601
29602 2017-08-31 Florian Weimer <fweimer@redhat.com>
29603
29604 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29605 (__nss_rewrite_field): Remove internal_function.
29606 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29607 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29608 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29609 * nss/nsswitch.c (nss_parse_file, nss_getline)
29610 (nss_parse_service_list, nss_new_service): Likewise.
29611 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29612 * nss/valid_field.c (__nss_valid_field): Likewise.
29613 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29614
29615 2017-08-31 Florian Weimer <fweimer@redhat.com>
29616
29617 * malloc/arena.c (__malloc_fork_lock_parent)
29618 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29619 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29620 internal_function from defintions.
29621 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29622 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29623 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29624 internal_function from declarations.
29625 * malloc/malloc.c (internal_function): Do not define.
29626 (mem2mem_check): Remove internal_function from declaration.
29627 (munmap_chunk, mremap_chunk): Remove internal_function.
29628 * malloc/mtrace.c (tr_where): Likewise.
29629
29630 2017-08-31 Florian Weimer <fweimer@redhat.com>
29631
29632 * include/rpc/pmap_clnt.h (__get_socket): Remove
29633 internal_function.
29634 * sunrpc/auth_des.c (synchronize): Likewise.
29635 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29636 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29637 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29638 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29639 (key_call): Likewise.
29640 * sunrpc/pm_getport.c (__get_socket): Likewise.
29641 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29642 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29643 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29644 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29645 (invalidate): Likewise.
29646 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29647 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29648 (set_input_fragment, get_input_bytes): Likewise.
29649
29650 2017-08-31 Florian Weimer <fweimer@redhat.com>
29651
29652 * malloc/malloc.c (_int_free): Remove locked variable and related
29653 asserts.
29654
29655 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29656
29657 [BZ #22051]
29658 * Makerules (build-module-helper-objlist): Filter out
29659 $(elf-objpfx)sofini.os.
29660 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29661 needed.
29662
29663 2017-08-31 Florian Weimer <fweimer@redhat.com>
29664
29665 * libio/fcloseall.c: Assume weak_alias is defined.
29666 * libio/feof.c: Likewise.
29667 * libio/fileno.c: Likewise.
29668 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29669 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29670 definitions.
29671 (_IO_file_open): Call __open directly.
29672 (_IO_new_file_sync): Assume ESPIPE is defined.
29673 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29674 (_IO_new_file_write): Call __write directly.
29675 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29676 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29677 * libio/genops.c: Assume _LIBC is defined.
29678 (save_for_backup): Remove internal_function.
29679 * libio/getc.c: Assume weak_alias is defined.
29680 * libio/getwc.c: Likewise.
29681 * libio/iofclose.c: Assume _LIBC is defined.
29682 * libio/iofdopen.c: Likewise.
29683 (_IO_fcntl): Remove macro definition.
29684 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29685 Call __fcntl directly.
29686 * libio/iofflush.c: Assume weak_alias is defined.
29687 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29688 defined.
29689 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29690 * libio/iofgets.c: Likewise.
29691 * libio/iofopen.c: Assume _LIBC is defined.
29692 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29693 * libio/iofputs.c: Assume weak_alias is defined.
29694 * libio/iofread.c: Likewise.
29695 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29696 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29697 * libio/ioftell.c: Assume weak_alias is defined.
29698 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29699 * libio/iofwide.c: Assume _LIBC is defined.
29700 (_IO_fwide): Drop SHARED conditional because it is implied by
29701 SHLIB_COMPAT.
29702 * libio/iofwrite.c: Assume weak_alias is defined.
29703 * libio/iogetdelim.c: Likewise.
29704 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29705 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29706 (_IO_getwline): Call __wmemcpy directly.
29707 * libio/iopopen.c: Assume _LIBC is defined.
29708 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29709 (_IO_close): Remove macro definitions.
29710 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29711 _exit directly.
29712 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29713 directly.
29714 * libio/ioputs.c: Assume weak_alias is defined.
29715 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29716 * libio/iosetbuffer.c: Assume weak_alias is defined.
29717 * libio/iosetvbuf.c: Likewise.
29718 * libio/ioungetc.c: Likewise.
29719 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29720 libc_hidden_def, libc_hidden_weak, NULL are defined.
29721 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29722 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29723 defined.
29724 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29725 definitions.
29726 (_IO_old_file_init_internal): Drop SHARED conditional because it
29727 is implied by SHLIB_COMPAT.
29728 (_IO_old_file_fopen): Call __open directly.
29729 (_IO_old_file_sync): Assume ESPIPE is defined.
29730 (_IO_old_file_write): Call __write directly.
29731 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29732 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29733 Call __fcntl directly.
29734 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29735 (_IO_old_fgetpos): Assume EIO is defined.
29736 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29737 (_IO_old_fgetpos64): Assume EIO is defined.
29738 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29739 (_IO_old_fsetpos): Assume EIO is defined.
29740 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29741 (_IO_old_fsetpos64): Assume EIO is defined.
29742 * libio/oldiopopen.c: Assume _LIBC is defined.
29743 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29744 (_IO_close): Remove macro definitions.
29745 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29746 directly.
29747 (_IO_old_proc_close): Call __close, __waitpid directly.
29748 * libio/put.c: Assume weak_alias is defined.
29749 * libio/stdfiles.c: Assume _LIBC is defined.
29750 * libio/stdio.c: Likewise.
29751 * libio/wfileops.c: Likewise.
29752 (_IO_wfile_sync): Assume ESPIPE is defined.
29753 * libio/wgenops.c: Assume _LIBC is defined.
29754 (save_for_wbackup): Remove internal_function.
29755
29756 2017-08-31 Florian Weimer <fweimer@redhat.com>
29757
29758 * malloc/malloc.c (top_check): Change return type to void. Remove
29759 internal_function.
29760 * malloc/hooks.c (top_check): Likewise.
29761 (malloc_check, realloc_check, memalign_check): Adjust.
29762
29763 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29764
29765 [BZ #21457]
29766 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29767 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29768 sigcontext and namespace requirements.
29769 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29770 * sysdeps/m68k/sys/ucontext.h: Likewise.
29771 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29772 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29773 <bits/sigcontext.h>.
29774 (__ctx): Define earlier.
29775 (mcontext_t): Define structure contents rather than using struct
29776 sigcontext.
29777 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29778 __glibc_reserved1 instead of __reserved.
29779 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29780 <bits/sigcontext.h>.
29781 (__ctx): Define earlier.
29782 (mcontext_t): Define structure contents rather than using struct
29783 sigcontext.
29784 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29785 mcontext_t instead of struct sigcontext.
29786 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29787 <bits/sigcontext.h>.
29788 (__ctx): Define earlier.
29789 (mcontext_t): Define structure contents rather than using struct
29790 sigcontext.
29791 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29792 <bits/sigcontext.h>.
29793 (__ctx): Define earlier.
29794 (mcontext_t): Define structure contents rather than using struct
29795 sigcontext.
29796 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29797 mcontext_t instead of struct sigcontext.
29798 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29799 mcontext_t instead of struct sigcontext.
29800 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29801 <bits/sigcontext.h>.
29802 (__ctx): New macro.
29803 (struct __ia64_fpreg_mcontext): New type.
29804 (mcontext_t): Define structure contents rather than using struct
29805 sigcontext.
29806 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29807 (uc_sigmask): Define using __ctx.
29808 (uc_stack): Likewise.
29809 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29810 <bits/sigcontext.h>.
29811 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29812 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29813 <bits/sigcontext.h>.
29814 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29815 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29816 <bits/sigcontext.h>.
29817 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29818 <bits/sigcontext.h>.
29819 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29820 <bits/sigcontext.h>.
29821 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29822 <bits/sigcontext.h>.
29823 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29824 <bits/sigcontext.h>.
29825 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29826 <bits/sigcontext.h>.
29827 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29828 <bits/sigcontext.h>.
29829 (__ctx): Define earlier.
29830 (mcontext_t): Define structure contents rather than using struct
29831 sigcontext.
29832 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29833 <bits/sigcontext.h>. Include <bits/types.h>.
29834 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29835 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29836 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29837 (test-xfail-UNIX98/signal.h/conform): Likewise.
29838 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29839 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29840 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29841 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29842 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29843 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29844 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29845 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29846 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29847
29848 2017-08-30 Florian Weimer <fweimer@redhat.com>
29849
29850 * malloc/dynarray_emplace_enlarge.c
29851 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29852 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29853 * malloc/tst-dynarray.c (test_long_overflow): New function.
29854 (do_test): Call it.
29855
29856 2017-08-30 Florian Weimer <fweimer@redhat.com>
29857
29858 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29859 (set_arena_corrupt): Remove definitions.
29860 (mtrim): Do not check for corrupt arena.
29861 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29862 Likewise.
29863
29864 2017-08-30 Florian Weimer <fweimer@redhat.com>
29865
29866 [BZ #21754]
29867 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29868 check_action.
29869 (ptmalloc_init): Do not set or use check_action.
29870 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29871 call to malloc_printerr. Remove return statement.
29872 (free_check): Likewise. Remove arena unlock.
29873 (top_check): Update comment. Adjust call to malloc_printerr.
29874 Remove heap repair code.
29875 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29876 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29877 (sysmalloc): Adjust call to malloc_printerr.
29878 (munmap_chunk, __libc_realloc): Likewise. Remove return
29879 statement.
29880 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29881 Remove errout label and corresponding gotos.
29882 (_int_free): Likewise. Remove arena unlock.
29883 (do_set_mallopt_check): Do not set check_action.
29884 (malloc_printerr): Adjust parameter list. Do not mark arena as
29885 corrupt.
29886 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29887 comment.
29888 * manual/probes.texi (Memory Allocation Probes): Remove
29889 memory_mallopt_check_action.
29890
29891 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29892
29893 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29894 Use pointer to uint64_t instead of long int for sp.
29895
29896 2017-08-30 Florian Weimer <fweimer@redhat.com>
29897
29898 [BZ #21754]
29899 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29900 without printing a backtrace. Do not leak any information in the
29901 error message.
29902 * manual/memory.texi (Heap Consistency Checking): Update.
29903 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29904
29905 2017-08-30 Florian Weimer <fweimer@redhat.com>
29906
29907 Do not scale NPTL tests with available number of CPUs.
29908 * nptl/tst-cond16.c (count): Set to constant value of 8.
29909 * nptl/tst-cond18.c (count): Likewise.
29910
29911 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29912
29913 [BZ #22035]
29914 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29915 Define to take a second argument that is a macro that
29916 concatentates a suffix, not the suffix itself.
29917 (__CONCAT_d): New macro.
29918 (__CONCAT_f): Likewise.
29919 (__CONCAT_l): Likewise.
29920
29921 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29922
29923 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29924 by child.
29925
29926 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29927 Aurelien Jarno <aurelien@aurel32.net>
29928 Maciej W. Rozycki <macro@imgtec.com>
29929
29930 [BZ #21956]
29931 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29932 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29933 `mips16-syscall6' and `mips16-syscall7'.
29934 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29935 (CFLAGS-mips16-syscall7.c): Remove.
29936 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29937 Remove `__mips16_syscall5', `__mips16_syscall6' and
29938 `__mips16_syscall7'.
29939 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29940 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29941 `__mips_syscall_return'.
29942 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29943 (__mips16_syscall1): Likewise.
29944 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29945 (__mips16_syscall2): Likewise.
29946 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29947 (__mips16_syscall3): Likewise.
29948 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29949 (__mips16_syscall4): Likewise.
29950 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29951 Remove.
29952 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29953 Remove.
29954 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29955 Remove.
29956 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29957 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29958 `__mips16_syscall5'. Remove prototype.
29959 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29960 `__mips16_syscall6'. Remove prototype.
29961 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29962 `__mips16_syscall7'. Remove prototype.
29963 (__nomips16, __mips16_syscall_return): Move to...
29964 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29965 (__nomips16, __mips_syscall_return): ... here.
29966 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29967 `__mips16_syscall_return' to `__mips_syscall_return'.
29968 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29969 `internal_syscall##nr'.
29970 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29971 `internal_syscall##nr'.
29972 (FORCE_FRAME_POINTER): Remove.
29973 (__mips_syscall5): New prototype.
29974 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29975 (__mips_syscall6): New prototype.
29976 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29977 (__mips_syscall7): New prototype.
29978 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29979 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29980 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29981 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29982 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29983 (sysdep_routines): Add libc-do-syscall.
29984 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29985 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29986
29987 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29988
29989 [BZ #21672]
29990 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29991 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29992 (advise_stack_range): New function.
29993 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29994 stack non required to advise_stack_range at allocatestack.c
29995
29996 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29997
29998 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29999
30000 2017-08-29 Florian Weimer <fweimer@redhat.com>
30001
30002 [BZ #22026]
30003 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30004 __end_fct. Mangle __end_fct after setting it to NULL.
30005 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30006 (modules-names, modules-names-tests): Add
30007 tst-gconv-init-failure-mod.
30008 (gconv-modules): New target.
30009 (tst-gconv-init-failure-mod.so): Link against libsupport.
30010 (tst-gconv-init-failure): Depend on gconv-modules,
30011 tst-gconv-init-failure-mod.so.
30012 * iconv/tst-gconv-init-failure-mod.c: New file.
30013 * iconv/tst-gconv-init-failure.c: Likewise.
30014 * iconv/test-gconv-modules: Likewise.
30015
30016 2017-08-29 Florian Weimer <fweimer@redhat.com>
30017
30018 [BZ #22025]
30019 * iconv/gconv_db.c (free_derivation): Remove redundant
30020 parentheses.
30021 (gen_steps): Unconditionally mangle __btowc_fct after
30022 initialization.
30023 (increment_counter): Likewise. Do not call init_fct for internal
30024 modules.
30025
30026 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30027
30028 [BZ #22028]
30029 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30030 (_MSUF_): Remove macro.
30031 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30032 Likewise.
30033 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30034 (__REDIRFROM_X): New macro.
30035 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30036 Likewise.
30037 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30038 (__REDIRTO_X): Likewise.
30039 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30040 arguments.
30041 (__MATH_REDIRCALL_2): Likewise.
30042 (__MATH_REDIRCALL_INTERNAL): Likewise.
30043 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30044 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30045 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30046 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30047 * math/test-finite-macros.c: New file.
30048 * math/Makefile (tests): Add test-finite-macros.
30049 (CFLAGS-test-finite-macros.c): New variable.
30050
30051 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30052 Jeff Law <law@redhat.com>
30053
30054 [BZ #22025]
30055 Mangle NULL pointers in iconv/gconv.
30056 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30057 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30058 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30059 is non-NULL before demangling the end_fct. Check for NULL
30060 end_fct after demangling.
30061 (__gconv_release_step): Demangle the end_fct before checking
30062 it for NULL. Remove assert on __shlibc_handle != NULL.
30063 (gen_steps): Don't check btowc_fct for NULL before mangling.
30064 Demangle init_fct before checking for NULL.
30065 (increment_counter): Likewise.
30066 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30067 end_fct for NULL before mangling.
30068 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30069 for NULL.
30070
30071 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30072
30073 [BZ #21971]
30074 * locale/iso-639.def: add Morisyen.
30075
30076 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30077
30078 [BZ #21930]
30079 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30080 (iszero): New C++ implementation that does not use
30081 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30082 signaling nans are enabled, since __builtin_types_compatible_p
30083 is a C-only feature.
30084 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30085 defined, include ieee754_float128.h for access to the union and
30086 member ieee854_float128.ieee.
30087 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30088 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30089 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30090 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30091 options of test-math-zero on powerpc64le.
30092
30093 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30094
30095 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30096 Change double to float.
30097
30098 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30099
30100 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30101 unconditional.
30102 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30103 conditional code; define contents only for [LIBM_SVID_COMPAT].
30104
30105 2017-08-28 Florian Weimer <fweimer@redhat.com>
30106
30107 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30108 (abi-lp64_be-options): Remove.
30109 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30110 (abi-hard-options): Likewise.
30111 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30112 (abi-o32_hard-options, abi-o32_soft_2008-options)
30113 (abi-o32_hard_2008-options, abi-n32_soft-options)
30114 (abi-n32_hard-options, abi-n32_soft_2008-options)
30115 (abi-n32_hard_2008-options, abi-n64_soft-options)
30116 (abi-n64_hard-options, abi-n64_soft_2008-options)
30117 (abi-n64_hard_2008-options): Likewise.
30118 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30119 (abi-64-v1-options, abi-64-v2-options): Likewise.
30120 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30121 (abi-64-options): Likewise.
30122 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30123 (abi-64-options): Likewise.
30124 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30125 (abi-64-options): Likewise.
30126 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30127 (abi-64-options, abi-x32-options): Likewise.
30128
30129 2017-08-28 Florian Weimer <fweimer@redhat.com>
30130
30131 Store supported list of SYS_* system calls in the source tree.
30132 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30133 (bits/syscall.h): Generate from list file.
30134 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30135 [$(subdir) = misc] (tests): Add tst-syscall-list.
30136 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30137 [$(subdir) = misc] (tst-syscall-list-macros.list)
30138 [$(subdir) = misc] (tst-syscall-list-nr.list)
30139 (tst-syscall-list-sys.list): Helper targets for new
30140 tst-syscall-list test.
30141 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30142 tst-syscall-list.sh.
30143 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30144 target. Do not include bits/syscall.d.
30145 [$(subdir) = misc] (generated): Do not update.
30146 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30147 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30148 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30149 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30150
30151 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30152
30153 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30154 (tst-cxa_atexit, tst-on_exit): Likewise.
30155 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30156 tst-cxa_atexit, and tst-on_exit.
30157 * stdlib/tst-atexit-common.c: New file.
30158 * stdlib/tst-atexit.c: New file.
30159 * stdlib/tst-at_quick_exit.c: New file.
30160 * stdlib/tst-cxa_atexit.c: New file.
30161 * stdlib/tst-on_exit.c: New file.
30162
30163 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30164
30165 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30166 * mach/stack_chk_fail_local.c: New file.
30167 * hurd/stack_chk_fail_local.c: New file.
30168 * mach/Machrules ($(interface-library)-routines): Add
30169 stack_chk_fail_local.
30170 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30171 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30172 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30173 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30174 * hurd/Makefile (CFLAGS-hurdstartup.o,
30175 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30176
30177 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30178
30179 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30180 (index_cpu_*, index_arch_*): Removed.
30181
30182 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30183
30184 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30185 Use uint64_t instead of unsigned long.
30186
30187 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30188
30189 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30190 [__HAVE_DISTINCT_FLOAT128].
30191
30192 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30193 of <bits/math-finite.h>.
30194 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30195 inclusion of <bits/math-finite.h>.
30196 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30197 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30198 __NO_LONG_DOUBLE_MATH].
30199 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30200 (__MATH_REDIRCALL_2): Likewise.
30201 (__MATH_REDIRCALL_INTERNAL): Likewise.
30202 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30203 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30204 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30205
30206 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30207 Remove file.
30208 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30209 Likewise.
30210 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30211 Likewise.
30212 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30213 Likewise.
30214 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30215 Likewise.
30216 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30217 Likewise.
30218 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30219 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30220 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30221 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30222 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30223 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30224 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30225 w_sqrtf_compat-ppc32.
30226
30227 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30228
30229 * math/math.h [defined __cplusplus] (issignaling): In the long
30230 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30231 is not defined. Call __issignaling, otherwise.
30232
30233 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30234
30235 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30236 syscall definitions and replace __builtin_expect with __glibc_likely.
30237 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30238 syscall.
30239 (SYSCALL_CANCELLABLE): Removedefinition
30240 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30241 definition.
30242 (PSEUDO_END): Likewise.
30243 [IS_IN (libpthread)] (CENABLE): Likewise.
30244 [IS_IN (libpthread)] (CDISABLE): Likewise.
30245 [IS_IN (libc)] (CENABLE): Likewise.
30246 [IS_IN (libc)] (CENABLE): Likewise.
30247 [IS_IN (librt)] (CDISABLE): Likewise.
30248 [IS_IN (librt)] (CDISABLE): Likewise.
30249 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30250 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30251 definition.
30252 (PSEUDO_END): Likewise.
30253 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30254 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30255 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30256 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30257 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30258 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30259 (CENABLE): Likewise.
30260 (CDISABLE): Likewise.
30261 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30262 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30263 defintion.
30264 (PSEUDO_END): Likewise.
30265 [IS_IN (libpthread)] (CENABLE): Likewise.
30266 [IS_IN (libpthread)] (CDISABLE): Likewise.
30267 [IS_IN (libc)] (CENABLE): Likewise.
30268 [IS_IN (libc)] (CENABLE): Likewise.
30269 [IS_IN (librt)] (CDISABLE): Likewise.
30270 [IS_IN (librt)] (CDISABLE): Likewise.
30271 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30272 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30273 definition.
30274 (PSEUDO_END): Likewise.
30275 [IS_IN (libpthread)] (CENABLE): Likewise.
30276 [IS_IN (libpthread)] (CDISABLE): Likewise.
30277 [IS_IN (libc)] (CENABLE): Likewise.
30278 [IS_IN (libc)] (CENABLE): Likewise.
30279 [IS_IN (librt)] (CDISABLE): Likewise.
30280 [IS_IN (librt)] (CDISABLE): Likewise.
30281 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30282 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30283 definition.
30284 (PSEUDO_END): Likewise.
30285 [IS_IN (libpthread)] (CENABLE): Likewise.
30286 [IS_IN (libpthread)] (CDISABLE): Likewise.
30287 [IS_IN (libc)] (CENABLE): Likewise.
30288 [IS_IN (libc)] (CENABLE): Likewise.
30289 [IS_IN (librt)] (CDISABLE): Likewise.
30290 [IS_IN (librt)] (CDISABLE): Likewise.
30291 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30292 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30293 definition.
30294 (PSEUDO_END): Likewise.
30295 [IS_IN (libpthread)] (CENABLE): Likewise.
30296 [IS_IN (libpthread)] (CDISABLE): Likewise.
30297 [IS_IN (libc)] (CENABLE): Likewise.
30298 [IS_IN (libc)] (CENABLE): Likewise.
30299 [IS_IN (librt)] (CDISABLE): Likewise.
30300 [IS_IN (librt)] (CDISABLE): Likewise.
30301 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30302 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30303 definition.
30304 (PSEUDO_END): Likewise.
30305 [IS_IN (libpthread)] (CENABLE): Likewise.
30306 [IS_IN (libpthread)] (CDISABLE): Likewise.
30307 [IS_IN (libc)] (CENABLE): Likewise.
30308 [IS_IN (libc)] (CENABLE): Likewise.
30309 [IS_IN (librt)] (CDISABLE): Likewise.
30310 [IS_IN (librt)] (CDISABLE): Likewise.
30311 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30312 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30313 definition.
30314 (PSEUDO_END): Likewise.
30315 [IS_IN (libpthread)] (CENABLE): Likewise.
30316 [IS_IN (libpthread)] (CDISABLE): Likewise.
30317 [IS_IN (libc)] (CENABLE): Likewise.
30318 [IS_IN (libc)] (CENABLE): Likewise.
30319 [IS_IN (librt)] (CDISABLE): Likewise.
30320 [IS_IN (librt)] (CDISABLE): Likewise.
30321 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30322 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30323 Remove definition.
30324 (PSEUDO_END): Likewise.
30325 [IS_IN (libpthread)] (CENABLE): Likewise.
30326 [IS_IN (libpthread)] (CDISABLE): Likewise.
30327 [IS_IN (libc)] (CENABLE): Likewise.
30328 [IS_IN (libc)] (CENABLE): Likewise.
30329 [IS_IN (librt)] (CDISABLE): Likewise.
30330 [IS_IN (librt)] (CDISABLE): Likewise.
30331 (SINGLE_THREAD_P): Likewise.
30332 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30333 definition.
30334 (PSEUDO_END): Likewise.
30335 [IS_IN (libpthread)] (CENABLE): Likewise.
30336 [IS_IN (libpthread)] (CDISABLE): Likewise.
30337 [IS_IN (libc)] (CENABLE): Likewise.
30338 [IS_IN (libc)] (CENABLE): Likewise.
30339 [IS_IN (librt)] (CDISABLE): Likewise.
30340 [IS_IN (librt)] (CDISABLE): Likewise.
30341 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30342 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30343 definition.
30344 (PSEUDO_END): Likewise.
30345 [IS_IN (libpthread)] (CENABLE): Likewise.
30346 [IS_IN (libpthread)] (CDISABLE): Likewise.
30347 [IS_IN (libc)] (CENABLE): Likewise.
30348 [IS_IN (libc)] (CENABLE): Likewise.
30349 [IS_IN (librt)] (CDISABLE): Likewise.
30350 [IS_IN (librt)] (CDISABLE): Likewise.
30351 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30352 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30353 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30354 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30355 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30356 definition.
30357 (PSEUDO_END): Likewise.
30358 [IS_IN (libpthread)] (CENABLE): Likewise.
30359 [IS_IN (libpthread)] (CDISABLE): Likewise.
30360 [IS_IN (libc)] (CENABLE): Likewise.
30361 [IS_IN (libc)] (CENABLE): Likewise.
30362 [IS_IN (librt)] (CDISABLE): Likewise.
30363 [IS_IN (librt)] (CDISABLE): Likewise.
30364 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30365 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30366 definition.
30367 (PSEUDO_END): Likewise.
30368 [IS_IN (libpthread)] (CENABLE): Likewise.
30369 [IS_IN (libpthread)] (CDISABLE): Likewise.
30370 [IS_IN (libc)] (CENABLE): Likewise.
30371 [IS_IN (libc)] (CENABLE): Likewise.
30372 [IS_IN (librt)] (CDISABLE): Likewise.
30373 [IS_IN (librt)] (CDISABLE): Likewise.
30374 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30375 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30376 definition.
30377 (PSEUDO_END): Likewise.
30378 [IS_IN (libpthread)] (CENABLE): Likewise.
30379 [IS_IN (libpthread)] (CDISABLE): Likewise.
30380 [IS_IN (libc)] (CENABLE): Likewise.
30381 [IS_IN (libc)] (CENABLE): Likewise.
30382 [IS_IN (librt)] (CDISABLE): Likewise.
30383 [IS_IN (librt)] (CDISABLE): Likewise.
30384 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30385 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30386 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30387 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30388 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30389 definition.
30390 (PSEUDO_END): Likewise.
30391 [IS_IN (libpthread)] (CENABLE): Likewise.
30392 [IS_IN (libpthread)] (CDISABLE): Likewise.
30393 [IS_IN (libc)] (CENABLE): Likewise.
30394 [IS_IN (libc)] (CENABLE): Likewise.
30395 [IS_IN (librt)] (CDISABLE): Likewise.
30396 [IS_IN (librt)] (CDISABLE): Likewise.
30397 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30398 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30399 definition.
30400 (PSEUDO_END): Likewise.
30401 [IS_IN (libpthread)] (CENABLE): Likewise.
30402 [IS_IN (libpthread)] (CDISABLE): Likewise.
30403 [IS_IN (libc)] (CENABLE): Likewise.
30404 [IS_IN (libc)] (CENABLE): Likewise.
30405 [IS_IN (librt)] (CDISABLE): Likewise.
30406 [IS_IN (librt)] (CDISABLE): Likewise.
30407 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30408
30409 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30410
30411 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30412
30413 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30414
30415 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30416
30417 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30418
30419 [BZ #21982]
30420 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30421 middle and outer with size_t instead of int. Repleace %d and
30422 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30423 "MAX (outer, nchars - 64)" to support unsigned outer and
30424 nchars. Also exit loop when outer == 0.
30425
30426 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30427
30428 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30429 * include/signal.h (__sigsuspend_nocancel): Likewise.
30430 * include/time.h (__nanosleep_nocancel): Likewise.
30431 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30432 * login/utmp_file.c: Include non cancellable syscall header.
30433 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30434 prototype.
30435
30436 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30437
30438 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30439 .byte sequences with AVX512F instructions.
30440 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30441 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30442 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30443 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30444 Likewise.
30445 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30446 Likewise.
30447
30448 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30449 Steve Ellcey <sellcey@cavium.com>
30450
30451 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30452 Use PTR_REG macro in cmp instruction.
30453
30454 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30455
30456 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30457 Change the return type of the ifunc resolver to match the return
30458 type of the target function.
30459
30460 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30461
30462 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30463 (preadv64): Likewise.
30464 (pwrite64(: Likewise.
30465 (pwritev64): Likewise.
30466
30467 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30468 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30469 (LOAD_ARGS_0): Likewise.
30470 (LOAD_ARGS_1): Likewise.
30471 (LOAD_ARGS_2): Likewise.
30472 (LOAD_ARGS_3): Likewise.
30473 (LOAD_ARGS_4): Likewise.
30474 (LOAD_ARGS_5): Likewise.
30475 (LOAD_ARGS_6): Likewise.
30476 (LOAD_REGS_0): Likewise.
30477 (LOAD_REGS_1): Likewise.
30478 (LOAD_REGS_2): Likewise.
30479 (LOAD_REGS_3): Likewise.
30480 (LOAD_REGS_4): Likewise.
30481 (LOAD_REGS_5): Likewise.
30482 (LOAD_REGS_6): Likewise.
30483 (ASM_ARGS_0): Likewise.
30484 (ASM_ARGS_1): Likewise.
30485 (ASM_ARGS_2): Likewise.
30486 (ASM_ARGS_3): Likewise.
30487 (ASM_ARGS_4): Likewise.
30488 (ASM_ARGS_5): Likewise.
30489 (ASM_ARGS_6): Likewise.
30490 (LOAD_ARGS_TYPES_1): Likewise.
30491 (LOAD_ARGS_TYPES_2): Likewise.
30492 (LOAD_ARGS_TYPES_3): Likewise.
30493 (LOAD_ARGS_TYPES_4): Likewise.
30494 (LOAD_ARGS_TYPES_5): Likewise.
30495 (LOAD_ARGS_TYPES_6): Likewise.
30496 (LOAD_REGS_TYPES_1): Likewise.
30497 (LOAD_REGS_TYPES_2): Likewise.
30498 (LOAD_REGS_TYPES_3): Likewise.
30499 (LOAD_REGS_TYPES_4): Likewise.
30500 (LOAD_REGS_TYPES_5): Likewise.
30501 (LOAD_REGS_TYPES_6): Likewise.
30502 (TYPEFY): New define.
30503 (ARGIFY): Likewise.
30504 (internal_syscall0): Likewise.
30505 (internal_syscall1): Likewise.
30506 (internal_syscall2): Likewise.
30507 (internal_syscall3): Likewise.
30508 (internal_syscall4): Likewise.
30509 (internal_syscall5): Likewise.
30510 (internal_syscall6): Likewise.
30511 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30512 (INTERNAL_SYSCALL_NCS): Remove define.
30513 (internal_syscall1): Add define.
30514
30515 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30516
30517 * math/w_remainder_compat.c: Remove duplicate inclusion of
30518 math-svid-compat.h.
30519 * math/w_remainderf_compat.c: Likewise.
30520 * math/w_remainderl_compat.c: Likewise.
30521
30522 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30523
30524 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30525
30526 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30527
30528 [BZ #21684]
30529 * math/tgmath.h (__floating_type): Simplify definitions.
30530 (__real_integer_type): New macro.
30531 (__complex_integer_type): Likewise.
30532 (__expr_is_real): Likewise.
30533 (__tgmath_real_type_sub): Update comment to describe handling of
30534 complex types.
30535 (__tgmath_complex_type_sub): New macro.
30536 (__tgmath_complex_type): Likewise.
30537 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30538 (__TGMATH_CF128): Use __expr_is_real.
30539 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30540 __expr_is_real.
30541 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30542 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30543 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30544 integer types.
30545
30546 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30547
30548 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30549 macro.
30550 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30551 alias.
30552 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30553 Likewise.
30554
30555 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30556 nanosleep_not_cancel with __nanosleep_nocancel.
30557 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30558 (__nanosleep_nocancel): New macro.
30559 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30560 function.
30561 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30562 macro.
30563 (__nanosleep_nocancel): New prototype.
30564
30565 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30566 pause_not_cancel with __pause_nocancel.
30567 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30568 (__pause_nocancel): New macro.
30569 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30570 macro.
30571 (__pause_nocancel): New prototype.
30572 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30573
30574 2017-08-22 Martin Sebor <msebor@redhat.com>
30575
30576 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30577 to return a pointer to the same type as the target function.
30578
30579 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30580
30581 [BZ #18822]
30582 [BZ #21986]
30583 * include/printf.h (__printf_fphex): Add attribute_hidden.
30584 (__guess_grouping): New prototype.
30585 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30586 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30587 libc_hidden_proto and libc_hidden_def.
30588 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30589 (__vstrfmon_l): Remove the third argument passed to
30590 __guess_grouping.
30591
30592 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30593
30594 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30595 definition for issignaling that does not rely on __MATH_TG,
30596 since __MATH_TG uses __builtin_types_compatible_p, which is only
30597 available in C mode.
30598 (CFLAGS-test-math-issignaling.cc): New variable.
30599 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30600 * math/test-math-issignaling.cc: New test for C++ implementation
30601 of type-generic issignaling.
30602 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30603 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30604 options of test-math-issignaling on powerpc64le.
30605
30606 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30607
30608 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30609 building libc.a.
30610 (hidden_proto): Likewise.
30611 (hidden_tls_proto): Likewise.
30612 (__hidden_proto): Likewise.
30613
30614 2017-08-22 Florian Weimer <fweimer@redhat.com>
30615
30616 math: Statically link tests of internal functionality.
30617 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30618 atest-exp2.
30619 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30620 (gmp-objs): Remove assignment.
30621 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30622
30623 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30624
30625 [BZ #21987]
30626 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30627 and copy to ...
30628 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30629 ... here.
30630 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30631 ... and here.
30632
30633 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30634 variable definitions above inclusion of ../Rules.
30635
30636 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30637
30638 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30639 case calling __builtin_unreachable.
30640
30641 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30642
30643 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30644 __waitpid_nocancel.
30645 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30646 (__waitpid_nocancel): New macro.
30647 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30648 macro.
30649 (__waitpid_nocancel): Replace macro with a function.
30650 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30651 function.
30652
30653 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30654 __fcntl_nocancel.
30655 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30656 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30657
30658 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30659 __writev_nocancel_nostatus.
30660 (write_call_graph): Likewise.
30661 (write_bb_counts): Likewise.
30662 * resolv/herror.c (herror): Likewise.
30663 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30664 macro.
30665 (__writev_nocancel_nostatus): New macro.
30666 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30667 Remove macro.
30668 (__writev_nocancel_nostatus): New function.
30669
30670 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30671
30672 Revert:
30673 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30674
30675 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30676 building libc.a.
30677 (hidden_proto): Likewise.
30678 (hidden_tls_proto): Likewise.
30679 (__hidden_proto): Likewise.
30680
30681 [BZ #21973]
30682 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30683 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30684 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30685 Likewise.
30686 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30687 Likewise.
30688 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30689 Likewise.
30690 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30691 Likewise.
30692 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30693 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30694 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30695 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30696 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30697 GLIBC_2.0 sqrtl symbol.
30698
30699 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30700 [__USE_MISC] (_LIB_VERSION): Likewise.
30701 [__USE_MISC] (struct exception): Likewise.
30702 [__USE_MISC] (matherr): Likewise.
30703 [__USE_MISC] (DOMAIN): Likewise.
30704 [__USE_MISC] (SING): Likewise.
30705 [__USE_MISC] (OVERFLOW): Likewise.
30706 [__USE_MISC] (UNDERFLOW): Likewise.
30707 [__USE_MISC] (TLOSS): Likewise.
30708 [__USE_MISC] (PLOSS): Likewise.
30709 [__USE_MISC] (HUGE): Likewise.
30710 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30711 * math/math-svid-compat.h: New file.
30712 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30713 and matherrl.
30714 * include/math.h [!_ISOMAC] (__matherr): Remove.
30715 * manual/arith.texi (FP Exceptions): Do not document matherr.
30716 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30717 (tests-internal): New variable.
30718 (install-lib): Do not add libieee.a.
30719 (non-lib.a): Likewise.
30720 (extra-objs): Do not add libieee.a and ieee-math.o.
30721 (CPPFLAGS-s_lib_version.c): Remove variable.
30722 ($(objpfx)libieee.a): Remove rule.
30723 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30724 * math/ieee-math.c: Remove.
30725 * math/libm-test-support.c (matherr): Remove.
30726 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30727 and license notices. Include <math-svid-compat.h> and
30728 <shlib-compat.h>.
30729 (matherr): Undefine as macro. Use compat_symbol_reference.
30730 (_LIB_VERSION): Likewise.
30731 * math/test-matherr-2.c: New file.
30732 * math/test-matherr-3.c: Likewise.
30733 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30734 declaration.
30735 (__kernel_standard_f): Likewise.
30736 (__kernel_standard_l): Likewise.
30737 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30738 <math_private.h>. Include <math-svid-compat.h>.
30739 (_LIB_VERSION): Undefine as macro.
30740 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30741 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30742 [LIBM_SVID_COMPAT], use compat_symbol.
30743 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30744 <math_private.h>. Include <math-svid-compat.h>.
30745 (matherr): Undefine as macro.
30746 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30747 compat_symbol.
30748 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30749 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30750 compat_symbol_reference.
30751 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30752 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30753 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30754 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30755 (MATHERR_D): Remove declaration.
30756 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30757 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30758 [LIBM_BUILD] (pmatherrf): Likewise.
30759 [LIBM_BUILD] (pmatherr): Likewise.
30760 [LIBM_BUILD] (pmatherrl): Likewise.
30761 (DOMAIN): Likewise.
30762 (SING): Likewise.
30763 (OVERFLOW): Likewise.
30764 (UNDERFLOW): Likewise.
30765 (TLOSS): Likewise.
30766 (PLOSS): Likewise.
30767 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30768 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30769 compat_symbol.
30770 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30771 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30772 compat_symbol.
30773 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30774 * math/w_acos_compat.c: Likewise.
30775 * math/w_acosf_compat.c: Likewise.
30776 * math/w_acosh_compat.c: Likewise.
30777 * math/w_acoshf_compat.c: Likewise.
30778 * math/w_acoshl_compat.c: Likewise.
30779 * math/w_acosl_compat.c: Likewise.
30780 * math/w_asin_compat.c: Likewise.
30781 * math/w_asinf_compat.c: Likewise.
30782 * math/w_asinl_compat.c: Likewise.
30783 * math/w_atan2_compat.c: Likewise.
30784 * math/w_atan2f_compat.c: Likewise.
30785 * math/w_atan2l_compat.c: Likewise.
30786 * math/w_atanh_compat.c: Likewise.
30787 * math/w_atanhf_compat.c: Likewise.
30788 * math/w_atanhl_compat.c: Likewise.
30789 * math/w_cosh_compat.c: Likewise.
30790 * math/w_coshf_compat.c: Likewise.
30791 * math/w_coshl_compat.c: Likewise.
30792 * math/w_exp10_compat.c: Likewise.
30793 * math/w_exp10f_compat.c: Likewise.
30794 * math/w_exp10l_compat.c: Likewise.
30795 * math/w_exp2_compat.c: Likewise.
30796 * math/w_exp2f_compat.c: Likewise.
30797 * math/w_exp2l_compat.c: Likewise.
30798 * math/w_fmod_compat.c: Likewise.
30799 * math/w_fmodf_compat.c: Likewise.
30800 * math/w_fmodl_compat.c: Likewise.
30801 * math/w_hypot_compat.c: Likewise.
30802 * math/w_hypotf_compat.c: Likewise.
30803 * math/w_hypotl_compat.c: Likewise.
30804 * math/w_j0_compat.c: Likewise.
30805 * math/w_j0f_compat.c: Likewise.
30806 * math/w_j0l_compat.c: Likewise.
30807 * math/w_j1_compat.c: Likewise.
30808 * math/w_j1f_compat.c: Likewise.
30809 * math/w_j1l_compat.c: Likewise.
30810 * math/w_jn_compat.c: Likewise.
30811 * math/w_jnf_compat.c: Likewise.
30812 * math/w_jnl_compat.c: Likewise.
30813 * math/w_lgamma_main.c: Likewise.
30814 * math/w_lgamma_r_compat.c: Likewise.
30815 * math/w_lgammaf_main.c: Likewise.
30816 * math/w_lgammaf_r_compat.c: Likewise.
30817 * math/w_lgammal_main.c: Likewise.
30818 * math/w_lgammal_r_compat.c: Likewise.
30819 * math/w_log10_compat.c: Likewise.
30820 * math/w_log10f_compat.c: Likewise.
30821 * math/w_log10l_compat.c: Likewise.
30822 * math/w_log2_compat.c: Likewise.
30823 * math/w_log2f_compat.c: Likewise.
30824 * math/w_log2l_compat.c: Likewise.
30825 * math/w_log_compat.c: Likewise.
30826 * math/w_logf_compat.c: Likewise.
30827 * math/w_logl_compat.c: Likewise.
30828 * math/w_pow_compat.c: Likewise.
30829 * math/w_powf_compat.c: Likewise.
30830 * math/w_powl_compat.c: Likewise.
30831 * math/w_remainder_compat.c: Likewise.
30832 * math/w_remainderf_compat.c: Likewise.
30833 * math/w_remainderl_compat.c: Likewise.
30834 * math/w_scalb_compat.c: Likewise.
30835 * math/w_scalbf_compat.c: Likewise.
30836 * math/w_scalbl_compat.c: Likewise.
30837 * math/w_sinh_compat.c: Likewise.
30838 * math/w_sinhf_compat.c: Likewise.
30839 * math/w_sinhl_compat.c: Likewise.
30840 * math/w_sqrt_compat.c: Likewise.
30841 * math/w_sqrtf_compat.c: Likewise.
30842 * math/w_sqrtl_compat.c: Likewise.
30843 * math/w_tgamma_compat.c: Likewise.
30844 * math/w_tgammaf_compat.c: Likewise.
30845 * math/w_tgammal_compat.c: Likewise.
30846 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30847 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30848 * sysdeps/ieee754/k_standard.c: Likewise.
30849 * sysdeps/ieee754/k_standardf.c: Likewise.
30850 * sysdeps/ieee754/k_standardl.c: Likewise.
30851 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30852 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30853 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30854 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30855 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30856 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30857 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30858 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30859 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30861 Likewise.
30862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30863 Likewise.
30864 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30865 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30866 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30867 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30868
30869 2017-08-21 Florian Weimer <fweimer@redhat.com>
30870
30871 [BZ #21864]
30872 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30873 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30874 Move before inclusion of ../Rules.
30875
30876 2017-08-21 Florian Weimer <fweimer@redhat.com>
30877
30878 [BZ #21972]
30879 * assert/assert.h (assert): Use static_cast (bool) for C++.
30880 Use the ternary operator in the warning branch for GNU C.
30881 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30882 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30883 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30884 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30885 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30886
30887 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30888
30889 [BZ #18822]
30890 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30891 (__syscall_clock_gettime): Add attribute_hidden.
30892 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30893 (__start_context): Likewise.
30894
30895 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30896
30897 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30898 building libc.a.
30899 (hidden_proto): Likewise.
30900 (hidden_tls_proto): Likewise.
30901 (__hidden_proto): Likewise.
30902
30903 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30904
30905 * include/libc-symbols.h (attribute_hidden): Enable hidden
30906 visibility in libc.a compiled with PIE.
30907
30908 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30909
30910 [BZ #18822]
30911 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30912 Add attribute_hidden.
30913
30914 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30915
30916 [BZ #21864]
30917 * Makerules (all-nonlib): Add $(others-extras).
30918 * catgets/Makefile (others-extras): New.
30919 * elf/Makefile (others-extras): Likewise.
30920 * nss/Makefile (others-extras): Likewise.
30921
30922 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30923
30924 [BZ #18822]
30925 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30926 * elf/dl-open.c: Include <libc-internal.h>.
30927 (__libc_multiple_libcs): Removed.
30928 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30929 <hp-timing.h>.
30930 * include/libc-internal.h (__libc_multiple_libcs): New.
30931 * misc/sbrk.c: Include <libc-internal.h>.
30932 (__libc_multiple_libcs): Removed.
30933
30934 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30935
30936 [BZ #18822]
30937 * grp/initgroups.c (__nss_group_database): Removed.
30938 (__nss_initgroups_database): Likewise.
30939 * nscd/gai.c (__nss_hosts_database): Likewise.
30940 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30941 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30942 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30943 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30944 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30945 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30946 attribute_hidden.
30947 * nss/nsswitch.c (__nss_database_custom): Define only if
30948 USE_NSCD is defined.
30949 (__nss_configure_lookup): Use __nss_database_custom only if
30950 USE_NSCD is defined.
30951 * nss/nsswitch.h (__nss_database_custom): Declare only if
30952 USE_NSCD is defined. Add attribute_hidden.
30953 (__nss_setent): Add attribute_hidden.
30954 (__nss_endent): Likewise.
30955 (__nss_getent_r): Likewise.
30956 (__nss_getent): Likewise.
30957 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30958
30959 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30960
30961 [BZ #18822]
30962 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30963 libc_hidden_proto and libc_hidden_def.
30964
30965 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30966
30967 [BZ #18822]
30968 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30969 Add libc_hidden_proto.
30970 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30971 Add libc_hidden_def.
30972
30973 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30974
30975 [BZ #21974]
30976 * gmon/Makefile (routines): Remove bb_init_func and
30977 bb_exit_func.
30978 (elide-routines.os): Removed.
30979 * gmon/bb_exit_func.c: Likewise.
30980 * gmon/bb_init_func.c: Likewise.
30981 * include/sys/gmon.h (__bb): Likewise.
30982 (__bb_init_func): Likewise.
30983 (__bb_exit_func): Likewise.
30984 * sysdeps/alpha/bb_init_func.S: Likewise.
30985
30986 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30987
30988 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30989 * include/setjmp.h (____longjmp_chk): Here. Add
30990 attribute_hidden.
30991
30992 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30993
30994 [BZ #18822]
30995 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30996 attribute_hidden.
30997 (__strspn_sse2): Likewise.
30998
30999 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31000
31001 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31002 (close_not_cancel_no_status): Likewise.
31003 (__close_nocancel): New macro.
31004 (__close_nocancel_nostatus): Likewise.
31005 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31006 macro.
31007 (close_not_cancel): Likewise.
31008 (close_not_cancel_no_status): Likewise.
31009 (__close_nocancel): New prototype.
31010 (__close_nocancel_nostatus): New function.
31011 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31012 * catgets/open_catalog.c (__open_catalog): Replace
31013 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31014 * gmon/gmon.c (write_gmon): Likewise.
31015 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31016 * intl/loadmsgcat.c (close): Likewise.
31017 * io/ftw.c (open_dir_stream): Likewise.
31018 (ftw_startup): Likewise.
31019 * libio/fileops.c (_IO_file_open): Likewise.
31020 (_IO_file_close_mmap): Likewise.
31021 (_IO_file_close): Likewise.
31022 * libio/iopopen.c (_IO_dup2): Likewise.
31023 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31024 * locale/loadlocale.c (_nl_load_locale): Likewise.
31025 * login/utmp_file.c (pututline_file): Likewise.
31026 (endutent_file): Likewise.
31027 * misc/daemon.c (daemon): Likewise.
31028 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31029 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31030 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31031 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31032 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31033 * nscd/nscd_helper.c (open_socket): Likewise.
31034 (__nscd_open_socket): Likewise.
31035 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31036 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31037 (__nscd_innetgr): Likewise.
31038 * nss/nss_db/db-open.c (internal_setent): Likewise.
31039 * resolv/res-close.c (__res_iclose): Likewise.
31040 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31041 * sysdeps/posix/closedir.c (__closedir): Likewise.
31042 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31043 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31044 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31045 (opendir_tail): Likewise.
31046 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31047 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31048 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31049 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31050 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31051 (gethostid): Likewise.
31052 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31053 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31054 Likewise.
31055 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31056 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31057 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31058 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31059 Likewise.
31060 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31061 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31062 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31063 Likewise.
31064 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31065 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31066 Likewise.
31067 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31068 Likewise.
31069 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31070 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31071 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31072 __close_nocancel.
31073
31074 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31075 (openat_not_cancel_3): Likewise.
31076 (openat64_not_cancel_3): Likewise).
31077 (openat_not_cancel_3): Likewise).
31078 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31079 macro.
31080 (openat_not_cancel_3): Likewise.
31081 (openat64_not_cancel): Likewise.
31082 (openat64_not_cancel_3): Likewise.
31083 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31084 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31085 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31086 __open{64}_nocancel.
31087 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31088 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31089 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31090
31091 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31092
31093 [BZ #18822]
31094 * include/argz.h (__argz_create_sep): New function prototype.
31095 (__argz_append): Likewise.
31096 (__argz_add): Likewise.
31097 (__argz_add_sep): Likewise.
31098 (__argz_delete): Likewise.
31099 (__argz_insert): Likewise.
31100 (__argz_replace): Likewise.
31101 * string/argz.h (__argz_create_sep): Removed.
31102 (__argz_append): Likewise.
31103 (__argz_add): Likewise.
31104 (__argz_add_sep): Likewise.
31105 (__argz_delete): Likewise.
31106 (__argz_insert): Likewise.
31107 (__argz_replace): Likewise.
31108
31109 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31110
31111 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31112 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31113 (GNU_PROPERTY_STACK_SIZE): Likewie.
31114 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31115 (GNU_PROPERTY_LOPROC): Likewise.
31116 (GNU_PROPERTY_HIPROC): Likewise.
31117 (GNU_PROPERTY_LOUSER): Likewise.
31118 (GNU_PROPERTY_HIUSER): Likewise.
31119 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31120 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31121 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31122 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31123 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31124 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31125 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31126 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31127 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31128 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31129 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31130 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31131 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31132 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31133 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31134 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31135 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31136 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31137 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31138 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31139 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31140 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31141 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31142
31143 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31144
31145 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31146 in C++ mode.
31147
31148 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31149
31150 [BZ #21930]
31151 * math/math.h (isinf): Check if in C or C++ mode before using
31152 __builtin_types_compatible_p, since this is a C mode feature.
31153
31154 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31155
31156 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31157 (__write_nocancel): New macro.
31158 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31159 Rewrite as a function prototype.
31160 (write_not_cancel): Remove macro.
31161 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31162 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31163 (write_gmon): Likewise.
31164 * libio/fileops.c (_IO_new_file_write): Likewise.
31165 * login/utmp_file.c (pututline_file): Likewise.
31166 (updwtmp_file): Likewise.
31167 * stdio-common/psiginfo.c (psiginfo): Likewise.
31168 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31169 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31170 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31171 Likewise.
31172 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31173 Likewise.
31174
31175 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31176 (__read_nocancel): New macro.
31177 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31178 __read_nocancel.
31179 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31180 macro.
31181 (__read_nocancel): New prototype.
31182 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31183 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31184 with __read_nocancel.
31185 * intl/loadmsgcat.c (read): Likewise.
31186 * libio/fileops.c (_IO_file_read): Likewise.
31187 * locale/loadlocale.c (_nl_load_locale): Likewise.
31188 * login/utmp_file.c (getutent_r_file): Likewise.
31189 (internal_getut_r): Likewise.
31190 (getutline_r_file): Likewise.
31191 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31192 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31193 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31194 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31195 Likewise.
31196 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31197 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31198 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31199 Likewise.
31200 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31201 Likewise.
31202 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31203 Likewise.
31204 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31205 Likewise.
31206 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31207
31208 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31209
31210 [BZ #21966]
31211 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31212 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31213 usable.
31214
31215 2017-08-17 DJ Delorie <dj@redhat.com>
31216
31217 * bug17079.c: Update to new test harness.
31218 * test-digits-dots.c: Likewise.
31219 * test-netdb.c: Likewise.
31220 * tst-field.c: Likewise.
31221 * tst-nss-getpwent.c: Likewise.
31222 * tst-nss-static.c: Likewise.
31223 * tst-nss-test1.c: Likewise.
31224 * tst-nss-test2.c: Likewise.
31225 * tst-nss-test3.c: Likewise.
31226 * tst-nss-test4.c: Likewise.
31227 * tst-nss-test5.c: Likewise.
31228
31229 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31230
31231 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31232 (open_not_cancel_2): Likewise.
31233 (open_nocancel): New macro.
31234 (open64_nocancel): Likewise.
31235 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31236 (open_not_cancel_2): Likewise.
31237 (__open_nocancel): New prototype.
31238 (__open64_nocancel): Likewise.
31239 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31240 __open_nocancel.
31241 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31242 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31243 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31244 with __open_nocancel.
31245 * csu/check_fds.c (check_one_fd): Likewise.
31246 * gmon/gmon.c (write_gmon): Likewise.
31247 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31248 * intl/loadmsgcat.c (open): Likewise.
31249 * libio/fileops.c (_IO_file_open): Likewise.
31250 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31251 * locale/loadlocale.c (_nl_load_locale): Likewise.
31252 * login/utmp_file.c (setutent_file): Likewise.
31253 * misc/daemon.c (daemon): Likewise.
31254 * nss/nss_db/db-open.c (internal_setent): Likewise.
31255 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31256 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31257 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31258 (__opendir): Likewise.
31259 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31260 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31261 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31262 (gethostid): Likewise.
31263 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31264 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31265 Likewise.
31266 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31267 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31268 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31269 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31270 Likewise.
31271 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31272 Likewise.
31273 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31274 Likewise.
31275 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31276 Likewise.
31277 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31278 Likewise.
31279 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31280 Likewise.
31281 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31282 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31283
31284 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31285
31286 * benchtests/bench-skeleton.c (main): Add support for
31287 latency benchmarking.
31288 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31289
31290 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31291
31292 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31293 the startup object.
31294
31295 2017-08-17 Florian Weimer <fweimer@redhat.com>
31296
31297 * include/sys/socket.h (__opensock): Remove internal_function.
31298 * socket/opensock.c (__opensock): Likewise.
31299 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31300
31301 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31302
31303 [BZ #21944]
31304 * signal/bits/types/__sigval_t.h: New file.
31305 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31306 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31307 and define sigval_t using __sigval_t.
31308 * include/bits/types/__sigval_t.h: New file.
31309 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31310 instead of <bits/types/__sigval_t.h>.
31311 (struct sigevent): Use __sigval_t instead of sigval_t.
31312 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31313 instead of <bits/types/__sigval_t.h>.
31314 (siginfo_t): Use __sigval_t instead of sigval_t.
31315 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31316 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31317 (struct sigevent): Use __sigval_t instead of sigval_t.
31318 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31319 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31320 (siginfo_t): Use __sigval_t instead of sigval_t.
31321 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31322
31323 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31324
31325 * NEWS: Remove "[Add new features here]" for 2.27.
31326
31327 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31328
31329 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31330 libc.so.
31331
31332 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31333
31334 * NEWS: Mention x86-64 FMA optimization.
31335
31336 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31337
31338 [BZ #21912]
31339 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31340 Add e_expf-fma.
31341 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31342 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31343 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31344
31345 2017-08-16 Andreas Schwab <schwab@suse.de>
31346
31347 [BZ #16750]
31348 CVE-2009-5064
31349 * elf/ldd.bash.in: Never run file directly.
31350
31351 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31352
31353 [BZ #21955]
31354 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31355 (L(SP_INF_0)): Likewise.
31356
31357 2017-08-15 Florian Weimer <fweimer@redhat.com>
31358
31359 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31360 run-built-tests.
31361
31362 2017-08-15 Florian Weimer <fweimer@redhat.com>
31363
31364 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31365 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31366 BROKEN_THREAD_SIGNALS code.
31367 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31368 request_list): Remove caller_pid member used for
31369 BROKEN_THREAD_SIGNALS.
31370 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31371 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31372 Remove BROKEN_THREAD_SIGNALS support.
31373 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31374 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31375
31376 2017-08-15 Florian Weimer <fweimer@redhat.com>
31377
31378 * gmon/Makefile (tests): Add tst-gmon.
31379 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31380 Set.
31381 (tests-special): Add tst-gmon-prof.out.
31382 (tst-gmon.out): Depend on clean-tst-gmon-data.
31383 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31384 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31385 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31386 startup object.
31387 * aclocal.m4 (GPROF): Set and substitute.
31388 * config.amke.in (GPROF): Set.
31389 * configure: Regenerate.
31390
31391 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31392
31393 * elf/elf.h A (NT_PPC_TAR): New macro.
31394 (NT_PPC_PPR): Likewise.
31395 (NT_PPC_DSCR): Likewise.
31396 (NT_PPC_EBB): Likewise.
31397 (NT_PPC_PMU): Likewise.
31398 (NT_PPC_TM_CGPR): Likewise.
31399 (NT_PPC_TM_CFPR): Likewise.
31400 (NT_PPC_TM_CVMX): Likewise.
31401 (NT_PPC_TM_CVSX): Likewise.
31402 (NT_PPC_TM_SPR): Likewise.
31403 (NT_PPC_TM_CTAR): Likewise.
31404 (NT_PPC_TM_CPPR): Likewise.
31405 (NT_PPC_TM_CDSCR): Likewise.
31406
31407 2017-08-15 Florian Weimer <fweimer@redhat.com>
31408
31409 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31410 regparm (2) instead of internal_function.
31411 (_MCOUNT_DECL): Adjust.
31412
31413 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31414
31415 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31416 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31417
31418 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31419
31420 * conform/data/sys/wait.h-data (si_value): Do not expect for
31421 XPG42.
31422
31423 2017-08-14 Florian Weimer <fweimer@redhat.com>
31424
31425 [BZ #21962]
31426 NSS: Create stubs for accidentally exported lookup functions.
31427 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31428 Remove declaration.
31429 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31430 (ether_hostton): Call __nss_ethers_lookup2 instead.
31431 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31432 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31433 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31434 (setup): Call __nss_netgroup_lookup2 instead.
31435 * nss/Makefile (routines): Add compat-lookup.
31436 * nss/Versions (GLIBC_2.27): Add symbol version.
31437 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31438 (DB_COMPAT_FCT): Remove.
31439 * nss/compat-lookup.c: New file.
31440 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31441 from databases.def.
31442 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31443 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31444 (netname2user): Call __nss_publickey_lookup2 instead.
31445 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31446 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31447 instead.
31448
31449 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31450 Sergei Trofimovich <slyfox@inbox.ru>
31451
31452 [BZ #21908]
31453 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31454 Rename to MMAP2_PAGE_UNIT.
31455 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31456 __OFF_T_MATCHES_OFF64_T is not defined.
31457 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31458 uint64_t.
31459 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31460 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31461
31462 2017-08-14 Florian Weimer <fweimer@redhat.com>
31463
31464 i386: Do not set internal_function.
31465 * config.h.in (USE_REGPARMS, internal_function): Remove.
31466 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31467 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31468
31469 2017-08-14 Florian Weimer <fweimer@redhat.com>
31470
31471 * elf/dl-init.c (_dl_init): Remove internal_function.
31472 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31473 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31474
31475 2017-08-14 Florian Weimer <fweimer@redhat.com>
31476
31477 * elf/rtld.c (_dl_start): Remove internal_function.
31478 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31479 _dl_start.
31480
31481 2017-08-14 Florian Weimer <fweimer@redhat.com>
31482
31483 * elf/dl-fini.c (_dl_fini): Remove internal_function
31484 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31485
31486 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31487
31488 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31489 (bit_cpu_SHSTK): Likewise.
31490 (index_cpu_IBT): Likewise.
31491 (index_cpu_SHSTK): Likewise.
31492 (reg_IBT): Likewise.
31493 (reg_SHSTK): Likewise.
31494 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31495 Handle index_cpu_IBT and index_cpu_SHSTK.
31496
31497 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31498
31499 [BZ #19982]
31500 * po/fr.po: Fix spelling mistake.
31501
31502 2017-08-13 Florian Weimer <fweimer@redhat.com>
31503
31504 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31505 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31506 (_dl_catch_error, _dl_receive_error): Likewise.
31507 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31508 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31509 (_dl_deallocate_tls): Likewise.
31510 * include/dlfcn.h (_dl_addr): Likewise.
31511 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31512 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31513 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31514 Likewise.
31515
31516 2017-08-13 Florian Weimer <fweimer@redhat.com>
31517
31518 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31519 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31520 internal_function.
31521 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31522
31523 2017-08-13 Florian Weimer <fweimer@redhat.com>
31524
31525 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31526 internal_function.
31527 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31528 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31529 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31530 internal_function from _dl_make_stack_executable_hook member.
31531 (_dl_make_stack_executable): Remove internal_function.
31532 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31533 Likewise.
31534 * sysdeps/unix/sysv/linux/dl-execstack.c
31535 (_dl_make_stack_executable): Likewise.
31536
31537 2017-08-13 Florian Weimer <fweimer@redhat.com>
31538
31539 * sysdeps/unix/sysv/linux/netlinkaccess.h
31540 (__netlink_assert_response): Remove internal_function.
31541 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31542 (__netlink_assert_response): Likewise.
31543
31544 2017-08-13 Florian Weimer <fweimer@redhat.com>
31545
31546 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31547 internal_function.
31548 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31549
31550 2017-08-13 Florian Weimer <fweimer@redhat.com>
31551
31552 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31553 internal_function.
31554 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31555 * inet/netgroup.h (__internal_setnetgrent)
31556 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31557 * inet/getnetgrent_r.c (__internal_setnetgrent)
31558 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31559 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31560 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31561 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31562 * nss/nsswitch.h (db_lookup_function): Likewise.
31563
31564 2017-08-13 Florian Weimer <fweimer@redhat.com>
31565
31566 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31567 Remove internal_function.
31568 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31569 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31570 message argument on the stack.
31571 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31572 Likeweise.
31573
31574 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31575
31576 Adapt test case data to the changes in the thousands
31577 separators.
31578
31579 [BZ #20756]
31580 * localedata/tst-langinfo.sh: Adapt test case data.
31581 * stdlib/tst-strfmon_l.c: Likewise.
31582 * stdlib/tst-strtod4.c: Likewise.
31583 * stdlib/tst-strtod5i.c: Likewise.
31584
31585 2017-08-11 Florian Weimer <fweimer@redhat.com>
31586
31587 [BZ #21242]
31588 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31589 Suppress pedantic warning resulting from statement expression.
31590 (__ASSERT_FUNCTION): Add missing __extension__.
31591
31592 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31593
31594 * benchtests/bench-memmove-large.c: Print output in JSON
31595 format.
31596 * benchtests/bench-memmove.c: Likewise.
31597
31598 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31599 * benchtests/bench-memchr.c (do_one_test): Likewise.
31600 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31601 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31602 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31603 * benchtests/bench-memmove.c (do_one_test): Likewise.
31604 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31605 * benchtests/bench-memset.c (do_one_test): Likewise.
31606 * benchtests/bench-string.h (test_init): Remove memsets.
31607
31608 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31609
31610 * manual/lang.texi
31611 (Computing the Width of an Integer Data Type): Rename section to
31612 "Width of an Integer Type". Remove inaccurate statement regarding
31613 lack of C language facilities for determining width of integer
31614 types, and reorder content to improve flow and context of
31615 discussion.
31616
31617 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31618
31619 * lang.texi (va_copy): Change standard from ISO to C99.
31620 (__va_copy): Add standard and header annotation.
31621 Update description for clarity of origins and current use.
31622
31623 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31624
31625 [BZ #21941]
31626 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31627 xssqrtqp requires operands to be in Vector Registers
31628 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31629 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31630 (__ieee754_sqrtf128): Likewise.
31631
31632 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31633
31634 * sysdeps/aarch64/memcmp.S (memcmp):
31635 Rewrite of optimized memcmp.
31636
31637 2017-08-10 Florian Weimer <fweimer@redhat.com>
31638
31639 Introduce ld.so exceptions.
31640 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31641 (_dl_exception_create, _dl_exception_create_format)
31642 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31643 (_dl_catch_exception): Declare.
31644 (_dl_catch_error): Update comment.
31645 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31646 errstring, malloced members with exception member.
31647 (_dl_out_of_memory): Remove.
31648 (fatal_error): New function, extracted from _dl_signal_error.
31649 (_dl_signal_exception, _dl_signal_cexception): New functions.
31650 (_dl_signal_error): Call _dl_exception_create to allocate an
31651 exception object.
31652 (_dl_catch_exception): New function, based on _dl_catch_error.
31653 (_dl_catch_error): Implement using _dl_catch_exception.
31654 * elf/dl-exception.c: New file.
31655 * elf/Makefile (dl-routines): Add dl-exception.
31656 (elide-routines.os): Likewise.
31657 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31658 _dl_exception_create_format, _dl_exception_free.
31659 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31660 _dl_signal_exception.
31661 * elf/dl-lookup.c (make_string): Remove.
31662 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31663 _dl_signal_cexception, _dl_exception_free.
31664 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31665 _dl_signal_exception.
31666 * elf/dl-sym.c (do_sym): Likewise.
31667 * elf/dl-version.c (make_string): Remove.
31668 (match_symbol): Use _dl_exception_create_format,
31669 _dl_signal_cexception, _dl_exception_free.
31670 (_dl_check_map_versions): Likewise.
31671 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31672 _dl_catch_exception.
31673 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31674 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31675 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31676 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31677 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31678 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31679 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31680 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31681 Likewise.
31682 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31684 (ld.so): Likewise.
31685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31686 (ld.so): Likewise.
31687 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31688 Likewise.
31689 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31690 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31691 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31692 Likewise.
31693 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31694 Likewise.
31695 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31696
31697 2017-08-10 Florian Weimer <fweimer@redhat.com>
31698
31699 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31700 attribute_hidden, internal_function.
31701 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31702 internal_function.
31703
31704 2017-08-10 Florian Weimer <fweimer@redhat.com>
31705
31706 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31707 function which calls __builtin_unreachable.
31708
31709 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31710
31711 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31712 Indian monetary formatting
31713 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31714 test cases.
31715
31716 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31717
31718 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31719 Fix typo in comment.
31720
31721 [BZ #21928]
31722 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31723 PTRACE_SEIZE_DEVEL): Remove.
31724 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31725 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31726 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31727 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31728 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31729
31730 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31731
31732 * posix/bits/types.h (__qaddr_t): Remove.
31733
31734 [BZ #21457]
31735 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31736 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31737 __glibc_reserved1.
31738 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31739 (ucontext_t): Use __ctx with uc_flags.
31740 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31741 (__ctxt): Likewise.
31742 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31743 __glibc_reserved1.
31744 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31745 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31746 __glibc_reserved1.
31747 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31748 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31749 __glibc_reserved1.
31750 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31751 macro.
31752 (ucontext_t): Use __ctx with uc_flags.
31753 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31754 (ucontext_t): Use __ctx with uc_flags.
31755 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31756 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31757 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31758 (ucontext_t): Use __ctx with uc_flags.
31759 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31760 undefine further down.
31761 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31762 __glibc_reserved1.
31763 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31764 undefine further down.
31765 (ucontext_t): Use __ctx with uc_flags.
31766 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31767 undefine further down.
31768 (ucontext_t): Use __ctx with uc_flags.
31769 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31770 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31771 Rename uc_pad to __glibc_reserved1.
31772 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31773 undefine further down.
31774 (ucontext_t): Use __ctx with uc_flags.
31775 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31776 further down.
31777 (ucontext_t): Use __ctx with uc_flags.
31778 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31779 __ctx with uc_flags.
31780 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31781 (ucontext_t): Use __ctx with uc_flags.
31782 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31783 __ctx with uc_flags.
31784
31785 2017-08-09 Florian Weimer <fweimer@redhat.com>
31786
31787 [BZ #21932]
31788 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31789 before early return.
31790
31791 2017-08-09 Andreas Schwab <schwab@suse.de>
31792
31793 [BZ #21041]
31794 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31795 renamed alias.
31796
31797 [BZ #21041]
31798 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31799 tst-compat-forwarder.
31800 (modules-names): Add tst-compat-forwarder-mod.
31801 ($(objpfx)tst-compat-forwarder): Depend on
31802 $(objpfx)tst-compat-forwarder-mod.so.
31803 * nptl/tst-compat-forwarder.c: New file.
31804 * nptl/tst-compat-forwarder-mod.c: New file.
31805
31806 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31807
31808 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31809 comments.
31810
31811 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31812 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31813 memcpy_falkor.
31814 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31815 Bump.
31816 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31817 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31818 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31819 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31820 Add falkor.
31821 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31822 New macro.
31823
31824 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31825
31826 [BZ #759]
31827 * manual/setjmp.texi (getcontex): Document uc_stack value
31828 compatibility differences.
31829
31830 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31831
31832 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31833 (old_malloc_hook): Likewise.
31834 (old_memalign_hook): Likewise.
31835 (old_realloc_hook): Likewise.
31836 (struct hdr): Likewise.
31837 (flood): Likewise.
31838 (freehook): Likewise.
31839 (mallochook): Likewise.
31840 (memalignhook): Likewise.
31841 (reallochook): Likewise.
31842 (mprobe): Likewise.
31843 * malloc/mtrace.c (mallwatch): Likewise.
31844 (tr_old_free_hook): Likewise.
31845 (tr_old_malloc_hook): Likewise.
31846 (tr_old_realloc_hook): Likewise.
31847 (tr_old_memalign_hook): Likewise.
31848 (tr_where): Likewise.
31849 (lock_and_info): Likewise.
31850 (tr_freehook): Likewise.
31851 (tr_mallochook): Likewise.
31852 (tr_reallochook): Likewise.
31853 (tr_memalignhook): Likewise.
31854 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31855 * misc/mmap.c (__mmap): Likewise.
31856 * misc/mmap64.c (__mmap64): Likewise.
31857 * misc/mprotect.c (__mprotect): Likewise.
31858 * misc/msync.c (msync): Likewise.
31859 * misc/munmap.c (__munmap): Likewise.
31860 * posix/posix_madvise.c (posix_madvise): Likewise.
31861 * socket/send.c (__send): Likewise.
31862 * socket/sendto.c (__sendto): Likewise.
31863 * socket/setsockopt.c (__setsockopt): Likewise.
31864 * string/memcmp.c (__ptr_t): Remove macro.
31865 (MEMCMP): Use void * instead of ptr_t.
31866 * string/memrchr.c (__ptr_t): Remove macro.
31867 (__memrchr): Use void * instead of ptr_t.
31868 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31869 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31870 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31871 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31872 * sysdeps/mach/msync.c (msync): Likewise.
31873 * sysdeps/mach/munmap.c (__munmap): Likewise.
31874 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31875 Likewise.
31876 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31877 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31878 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31879 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31880 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31881 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31882 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31883 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31884 Likewise.
31885 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31886 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31887 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31888 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31889 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31890 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31891 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31892 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31893 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31894 Likewise.
31895 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31896 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31897 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31898 (MEMCMP): Use void * instead of ptr_t.
31899 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31900 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31901
31902 2017-08-08 Florian Weimer <fweimer@redhat.com>
31903
31904 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31905 return statement.
31906
31907 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31908
31909 [BZ #21913]
31910 * csu/libc-tls.c: Include <startup.h> first.
31911 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31912 * elf/dl-tunables.c: Include <startup.h> first.
31913 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31914 * sysdeps/generic/startup.h: New file.
31915 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31916 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31917 (I386_USE_SYSENTER): New. Defined to 0.
31918
31919 2017-08-08 Andreas Schwab <schwab@suse.de>
31920
31921 [BZ #21041]
31922 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31923 * nptl/pt-system.c (system): Likewise.
31924
31925 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31926
31927 [BZ #21780]
31928 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31929 EOPNOTSUPP.
31930 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31931 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31932 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31933 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31934 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31935 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31936 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31937
31938 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31939
31940 [BZ #21899]
31941 * bits/sigaction.h (struct sigaction): Define sa_handler and
31942 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31943 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31944 [__USE_XOPEN_EXTENDED].
31945 (SA_RESTART): Likewise.
31946 (SA_NODEFER): Likewise.
31947 (SA_RESETHAND): Likewise.
31948 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31949 (struct sigaction): Define sa_handler and sa_sigaction using union
31950 also for [__USE_XOPEN_EXTENDED].
31951 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31952 [__USE_XOPEN_EXTENDED].
31953 (SA_RESTART): Likewise.
31954 (SA_NODEFER): Likewise.
31955 (SA_RESETHAND): Likewise.
31956 * sysdeps/unix/sysv/linux/bits/sigaction.h
31957 (struct sigaction): Define sa_handler and sa_sigaction using union
31958 also for [__USE_XOPEN_EXTENDED].
31959 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31960 [__USE_XOPEN_EXTENDED].
31961 (SA_RESTART): Likewise.
31962 (SA_NODEFER): Likewise.
31963 (SA_RESETHAND): Likewise.
31964 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31965 (struct sigaction): Define sa_handler and sa_sigaction using union
31966 also for [__USE_XOPEN_EXTENDED].
31967 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31968 [__USE_XOPEN_EXTENDED].
31969 (SA_RESTART): Likewise.
31970 (SA_NODEFER): Likewise.
31971 (SA_RESETHAND): Likewise.
31972 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31973 (struct sigaction): Define sa_handler and sa_sigaction using union
31974 also for [__USE_XOPEN_EXTENDED].
31975 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31976 [__USE_XOPEN_EXTENDED].
31977 (SA_RESTART): Likewise.
31978 (SA_NODEFER): Likewise.
31979 (SA_RESETHAND): Likewise.
31980 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31981 (struct sigaction): Define sa_handler and sa_sigaction using union
31982 also for [__USE_XOPEN_EXTENDED].
31983 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31984 [__USE_XOPEN_EXTENDED].
31985 (SA_RESTART): Likewise.
31986 (SA_NODEFER): Likewise.
31987 (SA_RESETHAND): Likewise.
31988 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31989 (struct sigaction): Define sa_handler and sa_sigaction using union
31990 also for [__USE_XOPEN_EXTENDED].
31991 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31992 [__USE_XOPEN_EXTENDED].
31993 (SA_RESTART): Likewise.
31994 (SA_NODEFER): Likewise.
31995 (SA_RESETHAND): Likewise.
31996 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31997 (struct sigaction): Define sa_handler and sa_sigaction using union
31998 also for [__USE_XOPEN_EXTENDED].
31999 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32000 [__USE_XOPEN_EXTENDED].
32001 (SA_RESTART): Likewise.
32002 (SA_NODEFER): Likewise. Define directly rather than as alias.
32003 (SA_RESETHAND): Likewise.
32004 (SA_INTERRUPT): Define only for [__USE_MISC].
32005 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32006 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32007 [__USE_MISC].
32008 (SA_STACK): Define only for [__USE_MISC].
32009 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32010 (struct sigaction): Define sa_handler and sa_sigaction using union
32011 also for [__USE_XOPEN_EXTENDED].
32012 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32013 [__USE_XOPEN_EXTENDED].
32014 (SA_RESTART): Likewise.
32015 (SA_NODEFER): Likewise.
32016 (SA_RESETHAND): Likewise.
32017 (SA_NOPTRACE): Define only for [__USE_MISC].
32018
32019 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32020 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32021 (struct catalog_info): Likewise.
32022 * inet/htontest.c (lo): Likewise.
32023 (foo): Likewise.
32024 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32025 * inet/inet_net.c (inet_network): Likewise.
32026 * inet/inet_netof.c (inet_netof): Likewise.
32027 * inet/rcmd.c (__ivaliduser): Likewise.
32028 (iruserok): Likewise.
32029 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32030 * locale/programs/locale-spec.c (locale_special): Likewise.
32031 * nis/nis_findserv.c (struct findserv_req): Likewise.
32032 (__nis_findfastest_with_timeout): Likewise.
32033 * nss/test-netdb.c (test_network): Likewise.
32034 * resolv/inet_neta.c (inet_neta): Likewise.
32035 * resolv/ns_date.c (ns_datetosecs): Likewise.
32036 (SECS_PER_DAY): Likewise.
32037 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32038 Likewise.
32039 * resolv/res_comp.c (__putlong): Likewise.
32040 (__putshort): Likewise.
32041 (_getlong): Likewise.
32042 (_getshort): Likewise.
32043 * resolv/res_debug.c (p_time): Likewise.
32044 (precsize_ntoa): Likewise.
32045 (precsize_aton): Likewise.
32046 (latlon2ul): Likewise.
32047 (loc_aton): Likewise.
32048 (loc_ntoa): Likewise.
32049 * resolv/res_hconf.c (struct netaddr): Likewise.
32050 (_res_hconf_reorder_addrs): Likewise.
32051 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32052 (clnttcp_control): Likewise.
32053 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32054 (clntudp_control): Likewise.
32055 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32056 (clntunix_control): Likewise.
32057 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32058 * sunrpc/rpc/auth.h (union des_block): Likewise.
32059 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32060 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32061 (xdrrec_create): Likewise.
32062 (xdrrec_endofrecord): Likewise.
32063 (flush_out): Likewise.
32064 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32065 (xdrstdio_putlong): Likewise.
32066 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32067 Likewise.
32068
32069 * misc/sys/cdefs.h (__long_double_t): Remove.
32070 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32071 instead of __long_double_t,
32072 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32073
32074 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32075
32076 * benchtests/scripts/compare_strings.py: Avoid display error when
32077 running on a text terminal.
32078
32079 * benchtests/scripts/compare_strings.py (main): Add an
32080 optional -base option.
32081 (process_results): New argument base_func.
32082
32083 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32084 hardcoding memcpy.
32085 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32086 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32087
32088 2017-08-07 Andreas Schwab <schwab@suse.de>
32089
32090 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32091 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32092 * intl/Makefile ($(objpfx)tst-gettext.out)
32093 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32094 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32095 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32096 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32097 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32098 * posix/Makefile ($(objpfx)globtest.out)
32099 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32100 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32101 ($(objpfx)tst-printf.out): Likewise.
32102 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32103 ($(objpfx)tst-setcontext3.out): Likewise.
32104
32105 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32106
32107 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32108 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32109 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32110 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32111 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32112 and mptan-fma.
32113 (CFLAGS-doasin-fma.c): New.
32114 (CFLAGS-dosincos-fma.c): Likewise.
32115 (CFLAGS-e_asin-fma.c): Likewise.
32116 (CFLAGS-e_atan2-fma.c): Likewise.
32117 (CFLAGS-e_exp-fma.c): Likewise.
32118 (CFLAGS-e_log-fma.c): Likewise.
32119 (CFLAGS-e_pow-fma.c): Likewise.
32120 (CFLAGS-halfulp-fma.c): Likewise.
32121 (CFLAGS-mpa-fma.c): Likewise.
32122 (CFLAGS-mpatan-fma.c): Likewise.
32123 (CFLAGS-mpatan2-fma.c): Likewise.
32124 (CFLAGS-mpexp-fma.c): Likewise.
32125 (CFLAGS-mplog-fma.c): Likewise.
32126 (CFLAGS-mpsqrt-fma.c): Likewise.
32127 (CFLAGS-mptan-fma.c): Likewise.
32128 (CFLAGS-s_atan-fma.c): Likewise.
32129 (CFLAGS-sincos32-fma.c): Likewise.
32130 (CFLAGS-slowexp-fma.c): Likewise.
32131 (CFLAGS-slowpow-fma.c): Likewise.
32132 (CFLAGS-s_sin-fma.c): Likewise.
32133 (CFLAGS-s_tan-fma.c): Likewise.
32134 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32135 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32136 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32137 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32138 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32139 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32140 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32141 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32142 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32143 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32144 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32145 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32146 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32147 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32148 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32149 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32150 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32151 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32152 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32153 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32154 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32155 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32156 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32157 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32158 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32159 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32160 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32161 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32162 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32163 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32164 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32165
32166 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32167
32168 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32169 (min_of_type_f): New macro.
32170 (min_of_type_): Likewise.
32171 (min_of_type_l): Likewise.
32172 (min_of_type_f128): Likewise.
32173 (min_of_type): Define using __MATH_TG and taking an expression
32174 argument.
32175 (math_check_force_underflow): Pass expression instead of type to
32176 min_of_type.
32177 (math_check_force_underflow_nonneg): Likewise.
32178
32179 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32180
32181 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32182 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32183 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32184
32185 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32186
32187 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32188 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32189 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32190 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32191 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32192 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32193 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32194 memmove_chk-nonshared and memset_chk-nonshared
32195 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32196 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32197 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32198 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32199 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32200 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32201 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32202 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32203 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32204 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32205 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32206 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32207 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32208 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32209 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32210 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32211 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32212 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32213 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32214 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32215 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32216 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32217 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32218 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32219 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32220 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32221 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32222 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32223 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32224 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32225 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32226 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32227 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32228 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32229 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32230 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32231 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32232 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32233 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32234 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32235 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32236 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32237 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32238 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32239 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32240 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32241 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32242 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32243 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32244 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32245 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32246 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32247 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32248 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32249 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32250 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32251 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32252 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32253 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32254 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32255 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32256 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32257 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32258 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32259 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32260 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32261 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32262 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32263 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32264 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32265 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32266 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32267 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32268 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32269 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32270 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32271 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32272 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32273 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32274 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32275 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32276 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32277 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32278 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32279 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32280 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32281 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32282 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32283 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32284 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32285 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32286 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32287 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32288 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32289 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32290 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32291 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32292 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32293 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32294 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32295 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32296 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32297 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32298 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32299 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32300 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32301 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32302 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32303
32304 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32305
32306 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32307 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32308 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32309 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32310 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32311 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32312 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32313 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32314 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32315 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32316 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32317 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32318 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32319 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32320 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32321 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32322 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32323 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32324 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32325 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32326 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32327 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32328 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32329 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32330 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32331 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32332 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32333 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32334 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32335 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32336 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32337 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32338 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32339 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32340 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32341 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32342 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32343 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32344 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32345 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32346 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32347 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32348 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32349 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32350 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32351 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32352 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32353 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32354 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32355 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32356 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32357 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32358 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32359 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32360 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32361 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32362 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32363 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32364 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32365 ...
32366 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32367 Don't include <sysdep.h> nor <init-arch.h>.
32368 (_ZGVbN2v_cos): Removed.
32369 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32370 ...
32371 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32372 Don't include <sysdep.h> nor <init-arch.h>.
32373 (_ZGVdN4v_cos): Removed.
32374 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32375 ...
32376 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32377 Don't include <sysdep.h> nor <init-arch.h>.
32378 (_ZGVeN8v_cos): Removed.
32379 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32380 ...
32381 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32382 Don't include <sysdep.h> nor <init-arch.h>.
32383 (_ZGVbN2v_exp): Removed.
32384 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32385 ...
32386 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32387 Don't include <sysdep.h> nor <init-arch.h>.
32388 (_ZGVdN4v_exp): Removed.
32389 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32390 ...
32391 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32392 Don't include <sysdep.h> nor <init-arch.h>.
32393 (_ZGVeN8v_exp): Removed.
32394 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32395 ...
32396 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32397 Don't include <sysdep.h> nor <init-arch.h>.
32398 (_ZGVbN2v_log): Removed.
32399 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32400 ...
32401 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32402 Don't include <sysdep.h> nor <init-arch.h>.
32403 (_ZGVdN4v_log): Removed.
32404 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32405 ...
32406 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32407 Don't include <sysdep.h> nor <init-arch.h>.
32408 (_ZGVeN8v_log): Removed.
32409 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32410 ...
32411 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32412 Don't include <sysdep.h> nor <init-arch.h>.
32413 (_ZGVbN2vv_pow): Removed.
32414 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32415 ...
32416 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32417 Don't include <sysdep.h> nor <init-arch.h>.
32418 (_ZGVdN4vv_pow): Removed.
32419 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32420 ...
32421 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32422 Don't include <sysdep.h> nor <init-arch.h>.
32423 (_ZGVeN8vv_pow): Removed.
32424 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32425 ...
32426 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32427 Don't include <sysdep.h> nor <init-arch.h>.
32428 (_ZGVbN2v_sin): Removed.
32429 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32430 ...
32431 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32432 Don't include <sysdep.h> nor <init-arch.h>.
32433 (_ZGVbN4v_sin): Removed.
32434 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32435 ...
32436 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32437 Don't include <sysdep.h> nor <init-arch.h>.
32438 (_ZGVbN8v_sin): Removed.
32439 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32440 ...
32441 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32442 Don't include <sysdep.h> nor <init-arch.h>.
32443 (_ZGVbN2vvv_sincos): Removed.
32444 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32445 ...
32446 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32447 Don't include <sysdep.h> nor <init-arch.h>.
32448 (_ZGVdN4vvv_sincos): Removed.
32449 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32450 ...
32451 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32452 Don't include <sysdep.h> nor <init-arch.h>.
32453 (_ZGVeN8vvv_sincos): Removed.
32454 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32455 ...
32456 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32457 Don't include <sysdep.h> nor <init-arch.h>.
32458 (_ZGVeN16v_cosf): Removed.
32459 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32460 ...
32461 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32462 Don't include <sysdep.h> nor <init-arch.h>.
32463 (_ZGVbN4v_cosf): Removed.
32464 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32465 ...
32466 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32467 Don't include <sysdep.h> nor <init-arch.h>.
32468 (_ZGVdN8v_cosf): Removed.
32469 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32470 ...
32471 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32472 Don't include <sysdep.h> nor <init-arch.h>.
32473 (_ZGVeN16v_expf): Removed.
32474 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32475 ...
32476 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32477 Don't include <sysdep.h> nor <init-arch.h>.
32478 (_ZGVbN4v_expf): Removed.
32479 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32480 ...
32481 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32482 Don't include <sysdep.h> nor <init-arch.h>.
32483 (_ZGVdN8v_expf): Removed.
32484 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32485 ...
32486 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32487 Don't include <sysdep.h> nor <init-arch.h>.
32488 (_ZGVeN16v_logf): Removed.
32489 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32490 ...
32491 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32492 Don't include <sysdep.h> nor <init-arch.h>.
32493 (_ZGVbN4v_logf): Removed.
32494 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32495 ...
32496 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32497 Don't include <sysdep.h> nor <init-arch.h>.
32498 (_ZGVdN8v_logf): Removed.
32499 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32500 ...
32501 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32502 Don't include <sysdep.h> nor <init-arch.h>.
32503 (_ZGVeN16vv_powf): Removed.
32504 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32505 ...
32506 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32507 Don't include <sysdep.h> nor <init-arch.h>.
32508 (_ZGVbN4vv_powf): Removed.
32509 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32510 ...
32511 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32512 Don't include <sysdep.h> nor <init-arch.h>.
32513 (_ZGVdN8vv_powf): Removed.
32514 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32515 ...
32516 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32517 Don't include <sysdep.h> nor <init-arch.h>.
32518 (_ZGVeN16vvv_sincosf): Removed.
32519 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32520 ...
32521 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32522 Don't include <sysdep.h> nor <init-arch.h>.
32523 (_ZGVbN4vvv_sincosf): Removed.
32524 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32525 ...
32526 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32527 Don't include <sysdep.h> nor <init-arch.h>.
32528 (_ZGVdN8vvv_sincosf): Removed.
32529 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32530 ...
32531 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32532 Don't include <sysdep.h> nor <init-arch.h>.
32533 (_ZGVeN16v_sinf): Removed.
32534 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32535 ...
32536 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32537 Don't include <sysdep.h> nor <init-arch.h>.
32538 (_ZGVbN4v_sinf): Removed.
32539 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32540 ...
32541 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32542 Don't include <sysdep.h> nor <init-arch.h>.
32543 (_ZGVdN8v_sinf): Removed.
32544
32545 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32546
32547 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32548 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32549 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32550 s_rint-sse4_1 and s_rintf-sse4_1.
32551 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32552 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32553 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32554 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32555 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32556 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32557 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32558 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32559 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32560 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32561 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32562 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32563 (__ceil): Removed.
32564 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32565 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32566 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32567 (__ceilf): Removed.
32568 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32569 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32570 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32571 (__floor): Removed.
32572 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32573 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32574 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32575 (__floorf): Removed.
32576 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32577 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32578 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32579 (__nearbyint): Removed.
32580 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32581 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32582 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32583 (__nearbyintf): Removed.
32584 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32585 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32586 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32587 (__rint): Removed.
32588 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32589 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32590 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32591 (__rintf): Removed.
32592
32593 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32594
32595 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32596 SHARED. Avoid dynamic relocation against main in static PIE.
32597
32598 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32599
32600 [BZ #21815]
32601 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32602 (LDFLAGS-tst-prelink): Likewise.
32603
32604 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32605
32606 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32607 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32608 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32609 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32610 (INTERNAL_SYSCALL_NCS): Likewise.
32611 (LOADARGS_1): Likewise.
32612 (LOADARGS_5): Likewise.
32613 (RESTOREARGS_1): Likewise.
32614 (RESTOREARGS_5): Likewise.
32615
32616 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32617
32618 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32619 (MEMPCPY_SYMBOL): Likewise.
32620 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32621 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32622 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32623 in libc.a.
32624 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32625 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32626 Likewise.
32627 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32628 (__hidden_ver1): Don't use in libc.a.
32629 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32630 (__mempcpy): Don't create a weak alias in libc.a.
32631 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32632 libc.a.
32633 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32634 (__hidden_ver1): Don't use in libc.a.
32635
32636 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32637
32638 * config.make.in (have-insert): New.
32639 * configure.ac (libc_cv_insert): New. Set to yes if linker
32640 supports INSERT in linker script.
32641 (AC_SUBST(libc_cv_insert): New.
32642 * configure: Regenerated.
32643 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32644 if $(have-insert) == yes.
32645
32646 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32647
32648 * elf/Makefile (tests): Add vismain only if
32649 $(have-protected-data) == yes.
32650 (tests-pie): Likewise.
32651
32652 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32653
32654 [BZ #21871]
32655 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32656 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32657
32658 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32659
32660 [BZ #21790]
32661 * sysdeps/i386/i586/memset.S
32662 (__memset_zero_constant_len_parameter): Removed.
32663 * sysdeps/i386/i686/memset.S
32664 (__memset_zero_constant_len_parameter): Likewise.
32665 * sysdeps/i386/i686/multiarch/memset_chk.S
32666 (__memset_zero_constant_len_parameter): Likewise.
32667 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32668 Likewise.
32669
32670 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32671
32672 * stdlib/getentropy.c (getentropy): Change return type to int.
32673
32674 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32675
32676 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32677
32678 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32679
32680 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32681 u_intN_t.
32682 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32683 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32684 Likewise.
32685 (ieee_float_shape_type): Likewise.
32686 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32687 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32688 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32689 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32690 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32691 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32692 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32693 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32694 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32695 Likewise.
32696 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32697 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32698 (__ieee754_yn): Likewise.
32699 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32700 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32701 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32702 Likewise.
32703 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32704 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32705 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32706 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32707 (__erfc): Likewise.
32708 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32709 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32710 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32711 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32712 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32713 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32714 Likewise.
32715 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32716 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32717 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32718 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32719 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32720 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32721 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32722 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32723 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32724 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32725 (__issignaling): Likewise.
32726 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32727 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32728 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32729 Likewise.
32730 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32731 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32732 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32733 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32734 Likewise.
32735 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32736 Likewise.
32737 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32738 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32739 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32740 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32741 (__erfcf): Likewise.
32742 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32743 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32744 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32745 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32746 Likewise.
32747 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32748 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32749 Likewise.
32750 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32751 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32752 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32753 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32754 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32755 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32756 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32757 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32758 Likewise.
32759 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32760 Likewise.
32761 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32762 Likewise.
32763 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32764 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32765 Likewise.
32766 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32767 Likewise.
32768 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32769 (__ieee754_ynl): Likewise.
32770 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32771 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32772 Likewise.
32773 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32774 Likewise.
32775 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32776 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32777 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32778 Likewise.
32779 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32780 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32781 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32782 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32783 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32784 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32785 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32786 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32787 Likewise.
32788 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32789 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32790 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32791 Likewise.
32792 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32793 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32794 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32795 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32796 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32797 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32798 Likewise.
32799 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32800 Likewise.
32801 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32802 Likewise.
32803 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32804 Likewise.
32805 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32806 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32807 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32808 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32809 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32810 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32811 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32812 Likewise.
32813 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32814 Likewise.
32815 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32816 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32817 Likewise.
32818 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32819 (__ieee754_remainderl): Likewise.
32820 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32821 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32822 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32823 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32824 Likewise.
32825 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32826 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32827 Likewise.
32828 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32829 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32830 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32831 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32832 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32833 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32834 Likewise.
32835 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32836 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32837 (__ieee754_y0l): Likewise.
32838 (pzero): Likewise.
32839 (qzero): Likewise.
32840 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32841 (__ieee754_y1l): Likewise.
32842 (pone): Likewise.
32843 (qone): Likewise.
32844 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32845 (__ieee754_ynl): Likewise.
32846 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32847 (__ieee754_lgammal_r): Likewise.
32848 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32849 Likewise.
32850 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32851 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32852 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32853 (__erfcl): Likewise.
32854 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32855 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32856 Likewise.
32857 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32858 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32859 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32860 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32861 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32862 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32863 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32864 Likewise.
32865 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32866 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32867 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32868 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32869 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32870 Likewise.
32871 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32872 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32873 Likewise.
32874 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32875 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32876 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32877 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32878 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32879
32880 2017-08-03 Florian Weimer <fweimer@redhat.com>
32881
32882 [BZ #21885]
32883 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32884 on memory allocation failure.
32885
32886 2017-08-03 Alan Modra <amodra@gmail.com>
32887
32888 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32889 tst-tlsopt-powerpc.c with function name change and no test harness.
32890 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32891 Call tls_get_addr_opt_test.
32892 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32893 (modules-names): Add mod-tlsopt-powerpc.
32894 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32895 (tst-tlsopt-powerpc): Depend on .so.
32896 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32897 define. Expand use in TLS_GD and TLS_LD.
32898
32899 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32900
32901 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32902 function.
32903 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32904
32905 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32906
32907 [BZ #21686]
32908 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32909 comparing size with that of double.
32910 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32911 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32912 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32913 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32914 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32915 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32916 unsigned __int128 types.
32917
32918 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32919
32920 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32921 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32922 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32923 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32924 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32925
32926 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32927
32928 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32929
32930 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32931
32932 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32933 of SHARED.
32934 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32935 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32936 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32937 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32938 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32939 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32940 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32941
32942 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32943
32944 [BZ #21685]
32945 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32946 bit-field expressions passed to sizeof or typeof.
32947 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32948 (__TGMATH_F128): Likewise.
32949 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32950 (__TGMATH_CF128): Likewise.
32951 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32952 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32953 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32954 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32955 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32956 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32957 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32958 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32959 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32960 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32961 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32962 (__TGMATH_UNARY_IMAG): Likewise.
32963 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32964 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32965 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32966 type.
32967 (define_vars_for_type): Handle bit_field type specially.
32968 (Tests.__init__): Declare structure with bit-field element.
32969
32970 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32971
32972 [BZ #21791]
32973 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32974 (MEMCPY_CHK): Define only if SHARED is defined.
32975 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32976 Likewise.
32977 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32978 Likewise.
32979
32980 See ChangeLog.18 for earlier changes.