]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
rt: Turn forwards from librt to libc into compat symbols [BZ #24194]
[thirdparty/glibc.git] / ChangeLog
1 2019-02-07 Florian Weimer <fweimer@redhat.com>
2
3 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
4 compatibility symbols.
5
6 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
7
8 [BZ #24180]
9 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
10 Add compiler barriers and comments.
11
12 2019-02-07 Florian Weimer <fweimer@redhat.com>
13
14 * include/array_length.h (array_length): Do not use a statement
15 expression and _Static_assert, so that array_length can be used at
16 file scope and as a constant expression.
17
18 2019-02-07 Florian Weimer <fweimer@redhat.com>
19
20 * support/xdlfcn.h (xdlmopen): Declare.
21 * support/xdlmopen.c: New file.
22 * support/Makefile (libsupport-routines): Add xdlmopen.
23
24 2019-02-06 Joseph Myers <joseph@codesourcery.com>
25
26 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
27 before return type, without separate inline.
28 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
29 * elf/dl-tunables.h (tunable_is_name): Likewise.
30 * malloc/malloc.c (do_set_trim_threshold): Likewise.
31 (do_set_top_pad): Likewise.
32 (do_set_mmap_threshold): Likewise.
33 (do_set_mmaps_max): Likewise.
34 (do_set_mallopt_check): Likewise.
35 (do_set_perturb_byte): Likewise.
36 (do_set_arena_test): Likewise.
37 (do_set_arena_max): Likewise.
38 (do_set_tcache_max): Likewise.
39 (do_set_tcache_count): Likewise.
40 (do_set_tcache_unsorted_limit): Likewise.
41 * nis/nis_subr.c (count_dots): Likewise.
42 * nptl/allocatestack.c (advise_stack_range): Likewise.
43 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
44 (do_sin): Likewise.
45 (reduce_sincos): Likewise.
46 (do_sincos): Likewise.
47 * sysdeps/unix/sysv/linux/x86/elision-conf.c
48 (do_set_elision_enable): Likewise.
49 (TUNABLE_CALLBACK_FNDECL): Likewise.
50
51 2019-02-06 Florian Weimer <fweimer@redhat.com>
52
53 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
54 (xdlsym): Use dlerror to detect a NULL symbol.
55
56 2019-02-06 Florian Weimer <fweimer@redhat.com>
57
58 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
59 <stap-probe.h>.
60 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
61
62 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
63
64 * libio/tst-bz24153.c (wide): Use wide char format specifier.
65
66 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
67
68 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
69 __wmemcmp and weak alias to wmemcmp.
70
71 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
72
73 [BZ #23403]
74 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
75 TLS_TCB_AT_TP tls variant.
76 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
77 Add alignment checks.
78 * support/Makefile (libsupport-routines): Add xposix_memalign and
79 xpthread_setstack.
80 * support/support.h: Add xposix_memalign.
81 * support/xthread.h: Add xpthread_attr_setstack.
82 * support/xposix_memalign.c: New File.
83 * support/xpthread_attr_setstack.c: Likewise.
84
85 2019-02-05 Florian Weimer <fweimer@redhat.com>
86
87 [BZ #24164]
88 arm: Use "nr" constraint for Systemtap probes, to avoid the
89 compiler using memory operands for constants, due to the "o"
90 alternative in the default "nor" constraint.
91 * include/stap-probe.h [USE_STAP_PROBE]: Include
92 <stap-probe-machine.h>
93 * sysdeps/generic/stap-probe-machine.h: New file.
94 * sysdeps/arm/stap-probe-machine.h: Likewise.
95
96 2019-02-04 Joseph Myers <joseph@codesourcery.com>
97
98 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
99 with 0, not tcache->entries[tc_idx].
100
101 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
102 once.
103
104 2019-02-04 Andreas Schwab <schwab@suse.de>
105
106 [BZ #16976]
107 [BZ #17396]
108 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
109 looking up collating elements match against (wide) character
110 sequence instead of name. Correct alignment adjustment.
111 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
112 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
113 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
114 (LOCALES): Add cs_CZ.ISO-8859-2.
115 * posix/tst-fnmatch4.c: New file.
116 * posix/tst-fnmatch5.c: New file.
117 * include/wchar.h (__wmemcmp): Declare.
118 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
119 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
120 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
121 * sysdeps/s390/wmemcmp.c: Likewise.
122
123 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
124
125 [BZ #24155]
126 CVE-2019-7309
127 * NEWS: Updated for CVE-2019-7309.
128 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
129 upper 32 bits of RDX register for x32. Use unsigned Jcc
130 instructions, instead of signed.
131 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
132 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
133
134 2019-02-04 Florian Weimer <fweimer@redhat.com>
135
136 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
137 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
138 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
139 Likewise.
140 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
141 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
142 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
143 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
144 Likewise.
145 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
146 Likewise.
147 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
148 Likewise.
149 (posix_spawn_file_actions_addopen): Likewise.
150 (posix_spawn_file_actions_addclose): Likewise.
151 (posix_spawn_file_actions_adddup2): Likewise.
152 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
153 qualifiers.
154 (posix_spawn_file_actions_addfchdir_np): Likewise.
155
156 2019-02-04 David Newall <glibc@davidnewall.com>
157
158 elf: Implement --preload option for the dynamic linker.
159 * elf/rtld.c (preloadarg): New variable.
160 (handle_preload_list): Pass through “where” argument to
161 do_preload.
162 (dl_main): Handle "--preload" and add second call to
163 handle_preload_list.
164 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
165 (tst-rtld-preload-OBJS): Set variable.
166 (tst-rtld-preload.out): New target.
167 * elf/tst-rtld-preload.sh: New file.
168
169 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
170
171 * Makefile (testrun.sh): Exit in case of incorrect argument.
172
173 2019-02-04 Florian Weimer <fweimer@redhat.com>
174
175 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
176 alignment gaps.
177
178 2019-02-03 Florian Weimer <fweimer@redhat.com>
179
180 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
181 implicit overflow checks.
182
183 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
184
185 * stdlib/isomac.c: Include <unistd.h>.
186
187 2019-02-03 Florian Weimer <fweimer@redhat.com>
188
189 * include/time.h (__tzfile_default): Use int, not long int, for
190 the GMT offsets.
191 * time/tzfile.c (struct ttinfo): Change type of the offset member
192 to int.
193 (__tzfile_read): Remove useless cast.
194 (__tzfile_default): Adjust prototype.
195 * time/tzset.c (tz_rule): Change type of the offset member to int.
196 (parse_offset): Change the type of the sign variable to int.
197
198 2019-02-03 Florian Weimer <fweimer@redhat.com>
199
200 [BZ #24153]
201 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
202 * libio/getchar.c (getchar): Likewise.
203 * libio/getchar_u.c (getchar_unlocked): Likewise.
204 * libio/getwchar.c (getwchar): Likewise.
205 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
206 * libio/iogets.c (_IO_gets): Likewise.
207 * libio/vscanf.c (_IO_vscanf): Likewise.
208 * libio/vwscanf.c (__vwscanf): Likewise.
209 * libio/tst-bz24153.c: New file.
210 * libio/Makefile (tests): Add it.
211
212 2019-02-02 Florian Weimer <fweimer@redhat.com>
213
214 [BZ #14829]
215 * manual/resource.texi (Basic Scheduling Functions): Add
216 portability note. Change process to task throughout the section.
217 Remove incorrect comment about sched_yield as it affects
218 tasks/threads, not entire processes.
219 * sysdeps/unix/sysv/linux/bits/posix_opt.h
220 (_POSIX_PRIORITY_SCHEDULING): Update comment.
221
222 2019-02-01 Joseph Myers <joseph@codesourcery.com>
223
224 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
225 * configure: Regenerated.
226 * manual/install.texi (Tools for Compilation): Update minimum GCC
227 version.
228 * INSTALL: Regenerated.
229
230 2019-02-01 Florian Weimer <fweimer@redhat.com>
231
232 * support/support_test_compare_string.c
233 (support_test_compare_string): Use "string" in error message.
234 * support/tst-test_compare_string.c (do_test): Adjust.
235
236 2019-02-01 Florian Weimer <fweimer@redhat.com>
237
238 * support/support_format_address_family.c
239 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
240
241 2019-02-01 Florian Weimer <fweimer@redhat.com>
242
243 * manual/socket.texi (Internet Address Formats): Clarify the byte
244 order of struct sockaddr_in, struct sockaddr_in6. Document
245 sin6_flowinfo and sin6_scope_id.
246
247 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
248
249 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
250 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
251 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
252 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
253 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
254 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
255
256 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
257
258 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
259 [!MEMCHR](MEMCHR): Set to __memchr.
260 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
261 Add memchr_generic and memchr_nosimd.
262 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
263 (__libc_ifunc_impl_list): Add memchr ifuncs.
264 * sysdeps/aarch64/multiarch/memchr.c: New file.
265 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
266 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
267
268 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
269
270 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
271 Add memset_emag.
272 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
273 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
274 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
275 Add IS_EMAG check for ifunc dispatch.
276 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
277 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
278
279 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
280
281 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
282 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
283 Add emag.
284 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
285 New macro.
286
287 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
288
289 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
290
291 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
292
293 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
294 syscall-template file.
295
296 2019-01-31 Carlos O'Donell <carlos@redhat.com>
297 Torvald Riegel <triegel@redhat.com>
298 Rik Prohaska <prohaska7@gmail.com>
299
300 [BZ# 23844]
301 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
302 tst-rwlock-trywrlock-stall.
303 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
304 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
305 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
306 Set __wrphase_fute to 1 only if we started the write phase.
307 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
308 * nptl/tst-rwlock-trywrlock-stall.c: New file.
309 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
310 * support/xpthread_rwlock_destroy.c: New file.
311 * support/xthread.h: Declare xpthread_rwlock_destroy.
312
313 2019-02-01 Joseph Myers <joseph@codesourcery.com>
314
315 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
316 version to 4.0.2.
317
318 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
319
320 [BZ #24051]
321 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
322 * libio/fileops.c (_IO_new_file_underflow): Likewise
323 * libio/wfileops.c (_IO_wfile_underflow): Likewise
324 * libio/putchar.c (putchar): Likewise.
325 * libio/putchar_u.c (putchar_unlocked): Likewise.
326 * libio/putwchar.c (putchar): Likewise.
327 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
328 * libio/tst-bz24051.c: New test.
329 * libio/Makefile (tests): Add tst-bz24051
330
331 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
332
333 regex: fix read overrun [BZ #24114]
334 Problem found by AddressSanitizer, reported by Hongxu Chen in:
335 https://debbugs.gnu.org/34140
336 * posix/regexec.c (proceed_next_node):
337 Do not read past end of input buffer.
338
339 2019-01-31 Florian Weimer <fweimer@redhat.com>
340
341 [BZ #24059]
342 * nss/nss_files/files-alias.c (get_next_alias): Handle
343 continuation line without newline at the end.
344 * nss/tst-nss-files-alias-truncated.c: New file.
345 * nss/Makefile [$(build-shared)] (tests): Add
346 tst-nss-files-alias-truncated.
347 (tst-nss-files-alias-truncated): Link with libnss_files.so.
348 * support/namespace.h (struct support_chroot_configuration): Add
349 aliases member.
350 (struct support_chroot): Add path_aliases member.
351 * support/support_chroot.c (support_chroot_create): Handle
352 aliases.
353 (support_chroot_free): Free path_aliases.
354
355 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
356
357 * version.h (RELEASE): Set to "development".
358 (VERSION): Set to "2.29.9000".
359 * NEWS: Add section for 2.30.
360
361 * version.h (RELEASE): Set to "stable".
362 (VERSION): Set to "2.29".
363 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
364
365 * NEWS: Add the list of bugs fixed in 2.29.
366 * manual/contrib.texi: Update contributors list with some more
367 names.
368 * manual/install.texi: Update latest versions of packages
369 tested.
370 * INSTALL: Regenerated.
371
372 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
373
374 * po/be.po: Update translations.
375 * po/bg.po: Likewise.
376 * po/ca.po: Likewise.
377 * po/cs.po: Likewise.
378 * po/da.po: Likewise.
379 * po/de.po: Likewise.
380 * po/el.po: Likewise.
381 * po/eo.po: Likewise.
382 * po/es.po: Likewise.
383 * po/fi.po: Likewise.
384 * po/fr.po: Likewise.
385 * po/gl.po: Likewise.
386 * po/hr.po: Likewise.
387 * po/hu.po: Likewise.
388 * po/ia.po: Likewise.
389 * po/id.po: Likewise.
390 * po/it.po: Likewise.
391 * po/ja.po: Likewise.
392 * po/ko.po: Likewise.
393 * po/lt.po: Likewise.
394 * po/nb.po: Likewise.
395 * po/nl.po: Likewise.
396 * po/pl.po: Likewise.
397 * po/pt_BR.po: Likewise.
398 * po/ru.po: Likewise.
399 * po/rw.po: Likewise.
400 * po/sk.po: Likewise.
401 * po/sl.po: Likewise.
402 * po/sv.po: Likewise.
403 * po/tr.po: Likewise.
404 * po/uk.po: Likewise.
405 * po/vi.po: Likewise.
406 * po/zh_CN.po: Likewise.
407 * po/zh_TW.po: Likewise.
408
409 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
410
411 [BZ #24130]
412 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
413 of $f3 register on $y_is_neg path.
414
415 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
416
417 [BZ #24110]
418 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
419 sigaltstack.ss_flags.
420
421 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
422
423 [BZ #23758]
424 * manual/time.texi (strftime): Document "%Ey".
425 * time/strftime_l.c (__strftime_internal): Set the default width
426 padding with zero of "%Ey" to 2.
427
428 [BZ #24096]
429 * manual/time.texi (strftime): Document "%EC" and "%EY".
430 * time/Makefile (tests): Add tst-strftime2.
431 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
432 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
433 override padding for "%Ey".
434 If an optional flag ('_' or '-') is specified to "%EY", interpret the
435 "%Ey" in the subformat as if decorated with that flag.
436 * time/tst-strftime2.c: New file.
437
438 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
439
440 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
441 are not defined.
442
443 [BZ #24122]
444 * elf/Makefile (tests): Add tst-audit13.
445 (modules-names): Add tst-audit13mod1.
446 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
447 rule.
448 * elf/rtld.c (dl_main): Handle invalid audit module version.
449 * elf/tst-audit13.c: New file.
450 * elf/tst-audit13mod1.c: Likewise.
451
452 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
453
454 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
455 returned by __hurd_at_flags.
456 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
457 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
458 directly instead of __hurd_file_name_lookup.
459
460 2019-01-21 Joseph Myers <joseph@codesourcery.com>
461
462 * scripts/build-many-glibcs.py (Context.checkout): Default
463 binutils version to 2.32 branch.
464
465 2019-01-21 Florian Weimer <fweimer@redhat.com>
466
467 [BZ #20018]
468 CVE-2016-10739
469 resolv: Reject trailing characters in host names
470 * include/arpa/inet.h (__inet_aton_exact): Declare.
471 (inet_aton): Remove hidden prototype. No longer used internally.
472 * nscd/gai.c (__inet_aton): Do not define.
473 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
474 * nss/digits_dots.c (__inet_aton): Likewise.
475 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
476 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
477 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
478 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
479 (tst-resolv-trailing): Likewise.
480 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
481 libc.
482 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
483 Make static. Add endp parameter.
484 (__inet_aton_exact): New function.
485 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
486 (__inet_addr): Call inet_aton_end.
487 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
488 not just IPv6. Call __inet_aton_exact.
489 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
490 (tests): Make const. Add additional test cases with trailing
491 characters.
492 (do_test): Use array_length.
493 * resolv/tst-inet_aton_exact.c: New file.
494 * resolv/tst-resolv-trailing.c: Likewise.
495 * resolv/tst-resolv-nondecimal.c: Likewise.
496 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
497
498 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
499
500 [BZ# 24097]
501 CVE-2019-6488
502 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
503 Clear the upper 32 bits of RSI register.
504 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
505 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
506 and tst-size_t-wcsnlen.
507 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
508 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
509
510 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
511
512 [BZ# 24097]
513 CVE-2019-6488
514 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
515 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
516 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
517 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
518 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
519
520 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
521
522 [BZ# 24097]
523 CVE-2019-6488
524 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
525 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
526 * sysdeps/x86_64/strcmp.S: Likewise.
527 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
528 tst-size_t-strncmp and tst-size_t-wcsncmp.
529 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
530 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
531 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
532
533 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
534
535 [BZ# 24097]
536 CVE-2019-6488
537 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
538 RDX_LP for length. Clear the upper 32 bits of RDX register.
539 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
540 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
541 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
542 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
543
544 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
545
546 [BZ# 24097]
547 CVE-2019-6488
548 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
549 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
550 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
551 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
552
553 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
554
555 [BZ# 24097]
556 CVE-2019-6488
557 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
558 length. Clear the upper 32 bits of RDX register.
559 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
560 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
561 Likewise.
562 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
563 Likewise.
564 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
565 tst-size_t-wmemchr.
566 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
567
568 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
569
570 [BZ# 24097]
571 CVE-2019-6488
572 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
573 length. Clear the upper 32 bits of RDX register.
574 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
575 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
576 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
577 tst-size_t-wmemcmp.
578 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
579 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
580
581 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
582
583 [BZ# 24097]
584 CVE-2019-6488
585 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
586 upper 32 bits of RDX register.
587 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
588 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
589 tst-size_t-wmemchr.
590 * sysdeps/x86_64/x32/test-size_t.h: New file.
591 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
592 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
593
594 2019-01-18 Florian Weimer <fweimer@redhat.com>
595
596 [BZ #24112]
597 resolv: Do not send queries for non-host-names in nss_dns.
598 * resolv/nss_dns/dns-host.c (check_name): New function.
599 (_nss_dns_gethostbyname2_r): Use it.
600 (_nss_dns_gethostbyname_r): Likewise.
601 (_nss_dns_gethostbyname4_r): Likewise.
602
603 2019-01-21 Florian Weimer <fweimer@redhat.com>
604
605 * resolv/inet_addr.c: Reformat to GNU style.
606 (__inet_addr, __inet_aton): Update comment.
607
608 2019-01-18 Florian Weimer <fweimer@redhat.com>
609
610 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
611 ("malloc: Use current (C11-style) atomics for fastbin access").
612 This commit introduces a substantial performance regression on
613 POWER and Aarch64.
614 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
615 (REMOVE_FB): Define.
616 (_int_malloc): Use it and reindent.
617 (_int_free): Use CAS loop with
618 catomic_compare_and_exchange_val_rel.
619 (malloc_consolidate): Use atomic_exchange_acq.
620
621
622 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
623
624 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
625 -Wl,-z,now.
626 (LDFLAGS-tst-minsigstksz-2): Likewise.
627 (LDFLAGS-tst-minsigstksz-3): Likewise.
628 (LDFLAGS-tst-minsigstksz-3a): Likewise.
629 (LDFLAGS-tst-minsigstksz-4): Likewise.
630
631 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
632
633 * manual/time.texi (strftime): Fix the wording to "alternative" rather
634 than "alternate".
635
636 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
637
638 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
639
640 2019-01-16 Zack Weinberg <zackw@panix.com>
641
642 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
643 (xget_sigstack_location): New test support functions.
644 * support/xsigstack.c: New file, implementing them.
645 * support/tst-xsigstack.c: New test for them.
646 * support/Makefile: Update.
647
648 * signal/tst-minsigstksz-1.c
649 * signal/tst-minsigstksz-2.c
650 * signal/tst-minsigstksz-3.c
651 * signal/tst-minsigstksz-3a.c
652 * signal/tst-minsigstksz-4.c: New tests.
653 * signal/Makefile: Run them.
654
655 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
656
657 * po/libc.pot: Regenerate.
658
659 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
660
661 * math/libm-test-fma.inc (fma_test_data): Set
662 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
663
664 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
665
666 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
667 (do_test): Changed __vector __int128_t to __vector unsigned int.
668
669 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
670
671 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
672 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
673 stpcpy-avx2 and stpncpy-avx2.
674 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
675 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
676 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
677 and __stpncpy_avx2.
678 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
679 ifunc-strcpy.h}: rename header for a more generic name.
680 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
681 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
682 AVX unaligned load is fast and vzeroupper is preferred.
683 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
684 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
685 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
686 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
687 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
688 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
689
690 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
691
692 * argp/argp-help.c: Fix typo in comment.
693 * misc/sys/cdefs.h: Likewise.
694 * posix/regexec.c (sift_states_iter_mb): Likewise.
695 * socket/sockatmark.c: Likewise.
696 * socket/sys/socket.h: Likewise.
697 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
698 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
699 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
700 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
701 * sysdeps/unix/sockatmark.c: Likewise.
702 * time/strptime_l.c: Likewise.
703
704 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
705
706 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
707 missing space after the cast of "_NL_CURRENT".
708
709 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
710
711 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
712 ifdef to fix read of VSCR.
713 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
714 tst-ucontext-ppc64-vscr.c to test list.
715 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
716
717 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
718
719 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
720 fall-through.
721
722 2019-01-09 Jim Wilson <jimw@sifive.com>
723
724 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
725
726 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
727
728 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
729 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
730 __memcpy_falkor for ares.
731 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
732 Add new define.
733 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
734 Add ares cpu.
735
736 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
737
738 [BZ #24066]
739 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
740 4_FP_W_TYPEs are used for IEEE quad precision.
741 * soft-fp/extendhftf2.c: Likewise.
742 * soft-fp/extendsftf2.c: Likewise.
743 * soft-fp/extendxftf2.c: Likewise.
744 * soft-fp/trunctfdf2.c: Likewise.
745 * soft-fp/trunctfhf2.c: Likewise.
746 * soft-fp/trunctfsf2.c: Likewise.
747 * soft-fp/trunctfxf2.c: Likewise.
748 * sysdeps/alpha/ots_cvttx.c: Likewise.
749 * sysdeps/alpha/ots_cvtxt.c: Likewise.
750 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
751 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
752 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
753 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
754 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
755 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
756 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
757 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
758 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
759 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
760 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
761 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
762 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
763 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
764 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
765 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
766
767 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
768
769 [BZ #24024]
770 * Makeconfig: Build libm with -fno-math-errno but build the remaining
771 code with -fmath-errno.
772 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
773 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
774 * string/test-strerror-errno.c: New file.
775
776 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
777
778 [BZ #24046]
779 * localedata/locales/en_US (date_fmt): Add, set to
780 "%a %d %b %Y %r %Z".
781
782 2019-01-07 Florian Weimer <fweimer@redhat.com>
783
784 [BZ #24063]
785 * manual/arith.texi (Math Error Reporting): Use @code{errno}
786 instead of @var{errno}.
787 (Parsing of Integers): Likewise.
788 (Parsing of Floats): Likewise.
789 * manual/filesys.texi (Working with Directory Trees): Likewise.
790 (Temporary Files): Likewise.
791 * manual/job.texi (Terminal Access Functions): Likewise.
792 * manual/llio.texi (Synchronizing I/O): Likewise.
793 * manual/math.texi (SVID Random): Likewise.
794 * manual/message.texi (The catgets Functions): Likewise.
795 (Translation with gettext): Likewise.
796 (Locating gettext catalog): Likewise.
797 (Charset conversion in gettext): Likewise.
798 * manual/nss.texi (NSS Module Function Internals): Likewise.
799 * manual/search.texi (Hash Search Function): Likewise.
800 * manual/setjmp.texi (System V contexts): Likewise.
801 * manual/time.texi (Sleeping): Likewise.
802 * manual/users.texi (Lookup User): Likewise.
803 (Lookup Group): Likewise.
804
805 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
806
807 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
808 fix typo.
809
810 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
811
812 [BZ #19444]
813 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
814 __builtin_unreachable for default case in switch.
815 (__ieee754_yn): Likewise.
816 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
817 (__ieee754_ynl): Likewise.
818 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
819 (__ieee754_ynl): Likewise.
820 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
821 (__ieee754_ynl): Likewise.
822
823 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
824
825 * manual/maint.texi: Use @{ and @}.
826
827 2019-01-04 Florian Weimer <fweimer@redhat.com>
828
829 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
830 function.
831 (do_in_chroot_1): Call it.
832 (run_chroot_tests):
833 Improve error reporting in case it is not possible to create a
834 collision for the PTY name required by the test.
835
836 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
837
838 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
839 lll_wait_tid with timeout.
840 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
841 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
842 futex_reltimed_wait_cancelable for cancelabla mode.
843 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
844 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
845 macros.
846 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
847 * sysdeps/posix/waitid.c (__sigwait): Likewise.
848 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
849 SYSCALL_CANCEL_NCS): New macro.
850 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
851 (lll_timedwait_tid): Remove macro.
852 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
853 Likewise.
854 (lll_timedwait_tid): Likewise.
855 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
856 Likewise.
857 (lll_timedwait_tid): Likewise.
858 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
859 Likewise.
860 (lll_timedwait_tid): Likewise.
861 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
862 Use INTERNAL_SYSCALL_CANCEL.
863 * sysdeps/unix/sysv/linux/futex-internal.h
864 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
865 instead of __pthread_{enable,disable}_asynccancel.
866 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
867 (lll_futex_wait_cancel): New macro.
868
869 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
870 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
871
872 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
873 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
874
875 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
876 in backtrace analysis.
877 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
878 side-effects.
879 (tf_send): Likewise.
880
881 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
882 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
883 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
884 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
885 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
886 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
887 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
888 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
889 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
890 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
891 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
892 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
893 Likewise.
894 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
895 tst-cancel-wrappers.sh.
896 (generated): Remove tst-cancel-wrappers.out.
897 (tst-cancel-wrappers.out): Remove rule.
898 * nptl/tst-cancel-wrappers.sh: Remove file.
899
900 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
901
902 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
903 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
904 Update.
905
906 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
907
908 [BZ #23640]
909 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
910 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
911 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
912 close-on-exec reset for adddup2 file action.
913 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
914
915 2019-01-03 Zack Weinberg <zackw@panix.com>
916
917 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
918 parameter. Only use deprecated scanf when __USE_GNU is defined
919 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
920 than 201103L, whichever is relevant for the language being compiled.
921
922 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
923 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
924 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
925 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
926 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
927
928 * libio/iovsscanf.c
929 * libio/fwscanf.c
930 * libio/iovswscanf.c
931 * libio/swscanf.c
932 * libio/vscanf.c
933 * libio/vwscanf.c
934 * libio/wscanf.c
935 * stdio-common/fscanf.c
936 * stdio-common/scanf.c
937 * stdio-common/vfscanf.c
938 * stdio-common/vfwscanf.c
939 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
940 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
941 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
942 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
943 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
944 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
945 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
946 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
947 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
948 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
949 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
950 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
951 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
952 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
953 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
954
955 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
956 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
957 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
958 not sscanf.
959 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
960 with a preprocessor macro.
961
962 * stdio-common/bug21.c, stdio-common/scanf14.c:
963 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
964 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
965 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
966 to xscanf, xfscanf, xsscanf.
967
968 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
969 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
970 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
971 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
972 xfscanf, xsscanf.
973 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
974 override feature selection macros or provide definitions of u_char etc.
975 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
976 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
977 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
978 with -std=gnu89.
979
980 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
981
982 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
983 bits/termios-misc.h.
984 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
985 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
986 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
987 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
988 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
989 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
990
991 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
992 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
993 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
994 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
995 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
996 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
997 termios-misc.h.
998 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
999 (sysdep_headers): Add termios-misc.h.
1000
1001 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1002 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1003 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1004
1005 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1006 termios-tcflow.h.
1007 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1008 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1009 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1010 TCSAFLUSH): Move to termios-tcflow.h.
1011 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1012 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1013 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1014 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1015
1016 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1017 termios-c_lflag.h.
1018 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1019 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1020 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1021 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1022 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1023 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1024 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1025 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1026 Likewise.
1027 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1028 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1029 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1030 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1031
1032 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1033 termios-c_cflag.h.
1034 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1035 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1036 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1037 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1038 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1039 termios-c_cflag.h.
1040 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1041 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1042 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1043 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1044
1045 [BZ #23783]
1046 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1047 termios-baud.h.
1048 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1049 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1050 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1051 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1052 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1053 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1054 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1055 __MAX_BAUD): Move to termios-baud.h.
1056 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1057 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1058 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1059 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1060 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1061
1062 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1063 termios-c_oflag.h.
1064 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1065 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1066 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1067 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1068 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1069 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1070 termios-c_oflag.h.
1071 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1072 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1073 FFR1): Likewise.
1074 [USE_MISC] (XTABS): Likewise.
1075 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1076 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1077 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1078 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1079
1080 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1081 termios-c_iflag.h.
1082 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1083 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1084 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1085 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1086 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1087 IUTF8): Move to termios-c_iflag.h.
1088 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1089 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1090 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1091 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1092
1093 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1094 termios-cc.h.
1095 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1096 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1097 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1098 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1099 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1100 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1101 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1102 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1103 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1104 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1105 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1106 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1107
1108 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1109 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1110 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1111 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1112 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1113 termios-struct.h.
1114 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1115 termios-struct.h.
1116 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1117 Likewise.
1118 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1119 Likewise.
1120 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1121 Likewise.
1122 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1123 Likewise.
1124 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1125 _HAVE_C_OSPEED): Define.
1126 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1127 _HAVE_C_OSPEED): Likewise.
1128 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1129 _HAVE_C_OSPEED): Likewise.
1130 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1131 (cfsetospeed): Check for define value instead of existence.
1132 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1133 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1134 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1135 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1136 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1137
1138 [BZ #17783]
1139 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1140 Define.
1141 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1142 (TIOCSER_TEMT): Likewise.
1143 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1144 (TEOCSER_TEMT): Likewise.
1145
1146 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1147
1148 [BZ #24011]
1149 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1150
1151 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1152
1153 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1154
1155 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1156
1157 * sysdeps/htl/pt-barrierattr-setpshared.c
1158 (pthread_barrierattr_setpshared): Add stub warning.
1159 * sysdeps/htl/pt-condattr-setpshared.c
1160 (pthread_condattr_setpshared): Likewise.
1161 * sysdeps/htl/pt-mutexattr-setpshared.c
1162 (pthread_mutexattr_setpshared): Likewise.
1163 * sysdeps/htl/pt-rwlockattr-setpshared.c
1164 (pthread_rwlockattr_setpshared): Likewise.
1165 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1166 (pthread_mutexattr_setpshared): Likewise.
1167
1168 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1169
1170 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1171 constants to match with Linux 4.20.
1172
1173 * sysdeps/mips/mips32/libm-test-ulps: Update.
1174 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1175
1176 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1177
1178 [BZ #24034]
1179 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1180 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1181 than __typeof (...) for the a_ptr variable.
1182
1183 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1184
1185 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1186 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1187 * libio/Makefile (tests): Add tst-sprintf-ub and
1188 tst-sprintf-chk-ub.
1189 (CFLAGS-tst-sprintf-ub.c): New variable.
1190 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1191 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1192 destination buffer and check for overflows in fortified mode.
1193 * libio/libioP.h (PRINTF_CHK): New macro.
1194 * libio/tst-sprintf-chk-ub.c: New file.
1195 * libio/tst-sprintf-ub.c: Likewise.
1196
1197 2019-01-02 Florian Weimer <fweimer@redhat.com>
1198
1199 [BZ #24018]
1200 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1201 failure.
1202
1203 2019-01-02 Florian Weimer <fweimer@redhat.com>
1204
1205 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1206
1207 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1208
1209 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1210 macro.
1211
1212 * sysdeps/unix/sysv/linux/netpacket/packet.h
1213 (PACKET_IGNORE_OUTGOING): New macro.
1214
1215 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1216 macro.
1217
1218 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1219 version to 4.20.
1220 (riscv_flush_icache): New syscall.
1221
1222 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1223 trailing whitespace removed.
1224 * scripts/config.guess: Update to version 2019-01-01.
1225 * scripts/config.sub: Update to version 2019-01-01.
1226 * scripts/move-if-change: Update from gnulib.
1227
1228 * NEWS: Update copyright dates.
1229 * catgets/gencat.c (print_version): Likewise.
1230 * csu/version.c (banner): Likewise.
1231 * debug/catchsegv.sh: Likewise.
1232 * debug/pcprofiledump.c (print_version): Likewise.
1233 * debug/xtrace.sh (do_version): Likewise.
1234 * elf/ldconfig.c (print_version): Likewise.
1235 * elf/ldd.bash.in: Likewise.
1236 * elf/pldd.c (print_version): Likewise.
1237 * elf/sotruss.sh: Likewise.
1238 * elf/sprof.c (print_version): Likewise.
1239 * iconv/iconv_prog.c (print_version): Likewise.
1240 * iconv/iconvconfig.c (print_version): Likewise.
1241 * locale/programs/locale.c (print_version): Likewise.
1242 * locale/programs/localedef.c (print_version): Likewise.
1243 * login/programs/pt_chown.c (print_version): Likewise.
1244 * malloc/memusage.sh (do_version): Likewise.
1245 * malloc/memusagestat.c (print_version): Likewise.
1246 * malloc/mtrace.pl: Likewise.
1247 * manual/libc.texinfo: Likewise.
1248 * nptl/version.c (banner): Likewise.
1249 * nscd/nscd.c (print_version): Likewise.
1250 * nss/getent.c (print_version): Likewise.
1251 * nss/makedb.c (print_version): Likewise.
1252 * posix/getconf.c (main): Likewise.
1253 * scripts/test-installation.pl: Likewise.
1254 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1255
1256 * All files with FSF copyright notices: Update copyright dates
1257 using scripts/update-copyrights.
1258 * locale/programs/charmap-kw.h: Regenerated.
1259 * locale/programs/locfile-kw.h: Likewise.
1260
1261 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1262
1263 * timezone/zdump.c: Update from tzcode 2018i.
1264 * timezone/zic.c: Likewise.
1265
1266 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1267
1268 regex: improve Gnulib port to AIX
1269 From the glibc point of view, this removes duplicate macro
1270 definitions and is obviously safe.
1271 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1272 * posix/regex_internal.h:
1273 (__attribute__, __attribute_warn_unused_result__):
1274 Remove; already defined elsewhere.
1275
1276 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1277
1278 [BZ #24027]
1279 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1280 copying operation. (ncopies had the wrong type, resulting in an
1281 integer wraparound and too few elements being copied.)
1282
1283 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1284
1285 [BZ #24022]
1286 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1287 <asm/syscalls.h> exists with __has_include__ before including it.
1288
1289 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1290
1291 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1292 version to 4.20.
1293
1294 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1295
1296 * hurd/lookup-retry: Include <unistd.h>.
1297 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1298 Release it on return. Handle "pid" magical lookup retry.
1299
1300 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1301
1302 [BZ #10496]
1303 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1304 (t_fmt_ampm): Likewise.
1305 * localedata/locales/aa_ER (t_fmt): Likewise.
1306 (t_fmt_ampm): Likewise.
1307 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1308 (t_fmt_ampm): Likewise.
1309 * localedata/locales/aa_ET (t_fmt): Likewise.
1310 (t_fmt_ampm): Likewise.
1311 * localedata/locales/am_ET (t_fmt): Likewise.
1312 (t_fmt_ampm): Likewise.
1313 * localedata/locales/byn_ER (t_fmt): Likewise.
1314 (t_fmt_ampm): Likewise.
1315 * localedata/locales/om_ET (t_fmt): Likewise.
1316 (t_fmt_ampm): Likewise.
1317 * localedata/locales/sid_ET (t_fmt): Likewise.
1318 (t_fmt_ampm): Likewise.
1319 * localedata/locales/so_DJ (t_fmt): Likewise.
1320 (t_fmt_ampm): Likewise.
1321 * localedata/locales/so_ET (t_fmt): Likewise.
1322 (t_fmt_ampm): Likewise.
1323 * localedata/locales/so_SO (t_fmt): Likewise.
1324 (t_fmt_ampm): Likewise.
1325 * localedata/locales/ti_ER (t_fmt): Likewise.
1326 (t_fmt_ampm): Likewise.
1327 * localedata/locales/ti_ET (t_fmt): Likewise.
1328 (t_fmt_ampm): Likewise.
1329 * localedata/locales/tig_ER (t_fmt): Likewise.
1330 (t_fmt_ampm): Likewise.
1331 * localedata/locales/wal_ET (t_fmt): Likewise.
1332 (t_fmt_ampm): Likewise.
1333
1334 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1335 * localedata/locales/ar_IN (t_fmt): Likewise.
1336 * localedata/locales/bhb_IN (t_fmt): Likewise.
1337 * localedata/locales/bho_IN (t_fmt): Likewise.
1338 * localedata/locales/bi_VU (t_fmt): Likewise.
1339 * localedata/locales/bn_BD (t_fmt): Likewise.
1340 * localedata/locales/bn_IN (t_fmt): Likewise.
1341 * localedata/locales/brx_IN (t_fmt): Likewise.
1342 * localedata/locales/doi_IN (t_fmt): Likewise.
1343 * localedata/locales/en_HK (t_fmt): Likewise.
1344 (t_fmt_ampm): Likewise.
1345 * localedata/locales/en_IN (t_fmt): Likewise.
1346 * localedata/locales/en_PH (t_fmt): Likewise.
1347 * localedata/locales/gu_IN (t_fmt): Likewise.
1348 * localedata/locales/hi_IN (t_fmt): Likewise.
1349 * localedata/locales/hif_FJ (t_fmt): Likewise.
1350 * localedata/locales/hne_IN (t_fmt): Likewise.
1351 * localedata/locales/kn_IN (t_fmt): Likewise.
1352 * localedata/locales/kok_IN (t_fmt): Likewise.
1353 * localedata/locales/ks_IN (t_fmt): Likewise.
1354 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1355 * localedata/locales/mag_IN (t_fmt): Likewise.
1356 * localedata/locales/mai_IN (t_fmt): Likewise.
1357 * localedata/locales/mjw_IN (t_fmt): Likewise.
1358 * localedata/locales/ml_IN (t_fmt): Likewise.
1359 * localedata/locales/mni_IN (t_fmt): Likewise.
1360 * localedata/locales/mr_IN (t_fmt): Likewise.
1361 * localedata/locales/ms_MY (t_fmt): Likewise.
1362 * localedata/locales/pa_IN (t_fmt): Likewise.
1363 * localedata/locales/raj_IN (t_fmt): Likewise.
1364 * localedata/locales/sa_IN (t_fmt): Likewise.
1365 * localedata/locales/sat_IN (t_fmt): Likewise.
1366 * localedata/locales/sd_IN (t_fmt): Likewise.
1367 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1368 * localedata/locales/tcy_IN (t_fmt): Likewise.
1369 * localedata/locales/the_NP (t_fmt): Likewise.
1370 * localedata/locales/to_TO (t_fmt): Likewise.
1371 * localedata/locales/ur_IN (t_fmt): Likewise.
1372
1373 * localedata/locales/hif_FJ (d_t_fmt): Set to
1374 "%A %d %b %Y %I:%M:%S %p".
1375 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1376
1377 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1378 * localedata/locales/ar_BH (t_fmt): Likewise.
1379 * localedata/locales/ar_DZ (t_fmt): Likewise.
1380 * localedata/locales/ar_EG (t_fmt): Likewise.
1381 * localedata/locales/ar_IQ (t_fmt): Likewise.
1382 * localedata/locales/ar_JO (t_fmt): Likewise.
1383 * localedata/locales/ar_KW (t_fmt): Likewise.
1384 * localedata/locales/ar_LB (t_fmt): Likewise.
1385 * localedata/locales/ar_LY (t_fmt): Likewise.
1386 * localedata/locales/ar_OM (t_fmt): Likewise.
1387 * localedata/locales/ar_QA (t_fmt): Likewise.
1388 * localedata/locales/ar_SD (t_fmt): Likewise.
1389 * localedata/locales/ar_SS (t_fmt): Likewise.
1390 * localedata/locales/ar_SY (t_fmt): Likewise.
1391 * localedata/locales/ar_TN (t_fmt): Likewise.
1392 * localedata/locales/ar_YE (t_fmt): Likewise.
1393
1394 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1395 (t_fmt_ampm): Likewise.
1396 * localedata/locales/gez_ET (t_fmt): Likewise.
1397 (t_fmt_ampm): Likewise.
1398
1399 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1400 (t_fmt_ampm): Likewise.
1401 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1402
1403 * localedata/locales/zh_HK (t_fmt):
1404 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1405
1406 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1407 because this locale does not use the 12-hour clock.
1408 (t_fmt): Set to "%Z %H:%M:%S".
1409 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1410
1411 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1412 because this locale does not use the 12-hour clock.
1413 (t_fmt): Set to "%H:%M:%S %Z".
1414 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1415
1416 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1417 because this locale does not use the 12-hour clock.
1418 (t_fmt): Set to "%T".
1419 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1420 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1421
1422 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1423 because this locale does not use the 12-hour clock.
1424 (t_fmt): Set to "%H:%M:%S %Z".
1425 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1426
1427 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1428 because this locale does not use the 12-hour clock.
1429 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1430 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1431
1432 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1433
1434 [BZ #10496]
1435 [BZ #23724]
1436 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1437 (t_fmt_ampm): Likewise.
1438 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1439 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1440 (d_fmt): Set to "%-d.%-m.%y".
1441
1442 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1443
1444 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1445 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1446 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1447 Likewise.
1448 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1449 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1450 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1451 function.
1452 * support/blob_repeat.c (check_mul_overflow_size_t,
1453 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1454
1455 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1456
1457 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1458
1459 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1460
1461 regex: simplify Gnulib port
1462 This simplifies the code, by removing stuff intended for porting
1463 to Gnulib but no longer needed there.
1464 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1465 uses of libc_hidden_def, weak_alias.
1466 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1467 _Restrict_ except for public-facing headers.
1468 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1469 Remove; already defined elsewhere.
1470 * posix/regex.c, posix/regex_internal.h:
1471 Use __GNUC_PREREQ instead of rolling our own.
1472 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1473
1474 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1475
1476 * benchtests/bench-strlen.c (generic_strlen): New function.
1477 (memchr_strlen): New function.
1478
1479 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1480
1481 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1482 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1483 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1484
1485 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1486
1487 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1488
1489 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1490
1491 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1492 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1493 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1494 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1495 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1496 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1497 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1498
1499 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1500
1501 [BZ #24023]
1502 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1503 PLT reference in libc.so.
1504 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1505 _Q_lltoq and _Q_qtod PLT references in libc.so.
1506
1507 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1508
1509 * benchtests/bench-memchr.c: Cleanup defines.
1510 * benchtests/bench-memcmp.c: Likewise.
1511 * benchtests/bench-memset.c: Likewise.
1512 * benchtests/bench-memset-large.c: Likewise.
1513 * benchtests/bench-memset-walk.c: Likewise.
1514 * benchtests/bench-stpcpy.c: Likewise.
1515 * benchtests/bench-stpncpy.c: Likewise.
1516 * benchtests/bench-strcat.c: Likewise.
1517 * benchtests/bench-strchr.c: Likewise.
1518 * benchtests/bench-strcmp.c: Likewise.
1519 * benchtests/bench-strcpy.c: Likewise.
1520 * benchtests/bench-strcspn.c: Likewise.
1521 * benchtests/bench-string.h: Likewise.
1522 * benchtests/bench-strlen.c: Likewise.
1523 * benchtests/bench-strncat.c: Likewise.
1524 * benchtests/bench-strncmp.c: Likewise.
1525 * benchtests/bench-strncpy.c: Likewise.
1526 * benchtests/bench-strnlen.c: Likewise.
1527 * benchtests/bench-strpbrk.c: Likewise.
1528 * benchtests/bench-strrchr.c: Likewise.
1529 * benchtests/bench-strspn.c: Likewise.
1530
1531 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1532
1533 * stdlib/longlong.h: Update from GCC.
1534
1535 [BZ #23993]
1536 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1537 * configure: Regenerated.
1538 * manual/install.texi (Tools for Compilation): Update minimum GCC
1539 version.
1540 * INSTALL: Regenerated.
1541
1542 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1543
1544 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1545
1546 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1547
1548 * malloc/malloc.c (mremap_chunk): Additional checks.
1549
1550 2018-12-21 Mao Han <han_mao@c-sky.com>
1551
1552 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1553 * scripts/build-many-glibcs.py: Add C-SKY targets.
1554 * sysdeps/csky/Implies: New file.
1555 * sysdeps/csky/Makefile: Likewise.
1556 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1557 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1558 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1559 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1560 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1561 * sysdeps/csky/abiv2/memmove.S: Likewise.
1562 * sysdeps/csky/abiv2/memset.S: Likewise.
1563 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1564 * sysdeps/csky/abiv2/start.S: Likewise.
1565 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1566 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1567 * sysdeps/csky/abiv2/strlen.S: Likewise.
1568 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1569 * sysdeps/csky/abort-instr.h: Likewise.
1570 * sysdeps/csky/atomic-machine.h: Likewise.
1571 * sysdeps/csky/bits/endian.h: Likewise.
1572 * sysdeps/csky/bits/fenv.h: Likewise.
1573 * sysdeps/csky/bits/link.h: Likewise.
1574 * sysdeps/csky/bits/setjmp.h: Likewise.
1575 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1576 * sysdeps/csky/bsd-setjmp.S: Likewise.
1577 * sysdeps/csky/configure: Likewise.
1578 * sysdeps/csky/configure.ac: Likewise.
1579 * sysdeps/csky/dl-machine.h: Likewise.
1580 * sysdeps/csky/dl-procinfo.c: Likewise.
1581 * sysdeps/csky/dl-procinfo.h: Likewise.
1582 * sysdeps/csky/dl-sysdep.h: Likewise.
1583 * sysdeps/csky/dl-tls.h: Likewise.
1584 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1585 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1586 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1587 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1588 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1589 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1590 * sysdeps/csky/fpu/fegetround.c: Likewise.
1591 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1592 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1593 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1594 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1595 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1596 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1597 * sysdeps/csky/fpu/fesetround.c: Likewise.
1598 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1599 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1600 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1601 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1602 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1603 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1604 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1605 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1606 * sysdeps/csky/fpu_control.h: Likewise.
1607 * sysdeps/csky/gccframe.h: Likewise.
1608 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1609 * sysdeps/csky/ldsodefs.h: Likewise.
1610 * sysdeps/csky/libc-tls.c: Likewise.
1611 * sysdeps/csky/linkmap.h: Likewise.
1612 * sysdeps/csky/machine-gmon.h: Likewise.
1613 * sysdeps/csky/memusage.h: Likewise.
1614 * sysdeps/csky/nofpu/Implies: Likewise.
1615 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1616 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1617 * sysdeps/csky/nptl/Makefile: Likewise.
1618 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1619 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1620 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1621 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1622 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1623 * sysdeps/csky/nptl/tls.h: Likewise.
1624 * sysdeps/csky/preconfigure: Likewise.
1625 * sysdeps/csky/sfp-machine.h: Likewise.
1626 * sysdeps/csky/sotruss-lib.c: Likewise.
1627 * sysdeps/csky/stackinfo.h: Likewise.
1628 * sysdeps/csky/sysdep.h: Likewise.
1629 * sysdeps/csky/tininess.h: Likewise.
1630 * sysdeps/csky/tst-audit.h: Likewise.
1631 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1632 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1633 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1634 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1635 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1636 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1637 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1638 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1639 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1640 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1641 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1642 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1643 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1644 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1645 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
1646 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
1647 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
1648 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
1649 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
1650 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
1651 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
1652 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
1653 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
1654 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1655 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
1656 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
1657 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1658 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
1659 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
1660 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
1661 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
1662 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
1663 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
1664 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
1665 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1666 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1667 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
1668 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
1669 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1670 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
1671 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
1672 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
1673 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
1674 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
1675
1676 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1677
1678 * include/time.h (__difftime64): Add.
1679 * time/difftime.c (subtract): convert to 64-bit time.
1680 * time/difftime.c (__difftime64): Add.
1681 * time/difftime.c (__difftime): Wrap around __difftime64.
1682
1683 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
1684
1685 * manual/examples/add.c: Remove redundant "if not".
1686 * manual/examples/argp-ex1.c: Likewise.
1687 * manual/examples/argp-ex2.c: Likewise.
1688 * manual/examples/argp-ex3.c: Likewise.
1689 * manual/examples/argp-ex4.c: Likewise.
1690 * manual/examples/atexit.c: Likewise.
1691 * manual/examples/db.c: Likewise.
1692 * manual/examples/dir.c: Likewise.
1693 * manual/examples/dir2.c: Likewise.
1694 * manual/examples/execinfo.c: Likewise.
1695 * manual/examples/filecli.c: Likewise.
1696 * manual/examples/filesrv.c: Likewise.
1697 * manual/examples/fmtmsgexpl.c: Likewise.
1698 * manual/examples/genpass.c: Likewise.
1699 * manual/examples/inetcli.c: Likewise.
1700 * manual/examples/inetsrv.c: Likewise.
1701 * manual/examples/isockad.c: Likewise.
1702 * manual/examples/longopt.c: Likewise.
1703 * manual/examples/memopen.c: Likewise.
1704 * manual/examples/memstrm.c: Likewise.
1705 * manual/examples/mkdirent.c: Likewise.
1706 * manual/examples/mkfsock.c: Likewise.
1707 * manual/examples/mkisock.c: Likewise.
1708 * manual/examples/mygetpass.c: Likewise.
1709 * manual/examples/pipe.c: Likewise.
1710 * manual/examples/popen.c: Likewise.
1711 * manual/examples/rprintf.c: Likewise.
1712 * manual/examples/search.c: Likewise.
1713 * manual/examples/select.c: Likewise.
1714 * manual/examples/setjmp.c: Likewise.
1715 * manual/examples/sigh1.c: Likewise.
1716 * manual/examples/sigusr.c: Likewise.
1717 * manual/examples/stpcpy.c: Likewise.
1718 * manual/examples/strdupa.c: Likewise.
1719 * manual/examples/strftim.c: Likewise.
1720 * manual/examples/subopt.c: Likewise.
1721 * manual/examples/swapcontext.c: Likewise.
1722 * manual/examples/termios.c: Likewise.
1723 * manual/examples/testopt.c: Likewise.
1724 * manual/examples/testpass.c: Likewise.
1725 * manual/examples/timeval_subtract.c: Likewise.
1726
1727 2018-12-19 Joseph Myers <joseph@codesourcery.com>
1728
1729 * sysdeps/x86/fpu/math_private.h: New file.
1730 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
1731
1732 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
1733 definition.
1734 (cosh): Likewise.
1735 (tanh): Likewise.
1736
1737 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1738
1739 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
1740 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
1741 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
1742 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
1743 fields.
1744 (_dl_show_auxv): Give a special treatment to
1745 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
1746 and AT_L3_CACHEGEOMETRY.
1747 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
1748 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
1749 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
1750 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
1751
1752 2018-12-19 Andreas Schwab <schwab@suse.de>
1753
1754 * nscd/connections.c (check_use): Don't abort on invalid len.
1755
1756 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
1757
1758 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
1759 values in the 64bit value cases.
1760
1761 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1762
1763 * include/time.h
1764 (__ctime64_r): Add.
1765 * time/ctime_r.c
1766 (__ctime64_r): Add.
1767 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
1768
1769 * include/time.h
1770 (__ctime64): Add.
1771 * time/gmtime.c
1772 (__ctime64): Add.
1773 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
1774
1775 * include/time.h
1776 (__gmtime64_r): Add.
1777 * time/gmtime.c
1778 (__gmtime64_r): Add.
1779 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
1780
1781 * include/time.h
1782 (__gmtime64): Add.
1783 * time/gmtime.c
1784 (__gmtime64): Add.
1785 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
1786
1787 * include/time.h
1788 (__localtime64_r): Add.
1789 * time/localtime.c
1790 (__localtime64_r): Add.
1791 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
1792
1793 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1794
1795 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
1796 kernel_sigction definition.
1797
1798 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
1799
1800 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
1801
1802 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
1803 __syscall_rt_sigaction.
1804 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
1805 (kernel_sigaction): Use Linux generic defintion.
1806 (STUB): Define.
1807 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
1808 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
1809 (__syscall_rt_sigaction): Remove implementation.
1810 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
1811 hidden.
1812 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
1813 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
1814 INTERNAL_SYSCALL): Remove definitions.
1815 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
1816 action and signal set size.
1817 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
1818 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
1819
1820 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1821 James Clarke <jrtc27@jrtc27.com>
1822
1823 [BZ #23967]
1824 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
1825 Define if SA_RESTORER is defined.
1826 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
1827 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
1828 already defined.
1829 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
1830 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
1831 definitions.
1832 (HAS_SA_RESTORER): Define.
1833 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
1834 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
1835 (HAS_SA_RESTORER): Define.
1836 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
1837 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
1838 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
1839 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
1840 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
1841
1842 2018-12-18 Joseph Myers <joseph@codesourcery.com>
1843
1844 * sysdeps/unix/sysv/linux/kernel-features.h
1845 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
1846 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1847 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
1848 * sysdeps/unix/sysv/linux/sh/kernel-features.h
1849 (__ASSUME_ST_INO_64_BIT): Likewise.
1850 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
1851 <kernel-features.h>.
1852 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
1853 Remove conditional code.
1854 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
1855 <kernel-features.h>.
1856 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
1857 Remove conditional code.
1858 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
1859 <kernel-features.h>.
1860 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
1861 Remove conditional code.
1862 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
1863 <kernel-features.h>.
1864 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
1865 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
1866
1867 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
1868
1869 * sysdeps/s390/multiarch/ifunc-resolve.h
1870 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
1871 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
1872 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
1873 Delete macro definition.
1874 (s390_libc_ifunc_init): Rename to
1875 s390_libc_ifunc_expr_stfle_init.
1876 * sysdeps/s390/bzero: Use
1877 s390_libc_ifunc_expr_stfle_init instead of
1878 s390_libc_ifunc_init.
1879 * sysdeps/s390/memcmp.c: Likewise.
1880 * sysdeps/s390/memcpy.c: Likewise.
1881 * sysdeps/s390/mempcpy.c: Likewise.
1882 * sysdeps/s390/memset.c: Likewise.
1883
1884 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
1885
1886 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
1887 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
1888
1889 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
1890
1891 * sysdeps/s390/multiarch/Makefile
1892 (sysdep_routines): Remove wmemcmp variants.
1893 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
1894 * sysdeps/s390/multiarch/ifunc-impl-list.c
1895 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
1896 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
1897 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
1898 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
1899 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
1900 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
1901 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
1902 * sysdeps/s390/ifunc-wmemcmp.h: New file.
1903
1904 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
1905
1906 * sysdeps/s390/multiarch/Makefile
1907 (sysdep_routines): Remove wmemset variants.
1908 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
1909 * sysdeps/s390/multiarch/ifunc-impl-list.c
1910 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
1911 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
1912 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
1913 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
1914 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
1915 * sysdeps/s390/multiarch/wmemset.c: Move to ...
1916 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
1917 * sysdeps/s390/ifunc-wmemset.h: New file.
1918
1919 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
1920
1921 * sysdeps/s390/multiarch/Makefile
1922 (sysdep_routines): Remove wmemchr variants.
1923 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
1924 * sysdeps/s390/multiarch/ifunc-impl-list.c
1925 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
1926 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
1927 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
1928 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
1929 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
1930 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
1931 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
1932 * sysdeps/s390/ifunc-wmemchr.h: New file.
1933
1934 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
1935
1936 * sysdeps/s390/multiarch/Makefile
1937 (sysdep_routines): Remove wcscspn variants.
1938 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
1939 * sysdeps/s390/multiarch/ifunc-impl-list.c
1940 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
1941 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
1942 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
1943 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
1944 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
1945 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
1946 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
1947 * sysdeps/s390/ifunc-wcscspn.h: New file.
1948
1949 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
1950
1951 * sysdeps/s390/multiarch/Makefile
1952 (sysdep_routines): Remove wcspbrk variants.
1953 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
1954 * sysdeps/s390/multiarch/ifunc-impl-list.c
1955 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
1956 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
1957 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
1958 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
1959 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
1960 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
1961 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
1962 * sysdeps/s390/ifunc-wcspbrk.h: New file.
1963
1964 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
1965
1966 * sysdeps/s390/multiarch/Makefile
1967 (sysdep_routines): Remove wcsspn variants.
1968 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
1969 * sysdeps/s390/multiarch/ifunc-impl-list.c
1970 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
1971 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
1972 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
1973 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
1974 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
1975 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
1976 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
1977 * sysdeps/s390/ifunc-wcsspn.h: New file.
1978
1979 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
1980
1981 * sysdeps/s390/multiarch/Makefile
1982 (sysdep_routines): Remove wcsrchr variants.
1983 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
1984 * sysdeps/s390/multiarch/ifunc-impl-list.c
1985 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
1986 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
1987 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
1988 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
1989 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
1990 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
1991 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
1992 * sysdeps/s390/ifunc-wcsrchr.h: New file.
1993
1994 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
1995
1996 * sysdeps/s390/multiarch/Makefile
1997 (sysdep_routines): Remove wcschrnul variants.
1998 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
1999 * sysdeps/s390/multiarch/ifunc-impl-list.c
2000 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2001 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2002 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2003 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2004 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2005 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2006 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2007 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2008
2009 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2010
2011 * sysdeps/s390/multiarch/Makefile
2012 (sysdep_routines): Remove wcschr variants.
2013 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2014 * sysdeps/s390/multiarch/ifunc-impl-list.c
2015 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2016 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2017 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2018 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2019 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2020 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2021 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2022 * sysdeps/s390/ifunc-wcschr.h: New file.
2023
2024 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2025
2026 * sysdeps/s390/multiarch/Makefile
2027 (sysdep_routines): Remove wcsncmp variants.
2028 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2029 * sysdeps/s390/multiarch/ifunc-impl-list.c
2030 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2031 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2032 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2033 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2034 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2035 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2036 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2037 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2038
2039 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2040
2041 * sysdeps/s390/multiarch/Makefile
2042 (sysdep_routines): Remove wcscmp variants.
2043 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2044 * sysdeps/s390/multiarch/ifunc-impl-list.c
2045 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2046 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2047 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2048 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2049 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2050 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2051 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2052 * sysdeps/s390/ifunc-wcscmp.h: New file.
2053
2054 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2055
2056 * sysdeps/s390/multiarch/Makefile
2057 (sysdep_routines): Remove wcsncat variants.
2058 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2059 * sysdeps/s390/multiarch/ifunc-impl-list.c
2060 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2061 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2062 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2063 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2064 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2065 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2066 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2067 * sysdeps/s390/ifunc-wcsncat.h: New file.
2068
2069 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2070
2071 * sysdeps/s390/multiarch/Makefile
2072 (sysdep_routines): Remove wcscat variants.
2073 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2074 * sysdeps/s390/multiarch/ifunc-impl-list.c
2075 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2076 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2077 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2078 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2079 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2080 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2081 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2082 * sysdeps/s390/ifunc-wcscat.h: New file.
2083
2084 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2085
2086 * sysdeps/s390/multiarch/Makefile
2087 (sysdep_routines): Remove wcpncpy variants.
2088 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2089 * sysdeps/s390/multiarch/ifunc-impl-list.c
2090 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2091 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2092 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2093 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2094 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2095 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2096 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2097 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2098
2099 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2100
2101 * sysdeps/s390/multiarch/Makefile
2102 (sysdep_routines): Remove wcsncpy variants.
2103 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2104 * sysdeps/s390/multiarch/ifunc-impl-list.c
2105 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2106 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2107 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2108 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2109 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2110 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2111 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2112 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2113
2114 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2115
2116 * sysdeps/s390/multiarch/Makefile
2117 (sysdep_routines): Remove wcpcpy variants.
2118 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2119 * sysdeps/s390/multiarch/ifunc-impl-list.c
2120 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2121 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2122 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2123 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2124 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2125 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2126 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2127 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2128
2129 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2130
2131 * sysdeps/s390/multiarch/Makefile
2132 (sysdep_routines): Remove wcscpy variants.
2133 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2134 * sysdeps/s390/multiarch/ifunc-impl-list.c
2135 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2136 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2137 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2138 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2139 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2140 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2141 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2142 * sysdeps/s390/ifunc-wcscpy.h: New file.
2143
2144 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2145
2146 * sysdeps/s390/multiarch/Makefile
2147 (sysdep_routines): Remove wcsnlen variants.
2148 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2149 * sysdeps/s390/multiarch/ifunc-impl-list.c
2150 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2151 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2152 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2153 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2154 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2155 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2156 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2157 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2158
2159 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2160
2161 * sysdeps/s390/multiarch/Makefile
2162 (sysdep_routines): Remove wcslen variants.
2163 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2164 * sysdeps/s390/multiarch/ifunc-impl-list.c
2165 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2166 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2167 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2168 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2169 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2170 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2171 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2172 * sysdeps/s390/ifunc-wcslen.h: New file.
2173
2174 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2175
2176 * sysdeps/s390/multiarch/Makefile
2177 (sysdep_routines): Remove memrchr variants.
2178 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2179 * sysdeps/s390/multiarch/ifunc-impl-list.c
2180 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2181 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2182 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2183 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2184 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2185 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2186 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2187 * sysdeps/s390/ifunc-memrchr.h: New file.
2188
2189 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2190
2191 * sysdeps/s390/multiarch/Makefile
2192 (sysdep_routines): Remove memccpy variants.
2193 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2194 * sysdeps/s390/multiarch/ifunc-impl-list.c
2195 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2196 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2197 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2198 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2199 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2200 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2201 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2202 * sysdeps/s390/ifunc-memccpy.h: New file.
2203
2204 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2205
2206 * sysdeps/s390/multiarch/Makefile
2207 (sysdep_routines): Remove rawmemchr variants.
2208 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2209 * sysdeps/s390/multiarch/ifunc-impl-list.c
2210 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2211 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2212 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2213 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2214 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2215 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2216 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2217 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2218
2219 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2220
2221 * sysdeps/s390/multiarch/Makefile
2222 (sysdep_routines): Remove memchr variants.
2223 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2224 * sysdeps/s390/multiarch/ifunc-impl-list.c
2225 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2226 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2227 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2228 * sysdeps/s390/multiarch/memchr.c: Move to ...
2229 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2230 * sysdeps/s390/ifunc-memchr.h: New file.
2231 * sysdeps/s390/s390-64/memchr.S: Move to ...
2232 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2233 for 31/64bit and ifunc handling.
2234 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2235 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2236 * sysdeps/s390/s390-32/memchr.S: Likewise.
2237
2238 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2239
2240 * sysdeps/s390/multiarch/Makefile
2241 (sysdep_routines): Remove strcspn variants.
2242 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2243 * sysdeps/s390/multiarch/ifunc-impl-list.c
2244 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2245 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2246 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2247 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2248 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2249 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2250 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2251 * sysdeps/s390/ifunc-strcspn.h: New file.
2252
2253 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2254
2255 * sysdeps/s390/multiarch/Makefile
2256 (sysdep_routines): Remove strpbrk variants.
2257 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2258 * sysdeps/s390/multiarch/ifunc-impl-list.c
2259 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2260 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2261 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2262 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2263 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2264 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2265 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2266 * sysdeps/s390/ifunc-strpbrk.h: New file.
2267
2268 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2269
2270 * sysdeps/s390/multiarch/Makefile
2271 (sysdep_routines): Remove strspn variants.
2272 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2273 * sysdeps/s390/multiarch/ifunc-impl-list.c
2274 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2275 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2276 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2277 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2278 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2279 * sysdeps/s390/multiarch/strspn.c: Move to ...
2280 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2281 * sysdeps/s390/ifunc-strspn.h: New file.
2282
2283 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2284
2285 * sysdeps/s390/multiarch/Makefile
2286 (sysdep_routines): Remove strrchr variants.
2287 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2288 * sysdeps/s390/multiarch/ifunc-impl-list.c
2289 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2290 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2291 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2292 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2293 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2294 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2295 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2296 * sysdeps/s390/ifunc-strrchr.h: New file.
2297
2298 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2299
2300 * sysdeps/s390/multiarch/Makefile
2301 (sysdep_routines): Remove strchrnul variants.
2302 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2303 * sysdeps/s390/multiarch/ifunc-impl-list.c
2304 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2305 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2306 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2307 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2308 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2309 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2310 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2311 * sysdeps/s390/ifunc-strchrnul.h: New file.
2312
2313 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2314
2315 * sysdeps/s390/multiarch/Makefile
2316 (sysdep_routines): Remove strchr variants.
2317 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2318 * sysdeps/s390/multiarch/ifunc-impl-list.c
2319 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2320 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2321 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2322 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2323 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2324 * sysdeps/s390/multiarch/strchr.c: Move to ...
2325 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2326 * sysdeps/s390/ifunc-strchr.h: New file.
2327
2328 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2329
2330 * sysdeps/s390/multiarch/Makefile
2331 (sysdep_routines): Remove strncmp variants.
2332 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2333 * sysdeps/s390/multiarch/ifunc-impl-list.c
2334 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2335 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2336 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2337 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2338 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2339 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2340 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2341 * sysdeps/s390/ifunc-strncmp.h: New file.
2342
2343 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2344
2345 * sysdeps/s390/multiarch/Makefile
2346 (sysdep_routines): Remove strcmp variants.
2347 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2348 * sysdeps/s390/multiarch/ifunc-impl-list.c
2349 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2350 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2351 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2352 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2353 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2354 * sysdeps/s390/ifunc-strcmp.h: New file.
2355 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2356 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2357 for 31/64bit and ifunc handling.
2358 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2359 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2360 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2361
2362 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2363
2364 * sysdeps/s390/multiarch/Makefile
2365 (sysdep_routines): Remove strncat variants.
2366 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2367 * sysdeps/s390/multiarch/ifunc-impl-list.c
2368 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2369 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2370 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2371 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2372 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2373 * sysdeps/s390/multiarch/strncat.c: Move to ...
2374 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2375 * sysdeps/s390/ifunc-strncat.h: New file.
2376
2377 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2378
2379 * sysdeps/s390/multiarch/Makefile
2380 (sysdep_routines): Remove strcat variants.
2381 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2382 * sysdeps/s390/multiarch/ifunc-impl-list.c
2383 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2384 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2385 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2386 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2387 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2388 * sysdeps/s390/multiarch/strcat.c: Move to ...
2389 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2390 * sysdeps/s390/ifunc-strcat.h: New file.
2391
2392 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2393
2394 * sysdeps/s390/multiarch/Makefile
2395 (sysdep_routines): Remove stpncpy variants.
2396 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2397 * sysdeps/s390/multiarch/ifunc-impl-list.c
2398 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2399 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2400 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2401 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2402 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2403 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2404 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2405 * sysdeps/s390/ifunc-stpncpy.h: New file.
2406
2407 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2408
2409 * sysdeps/s390/multiarch/Makefile
2410 (sysdep_routines): Remove strncpy variants.
2411 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2412 * sysdeps/s390/multiarch/ifunc-impl-list.c
2413 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2414 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2415 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2416 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2417 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2418 * sysdeps/s390/ifunc-strncpy.h: New file.
2419 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2420 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2421 and adjust ifunc handling.
2422 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2423 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2424 and adjust ifunc handling.
2425 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2426 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2427
2428 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2429
2430 * sysdeps/s390/multiarch/Makefile
2431 (sysdep_routines): Remove stpcpy variants.
2432 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2433 * sysdeps/s390/multiarch/ifunc-impl-list.c
2434 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2435 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2436 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2437 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2438 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2439 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2440 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2441 * sysdeps/s390/ifunc-stpcpy.h: New file.
2442
2443 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2444
2445 * sysdeps/s390/multiarch/Makefile
2446 (sysdep_routines): Remove strcpy variants.
2447 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2448 * sysdeps/s390/multiarch/ifunc-impl-list.c
2449 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2450 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2451 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2452 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2453 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2454 * sysdeps/s390/ifunc-strcpy.h: New file.
2455 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2456 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2457 for 31/64bit and ifunc handling.
2458 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2459 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2460 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2461
2462 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2463
2464 * sysdeps/s390/multiarch/Makefile
2465 (sysdep_routines): Remove strnlen variants.
2466 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2467 * sysdeps/s390/multiarch/ifunc-impl-list.c
2468 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2469 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2470 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2471 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2472 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2473 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2474 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2475 * sysdeps/s390/ifunc-strnlen.h: New file.
2476
2477 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2478
2479 * sysdeps/s390/multiarch/Makefile
2480 (sysdep_routines): Remove strlen variants.
2481 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2482 * sysdeps/s390/multiarch/ifunc-impl-list.c
2483 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2484 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2485 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2486 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2487 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2488 * sysdeps/s390/multiarch/strlen.c: Move to ...
2489 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2490 * sysdeps/s390/ifunc-strlen.h: New file.
2491
2492 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2493
2494 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2495 * sysdeps/s390/multiarch/ifunc-impl-list.c
2496 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2497 * sysdeps/s390/ifunc-memmem.h: New file.
2498 * sysdeps/s390/memmem.c: Likewise.
2499 * sysdeps/s390/memmem-c.c: Likewise.
2500 * sysdeps/s390/memmem-vx.c: Likewise.
2501
2502 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2503
2504 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2505 * sysdeps/s390/multiarch/ifunc-impl-list.c
2506 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2507 * sysdeps/s390/ifunc-strstr.h: New file.
2508 * sysdeps/s390/strstr.c: Likewise.
2509 * sysdeps/s390/strstr-c.c: Likewise.
2510 * sysdeps/s390/strstr-vx.c: Likewise.
2511
2512 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2513
2514 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2515 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2516 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2517 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2518 New defines.
2519 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2520 * sysdeps/s390/memmove-c.c: New file.
2521 * sysdeps/s390/memmove.c: Likewise.
2522 * sysdeps/s390/multiarch/ifunc-impl-list.c
2523 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2524
2525 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2526
2527 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2528 * sysdeps/s390/configure.ac: Add check for z13 support.
2529 * sysdeps/s390/configure: Regenerated.
2530
2531 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2532
2533 * sysdeps/s390/memcopy.h: New file.
2534
2535 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2536
2537 * sysdeps/s390/s390-32/bcopy.S: Remove.
2538 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2539
2540 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2541
2542 * sysdeps/s390/ifunc-memcpy.h: New File.
2543 * sysdeps/s390/memcpy.S: Move to ...
2544 * sysdeps/s390/memcpy-z900.S ... here.
2545 Move implementations from memcpy-s390x.s to here.
2546 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2547 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2548 Remove memcpy/mempcpy variants.
2549 * sysdeps/s390/Makefile (sysdep_routines):
2550 Add memcpy/mempcpy variants.
2551 * sysdeps/s390/multiarch/ifunc-impl-list.c
2552 (__libc_ifunc_impl_list): Adjust ifunc variants for
2553 memcpy and mempcpy.
2554 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2555 to ...
2556 * sysdeps/s390/memcpy.c: ... here.
2557 Adjust ifunc variants for memcpy.
2558 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2559 * sysdeps/s390/mempcpy.c: ... here.
2560 Adjust ifunc variants for mempcpy.
2561 * sysdeps/s390/mempcpy.S: Delete file.
2562
2563 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2564
2565 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2566 * sysdeps/s390/memcpy.S: ... here.
2567 Adjust to be usable for 31/64bit.
2568 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2569 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2570 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2571 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2572 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2573 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2574 Adjust to be usable for 31/64bit.
2575 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2576 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2577 * sysdeps/s390/multiarch/memcpy.c: ... here.
2578 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2579
2580 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2581
2582 * sysdeps/s390/ifunc-memcmp.h: New File.
2583 * sysdeps/s390/memcmp.S: Move to ...
2584 * sysdeps/s390/memcmp-z900.S ... here.
2585 Move implementations from memcmp-s390x.s to here.
2586 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2587 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2588 Remove memcmp variants.
2589 * sysdeps/s390/Makefile (sysdep_routines):
2590 Add memcmp variants.
2591 * sysdeps/s390/multiarch/ifunc-impl-list.c
2592 (__libc_ifunc_impl_list): Adjust ifunc variants for
2593 memcmp.
2594 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2595 to ...
2596 * sysdeps/s390/memcmp.c: ... here.
2597 Adjust ifunc variants for memcmp.
2598
2599 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2600
2601 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2602 * sysdeps/s390/memcmp.S: ... here.
2603 Adjust to be usable for 31/64bit.
2604 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2605 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2606 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2607 Remove memcmp.
2608 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2609 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2610 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2611 Adjust to be usable for 31/64bit.
2612 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2613 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2614 * sysdeps/s390/multiarch/memcmp.c: ... here.
2615 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2616
2617 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2618
2619 * sysdeps/s390/s390-32/bzero.S: Delete file.
2620 * sysdeps/s390/s390-64/bzero.S: Likewise.
2621 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2622 * sysdeps/s390/bzero.c: New file.
2623 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2624 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2625 * sysdeps/s390/multiarch/ifunc-impl-list.c
2626 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2627
2628 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2629
2630 * sysdeps/s390/ifunc-memset.h: New File.
2631 * sysdeps/s390/memset.S: Move to ...
2632 * sysdeps/s390/memset-z900.S ... here.
2633 Move implementations from memset-s390x.s to here.
2634 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2635 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2636 Remove memset variants.
2637 * sysdeps/s390/Makefile (sysdep_routines):
2638 Add memset variants.
2639 * sysdeps/s390/multiarch/ifunc-impl-list.c
2640 (__libc_ifunc_impl_list): Adjust ifunc variants for
2641 memset.
2642 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2643 to ...
2644 * sysdeps/s390/memset.c: ... here.
2645 Adjust ifunc variants for memset.
2646
2647 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2648
2649 * sysdeps/s390/s390-64/memset.S: Move to ...
2650 * sysdeps/s390/memset.S: ... here.
2651 Adjust to be usable for 31/64bit.
2652 * sysdeps/s390/s390-32/memset.S: Delete File.
2653 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
2654 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2655 Remove memset.
2656 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2657 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
2658 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
2659 Adjust to be usable for 31/64bit.
2660 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
2661 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
2662 * sysdeps/s390/multiarch/memset.c: ... here.
2663 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
2664
2665 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2666
2667 * sysdeps/s390/multiarch/ifunc-resolve.h
2668 (s390_libc_ifunc_init, s390_libc_ifunc,
2669 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
2670
2671 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2672
2673 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
2674 * sysdeps/s390/configure.ac: Add check for z10 support.
2675 * sysdeps/s390/configure: Regenerated.
2676
2677 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
2678
2679 * sysdeps/i386/atomic-machine.h: Merged with ...
2680 * sysdeps/x86_64/atomic-machine.h: To ...
2681 * sysdeps/x86/atomic-machine.h: This. New file.
2682
2683 2018-12-18 Florian Weimer <fweimer@redhat.com>
2684
2685 Rewrite locale/gen-translit.pl in Python.
2686 * locale/Makefile (generated): Add C-translit.h.
2687 (before-compile): Add $(objpfx)C-translit.h.
2688 (C-translit.h): Move to $(objpfx). Create target directory.
2689 Build using Python script.
2690 * locale/gen-translit.py: New file.
2691 * locale/gen-translit.pl: Remove file.
2692 * locale/C-translit.h.in: Change comment character to '#' for
2693 easier parsing without a C preprocessor.
2694 * locale/C-translit.h: Remove generated file.
2695 * manual/install.texi (Tools for Compilation): Do not mention
2696 C-translit.h.
2697 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
2698 Remove locale/C-translit.h.
2699 * scripts/update-copyrights: Likewise.
2700 * INSTALL: Regenerate.
2701
2702 2018-12-18 Florian Weimer <fweimer@redhat.com>
2703
2704 [BZ #23995]
2705 * localedata/locales/bi_VU: Remove executable bit from file.
2706
2707 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
2708
2709 * include/time.h
2710 (__localtime64): Add.
2711 * manual/maint.texi: Document Y2038 symbol handling.
2712 * time/localtime.c
2713 (__localtime64): Add.
2714 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
2715
2716 2018-12-17 Joseph Myers <joseph@codesourcery.com>
2717
2718 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
2719 Do not clobber r12.
2720
2721 * scripts/glibcextract.py (compare_macro_consts): Take parameters
2722 to allow extra macros from first or second sources.
2723 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
2724 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2725 (tests-special): Add $(objpfx)tst-mman-consts.out.
2726 ($(objpfx)tst-mman-consts.out): New makefile target.
2727
2728 2018-12-17 Mao Han <han_mao@c-sky.com>
2729
2730 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
2731 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
2732 without stat64 system call support.
2733 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
2734 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
2735 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
2736 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
2737 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
2738 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
2739 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
2740 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
2741 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
2742 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
2743 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
2744
2745 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
2746
2747 regex: fix storage-exhaustion error
2748 [BZ #18040]
2749 * posix/regexec.c (get_subexp):
2750 Do not continue if storage is exhausted.
2751
2752 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
2753
2754 regex: fix heap-use-after-free error
2755 [BZ #18040]
2756 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
2757 https://debbugs.gnu.org/32592
2758 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
2759 call extend_buffers which reallocates the re_string_t internal buffer.
2760 Local variable 'buf' was not updated in such case, resulting in
2761 use-after-free.
2762 * posix/regexec.c (get_subexp): Update 'buf' after call to
2763 get_subexp_sub.
2764
2765 2018-12-15 Florian Weimer <fweimer@redhat.com>
2766
2767 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
2768 (minimum_stride_size): Use it.
2769 (support_blob_repeat_allocate): Likewise.
2770
2771 2018-12-14 Joseph Myers <joseph@codesourcery.com>
2772
2773 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
2774 definition.
2775 (acosh): Likewise.
2776 (atanh): Likewise.
2777
2778 2018-12-14 Florian Weimer <fweimer@redhat.com>
2779
2780 * manual/process.texi (Process Creation Concepts): Remove
2781 documentation of process (ID) lifetime. List more process
2782 creation functions. Reference Process Identification section.
2783 (Process Identification): Add information about process ID
2784 lifetime. Describe Linux thread/task IDs.
2785 * manual/signal.texi (Signaling Another Process): Mention that the
2786 signal is always sent to the process.
2787
2788 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2789
2790 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
2791 and tst-ldbl-efgcvt.
2792 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
2793 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
2794 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
2795 (fcvt_tests, output_error, output_r_error, do_test): Use the
2796 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
2797 select the type of floating-point variables and arguments; to
2798 produce extra tests for double and conversion specifiers for
2799 printf; and to set the names of called functions.
2800 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
2801 in tst-efgcvt-template.c.
2802 * misc/tst-ldbl-efgcvt.c: Likewise.
2803
2804 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
2805
2806 * nss/Makefile (tst-nss-test3.out): New rule.
2807
2808 2018-12-13 Joseph Myers <joseph@codesourcery.com>
2809
2810 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
2811 clobber sp.
2812
2813 2018-12-13 fanjinke <fanjinke@hygon.cn>
2814
2815 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
2816 "HygonGenuine".
2817
2818 2018-12-13 Andreas Schwab <schwab@suse.de>
2819
2820 [BZ #23861]
2821 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
2822 (__pthread_rwlock_rdlock_full): Update expected value for
2823 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
2824 * nptl/tst-rwlock-pwn.c: New file.
2825 * nptl/Makefile (tests): Add tst-rwlock-pwn.
2826
2827 2018-12-12 Joseph Myers <joseph@codesourcery.com>
2828
2829 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
2830 definition.
2831
2832 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2833
2834 * benchtests/scripts/compare_bench.py (do_compare): write to
2835 stderr in casestat is not present.
2836 * benchtests/scripts/compare_bench.py (plot_graphs): write to
2837 stderr in case timings field is not present. Also string showing
2838 the output filename goes into the stderr.
2839
2840 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2841
2842 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
2843 and ZeroDivisorError exceptions.
2844 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
2845 argument to loop through user provided statistics.
2846 * benchtests/scripts/compare_bench.py (main): Include the --stats
2847 argument.
2848
2849 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2850
2851 * benchtests/scripts/compare_bench.py (compare_runs): Continue
2852 instead of return.
2853
2854 2018-12-12 Florian Weimer <fweimer@redhat.com>
2855
2856 * sysdeps/posix/timespec_get.c: Add missing “any later version”
2857 clause to copyright header.
2858
2859 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2860
2861 [BZ #23614]
2862 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
2863 registers saved in the stack frame.
2864 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
2865 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
2866
2867 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2868
2869 * include/bits/monetary-ldbl.h: New file.
2870 * include/bits/printf-ldbl.h: Likewise.
2871 * include/bits/stdio-ldbl.h: Likewise.
2872 * include/bits/stdlib-ldbl.h: Likewise.
2873 * include/bits/syslog-ldbl.h: Likewise.
2874 * include/bits/wchar-ldbl.h: Likewise.
2875
2876 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2877
2878 * libio/libio.h: Remove redirection for _IO_vfprintf.
2879
2880 2018-12-11 Andreas Schwab <schwab@suse.de>
2881
2882 * Makerules: Remove all references to abilist-pattern.
2883 (update-all-abi): Simplify find expression.
2884
2885 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
2886
2887 [BZ #23961]
2888 * math/auto-libm-test-in: Add new test case.
2889 * math/auto-libm-test-out-pow: Regenerated.
2890 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
2891
2892 2018-12-10 DJ Delorie <dj@redhat.com>
2893
2894 [BZ #23948]
2895 * support/test-container.c: Move postclean step to before we
2896 change namespaces.
2897
2898 2018-12-10 Joseph Myers <joseph@codesourcery.com>
2899
2900 * scripts/gen-as-const.py (main): Handle --python option.
2901 * scripts/gen-py-const.awk: Remove.
2902 * Makerules (py-const-script): Use gen-as-const.py.
2903 ($(py-const)): Likewise.
2904 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
2905 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
2906 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
2907 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
2908 ~PTHREAD_MUTEX_NO_ELISION_NP.
2909 * manual/README.pretty-printers: Update reference to
2910 gen-py-const.awk.
2911
2912 * scripts/glibcextract.py: New file.
2913 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
2914 or tempfile. Import glibcexctract.
2915 (compute_c_consts): Remove. Moved to glibcextract.py.
2916 (gen_test): Update reference to compute_c_consts.
2917 (main): Likewise.
2918 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
2919 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
2920 * sysdeps/unix/sysv/linux/Makefile
2921 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
2922 Redirect stderr as well as stdout.
2923
2924 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
2925
2926 [BZ #19767]
2927 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
2928 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
2929 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
2930 ALWAYS_USE_VSYSCALL.
2931 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
2932 ALWAYS_USE_VSYSCALL.
2933 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
2934 ALWAYS_USE_VSYSCALL.
2935
2936 2018-12-10 Florian Weimer <fweimer@redhat.com>
2937
2938 [BZ #23972]
2939 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
2940 offset instead of count for clarity. Fix typo in comment.
2941 (__old_getdents64): Keep track of previous offset. Use it to call
2942 handle_overflow.
2943 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
2944 that d_off is never zero.
2945
2946 2018-12-10 Andreas Schwab <schwab@suse.de>
2947
2948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
2949 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
2950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
2951 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
2952 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
2953
2954 2018-12-10 Joseph Myers <joseph@codesourcery.com>
2955
2956 * timezone/private.h: Update from tzcode 2018g.
2957 * timezone/tzfile.h: Likewise.
2958 * timezone/tzselect.ksh: Likewise.
2959 * timezone/zdump.c: Likewise.
2960 * timezone/zic.c: Likewise.
2961
2962 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
2963
2964 [BZ #23490]
2965 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
2966 (do_test): Adjust buffer size and fix format.
2967
2968 2018-12-07 DJ Delorie <dj@redhat.com>
2969
2970 [BZ #23907]
2971 * malloc/tst-tcfree3.c: New.
2972 * malloc/Makefile: Add it.
2973
2974 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
2975
2976 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
2977
2978 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2979
2980 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
2981 used as a mask for the mode argument of __vfscanf_internal and
2982 __vfwscanf_internal.
2983 * stdio-common/vfscanf-internal.c
2984 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
2985 (__strtof128_internal): Define to __wcstof128_internal.
2986 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
2987 __strtof128_internal or __wcstof128_internal when the format of
2988 long double is the same as _Float128.
2989
2990 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
2991
2992 * include/unistd.h (__confstr): Add prototype and hidden prototype.
2993 * posix/confstr.c (confstr): Rename to __confstr.
2994 (__confstr): Add hidden def.
2995 (confstr): Add weak alias for __confstr.
2996 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
2997 confstr.
2998
2999 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3000
3001 * NEWS: Mention getcpu.
3002 * include/sched.h (__getcpu): New libc_hidden_proto.
3003 * manual/resource.texi: Document getcpu.
3004 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3005 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3006 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3007 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3008 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3009 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3010 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3011 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3012 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3013 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3014 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3015 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3016 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3017 Likewise.
3018 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3019 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3020 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3021 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3022 Likewise.
3023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3024 Likewise.
3025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3026 Likewise.
3027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3028 Likewise.
3029 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3030 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3031 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3032 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3033 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3034 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3035 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3036 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3037 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3038 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3039 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3040 Also check getcpu.
3041
3042 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3043
3044 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3045 functions.
3046 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3047
3048 2018-12-07 Florian Weimer <fweimer@redhat.com>
3049
3050 [BZ #17405]
3051 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3052 * posix/Versions (GLIBC_2.29): Export
3053 posix_spawn_file_actions_addfchdir_np.
3054 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3055 * posix/spawn_faction_destroy.c
3056 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3057 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3058 and the field action.fchdir_action.
3059 * posix/tst-spawn-chdir.c (add_chdir): New function.
3060 (do_test): Add do_fchdir loop. Call add_chdir.
3061 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3062 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3063 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3064 posix_spawn_file_actions_addfchdir_np.
3065 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3066 Likewise.
3067 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3068 Likewise.
3069 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3070 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3071 Likewise.
3072 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3073 Likewise.
3074 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3075 Likewise.
3076 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3077 Likewise.
3078 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3079 Likewise.
3080 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3081 Likewise.
3082 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3083 (GLIBC_2.29): Likewise.
3084 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3085 (GLIBC_2.29): Likewise.
3086 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3087 (GLIBC_2.29): Likewise.
3088 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3089 (GLIBC_2.29): Likewise.
3090 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3091 Likewise.
3092 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3093 (GLIBC_2.29): Likewise.
3094 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3095 (GLIBC_2.29): Likewise.
3096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3097 (GLIBC_2.29): Likewise.
3098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3099 (GLIBC_2.29): Likewise.
3100 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3101 Likewise.
3102 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3103 Likewise.
3104 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3105 Likewise.
3106 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3107 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3108 Likewise.
3109 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3110 Likewise.
3111 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3112 Likewise.
3113 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3114 Likewise.
3115
3116 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3117
3118 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3119 trailing whitespace removed.
3120 * scripts/config.guess: Update to version 2018-11-28.
3121 * scripts/config.sub: Update to version 2018-11-28.
3122 * scripts/install-sh: Update to version 2018-03-11.20.
3123 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3124 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3125
3126 2018-12-07 Florian Weimer <fweimer@redhat.com>
3127
3128 [BZ #23927]
3129 CVE-2018-19591
3130 * inet/tst-if_index-long.c: New file.
3131 * inet/Makefile (tests): Add tst-if_index-long.
3132
3133 2018-12-07 Florian Weimer <fweimer@redhat.com>
3134
3135 * support/check.h (support_record_failure_is_failed): Declare.
3136 * support/descriptors.h: New file.
3137 * support/support_descriptors.c: Likewise.
3138 * support/tst-support_descriptors.c: Likewise.
3139 * support/support_record_failure.c
3140 (support_record_failure_is_failed): New function.
3141 * support/Makefile (libsupport-routines): Add support_descriptors.
3142 (tests): Add tst-support_descriptors.
3143
3144 2018-12-05 Zack Weinberg <zackw@panix.com>
3145 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3146
3147 * stdio-common/vfprintf-internal.c
3148 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3149 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3150 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3151 and __no_long_double.
3152 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3153 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3154 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3155 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3156 and __nldbl_*syslog* functions.
3157 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3158 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3159 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3160 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3161 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3162 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3163 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3164 (__nldbl_vwprintf, __nldbl_wprintf):
3165 Directly call the appropriate __v*printf_internal routine, passing
3166 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3167 variable names.
3168 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3169 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3170 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3171 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3172 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3173 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3174 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3175 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3176 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3177 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3178 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3179 (__nldbl_syslog, __nldbl_vsyslog):
3180 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3181 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3182 appropriate.
3183 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3184 appropriate.
3185
3186 2018-12-05 Zack Weinberg <zackw@panix.com>
3187 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3188
3189 [BZ #11319]
3190 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3191 Moved here from debug/vsprintf_chk.c.
3192 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3193 and completion logic for the strfile to match exactly what
3194 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3195 _IO_str_init_static_internal instead of maxlen-1.
3196 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3197 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3198 __vsprintf_internal.
3199
3200 * debug/vsprintf_chk.c (__vsprintf_chk)
3201 * debug/sprintf_chk.c (__sprintf_chk):
3202 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3203 'flags' argument is positive, and slen as maxlen. No need to lock
3204 the FILE and/or construct a temporary FILE. Minimize and normalize
3205 header inclusions and variable names. Do not libc_hidden_def anything.
3206
3207 * debug/asprintf_chk.c (__asprintf_chk)
3208 * debug/dprintf_chk.c (__dprintf_chk)
3209 * debug/fprintf_chk.c (__fprintf_chk)
3210 * debug/fwprintf_chk.c (__fwprintf_chk)
3211 * debug/printf_chk.c (__printf_chk)
3212 * debug/snprintf_chk.c (__snprintf_chk)
3213 * debug/swprintf_chk.c (__swprintf_chk)
3214 * debug/vasprintf_chk.c (__vasprintf_chk)
3215 * debug/vdprintf_chk.c (__vdprintf_chk)
3216 * debug/vfprintf_chk.c (__vfprintf_chk)
3217 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3218 * debug/vprintf_chk.c (__vprintf_chk)
3219 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3220 * debug/vswprintf_chk.c (__vswprintf_chk)
3221 * debug/vwprintf_chk.c (__vwprintf_chk)
3222 * debug/wprintf_chk.c (__wprintf_chk):
3223 Directly call the corresponding vxxprintf_internal function, passing
3224 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3225 the FILE and/or construct a temporary FILE. Minimize and normalize
3226 header inclusions and variable names. Do not libc_hidden_def anything.
3227
3228 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3229 __obstack_vprintf_internal.
3230 (__obstack_vprintf_chk): Convert into a wrapper that calls
3231 __obstack_vprintf_internal (these two functions already had the
3232 same code) and move to new file...
3233 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3234 file.
3235 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3236 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3237 * debug/Makefile (routines): Add vobprintf_chk.
3238
3239 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3240 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3241 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3242 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3243 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3244 (__nldbl___obstack_vfprintf_chk):
3245 Directly call the corresponding vxxprintf_internal function,
3246 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3247 duplicate comparison of slen with 0 or maxlen from the corresponding
3248 non-__nldbl function.
3249
3250 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3251 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3252 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3253 Remove libc_hidden_proto.
3254
3255 * stdio-common/vfprintf-internal.c
3256 (__vfprintf_internal, __vfwprintf_internal):
3257 Do not check _IO_FLAGS2_FORTIFY.
3258 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3259 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3260 a comment explaining why it has the maxlen argument.
3261 (_IO_acquire_lock_clear_flags2_fct): Remove.
3262 (_IO_acquire_lock_clear_flags2): Remove.
3263 (_IO_release_lock): Remove conditional statement which will
3264 now never execute.
3265 (_IO_acquire_lock): Remove variable which is now unused.
3266 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3267 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3268
3269 * stdio-common/Makefile (tests): Add tst-bz11319 and
3270 tst-bz11319-fortify2.
3271 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3272 * stdio-common/tst-bz11319-fortify2.c: New file.
3273 * stdio-common/tst-bz11319.c: Likewise.
3274
3275 2018-12-05 Zack Weinberg <zackw@panix.com>
3276 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3277
3278 * misc/syslog.c: Include libioP.h, not iolibio.h.
3279 (__vsyslog_internal): New function with the former body of
3280 __vsyslog_chk; takes mode_flags argument same as
3281 __v*printf_internal. Call __vfprintf_internal directly.
3282
3283 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3284 Remove libc_hidden_def.
3285 (__syslog, __syslog_chk): Use __vsyslog_internal.
3286 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3287
3288 * include/sys/syslog.h: Add multiple inclusion guard.
3289 Add prototype for __vsyslog_internal.
3290 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3291
3292 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3293 Use __vsyslog_internal.
3294
3295 2018-12-05 Zack Weinberg <zackw@panix.com>
3296 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3297
3298 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3299 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3300 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3301 New functions.
3302 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3303 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3304
3305 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3306 Include wctype.h here if COMPILE_WPRINTF is defined.
3307 Define __vfprintf_internal or __vfwprintf_internal, depending
3308 on COMPILE_WPRINTF.
3309 Temporarily, on entry to this function, update mode_flags
3310 according to the environmental settings corresponding to
3311 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3312 Throughout, check mode_flags instead of __ldbl_is_dbl and
3313 _IO_FLAGS2_FORTIFY on the destination FILE.
3314 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3315 Include vfprintf-internal.c. Don't include wctype.h.
3316 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3317 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3318 and vfprintf.
3319 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3320 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3321 and vfwprintf.
3322 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3323
3324 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3325 and add mode_flags argument; use __vfprintf_internal.
3326 (__vdprintf): New function. Alias vdprintf to this.
3327 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3328 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3329 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3330 (__obstack_printf): Use __obstack_printf_internal.
3331 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3332 public aliases __vsnprintf and vsnprintf.
3333 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3334 called internally.
3335 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3336 public aliases _IO_vsprintf and vsprintf.
3337 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3338 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3339 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3340 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3341 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3342
3343 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3344 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3345 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3346 * stdio-common/printf.c: Use __vfprintf_internal.
3347
3348 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3349 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3350 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3351
3352 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3353 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3354 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3355 __vfwprintf_internal.
3356
3357 * libio/libio.h: Remove libc_hidden_proto and declaration for
3358 _IO_vfprintf.
3359 Remove declaration of _IO_vfwprintf.
3360 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3361 _IO_vsprintf.
3362 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3363 _IO_obstack_printf.
3364 * include/stdio.h: Add prototype for __vasprintf.
3365 (__vsnprintf): Remove declaration, because there are no more
3366 internal calls.
3367 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3368 declaration, because there are no more internal calls.
3369
3370 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3371 __vsnprintf_internal, instead of _IO_vsnprintf.
3372 * argp/argp-help.c (__argp_error, __argp_failure): Use
3373 __vasprintf_internal, instead of _IO_vasprintf.
3374 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3375 redefine, because there are no more internal calls.
3376
3377 2018-12-05 Zack Weinberg <zackw@panix.com>
3378 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3379
3380 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3381 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3382 Include libio/strfile.h instead of libioP.h.
3383 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3384 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3385 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3386 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3387 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3388 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3389 necessary. Do not set __no_long_double. Normalize variable names.
3390 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3391 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3392 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3393 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3394 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3395 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3396 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3397 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3398 Do not set __no_long_double. Normalize variable names.
3399
3400 2018-12-05 Zack Weinberg <zackw@panix.com>
3401 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3402
3403 * stdio-common/isoc99_scanf.c
3404 * stdio-common/isoc99_fscanf.c
3405 * stdio-common/isoc99_sscanf.c
3406 * stdio-common/isoc99_vscanf.c
3407 * stdio-common/isoc99_vfscanf.c
3408 * stdio-common/isoc99_vsscanf.c
3409 * wcsmbs/isoc99_wscanf.c
3410 * wcsmbs/isoc99_fwscanf.c
3411 * wcsmbs/isoc99_swscanf.c
3412 * wcsmbs/isoc99_vwscanf.c
3413 * wcsmbs/isoc99_vfwscanf.c
3414 * wcsmbs/isoc99_vswscanf.c:
3415 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3416 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3417 No need to lock and unlock the FILE passed to that function.
3418
3419 * stdio-common/vfscanf-internal.c
3420 (__vfscanf_internal, __vfwscanf_internal):
3421 Don't look at _IO_FLAGS2_SCANF_STD.
3422 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3423 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3424 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3425
3426 2018-12-05 Zack Weinberg <zackw@panix.com>
3427 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3428
3429 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3430 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3431 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3432 * libio/strfile.h: Add multiple inclusion guard.
3433 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3434
3435 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3436 consistency with the other version of this file.
3437 (ldbl_compat_symbol): New macro.
3438 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3439 New macro.
3440
3441 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3442 Define __vfscanf_internal or __vfwscanf_internal, depending on
3443 COMPILE_WSCANF; don't define any other public symbols.
3444 Remove errval and code to set errp.
3445 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3446 as the mode_flags argument.
3447 (encode_error, conv_error, input_error): Don't set errval.
3448 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3449 Include vfscanf-internal.c.
3450 * stdio-common/vfscanf.c: New file defining the public entry
3451 point vfscanf, which calls __vfscanf_internal.
3452 * stdio-common/vfwscanf.c: New file defining the public entry
3453 point vfwscanf, which calls __vfwscanf_internal.
3454
3455 * stdio-common/iovfscanf.c: New file.
3456 * stdio-common/iovfwscanf.c: Likewise.
3457
3458 * stdio-common/Makefile (routines): Add vfscanf-internal,
3459 vfwscanf-internal, iovfscanf, iovfwscanf.
3460 * stdio-common/Versions: Mention GLIBC_2.29, so that
3461 it can be used in SHLIB_COMPAT expressions.
3462 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3463 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3464 Call __vfscanf_internal, instead of _IO_vfscanf.
3465 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3466 _IO_vfscanf.
3467 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3468 _IO_vfwscanf.
3469
3470 * libio/iovsscanf.c: Clean up includes, when possible. Use
3471 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3472 __vfscanf_internal or __vfwscanf_internal directly.
3473 * libio/iovswscanf.c: Likewise.
3474 * libio/swscanf.c: Likewise.
3475 * libio/vscanf.c: Likewise.
3476 * libio/vwscanf.c: Likewise.
3477 * libio/wscanf.c: Likewise.
3478 * stdio-common/isoc99_fscanf.c: Likewise.
3479 * stdio-common/isoc99_scanf.c: Likewise.
3480 * stdio-common/isoc99_sscanf.c: Likewise.
3481 * stdio-common/isoc99_vfscanf.c: Likewise.
3482 * stdio-common/isoc99_vscanf.c: Likewise.
3483 * stdio-common/isoc99_vsscanf.c: Likewise.
3484 * stdio-common/scanf.c: Likewise.
3485 * stdio-common/sscanf.c: Likewise.
3486 * wcsmbs/isoc99_fwscanf.c: Likewise.
3487 * wcsmbs/isoc99_swscanf.c: Likewise.
3488 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3489 * wcsmbs/isoc99_vswscanf.c: Likewise.
3490 * wcsmbs/isoc99_vwscanf.c: Likewise.
3491 * wcsmbs/isoc99_wscanf.c: Likewise.
3492
3493 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3494
3495 * include/time.h
3496 (__tz_compute): Replace time_t with __time64_t.
3497 (__tz_convert): Replace time_t* with __time64_t.
3498 (__offtime): Replace time_t* with __time64_t.
3499 * time/gmtime.c
3500 (__gmtime_r): Adjust call to __tz_convert.
3501 (gmtime): Likewise.
3502 * time/localtime.c
3503 (__localtime_r): Likewise.
3504 (localtime): Likewise.
3505 * time/offtime.c: Replace time_t with __time64_t.
3506 * time/tzset.c: Likewise.
3507
3508 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3509
3510 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3511 dynamic linker unless [$(run-built-tests) = yes].
3512
3513 2018-12-03 DJ Delorie <dj@delorie.com>
3514
3515 * support/test-container.c (check_for_unshare_hints): New.
3516 (main): Call it if unshare fails. Add support for "su" scriptlet
3517 command.
3518
3519 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3520
3521 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3522 'START' to indicate that start text should be output.
3523 (gen_test): Likewise.
3524 (main): Generate 'START' for first symbol or '--' line, or at end
3525 of input if not previously generated.
3526
3527 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3528
3529 [BZ #19767]
3530 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3531 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3532 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3533 ALWAYS_USE_VSYSCALL.
3534
3535 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3536
3537 [BZ #23913]
3538 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3539 new_argv by one.
3540
3541 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3542
3543 [BZ #23923]
3544 * locale/programs/localedef.c: Declare boolean hard_links default true.
3545 (options): Add --no-hard-links option.
3546 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3547 * locale/programs/localedef.h: Declare prototype for hard_links.
3548 * locale/programs/locfile.c (write_locale_data): Don't use hard
3549 links if hard_links is false.
3550
3551 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3552
3553 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3554 cpu_features_basic.
3555 (__cache_sysconf): Likewise.
3556 (init_cacheinfo): Likewise.
3557 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3558 populate COMMON_CPUID_INDEX_80000007 and
3559 COMMON_CPUID_INDEX_80000008.
3560 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3561 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3562 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3563 (init_cpu_features): Use _Static_assert on
3564 index_arch_Fast_Unaligned_Load.
3565 __get_cpuid_registers and __get_arch_feature. Updated for
3566 cpu_features_basic. Set stepping in cpu_features.
3567 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3568 (FEATURE_INDEX_2): New.
3569 (FEATURE_INDEX_MAX): Changed to enum.
3570 (COMMON_CPUID_INDEX_D_ECX_1): New.
3571 (COMMON_CPUID_INDEX_80000007): Likewise.
3572 (COMMON_CPUID_INDEX_80000008): Likewise.
3573 (cpuid_registers): Likewise.
3574 (cpu_features_basic): Likewise.
3575 (CPU_FEATURE_USABLE): Likewise.
3576 (bit_arch_XXX_Usable): Likewise.
3577 (cpu_features): Use cpuid_registers and cpu_features_basic.
3578 (bit_arch_XXX): Reweritten.
3579 (bit_cpu_XXX): Likewise.
3580 (index_cpu_XXX): Likewise.
3581 (reg_XXX): Likewise.
3582 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3583 <support/check.h>.
3584 (CHECK_CPU_FEATURE): New.
3585 (CHECK_CPU_FEATURE_USABLE): Likewise.
3586 (cpu_kinds): Likewise.
3587 (do_test): Print vendor, family, model and stepping. Check
3588 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3589 (TEST_FUNCTION): Removed.
3590 Include <support/test-driver.c> instead of
3591 "../../test-skeleton.c".
3592 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3593 Check POPCNT instead of POPCOUNT.
3594 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3595
3596 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3597
3598 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3599 there is no element in `consts'.
3600
3601 2018-12-01 Florian Weimer <fweimer@redhat.com>
3602
3603 * support/support_capture_subprocess.c
3604 (support_capture_subprocess): Check that pipe descriptors have
3605 expected values. Close original pipe descriptors in subprocess.
3606
3607 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3608
3609 [BZ #23032]
3610 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3611 attr with __pthread_default_barrierattr.
3612 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3613 attr with __pthread_default_condattr.
3614 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3615 attr with __pthread_default_mutexattr.
3616 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3617 attr with __pthread_default_rwlockattr.
3618
3619 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3620
3621 * manual/tunables.texi (POSIX Thread Tunables): New node.
3622 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3623 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3624 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3625 __pthread_tunables_init.
3626 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3627 (max_adaptive_count): Define.
3628 * nptl/pthread_mutex_conf.c: New file.
3629 * nptl/pthread_mutex_conf.h: New file.
3630 * sysdeps/generic/adaptive_spin_count.h: New file.
3631 * sysdeps/nptl/dl-tunables.list: New file.
3632 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3633 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3634 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3635 Likewise.
3636
3637 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3638
3639 [BZ #20544]
3640 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3641 * stdlib/on_exit.c (__on_exit): Likewise.
3642 * stdlib/Makefile (tests): Add tst-bz20544.
3643 * stdlib/tst-bz20544.c: New test.
3644
3645 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
3646
3647 [BZ #19767]
3648 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
3649 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
3650 New.
3651
3652 2018-11-30 Florian Weimer <fweimer@redhat.com>
3653
3654 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
3655 Extend error logging.
3656 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
3657 symbol.
3658
3659 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3660
3661 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
3662 __sigismember instead of sigismember.
3663 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
3664 cancel_handler): New definitions.
3665 (do_system): Use posix_spawn instead of fork and execl and remove
3666 reentracy code.
3667 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
3668 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
3669 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
3670 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
3671 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
3672 * sysdeps/unix/sysv/linux/system.c: Likewise.
3673
3674 [BZ #22834]
3675 [BZ #17490]
3676 * NEWS: Add new semantic for atfork with popen and system.
3677 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
3678 fork and execl.
3679
3680 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3681
3682 [BZ #23690]
3683 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
3684 modification order when accessing reloc_result->addr.
3685 * include/link.h (reloc_result): Add field init.
3686 * nptl/Makefile (tests): Add tst-audit-threads.
3687 (modules-names): Add tst-audit-threads-mod1 and
3688 tst-audit-threads-mod2.
3689 Add rules to build tst-audit-threads.
3690 * nptl/tst-audit-threads-mod1.c: New file.
3691 * nptl/tst-audit-threads-mod2.c: Likewise.
3692 * nptl/tst-audit-threads.c: Likewise.
3693 * nptl/tst-audit-threads.h: Likewise.
3694
3695 2018-11-30 Joseph Myers <joseph@codesourcery.com>
3696
3697 * scripts/gen-as-const.py: New file.
3698 * scripts/gen-as-const.awk: Remove.
3699 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
3700 gen-as-const.py.
3701 ($(objpfx)test-as-const-%.c): Likewise.
3702
3703 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3704
3705 * elf/dl-exception.c: Include <_itoa.h>.
3706
3707 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3708
3709 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
3710 returned by __f_setlk.
3711
3712 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3713 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3714
3715 * elf/Makefile (tests-internal): Add tst-create_format1.
3716 * elf/dl-exception.c (_dl_exception_create_format): Support
3717 %x, %lx and %zx.
3718 * elf/tst-create_format1.c: New file.
3719
3720 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
3721
3722 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
3723 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
3724 gnulib.)
3725 * argp/argp-help.c (__argp_failure): Likewise.
3726
3727 2018-11-29 Mao Han <han_mao@c-sky.com>
3728
3729 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
3730 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
3731 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
3732 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
3733 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
3734 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
3735 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
3736 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
3737 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
3738 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
3739 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
3740 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
3741 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
3742 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
3743 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
3744 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
3745 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
3746 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
3747 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
3748 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
3749 (R_CKCORE_TLS_TPOFF32): New defines.
3750
3751 2018-11-29 Florian Weimer <fweimer@redhat.com>
3752
3753 * posix/Makefile (before-compile): Remove testcases.h and
3754 ptestcases.h.
3755 (generated): Add testcases.h and ptestcases.h.
3756 (testcases.h, ptestcases.h): Move to $(objpfx).
3757 (runtests.o): Add dependency on testcases.h.
3758 (runptests.o): Add dependency on ptestcases.h.
3759 * posix/testcases.h, posix/ptestcases.h: Remove files.
3760 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
3761 not touch posix/testcases.h and posix/ptestcases.h.
3762
3763 2018-11-28 Florian Weimer <fweimer@redhat.com>
3764
3765 support: Add signal support to support_capture_subprocess_check.
3766 * support/capture_subprocess.h (support_capture_subprocess_check):
3767 Adjust comment and rename parameter.
3768 * support/support_capture_subprocess_check.c
3769 (print_actual_status): New function.
3770 (support_capture_subprocess_check): Support negative
3771 status_or_signal. Call print_actual_status.
3772 * support/tst-support_capture_subprocess.c (do_test): Call
3773 support_capture_subprocess_check.
3774 * libio/tst-vtables-common.c (termination_status)
3775 (init_termination_status): Remove.
3776 (check_for_termination): Adjust support_capture_subprocess_check
3777 call.
3778 (do_test): Remove call to init_termination_status.
3779
3780 2018-11-28 Joseph Myers <joseph@codesourcery.com>
3781
3782 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
3783 source directory instead of a copy.
3784 (CommandList.create_copy_dir): Remove.
3785
3786 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
3787
3788 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3789
3790 2018-11-28 Florian Weimer <fweimer@redhat.com>
3791
3792 * support/support.h (support_quote_string): Do not use str
3793 parameter name.
3794
3795 2018-11-27 Joseph Myers <joseph@codesourcery.com>
3796
3797 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
3798 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
3799
3800 2018-11-27 Florian Weimer <fweimer@redhat.com>
3801
3802 * support/support.h (support_quote_string): Declare.
3803 * support/support_quote_string.c: New file.
3804 * support/tst-support_quote_string.c: Likewise.
3805 * support/Makefile (libsupport-routines): Add
3806 support_quote_string.
3807 (tests): Add tst-support_quote_string.
3808
3809 2018-11-27 Florian Weimer <fweimer@redhat.com>
3810
3811 [BZ #23927]
3812 CVE-2018-19591
3813 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
3814 descriptor leak in case of ENODEV error.
3815
3816 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
3817
3818 [BZ #19767]
3819 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
3820 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
3821 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
3822
3823 2018-11-26 Carlos O'Donell <carlos@redhat.com>
3824
3825 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
3826 Error for unknown lines.
3827
3828 2018-11-26 Joseph Myers <joseph@codesourcery.com>
3829
3830 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3831 Touch additional files.
3832
3833 2018-11-26 Florian Weimer <fweimer@redhat.com>
3834
3835 [BZ #23907]
3836 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
3837 double-frees.
3838
3839 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
3840
3841 [BZ #19767]
3842 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
3843 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
3844 SHARED. Include sysdep.h.
3845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
3846 ALWAYS_USE_VSYSCALL.
3847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
3848 ALWAYS_USE_VSYSCALL.
3849
3850 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
3851
3852 [BZ #19767]
3853 * nptl/Makefile (tests-static): Add tst-cond11-static.
3854 (tests): Likewise.
3855 * nptl/tst-cond11-static.c: New File.
3856 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
3857 tst-affinity-static.
3858 (tests): Likewise.
3859 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
3860 instead of SHARED.
3861 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
3862 (USE_VSYSCALL): Likewise.
3863 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
3864 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
3865 instead of SHARED.
3866 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
3867 SHARED.
3868 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
3869 New.
3870
3871 2018-11-23 Joseph Myers <joseph@codesourcery.com>
3872
3873 [BZ #23915]
3874 * sysdeps/unix/sysv/linux/arm/kernel-features.h
3875 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
3876 Undefine.
3877
3878 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
3879
3880 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
3881 (tst-cet-legacy-1a-ARGS): New.
3882 ($(objpfx)tst-cet-legacy-1a): New target.
3883 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
3884
3885 2018-11-22 Joseph Myers <joseph@codesourcery.com>
3886
3887 * conform/conformtest.py (CompileSubTest.__init__): Set
3888 self.run_early to False.
3889 (ExecuteSubTest.__init__): Likewise.
3890 (HeaderTests.run): Try running all non-optional, non-XFAILed
3891 compilation tests in a single execution of the compiler.
3892
3893 * conform/conformtest.py (CompileSubTest): New class.
3894 (ExecuteSubTest): Likewise.
3895 (ElementTest.run): Rename to gen_subtests. Append tests to
3896 self.subtests instead of running them.
3897 (ConstantTest.run): Likewise.
3898 (SymbolTest.run): Likewise.
3899 (TypeTest.run): Likewise.
3900 (TagTest.run): Likewise.
3901 (FunctionTest.run): Likewise.
3902 (VariableTest.run): Likewise.
3903 (MacroFunctionTest.run): Likewise.
3904 (MacroStrTest.run): Likewise.
3905 (HeaderTests.handle_test_line): Generate subtests for tests.
3906 (HeaderTests.run): Run subtests for tests.
3907
3908 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
3909
3910 * math/Versions (GLIBC_2.29): Add pow.
3911 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
3912 symbol.
3913 * math/w_pow.c: New file.
3914 * sysdeps/i386/fpu/w_pow.c: New file.
3915 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
3916 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
3917 and add necessary aliases.
3918 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
3919 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
3920 * sysdeps/mach/hurd/i386/libm.abilist: Update.
3921 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3922 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
3923 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
3924 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
3925 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
3926 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
3927 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
3928 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
3929 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
3930 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
3931 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
3932 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
3933 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
3934 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
3935 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
3936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
3937 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
3938 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
3939 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
3940 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
3941 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
3942 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
3943 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
3944 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
3945 __pow.
3946 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
3947 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
3948 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
3949
3950 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
3951
3952 * math/Versions (GLIBC_2.29): Add log2.
3953 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
3954 symbol.
3955 * math/w_log2.c: New file.
3956 * sysdeps/i386/fpu/w_log2.c: New file.
3957 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
3958 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
3959 and add necessary aliases.
3960 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
3961 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
3962 * sysdeps/mach/hurd/i386/libm.abilist: Update.
3963 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3964 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
3965 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
3966 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
3967 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
3968 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
3969 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
3970 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
3971 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
3972 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
3973 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
3974 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
3975 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
3976 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
3977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
3978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
3979 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
3980 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
3981 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
3982 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
3983 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
3984 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
3985 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
3986
3987 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
3988
3989 * math/Versions (GLIBC_2.29): Add log.
3990 * math/w_log_compat.c (__log_compat): Change to versioned compat
3991 symbol.
3992 * math/w_log.c: New file.
3993 * sysdeps/i386/fpu/w_log.c: New file.
3994 * sysdeps/ia64/fpu/e_log.S: Update.
3995 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
3996 and add necessary aliases.
3997 * sysdeps/ieee754/dbl-64/w_log.c: New file.
3998 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
3999 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4000 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4001 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4002 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4003 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4004 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4005 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4006 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4007 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4008 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4009 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4010 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4011 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4015 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4016 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4017 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4018 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4019 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4020 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4021 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4022 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4023 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4024 __log.
4025 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4026 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4027 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4028 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4029
4030 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4031
4032 * math/Versions (GLIBC_2.29): Add exp and exp2.
4033 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4034 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4035 * math/w_exp_compat.c (__exp_compat): Likewise.
4036 * math/w_exp.c: New file.
4037 * math/w_exp2.c: New file.
4038 * sysdeps/i386/fpu/w_exp.c: New file.
4039 * sysdeps/i386/fpu/w_exp2.c: New file.
4040 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4041 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4042 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4043 and add necessary aliases.
4044 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4045 and add necessary aliases.
4046 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4047 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4048 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4049 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4050 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4051 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4052 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4053 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4054 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4055 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4056 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4057 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4058 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4059 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4060 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4061 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4062 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4064 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4065 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4067 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4068 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4069 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4070 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4071 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4072 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4073 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4074 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4075 (__ieee754_exp): Rename to __exp.
4076 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4077 (__ieee754_exp): Rename to __exp.
4078 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4079 (__ieee754_exp): Rename to __exp.
4080 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4081 __exp.
4082 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4083
4084 2018-11-20 DJ Delorie <dj@redhat.com>
4085
4086 * malloc/malloc.c (tcache_entry): Add key field.
4087 (tcache_put): Set it.
4088 (tcache_get): Likewise.
4089 (_int_free): Check for double free in tcache.
4090 * malloc/tst-tcfree1.c: New.
4091 * malloc/tst-tcfree2.c: New.
4092 * malloc/Makefile: Run the new tests.
4093 * manual/probes.texi: Document memory_tcache_double_free probe.
4094
4095 * dlfcn/dlerror.c (check_free): Prevent double frees.
4096
4097 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4098
4099 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4100
4101 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4102
4103 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4104 in tests. Use names for format arguments.
4105 (ConstantTest.run): Likewise.
4106 (SymbolTest.run): Likewise.
4107 (TypeTest.run): Likewise.
4108 (TagTest.run): Likewise.
4109 (FunctionTest.run): Likewise.
4110 (VariableTest.run): Likewise.
4111 (MacroFunctionTest.run): Likewise.
4112 (MacroStrTest.run): Likewise.
4113 (HeaderTests.__init__): Set self.num_tests.
4114 (HeaderTests.handle_test_line): Set test.num. Increment
4115 self.num_tests.
4116
4117 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4118
4119 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4120 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4121 SEEK_SET.
4122
4123 2018-11-19 Mao Han <han_mao@c-sky.com>
4124
4125 * scripts/config.guess: Update to version 2018-08-29.
4126 * scripts/config.sub: Update to version 2018-08-29.
4127
4128 2018-11-19 Florian Weimer <fweimer@redhat.com>
4129
4130 support: Print timestamps in timeout handler.
4131 * support/support_test_main.c (print_timestamp): New function.
4132 (signal_handler): Use it to print the termination time and the
4133 time of the last write to standard output.
4134
4135 2018-11-16 Zack Weinberg <zackw@panix.com>
4136 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4137
4138 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4139 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4140 argument.
4141 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4142 and add flags argument. Check flags instead of __ldbl_is_dbl when
4143 deciding whether to set is_long_double.
4144 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4145 passing zero for flags argument.
4146 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4147
4148 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4149 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4150 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4151 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4152 variable names. Remove libc_hidden_def/libc_hidden_proto from
4153 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4154 longer called from within the library.
4155 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4156 for __nldbl___vstrfmon_l, declare it explicitly.
4157
4158 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4159
4160 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4161
4162 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4163 macros
4164 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4165 F_SETLK64, F_SETLKW64, respectively.
4166 * sysdeps/mach/hurd/f_setlk.c: New file.
4167 * sysdeps/mach/hurd/f_setlk.h: New file.
4168 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4169 f_setlk.
4170 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4171 (__libc_fcntl): Move non-flock operations to...
4172 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4173 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4174
4175 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4176
4177 mktime: DEBUG_MKTIME cleanup
4178 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4179 And it’s no longer needed now that glibc and Gnulib both have
4180 their own testing mechanisms for mktime.
4181 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4182
4183 mktime: fix non-EOVERFLOW errno handling
4184 [BZ#23789]
4185 mktime was not properly reporting failures when the underlying
4186 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4187 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4188 The problem could happen on non-glibc platforms, with Gnulib.
4189 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4190 (tm_diff): ... this simpler function, which does not change errno.
4191 All callers changed to deal with errno themselves.
4192 (ranged_convert, __mktime_internal): Return failure immediately if
4193 the underlying function reports any failure other than EOVERFLOW.
4194 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4195 gap code fails.
4196
4197 mktime: fix bug with Y2038 DST transition
4198 [BZ#23789]
4199 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4200 mishandle a DST transition that jumps over the Y2038 boundary.
4201 No such DST transitions are known so this is only a theoretical
4202 bug, but we might as well do things right.
4203
4204 mktime: make more room for overflow
4205 [BZ#23789]
4206 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4207 This is so that we can add tm_diff results to a previous guess,
4208 which will be useful in a later patch.
4209
4210 mktime: simplify offset guess
4211 [BZ#23789]
4212 * time/mktime.c (__mktime_internal): Omit excess precision.
4213
4214 mktime: new test for mktime failure
4215 [BZ#23789]
4216 Based on a test suggested by Albert Aribaud in:
4217 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4218 * time/Makefile (tests): Add bug-mktime4.
4219 * time/bug-mktime4.c: New file.
4220
4221 mktime: fix EOVERFLOW bug
4222 [BZ#23789]
4223 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4224 Include libc-config.h, not config.h, for __set_errno.
4225 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4226
4227 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4228
4229 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4230 __attribute_copy__ to copy attributes from name. Drop static qualifier
4231 to avoid warnings about leaf attribute not having effect on static
4232 functions.
4233
4234 2018-11-13 Florian Weimer <fweimer@redhat.com>
4235
4236 * malloc/malloc.c (fastbin_push_entry): New function.
4237 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4238 (REMOVE_FB): Remove macro.
4239 (_int_malloc): Use fastbin_pop_entry and reindent.
4240 (_int_free): Use fastbin_push_entry.
4241 (malloc_consolidate): Use atomic_exchange_acquire.
4242
4243 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4244
4245 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4246 alias attribute, not with strong_alias.
4247
4248 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4249 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4250 with additional parameter thread.
4251 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4252 in terms of __hidden_ver2.
4253 (hidden_tls_def): New macro.
4254 (libc_hidden_tls_def): Likewise.
4255 (rtld_hidden_tls_def): Likewise.
4256 (libm_hidden_tls_def): Likewise.
4257 (libmvec_hidden_tls_def): Likewise.
4258 (libresolv_hidden_tls_def): Likewise.
4259 (librt_hidden_tls_def): Likewise.
4260 (libdl_hidden_tls_def): Likewise.
4261 (libnss_files_hidden_tls_def): Likewise.
4262 (libnsl_hidden_tls_def): Likewise.
4263 (libnss_nisplus_hidden_tls_def): Likewise.
4264 (libutil_hidden_tls_def): Likewise.
4265 (libutil_hidden_tls_def): Likweise.
4266 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4267 libc_hidden_tls_def.
4268 (__sim_disabled_exceptions_thread): Likewise.
4269 (__sim_round_mode_thread): Likewise.
4270
4271 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4272 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4273 copy attributes from name.
4274
4275 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4276
4277 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4278 Use __attribute_copy__ to copy attributes from name.
4279
4280 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4281 with __hidden_ver1 call.
4282 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4283 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4284 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4285 (__cosf): Do not declare here.
4286 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4287 (__sincosf): Do not declare here.
4288 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4289 (__sinf): Do not declare here.
4290
4291 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4292 (__BIG_ENDIAN): Likewise.
4293 (__BYTE_ORDER): Likewise.
4294 (strong_alias): Likewise.
4295 (_strong_alias): Likewise.
4296
4297 2018-11-12 Florian Weimer <fweimer@redhat.com>
4298
4299 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4300 function. Move after the definition of in_smallbin_range. Do not
4301 use __builtin_expect for paths that lead to a noreturn function.
4302 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4303 because it is unclear whether this is in fact an unlikely
4304 condition.
4305 (_int_malloc, _int_free): Adjust.
4306 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4307 variables.
4308 * malloc/arena.c (heap_trim): Likewise.
4309
4310 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4311
4312 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4313 it, free it if needed.
4314 (reauthenticate): Test and use ccwdir.
4315 (child_init_port): In non-resetids case, test and use ccwdir.
4316 (child_chdir): New nested function to set ccwdir.
4317 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4318 * hurd/hurd/port.h (_hurd_port_move): New function.
4319 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4320 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4321 * hurd/Versions (_hurd_port_move): Export function.
4322 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4323 symbol.
4324 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4325 of dtablesize for allocating dtable_cloexec.
4326
4327 2018-11-09 Martin Sebor <msebor@redhat.com>
4328
4329 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4330 it's already defined.
4331 (_strong_alias): Use __attribute_copy__.
4332 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4333 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4334 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4335 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4336 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4337 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4338 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4339 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4340 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4341 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4342 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4343 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4344 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4345 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4346 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4347 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4348 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4349 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4350 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4351
4352 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4353
4354 * misc/tst-efgcvt.c: Include support/check.h and
4355 support/test-driver.c. Do not include test-skeleton.c.
4356 (error_count): Remove.
4357 (output_error): Replace increments to error_count with calls to
4358 support_record_failure.
4359 (output_r_error): Likewise.
4360 (special): Likewise.
4361 (do_test): Unconditionally return zero.
4362 (TEST_FUNCTION): Remove.
4363
4364 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4365
4366 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4367 not $(@D)/scratch.
4368 ($(linknamespace-header-tests)): Likewise.
4369
4370 * conform/conformtest.py: New file.
4371 * conform/conformtest.pl: Remove.
4372 * conform/GlibcConform.pm: Likewise.
4373 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4374 (KEYWORDS_C99): Likewise.
4375 (KEYWORDS): Likewise.
4376 * conform/Makefile ($(conformtest-header-tests)): Use
4377 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4378 option. Use --header instead of --headers.
4379 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4380 function entries.
4381 * conform/data/spawn.h-data: Likewise.
4382 * conform/data/fcntl.h-data (openat): Add space after function
4383 name.
4384 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4385 (wcscasecmp_l): Likewise.
4386 * conform/data/termios.h-data (c_cc): Add space after element
4387 name.
4388
4389 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4390
4391 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4392 instead of manually comparing and reporting mismatching strings.
4393 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4394 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4395
4396 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4397
4398 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4399 __ASSUME_SOCKETCALL.
4400 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4401 (__ASSUME_SOCKETCALL): Remove.
4402 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4403 (__ASSUME_SOCKETCALL): Likewise.
4404 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4405 (__ASSUME_SOCKETCALL): Likewise.
4406 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4407 (__ASSUME_SOCKETCALL): Likewise.
4408 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4409 (__ASSUME_SOCKETCALL): Likewise.
4410 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4411 (__ASSUME_SOCKETCALL): Likewise.
4412 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4413 (__ASSUME_SOCKETCALL): Likewise.
4414
4415 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4416
4417 [BZ #23509]
4418 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4419 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4420 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4421 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4422 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4423 lc_unknown.
4424
4425 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4426
4427 [BZ #17630]
4428 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4429
4430 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4431
4432 [BZ #23867]
4433 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4434 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4435 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4436 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4437
4438 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4439
4440 * support/support_test_compare_string.c
4441 (support_test_compare_string): Fix printf format.
4442
4443 2018-11-07 Florian Weimer <fweimer@redhat.com>
4444
4445 Implement TEST_COMPARE_STRING.
4446 * support/check.h (TEST_COMPARE_STRING): Define.
4447 (support_test_compare_string): Declare.
4448 * support/Makefile (libsupport-routines): Add
4449 support_test_compare_string.
4450 (tests): Add tst-test_compare_string.
4451 * support/support_test_compare_string.c: New file.
4452 * support/tst-test_compare_string.c: Likewise.
4453
4454 2018-11-07 Andreas Schwab <schwab@suse.de>
4455
4456 [BZ #23864]
4457 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4458 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4459 Undef.
4460
4461 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4462
4463 [BZ #23862]
4464 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4465 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4466 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4467 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4468 Likewise.
4469
4470 2018-11-06 Florian Weimer <fweimer@redhat.com>
4471
4472 [BZ #17405]
4473 * posix/Makefile (routines): Add spawn_faction_addchdir.
4474 (tests): Add tst-spawn-chdir.
4475 * posix/Versions (GLIBC_2.29): Add
4476 posix_spawn_file_actions_addchdir_np.
4477 * posix/spawn_faction_addchdir.c: New file.
4478 * posix/spawn_faction_destroy.c
4479 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4480 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4481 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4482 chdir_action.
4483 * posix/tst-spawn-chdir.c: New file.
4484 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4485 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4486 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4487 posix_spawn_file_actions_addchdir_np.
4488 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4489 Likewise.
4490 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4491 Likewise.
4492 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4493 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4494 Likewise.
4495 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4496 Likewise.
4497 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4498 Likewise.
4499 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4500 Likewise.
4501 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4502 Likewise.
4503 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4504 Likewise.
4505 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4506 (GLIBC_2.29): Likewise.
4507 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4508 (GLIBC_2.29): Likewise.
4509 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4510 (GLIBC_2.29): Likewise.
4511 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4512 (GLIBC_2.29): Likewise.
4513 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4514 Likewise.
4515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4516 (GLIBC_2.29): Likewise.
4517 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4518 (GLIBC_2.29): Likewise.
4519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4520 (GLIBC_2.29): Likewise.
4521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4522 (GLIBC_2.29): Likewise.
4523 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4524 Likewise.
4525 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4526 Likewise.
4527 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4528 Likewise.
4529 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4530 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4531 Likewise.
4532 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4533 Likewise.
4534 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4535 Likewise.
4536 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4537 Likewise.
4538
4539 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4540
4541 * misc/Makefile (tests): Add tst-ldbl-error.
4542 * misc/tst-ldbl-error.c: New file.
4543
4544 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4545
4546 * misc/Makefile (tests): Add tst-ldbl-warn.
4547 * misc/tst-ldbl-warn.c: New file.
4548
4549 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4550
4551 * argp/Makefile (tests): Add tst-ldbl-argp.
4552 * argp/tst-ldbl-argp.c: New file.
4553
4554 2018-11-05 Arjun Shankar <arjun@redhat.com>
4555
4556 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4557 __gconv_path_elem and call __gconv_get_path unconditionally.
4558
4559 2018-11-05 Andreas Schwab <schwab@suse.de>
4560
4561 [BZ #22927]
4562 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4563 creating the first helper thread failed.
4564
4565 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4566
4567 * sysdeps/mach/hurd/msync.c: New file.
4568
4569 2018-11-02 Florian Weimer <fweimer@redhat.com>
4570
4571 * support/shell-container.c (copy_func): Call
4572 support_copy_file_range instead of copy_file_range to support
4573 cross-device copies.
4574
4575 2018-11-02 Florian Weimer <fweimer@redhat.com>
4576
4577 * support/test-container.c: Include <libc-pointer-arith.h> for
4578 ALIGN_UP.
4579
4580 2018-11-01 Zong Li <zong@andestech.com>
4581
4582 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4583 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4584 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4585 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4586
4587 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4588 variable to avoid overlap arguments.
4589
4590 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4591
4592 * posix/bug-regex22.c (main): Use puts with distinct error
4593 messages for unexpected success of re_compile_pattern, not printf
4594 with NULL argument to %s.
4595
4596 * stdio-common/bug22.c: Include <libc-diag.h>.
4597 (do_test): Disable -Wformat-overflow= warnings around fprintf
4598 calls outputting more than INT_MAX characters.
4599 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4600 around printf call with NULL %s argument.
4601
4602 [BZ #23848]
4603 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4604 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4605 Undefine.
4606 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4607 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4608 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4609 (__ASSUME_SENDTO_SYSCALL): Likewise.
4610 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4611 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4612 [!__arch64__].
4613 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4614 (__ASSUME_CONNECT_SYSCALL): Likewise.
4615 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4616 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4617 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4618 Define.
4619 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4620 Likewise.
4621 [__LINUX_KERNEL_VERSION >= 0x040400]
4622 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4623 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4624 Remove.
4625 (listen): Likewise.
4626 (setsockopt): Likewise.
4627
4628 2018-11-01 Fredrik Noring <noring@nocrew.org>
4629
4630 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4631 with the ISA override.
4632
4633 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4634
4635 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4636 #endif.
4637
4638 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4639
4640 * manual/errno.texi (EIEIO): Document how translators should
4641 translate the error message.
4642 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4643 printing trailing whitespaces refused by git.
4644 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4645 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4646 * hurd/Makefile (user-interfaces): Add pci.
4647
4648 2018-10-30 Joseph Myers <joseph@codesourcery.com>
4649
4650 * conform/linknamespace.py: New file.
4651 * conform/linknamespace.pl: Remove file.
4652 * conform/Makefile ($(linknamespace-header-tests)): Use
4653 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
4654 option.
4655
4656 2018-10-30 Florian Weimer <fweimer@redhat.com>
4657
4658 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
4659 memory leaks.
4660
4661 2018-10-30 Florian Weimer <fweimer@redhat.com>
4662
4663 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
4664
4665 2018-10-30 Florian Weimer <fweimer@redhat.com>
4666
4667 * stdlib/tst-strtod-overflow.c (do_test): Switch to
4668 support_blob_repeat.
4669
4670 2018-10-30 Florian Weimer <fweimer@redhat.com>
4671
4672 Avoid spurious test failures in stdlib/test-bz22786.
4673 * support/Makefile (libsupport-routines): Add blob_repeat.
4674 (tests): Add tst-support_blob_repeat.
4675 * support/blob_repeat.h: New file.
4676 * support/blob_repeat.c: Likewise.
4677 * support/tst-support_blob_repeat.c: Likewise.
4678 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
4679 support_blob_repeat_allocate.
4680
4681 2018-10-30 Andreas Schwab <schwab@suse.de>
4682
4683 [BZ #23125]
4684 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
4685 Don't use tail call.
4686 * elf/tst-unwind-main.c: New file.
4687 * elf/Makefile (tests): Add tst-unwind-main.
4688 (CFLAGS-tst-unwind-main.c): Define.
4689
4690 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
4691
4692 [BZ #23791]
4693 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
4694 n_cs_precedes to 0.
4695 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
4696
4697 2018-10-29 Joseph Myers <joseph@codesourcery.com>
4698
4699 * conform/glibcconform.py: Do not import shutil.
4700 (list_exported_functions): Use tempfile.TemporaryDirectory instead
4701 of mkdtemp.
4702
4703 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
4704 critic_missing for versions before 3.4.
4705 * configure: Regenerated.
4706 * manual/install.texi (Tools for Compilation): Document
4707 requirement for Python to build glibc.
4708 * INSTALL: Regenerated.
4709 * Rules [PYTHON]: Make code unconditional.
4710 * benchtests/Makefile [PYTHON]: Likewise.
4711 * conform/Makefile [PYTHON]: Likewise.
4712 * manual/Makefile [PYTHON]: Likewise.
4713 * math/Makefile [PYTHON]: Likewise.
4714
4715 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
4716
4717 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
4718 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
4719 answer to interrupt_operation, return EIEIO instead of EINTR.
4720 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
4721 _hurd_intr_rpc_msg_about_to global point to start of controlled
4722 assembly snippet. Make it check canceled flag.
4723 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
4724 the _hurd_intr_rpc_msg_about_to point.
4725 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
4726 issue, remove cancel flag check.
4727
4728 2018-10-26 Joseph Myers <joseph@codesourcery.com>
4729
4730 * scripts/build-many-glibcs.py: Remove compatibility for missing
4731 os.cpu_count and re.fullmatch.
4732
4733 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
4734
4735 [BZ #23822]
4736 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
4737 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
4738 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
4739
4740 2018-10-25 Joseph Myers <joseph@codesourcery.com>
4741
4742 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
4743 macro.
4744
4745 2018-10-25 Florian Weimer <fweimer@redhat.com>
4746
4747 [BZ #23562]
4748 [BZ #23821]
4749 XFAIL siginfo_t si_band conform test on sparc64.
4750 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
4751 (__SI_BAND_TYPE): Only override long int default type on sparc64.
4752 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
4753 (conformtest-xfail-conds): Add sparc64-linux.
4754 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
4755 sparc64.
4756 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
4757
4758 2018-10-25 Joseph Myers <joseph@codesourcery.com>
4759
4760 * elf/elf.h (NT_MIPS_DSP): New macro.
4761 (NT_MIPS_FP_MODE): Likewise.
4762
4763 2018-10-25 Zong Li <zong@andestech.com>
4764
4765 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
4766 name by adding the file extension (.so).
4767
4768 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
4769
4770 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
4771 (test-xfail-ISO11/threads.h/linknamespace,
4772 test-xfail-ISO11/threads.h/conform): Add.
4773
4774 2018-10-24 Joseph Myers <joseph@codesourcery.com>
4775
4776 * math/gen-libm-test.py: Import os.
4777 (ALL_FLOATS_MANUAL): New constant.
4778 (ALL_FLOATS_SUFFIX): Likewise.
4779 (Ulps.all_functions): New function.
4780 (real_all_ulps): Likewise.
4781 (generate_err_table_sub): Likewise.
4782 (generate_err_table): Likewise.
4783 (main): Handle -s and -m options.
4784 * manual/libm-err-tab.pl: Remove.
4785 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
4786 instead of libm-err-tab.pl.
4787 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
4788 != no].
4789 * manual/install.texi (Tools for Compilation): Document
4790 requirement for Python to build manual.
4791 * INSTALL: Regenerated.
4792
4793 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
4794
4795 * bits/time64.h: New file.
4796 * include/time.h: Replace internal_time_t with __time64_t.
4797 * posix/bits/types (__time64_t): Add.
4798 * stdlib/Makefile: Add bits/time64.h to includes.
4799 * time/tzfile.c: Replace internal_time_t with __time64_t.
4800
4801 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4802
4803 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
4804 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
4805 __posix_spawn_file_actions_init, __posix_spawnattr_init,
4806 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
4807 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
4808 prototype.
4809 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
4810 * posix/spawn_faction_addclose.c
4811 (__posix_spawn_file_actions_addclose): Add hidden definition.
4812 * posix/spawn_faction_adddup2.c
4813 (__posix_spawn_file_actions_adddup2): Likewise.
4814 * posix/spawn_faction_destroy.c
4815 (__posix_spawn_file_actions_destroy): Likewise.
4816 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
4817 Likewise.
4818 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
4819 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
4820 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
4821 Likewise.
4822 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
4823 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
4824 Likewise.
4825
4826 2018-10-24 Andreas Schwab <schwab@suse.de>
4827
4828 [BZ #18093]
4829 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
4830 format cache.
4831 * elf/cache.c (print_cache): Likewise.
4832
4833 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
4834
4835 * bits/timesize.h: New file.
4836 * stdlib/Makefile (headers): Add bits/timesize.h.
4837 * sysdeps/unix/sysv/linux/bits/msq-pad.h
4838 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
4839 * sysdeps/unix/sysv/linux/bits/sem-pad.h
4840 (__SEM_PAD_AFTER_TIME): Likewise.
4841 * sysdeps/unix/sysv/linux/bits/shm-pad.h
4842 (__SHM_PAD_AFTER_TIME): Likewise.
4843 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
4844 (__MSQ_PAD_BEFORE_TIME): Likewise.
4845 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
4846 (__SEM_PAD_BEFORE_TIME): Likewise.
4847 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
4848 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
4849 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
4850 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
4851 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
4852 (__MSQ_PAD_BEFORE_TIME): Likewise.
4853 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
4854 (__SEM_PAD_BEFORE_TIME): Likewise.
4855 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
4856 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
4857 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
4858 (__MSQ_PAD_BEFORE_TIME): Likewise.
4859 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
4860 (__SEM_PAD_BEFORE_TIME): Likewise.
4861 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
4862 (__SHM_PAD_BEFORE_TIME): Likewise.
4863 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
4864 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
4865 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
4866
4867 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
4868
4869 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
4870 USE_RDTSCP is defined.
4871 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
4872 USE_RDTSCP is defined.
4873
4874 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4875
4876 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
4877 defined.
4878
4879 [BZ #23709]
4880 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
4881 independently of other flags.
4882
4883 2018-10-23 Florian Weimer <fweimer@redhat.com>
4884
4885 * time/tst-mktime2.c (N_STRINGS): Remove.
4886 (set_timezone): New function.
4887 (spring_forward_gap): Call it. Use FAIL_EXIT1.
4888 (mktime_test1): Report localtime failure and check errno value.
4889 Use TEST_COMPARE.
4890 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
4891 (do_test): Remove alarm call. Use set_timezone and array_length.
4892
4893 2018-10-23 Andreas Schwab <schwab@suse.de>
4894
4895 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
4896 (__start_context): Use END instead of PSEUDO_END.
4897
4898 2018-10-22 Joseph Myers <joseph@codesourcery.com>
4899
4900 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4901 version to 4.19.
4902
4903 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4904 version to 4.19.
4905
4906 [BZ #23793]
4907 * wcsmbs/c32rtomb.c: New file.
4908 * wcsmbs/mbrtoc32.c: Likewise.
4909 * wcsmbs/tst-c32-state.c: Likewise.
4910 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
4911 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
4912 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
4913 (tests): Add tst-c32-state.
4914 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
4915 $(gen-locales).
4916
4917 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
4918
4919 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
4920 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
4921
4922 2018-10-19 Joseph Myers <joseph@codesourcery.com>
4923
4924 [BZ #23794]
4925 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
4926 pair and return 0 in that case, and use saved character to
4927 interpret following character.
4928 * wcsmbs/tst-c16-surrogate.c: New file.
4929 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
4930 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
4931 Depend on $(gen-locales)
4932
4933 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
4934
4935 [BZ #23562]
4936 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
4937 (struct siginfo_t): Use correct type for si_band.
4938
4939 2018-10-19 Florian Weimer <fweimer@redhat.com>
4940
4941 [BZ #23689]
4942 * resource/bits/types/struct_rusage.h (struct rusage): Update
4943 comment on struct. Remove extraneous field comment.
4944
4945 2018-10-18 David S. Miller <davem@davemloft.net>
4946
4947 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
4948 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
4949 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
4950 sysdep_routines in subdir elf.
4951 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
4952 version for __vdso_clock_gettime.
4953 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
4954 Define.
4955 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
4956 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
4957
4958 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
4959
4960 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
4961
4962 * sysdeps/i386/init-arch.h: Removed.
4963 * sysdeps/i386/i586/init-arch.h: Likewise.
4964 * sysdeps/i386/i686/init-arch.h: Likewise.
4965 * sysdeps/i386/i686/hp-timing.h: Likewise.
4966 * sysdeps/x86_64/hp-timing.h: Likewise.
4967 * sysdeps/i386/isa.h: New file.
4968 * sysdeps/i386/i586/isa.h: Likewise.
4969 * sysdeps/i386/i686/isa.h: Likewise.
4970 * sysdeps/x86_64/isa.h: Likewise.
4971 * sysdeps/x86/hp-timing.h: New file.
4972 * sysdeps/x86/init-arch.h: Include <isa.h>.
4973
4974 2018-10-17 Joseph Myers <joseph@codesourcery.com>
4975
4976 * math/libm-test-pow.inc (pow_test_data): Do not allow
4977 divide-by-zero exception for pow(+/- 0, -Inf).
4978
4979 2018-10-17 Zack Weinberg <zackw@panix.com>
4980
4981 * manual/job.texi (Job Control is Optional): Remove node, as
4982 job control has not been optional in quite some time.
4983 (Job Control): Mention briefly that systems older than
4984 POSIX.1-2001 might not support job control.
4985 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
4986 defined on systems conforming to POSIX.1-2001.
4987
4988 2018-10-17 Arjun Shankar <arjun@redhat.com>
4989
4990 [BZ #22062]
4991 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
4992 indentation.
4993 * (__gconv_read_conf): Mark function static.
4994 * (once): New static variable.
4995 * (__gconv_load_conf): New function.
4996 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
4997 * iconv/gconv_db.c (once): Remove static variable.
4998 * (__gconv_compare_alias): Use __gconv_load_conf instead of
4999 __gconv_read_conf.
5000 * (__gconv_find_transform): Likewise.
5001 * iconv/tst-iconv-mt.c: New test.
5002 * iconv/Makefile: Add tst-iconv_mt.
5003
5004 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5005
5006 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5007 bits/shm-pad.h.
5008 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5009 (shmatt_t): Define as __syscall_ulong_t.
5010 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5011 and [__SHM_PAD_AFTER_TIME].
5012 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5013 Define shm_segsz and associated padding based on
5014 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5015 Use __syscall_ulong_t instead of unsigned long int.
5016 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5017 unsigned long int.
5018 [__USE_MISC] (struct shm_info): Likewise.
5019 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5020 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5021 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5022 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5023 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5024 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5025 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5026 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5027 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5028 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5029 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5030
5031 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5032 bits/shmlba.h.
5033 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5034 (SHMLBA): Remove macro.
5035 (__getpagesize): Remove function declaration.
5036 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5037 <bits/shmlba.h>.
5038 (SHMLBA): Remove macro.
5039 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5040 <bits/shmlba.h>.
5041 (SHMLBA): Remove macro.
5042 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5043 <bits/shmlba.h>.
5044 (SHMLBA): Remove macro.
5045 (__getpagesize): Remove function declaration.
5046 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5047 <bits/shmlba.h>.
5048 (SHMLBA): Remove macro.
5049 (__getshmlba): Remove function declaration.
5050 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5051 (SHMLBA): Remove macro.
5052 (__getpagesize): Remove function declaration.
5053 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5054 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5055 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5056 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5057 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5058 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5059 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5060 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5061 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5062 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5063
5064 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5065
5066 [BZ #23275]
5067 * nptl/tst-mutex10.c: New File.
5068 * nptl/Makefile (tests): Add tst-mutex10.
5069 (tst-mutex10-ENV): New variable.
5070 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5071 Ensure that elision path is used if elision is available.
5072 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5073 Likewise.
5074 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5075 Likewise.
5076 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5077 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5078 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5079 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5080 Likewise.
5081 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5082 (__pthread_mutex_cond_lock_adjust): Likewise.
5083 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5084 Likewise.
5085 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5086 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5087 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5088 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5089 Add comments.
5090 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5091 Use atomic_load_relaxed and atomic_store_relaxed.
5092 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5093 Use atomic_store_relaxed.
5094
5095 2018-10-17 Andreas Schwab <schwab@suse.de>
5096
5097 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5098 * crypt/badsalttest.c (TIMEOUT): Likewise.
5099 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5100 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5101 * io/test-lfs.c (TIMEOUT): Likewise.
5102 * libio/tst-atime.c (TIMEOUT): Likewise.
5103 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5104 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5105 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5106 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5107 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5108 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5109 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5110 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5111 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5112 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5113 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5114 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5115 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5116 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5117 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5118 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5119 * nptl/tst-once2.c (TIMEOUT): Likewise.
5120 * nptl/tst-once3.c (TIMEOUT): Likewise.
5121 * nptl/tst-once4.c (TIMEOUT): Likewise.
5122 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5123 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5124 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5125 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5126 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5127 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5128 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5129 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5130 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5131 * posix/tst-chmod.c (TIMEOUT): Likewise.
5132 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5133 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5134 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5135 * posix/tst-regex2.c (TIMEOUT): Likewise.
5136 * posix/tst-waitid.c (TIMEOUT): Likewise.
5137 * rt/tst-aio.c (TIMEOUT): Likewise.
5138 * rt/tst-aio10.c (TIMEOUT): Likewise.
5139 * rt/tst-aio4.c (TIMEOUT): Likewise.
5140 * rt/tst-aio5.c (TIMEOUT): Likewise.
5141 * rt/tst-aio6.c (TIMEOUT): Likewise.
5142 * rt/tst-aio64.c (TIMEOUT): Likewise.
5143 * rt/tst-aio7.c (TIMEOUT): Likewise.
5144 * rt/tst-aio9.c (TIMEOUT): Likewise.
5145 * rt/tst-clock.c (TIMEOUT): Likewise.
5146 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5147 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5148 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5149 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5150 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5151 * rt/tst-timer4.c (TIMEOUT): Likewise.
5152 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5153 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5154 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5155 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5156 * time/tst-ftime.c (TIMEOUT): Likewise.
5157 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5158
5159 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5160
5161 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5162 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5163 for thunderX2.
5164
5165 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5166
5167 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5168 bits/sem-pad.h.
5169 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5170 instead of <bits/wordsize.h>.
5171 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5172 and [__SEM_PAD_AFTER_TIME].
5173 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5174 __syscall_ulong_t instead of unsigned long int.
5175 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5176 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5177 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5178 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5179 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5180 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5181 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5182 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5183 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5184 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5185 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5186
5187 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5188
5189 regex: simplify by using intprops.h
5190 [BZ#23744]
5191 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5192 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5193 intprops.h defines them.
5194
5195 regex: __builtin_expect → __glibc_unlikely
5196 [BZ#23744]
5197 This refactoring was prompted by a problem when the regex code is
5198 used as part of Gnulib and when the builder’s compiler does not grok
5199 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5200 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5201 Although this refactoring does not fix the problem directly,
5202 we might as well have Gawk use the now-preferred glibc style for when
5203 __builtin_expect is unavailable.
5204 * posix/regex_internal.h (BE): Remove.
5205 All uses replaced by __glibc_unlikely or __glibc_likely.
5206
5207 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5208
5209 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5210 bits/msq-pad.h.
5211 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5212 instead of <bits/wordsize.h>.
5213 (msgqnum_t): Define as __syscall_ulong_t.
5214 (msglen_t): Likewise.
5215 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5216 and [__MSQ_PAD_AFTER_TIME].
5217 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5218 __syscall_ulong_t instead of unsigned long int.
5219 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5220 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5221 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5222 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5223 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5224 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5225 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5226 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5227 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5228 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5229 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5230
5231 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5232
5233 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5234 (struct shmid_ds): Condition padding after time fields on
5235 [__WORDSIZE == 32].
5236 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5237 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5238 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5239
5240 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5241 (struct semid_ds): Condition padding after time fields on
5242 [__WORDSIZE == 32].
5243 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5244 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5245 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5246 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5247
5248 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5249 (struct msqid_ds): Condition padding after time fields on
5250 [__WORDSIZE == 32].
5251 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5252 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5253 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5254 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5255
5256 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5257
5258 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5259
5260 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5261
5262 * libio/tst-readline.c (TIMEOUT): Define.
5263
5264 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5265
5266 mktime fix for Gnulib + coreutils
5267 [BZ#23745]
5268 This fix affects only Gnulib. Problem discovered when
5269 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5270 * time/mktime.c:
5271 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5272 Do not define since it is not used. Defining an unused static
5273 function prompts a warning from GCC when Coreutils is configured
5274 with --enable-gcc-warnings.
5275
5276 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5277
5278 * benchtests/scripts/compare_bench.py (main): set float type on
5279 threshold argument.
5280
5281 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5282
5283 [BZ #23740]
5284 * localedata/locales/kl_GL (mon): Update, the relative case.
5285 (alt_mon): Add, fill with month names in the nominative case.
5286 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5287 (d_fmt): Set to "%b %d %Y".
5288
5289 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5290
5291 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5292 <bits/mman-linux.h>.
5293 (PROT_READ): Don't define here.
5294 (PROT_WRITE): Likewise.
5295 (PROT_EXEC): Likewise.
5296 (PROT_NONE): Likewise.
5297 (PROT_GROWSDOWN): Likewise.
5298 (PROT_GROWSUP): Likewise.
5299 (MAP_SHARED): Likewise.
5300 (MAP_PRIVATE): Likewise.
5301 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5302 [__USE_MISC] (MAP_FILE): Likewise.
5303 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5304 [__USE_MISC] (MAP_ANON): Likewise.
5305 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5306 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5307 (MCL_CURRENT): Likewise.
5308 (MCL_FUTURE): Likewise.
5309 (MCL_ONFAULT): Likewise.
5310 [__USE_MISC] (MADV_NORMAL): Likewise.
5311 [__USE_MISC] (MADV_RANDOM): Likewise.
5312 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5313 [__USE_MISC] (MADV_WILLNEED): Likewise.
5314 [__USE_MISC] (MADV_DONTNEED): Likewise.
5315 [__USE_MISC] (MADV_FREE): Likewise.
5316 [__USE_MISC] (MADV_REMOVE): Likewise.
5317 [__USE_MISC] (MADV_DONTFORK): Likewise.
5318 [__USE_MISC] (MADV_DOFORK): Likewise.
5319 [__USE_MISC] (MADV_HWPOISON): Likewise.
5320 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5321 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5322 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5323 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5324 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5325 (__MAP_ANONYMOUS): New macro.
5326 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5327 <bits/mman-linux.h> inclusion.
5328 (MAP_FIXED): Likewise.
5329 (MS_SYNC): Likewise.
5330 (MS_ASYNC): Likewise.
5331 (MS_INVALIDATE): Likewise.
5332 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5333 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5334 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5335 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5336 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5337 [__USE_MISC] (MADV_DODUMP): Likewise.
5338 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5339 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5340
5341 [BZ #23735]
5342 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5343 Define.
5344 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5345 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5346 Add test-nldbl-redirect.
5347 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5348 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5349 $(objpfx)libnldbl_nonshared.a.
5350
5351 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5352
5353 * support/support.h (support_objdir_elf_ldso): New variable.
5354 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5355 * support/Makefile (CFLAGS-support_paths.c): Add definition
5356 for OBJDIR_ELF_LDSO_PATH.
5357 * support/test-container.c (main): Search for the ld.so
5358 which is also used by the testsuite.
5359
5360 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5361
5362 [BZ #20209]
5363 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5364 should be "sap" rather than "sab".
5365 (day): Fix spelling of Sunday, should be "sapaat" rather than
5366 "sabaat".
5367
5368 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5369
5370 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5371
5372 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5373
5374 [BZ #19444]
5375 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5376 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5377 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5378
5379 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5380
5381 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5382
5383 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5384
5385 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5386 Add -mrtm.
5387 (CFLAGS-elision-unlock.c): Likewise.
5388 (CFLAGS-elision-timed.c): Likewise.
5389 (CFLAGS-elision-trylock.c): Likewise.
5390 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5391
5392 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5393
5394 [BZ #21037]
5395 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5396 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5397 new fd_to_filename interface.
5398 * libio/freopen64.c (freopen64): Likewise.
5399 * libio/tst-memstream.h: New file.
5400 * libio/tst-memstream4.c: Likewise.
5401 * libio/tst-wmemstream4.c: Likewise.
5402 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5403 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5404 and remove internal dynamic allocation.
5405
5406 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5407
5408 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5409 (MREMAP_MAYMOVE): Do not define here.
5410 [__USE_GNU] (MREMAP_FIXED): Likewise.
5411 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5412 (MREMAP_MAYMOVE): Define here instead.
5413 [__USE_GNU] (MREMAP_FIXED): Likewise.
5414 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5415 (MREMAP_MAYMOVE): Remove.
5416 [__USE_GNU] (MREMAP_FIXED): Likewise.
5417
5418 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5419
5420 * math/fromfp.h: Do not include <math_private.h>.
5421 * math/s_cacosh_template.c: Likewise.
5422 * math/s_casin_template.c: Likewise.
5423 * math/s_casinh_template.c: Likewise.
5424 * math/s_ccos_template.c: Likewise.
5425 * math/s_cproj_template.c: Likewise.
5426 * math/s_fdim_template.c: Likewise.
5427 * math/s_fmaxmag_template.c: Likewise.
5428 * math/s_fminmag_template.c: Likewise.
5429 * math/s_iseqsig_template.c: Likewise.
5430 * math/s_ldexp_template.c: Likewise.
5431 * math/s_nextdown_template.c: Likewise.
5432 * math/w_log1p_template.c: Likewise.
5433 * math/w_scalbln_template.c: Likewise.
5434 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5435 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5436 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5437 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5438 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5439 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5440 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5441 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5442 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5443 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5444 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5445 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5446 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5447 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5448 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5449 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5450 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5451 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5452 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5453 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5454 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5455 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5456 * sysdeps/ieee754/k_standardf.c: Likewise.
5457 * sysdeps/ieee754/k_standardl.c: Likewise.
5458 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5459 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5460 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5461 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5462 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5463 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5464 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5465 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5466 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5467 * sysdeps/ieee754/s_signgam.c: Likewise.
5468 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5469 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5470 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5471 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5472 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5473 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5474 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5475 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5476 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5477 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5478 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5479 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5480 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5481 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5482 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5483 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5484 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5485 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5486 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5487 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5488 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5489 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5490 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5491 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5492 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5493 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5494 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5495 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5496 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5497 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5498 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5499 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5500 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5501 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5502 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5503 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5504 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5505 <math_private.h>.
5506 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5507
5508 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5509
5510 [BZ #23716]
5511 * sysdeps/i386/dl-cet.c: Removed.
5512 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5513 prototype.
5514 (_dl_runtime_profile_shstk): Likewise.
5515 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5516 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5517
5518 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5519
5520 [BZ #23579]
5521 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5522 do_test_with_invalid_iov): New tests.
5523 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5524 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5525 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5526 errno is ENOSYS.
5527 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5528 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5529 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5530
5531 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5532
5533 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5534 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5535 (MATH_REDIRECT_BINARY_ARGS): New macro.
5536 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5537 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5538 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5539 header inclusion.
5540 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5541 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5542 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5543 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5544 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5545 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5546 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5547 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5548 Likewise.
5549 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5550 Likewise.
5551 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5552 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5553 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5554 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5555 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5556 Likewise.
5557 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5558 Likewise.
5559 * sysdeps/generic/math_private_calls.h
5560 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5561 Do not declare and define as an inline function.
5562 * math/divtc3.c (__divtc3): Use copysign functions instead of
5563 __copysign variants.
5564 * math/multc3.c (__multc3): Likewise.
5565 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5566 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5567 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5568 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5569 Likewise.
5570 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5571 (__ieee754_yn): Likewise.
5572 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5573 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5574 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5575 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5576 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5577 (__sin): Likewise.
5578 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5579 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5580 Likewise.
5581 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5582 Likewise.
5583 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5584 Likewise.
5585 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5586 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5587 Likewise.
5588 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5589 (__ieee754_ynf): Likewise.
5590 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5591 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5592 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5593 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5594 Likewise.
5595 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5596 (__ieee754_ynl): Likewise.
5597 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5598 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5599 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5600 Likewise.
5601 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5602 (__ieee754_ynl): Likewise.
5603 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5604 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5605 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5606 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5607 Likewise.
5608 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5609 (__ieee754_ynl)
5610 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5611 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5612 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5613 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5614 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5615
5616 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5617 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5618 using MATH_REDIRECT.
5619 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5620 header inclusion.
5621 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5622 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5623 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5624 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5625 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5626 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5627 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5628 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5629 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5630 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5631 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5632 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5633 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5634 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5635 (round): Redirect to __round.
5636 (__roundl): Call round instead of __round.
5637 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5638 Remove macro.
5639 [_ARCH_PWR5X] (__roundf): Likewise.
5640 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5641 functions instead of __round variants.
5642 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5643 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5644 Likewise.
5645 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
5646 Likewise.
5647 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
5648 Likewise.
5649 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5650 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
5651 __lroundl.
5652 (__ieee754_expl): Call roundl instead of __roundl.
5653
5654 2018-09-27 Andreas Schwab <schwab@suse.de>
5655
5656 [BZ #23717]
5657 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
5658 (do_test): Make st1 static.
5659
5660 2018-09-26 Andreas Schwab <schwab@suse.de>
5661
5662 [BZ #23707]
5663 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
5664 * elf/Makefile (tests): Add tst-unwind-ctor.
5665 (modules-names): Add tst-unwind-ctor-lib.
5666 ($(objpfx)tst-unwind-ctor): Depend on
5667 $(objpfx)tst-unwind-ctor-lib.so.
5668
5669 2018-09-26 Joseph Myers <joseph@codesourcery.com>
5670
5671 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
5672 file. Most contents moved from ....
5673 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
5674 and include <bits/mman-map-flags-generic.h>.
5675 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5676 (sysdep_headers): Add bits/mman-map-flags-generic.h.
5677 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
5678 <bits/mman-map-flags-generic.h>.
5679 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
5680 macros defined in <bits/mman-map-flags-generic.h>.
5681 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
5682 <bits/mman-map-flags-generic.h>.
5683 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
5684 defined in <bits/mman-map-flags-generic.h>.
5685
5686 2018-09-26 Andreas Schwab <schwab@suse.de>
5687
5688 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
5689 output.
5690
5691 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
5692 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5693 Fangrui Song <maskray@google.com>
5694
5695 [BZ #20480]
5696 * config.make.in (have-textrel_ifunc): New define.
5697 * configure.ac: Add check if linker supports textrel relocation with
5698 ifunc.
5699 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
5700 tst-ifunc-textrel.
5701 (CFLAGS-tst-ifunc-textrel.c): New rule.
5702 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
5703 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
5704 * elf/tst-ifunc-textrel.c: New file.
5705
5706 2018-09-25 Joseph Myers <joseph@codesourcery.com>
5707
5708 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
5709 <bits/procfs-prregset.h>.
5710 (prgregset_t): Define using __prgregset_t.
5711 (prfpregset_t): Define using __prfpregset_t.
5712 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5713 (sysdep_headers): Add bits/procfs-prregset.h.
5714 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
5715 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
5716 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
5717 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
5718
5719 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
5720 <bits/procfs-id.h> and <bits/procfs-extra.h>.
5721 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
5722 pr_uid and pr_gid.
5723 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5724 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
5725 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
5726 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
5727 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
5728 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
5729 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
5730 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
5731 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
5732 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
5733 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
5734 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
5735 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
5736 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
5737 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
5738 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
5739 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
5740 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
5741 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
5742 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
5743 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
5744 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
5745 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
5746 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
5747
5748 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
5749 AArch64 version. Include <bits/procfs.h>.
5750 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5751 (sysdep_headers): Add bits/procfs.h.
5752 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
5753 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
5754 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
5755 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
5756 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
5757 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
5758 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
5759 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
5760 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
5761 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
5762 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
5763 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
5764 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
5765 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
5766 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
5767 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
5768 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
5769
5770 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5771
5772 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
5773 Use libsupport.
5774
5775 2018-09-25 Arjun Shankar <arjun@redhat.com>
5776
5777 * iconv/gconv_int.h (__gconv_path_elem): Remove.
5778 (__gconv_max_path_elem_len): Likewise.
5779 (__gconv_nmodules): Likewise.
5780 (__gconv_get_path): Likewise.
5781 (path_elem): Move to ...
5782 * iconv/gconv_conf.c: ... here.
5783 (__gconv_get_path): Mark function static.
5784 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
5785 * iconv/gconv_open.c: ... here.
5786
5787 2018-09-24 Andreas Schwab <schwab@suse.de>
5788
5789 * scripts/haveversions.awk: New file.
5790 * Makerules ($(common-objpfx)Versions.def)
5791 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
5792 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
5793 Move rules ...
5794 * Makeconfig ($(common-objpfx)Versions.def)
5795 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
5796 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
5797 ... here.
5798 ($(common-objpfx)Versions.mk): New rule. Include it.
5799 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
5800 Emit error if build-obsolete-nsl = yes.
5801 * manual/install.texi (Configuring and compiling): Describe
5802 --enable-obsolete-nsl as unavaiable after version 2.28.
5803 * INSTALL: Regenerate.
5804
5805 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5806
5807 * NEWS: Add note about new TLE support on powerpc64le.
5808 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
5809 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
5810 __ununsed1.
5811 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
5812 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
5813 * sysdeps/powerpc/powerpc32/sysdep.h,
5814 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
5815 ABORT_TRANSACTION): Remove macros.
5816 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
5817 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
5818 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
5819 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
5820 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5821 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
5822 usage.
5823 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
5824
5825 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
5826
5827 [BZ #10425]
5828 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
5829 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
5830 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
5831 which is the same as in it_IT.
5832 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
5833 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
5834
5835 2018-09-20 Joseph Myers <joseph@codesourcery.com>
5836
5837 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5838 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
5839 using MATH_REDIRECT.
5840 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
5841 header inclusion.
5842 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
5843 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5844 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
5845 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
5846 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5847 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
5848 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
5849 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
5850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
5851 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
5852 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5853 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5854 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
5855 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
5856 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
5857 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
5858 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
5859 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
5860 (ceil): Redirect to __ceil.
5861 (floor): Redirect to __floor.
5862 (trunc): Redirect to __trunc.
5863 (__truncl): Call trunc instead of __trunc.
5864 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
5865 Remove macro.
5866 [_ARCH_PWR5X] (__truncf): Likewise.
5867 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
5868 trunc functions instead of __trunc variants.
5869 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5870 Likewise.
5871 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5872 Likewise.
5873 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5874 Likewise.
5875 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5876 Likewise.
5877
5878 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
5879 [__i586__ || __pentium__].
5880 [__i486__]: Handle explicitly.
5881 (HAS_CPUID): Define to 1 if above macros are undefined.
5882 (HAS_I586): Likewise.
5883 (HAS_I686): Likewise.
5884
5885 2018-09-20 Florian Weimer <fweimer@redhat.com>
5886
5887 * misc/tst-gethostid.c: New file.
5888 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
5889 (tst-gethostid): Link with -ldl.
5890
5891 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
5892
5893 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
5894 value from gethostbyname_r.
5895
5896 2018-09-19 Carlos O'Donell <carlos@redhat.com>
5897
5898 * stdlib/tst-setcontext9.c (f1): Rename to...
5899 (f1a): ... this.
5900 (f1b): New function implementing lower half of f1 in alternate stack.
5901
5902 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
5903
5904 Fix mktime localtime offset confusion
5905 [BZ #23603]
5906 * include/time.h (__mktime_internal): The localtime offset is now
5907 of type long int instead of time_t. This is the longstanding type
5908 in glibc, and it is more than enough to represent difference
5909 between localtime and gmtime even if it is 32 bits and time_t is
5910 64. Changing it now will let us avoid an unnecessary change when
5911 time_t is widened to 64 bits on 32-bit platforms.
5912 * time/mktime-internal.h (mktime_offset_t): Now long int.
5913
5914 Merge mktime, timegm from upstream Gnulib
5915 [BZ #23603][BZ #16346]
5916 This fixes some obscure problems with integer overflow.
5917 Although it looks scary, it is almost all a byte-for-byte copy
5918 from Gnulib, and the Gnulib code has been tested reasonably well.
5919 * include/intprops.h: New file, copied from Gnulib.
5920 * include/verify.h, time/mktime-internal.h:
5921 New tiny files, simplified from Gnulib.
5922 * time/mktime.c: Copy from Gnulib. This has the following changes:
5923 Do not include config.h if DEBUG_MKTIME is nonzero.
5924 Include stdbool.h, intprops.h, verify.h.
5925 Include string.h only if needed.
5926 Include stdlib.h on MS-Windows.
5927 Include mktime-internal.h.
5928 (DEBUG_MKTIME): Default to 0, and simplify later uses.
5929 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
5930 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
5931 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
5932 simplify later conditionals; default the others to zero. Use
5933 these conditionals to express only the code needed on the current
5934 platform. In uses of these conditionals, explicitly spell out how
5935 _LIBC affects things, so it’s easier to review from a glibc
5936 viewpoint.
5937 (WRAPV): Remove; no longer needed now that we have
5938 systematic overflow checking.
5939 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
5940 compartmentalize tzset issues. Move system-dependent tzsettish
5941 code here from mktime.
5942 (verify): Remove; now done by verify.h. All uses changed.
5943 (long_int): Use a more-conservative definition, to avoid
5944 integer overflow.
5945 (SHR): Remove, replacing with ...
5946 (shr): New function, which means we needn’t worry about side
5947 effects in args, and conversion analysis is simpler.
5948 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
5949 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
5950 (time_t_avg, time_t_add_ok): Remove.
5951 (mktime_min, mktime_max): New constants.
5952 (leapyear, isdst_differ): Use bool for booleans.
5953 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
5954 Use long_int, not time_t, for mktime differences.
5955 (long_int_avg): New function, replacing time_t_avg.
5956 INT_ADD_WRAPV replaces time_t_add_ok.
5957 (guess_time_tm): 6th arg is now long_int, not time_t const *.
5958 All uses changed.
5959 (convert_time): New function.
5960 (ranged_convert): Use it.
5961 (__mktime_internal): Last arg now points to mktime_offset_t, not
5962 time_t. All uses changed. This is a no-op on glibc, where
5963 mktime_offset_t is always time_t. Use int, not time_t, for UTC
5964 offset guess. Directly check for integer overflow instead of
5965 using a heuristic that works only 99.9...% of the time.
5966 Access *OFFSET only once, to avoid an unlikely race if the
5967 compiler delays a load and if this cascades into a signed integer
5968 overflow.
5969 (mktime): Move tzsettish code to my_tzset, and move
5970 localtime_offset to within mktime so that it doesn’t
5971 need a separate ifdef.
5972 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
5973 instead of localtime.
5974 * time/timegm.c: Copy from Gnulib. This has the following changes:
5975 Include mktime-internal.h.
5976 [!_LIBC]: Include config.h and time.h. Do not include
5977 timegm.h or time_r.h. Make __mktime_internal a macro,
5978 and include mktime-internal.h to get its declaration.
5979 (timegm): Temporary is now mktime_offset_t, not time_t.
5980 This affects only Gnulib.
5981
5982 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
5983
5984 [BZ #23637]
5985 * string/test-strstr.c (pr23637): New function.
5986 (test_main): Add tests with longer needles.
5987 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
5988 * string/strstr.c (AVAILABLE): Likewise.
5989
5990 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
5991
5992 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
5993
5994 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
5995
5996 * NEWS: Mention pow improvements.
5997 * math/Makefile (type-double-routines): Add e_pow_log_data.
5998 * sysdeps/generic/math_private.h (__exp1): Remove.
5999 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6000 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6001 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6002 contraction.
6003 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6004 (exp_inline): Remove.
6005 (__ieee754_exp): Only single double input is handled.
6006 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6007 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6008 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6009 (__pow_log_data): Define.
6010 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6011 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6012 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6013 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6014 contraction.
6015 (CFLAGS-e_pow-fma4.c): Likewise.
6016
6017 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6018
6019 Simplify tzfile fstat failure code
6020 [BZ #21716]
6021 * time/tzfile.c (__tzfile_read): Simplify slightly.
6022
6023 Fix tzfile low-memory assertion failure
6024 [BZ #21716]
6025 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6026 when registering time zone abbreviations.
6027
6028 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6029
6030 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6031 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6032 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6033 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6034 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6035 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6036 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6037 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6038 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6039
6040 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6041 __ceil.
6042 (__ceill): Call ceil instead of __ceil.
6043 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6044 __floor.
6045 (__floorl): Call floor instead of __floor.
6046
6047 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6048
6049 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6050 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6051 using MATH_REDIRECT.
6052 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6053 header inclusion.
6054 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6055 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6056 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6057 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6058 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6059 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6060 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6061 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6062 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6063 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6065 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6066 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6067 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6068 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6069 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6070 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6071 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6072 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6073 Remove macro.
6074 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6075 functions instead of __ceil variants.
6076 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6077 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6078 Likewise.
6079 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6080 Likewise.
6081 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6082 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6083 Likewise.
6084 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6085 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6086
6087 [BZ #21286]
6088 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6089 constant.
6090 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6091 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6092 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6093 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6094 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6095 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6096 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6097 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6098 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6099 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6100 (ILL_BADIADDR): Remove constant.
6101 (TRAP_BRANCH): Likewise.
6102 (TRAP_HWBKPT): Likewise.
6103
6104 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6105
6106 [BZ #23656]
6107 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6108 Remove [_MIPS_SIM = _ABIN32] conditional case.
6109 (struct elf_prpsinfo): Likewise.
6110
6111 [BZ #23649]
6112 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6113 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6114 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6115 Likewise.
6116 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6117 elf_prpsinfo): Likewise.
6118 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6119 elf_prpsinfo): Likewise.
6120 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6121 Likewise.
6122
6123 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6124 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6125 using MATH_REDIRECT.
6126 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6127 header inclusion.
6128 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6129 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6130 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6131 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6132 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6133 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6134 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6135 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6136 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6137 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6138 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6139 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6140 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6141 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6142 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6143 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6144 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6145 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6146 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6147 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6149 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6150 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6151 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6152 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6153 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6154 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6155 __rint variants.
6156 * math/e_scalbf.c (invalid_fn): Likewise.
6157 * math/e_scalbl.c (invalid_fn): Likewise.
6158 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6159 Likewise.
6160 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6161 Likewise.
6162 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6163 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6164 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6165 Likewise.
6166 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6167 Likewise.
6168 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6169 Likewise.
6170 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6171 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6172
6173 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6174 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6175 New macro.
6176 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6177 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6178 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6179 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6180 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6181 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6182 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6183 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6184 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6185 && !NO_MATH_REDIRECT] (floor): Likewise.
6186 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6187 header inclusion.
6188 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6189 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6190 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6191 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6192 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6193 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6194 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6195 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6196 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6197 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6200 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6201 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6202 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6203 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6204 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6205 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6206 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6207 Remove macro.
6208 [_ARCH_PWR5X] (__floorf): Likewise.
6209 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6210 inline function.
6211 [__SSE4_1__] (__floorf): Likewise.
6212 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6213 instead of __floor variants.
6214 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6215 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6216 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6217 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6218 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6219 * math/w_tgamma_compat.c (__tgamma): Likewise.
6220 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6221 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6222 * math/w_tgammal_compat.c (__tgammal): Likewise.
6223 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6224 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6225 Likewise.
6226 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6227 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6228 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6229 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6230 Likewise.
6231 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6232 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6233 Likewise.
6234 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6235 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6236 Likewise.
6237 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6238 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6239 Likewise.
6240 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6241 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6242 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6243 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6244 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6245 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6246
6247 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6248
6249 * elf/Makefile (modules-names-tests): New variable.
6250
6251 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6252
6253 * NEWS: Mention log2 improvements.
6254 * math/Makefile (type-double-routines): Add e_log2_data.
6255 * sysdeps/i386/fpu/e_log2_data.c: New file.
6256 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6257 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6258 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6259 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6260 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6261 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6262
6263 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6264
6265 * NEWS: Mention log improvement.
6266 * math/Makefile (type-double-routines): Add e_log_data.
6267 * sysdeps/i386/fpu/e_log_data.c: New file.
6268 * sysdeps/ia64/fpu/e_log_data.c: New file.
6269 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6270 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6271 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6272 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6273 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6274 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6275
6276 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6277 Xuepeng Guo <xuepeng.guo@intel.com>
6278
6279 [BZ #23606]
6280 * sysdeps/i386/start.S: Include <sysdep.h>
6281 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6282 enabled. Add cfi_undefined (eip).
6283
6284 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6285
6286 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6287 (MOVQ): Likewise.
6288 (EXTRACT_WORDS64): Likewise.
6289 (INSERT_WORDS64): Likewise.
6290 (GET_FLOAT_WORD): Likewise.
6291 (SET_FLOAT_WORD): Likewise.
6292
6293 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6294 argument.
6295 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6296 build, but not for second build if --full-gcc. Use
6297 --enable-languages=all for second build if --full-gcc.
6298 (get_parser): Add --full-gcc option.
6299 (main): Update call to Context.
6300
6301 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6302
6303 [BZ #10797]
6304 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6305 Single Quotation Mark).
6306 (thousands_sep): Likewise.
6307 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6308 * localedata/locales/it_IT (thousands_sep): Use ".".
6309 (grouping): Use "3;3".
6310
6311 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6312
6313 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6314 x86_64 and i686 configs using --enable-obsolete-rpc
6315 --enable-obsolete-nsl.
6316
6317 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6318
6319 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6320
6321 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6322
6323 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6324 Increment size of new_argv by one.
6325
6326 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6327
6328 [BZ #17426]
6329 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6330 * localedata/locales/ar_IN (d_fmt): Likewise.
6331 * localedata/locales/bhb_IN (d_fmt): Likewise.
6332 * localedata/locales/bho_IN (d_fmt): Likewise.
6333 * localedata/locales/bn_BD (d_fmt): Likewise.
6334 * localedata/locales/bn_IN (d_fmt): Likewise.
6335 * localedata/locales/doi_IN (d_fmt): Likewise.
6336 * localedata/locales/gu_IN (d_fmt): Likewise.
6337 * localedata/locales/hi_IN (d_fmt): Likewise.
6338 * localedata/locales/hne_IN (d_fmt): Likewise.
6339 * localedata/locales/kn_IN (d_fmt): Likewise.
6340 * localedata/locales/mag_IN (d_fmt): Likewise.
6341 * localedata/locales/mai_IN (d_fmt): Likewise.
6342 * localedata/locales/mjw_IN (d_fmt): Likewise.
6343 * localedata/locales/ml_IN (d_fmt): Likewise.
6344 * localedata/locales/mni_IN (d_fmt): Likewise.
6345 * localedata/locales/mr_IN (d_fmt): Likewise.
6346 * localedata/locales/pa_IN (d_fmt): Likewise.
6347 * localedata/locales/raj_IN (d_fmt): Likewise.
6348 * localedata/locales/sat_IN (d_fmt): Likewise.
6349 * localedata/locales/sd_IN (d_fmt): Likewise.
6350 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6351 * localedata/locales/ta_IN (d_fmt): Likewise.
6352 * localedata/locales/ta_LK (d_fmt): Likewise.
6353 * localedata/locales/tcy_IN (d_fmt): Likewise.
6354 * localedata/locales/ur_IN (d_fmt): Likewise.
6355
6356 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6357 * localedata/locales/ks_IN (d_fmt): Likewise.
6358 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6359
6360 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6361 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6362 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6363 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6364
6365 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6366
6367 * NEWS: Mention exp and exp2 improvements.
6368 * math/Makefile (libm-support): Remove t_exp.
6369 (type-double-routines): Add math_err and e_exp_data.
6370 * sysdeps/aarch64/libm-test-ulps: Update.
6371 * sysdeps/arm/libm-test-ulps: Update.
6372 * sysdeps/i386/fpu/e_exp_data.c: New file.
6373 * sysdeps/i386/fpu/math_err.c: New file.
6374 * sysdeps/i386/fpu/t_exp.c: Remove.
6375 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6376 * sysdeps/ia64/fpu/math_err.c: New file.
6377 * sysdeps/ia64/fpu/t_exp.c: Remove.
6378 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6379 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6380 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6381 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6382 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6383 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6384 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6385 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6386 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6387 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6388 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6389 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6390 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6391 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6392 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6393 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6394
6395 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6396
6397 * sysdeps/alpha/fpu/math_private.h: Remove.
6398
6399 * sysdeps/generic/math_private.h
6400 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6401 Move this inline function ....
6402 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6403 * include/math.h [!_ISOMAC]: To here....
6404
6405 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6406
6407 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6408 code ....
6409 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6410 * include/fenv.h [!_ISOMAC]: ... to here.
6411 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6412 (feraiseexcept): Likewise.
6413 * math/fromfp.h: Do not include <fenv_private.h>.
6414 * math/s_cexp_template.c: Likewise.
6415 * math/s_csin_template.c: Likewise.
6416 * math/s_csinh_template.c: Likewise.
6417 * math/s_ctan_template.c: Likewise.
6418 * math/s_ctanh_template.c: Likewise.
6419 * math/s_iseqsig_template.c: Likewise.
6420 * math/w_acos_compat.c: Likewise.
6421 * math/w_acosf_compat.c: Likewise.
6422 * math/w_acosl_compat.c: Likewise.
6423 * math/w_asin_compat.c: Likewise.
6424 * math/w_asinf_compat.c: Likewise.
6425 * math/w_asinl_compat.c: Likewise.
6426 * math/w_j0_compat.c: Likewise.
6427 * math/w_j0f_compat.c: Likewise.
6428 * math/w_j0l_compat.c: Likewise.
6429 * math/w_j1_compat.c: Likewise.
6430 * math/w_j1f_compat.c: Likewise.
6431 * math/w_j1l_compat.c: Likewise.
6432 * math/w_jn_compat.c: Likewise.
6433 * math/w_jnf_compat.c: Likewise.
6434 * math/w_log10_compat.c: Likewise.
6435 * math/w_log10f_compat.c: Likewise.
6436 * math/w_log10l_compat.c: Likewise.
6437 * math/w_log2_compat.c: Likewise.
6438 * math/w_log2f_compat.c: Likewise.
6439 * math/w_log2l_compat.c: Likewise.
6440 * math/w_log_compat.c: Likewise.
6441 * math/w_logf_compat.c: Likewise.
6442 * math/w_logl_compat.c: Likewise.
6443 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6444 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6445 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6446 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6447 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6448 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6449 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6450 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6451 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6452 * sysdeps/ieee754/k_standardl.c: Likewise.
6453 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6454 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6455 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6456 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6457 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6458 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6459 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6460 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6461 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6462 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6463 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6464 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6465 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6466 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6467 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6468 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6469 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6470 * math/w_ilogb_template.c: Include <fenv.h> instead of
6471 <fenv_private.h>.
6472 * math/w_llogb_template.c: Likewise.
6473 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6474 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6475
6476 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6477
6478 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6479 * math/fromfp.h: Include <fenv_private.h>.
6480 * math/math-narrow.h: Likewise.
6481 * math/s_cexp_template.c: Likewise.
6482 * math/s_csin_template.c: Likewise.
6483 * math/s_csinh_template.c: Likewise.
6484 * math/s_ctan_template.c: Likewise.
6485 * math/s_ctanh_template.c: Likewise.
6486 * math/s_iseqsig_template.c: Likewise.
6487 * math/w_acos_compat.c: Likewise.
6488 * math/w_acosf_compat.c: Likewise.
6489 * math/w_acosl_compat.c: Likewise.
6490 * math/w_asin_compat.c: Likewise.
6491 * math/w_asinf_compat.c: Likewise.
6492 * math/w_asinl_compat.c: Likewise.
6493 * math/w_ilogb_template.c: Likewise.
6494 * math/w_j0_compat.c: Likewise.
6495 * math/w_j0f_compat.c: Likewise.
6496 * math/w_j0l_compat.c: Likewise.
6497 * math/w_j1_compat.c: Likewise.
6498 * math/w_j1f_compat.c: Likewise.
6499 * math/w_j1l_compat.c: Likewise.
6500 * math/w_jn_compat.c: Likewise.
6501 * math/w_jnf_compat.c: Likewise.
6502 * math/w_llogb_template.c: Likewise.
6503 * math/w_log10_compat.c: Likewise.
6504 * math/w_log10f_compat.c: Likewise.
6505 * math/w_log10l_compat.c: Likewise.
6506 * math/w_log2_compat.c: Likewise.
6507 * math/w_log2f_compat.c: Likewise.
6508 * math/w_log2l_compat.c: Likewise.
6509 * math/w_log_compat.c: Likewise.
6510 * math/w_logf_compat.c: Likewise.
6511 * math/w_logl_compat.c: Likewise.
6512 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6513 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6514 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6515 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6516 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6517 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6518 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6519 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6520 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6521 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6522 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6523 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6524 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6525 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6526 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6527 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6528 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6529 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6530 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6531 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6532 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6533 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6534 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6535 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6536 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6537 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6538 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6539 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6540 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6541 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6542 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6543 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6544 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6545 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6546 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6547 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6548 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6549 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6550 * sysdeps/ieee754/k_standardl.c: Likewise.
6551 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6552 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6553 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6554 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6555 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6556 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6557 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6558 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6559 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6560 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6561 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6562 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6563 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6564 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6565 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6566 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6567 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6568 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6569 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6570 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6571 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6572 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6573 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6574 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6575 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6576 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6577 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6578 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6579 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6580 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6581 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6582 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6583 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6584 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6585 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6586 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6587 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6588 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6589 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6590 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6591 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6592 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6593 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6594 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6595 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6596 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6597 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6598 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6599 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6600 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6601 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6602 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6603 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6604 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6605 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6606 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6607 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6608 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6609 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6610 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6611 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6612 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6613 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6614 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6615 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6616 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6617 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6618 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6619 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6620 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6621 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6622
6623 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6624
6625 [BZ #20271]
6626 * include/stdio.h (__libc_fatal): Mention newline in comment.
6627 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6628 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6629 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6630 * nss/nsswitch.c (__nss_next2): Likewise.
6631 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6632 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6633 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6634 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6635 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6636 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6637 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6638 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6639 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6640 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6641 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6642 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6643 (__netlink_assert_response): Likewise.
6644
6645 2018-08-31 Joseph Myers <joseph@codesourcery.com>
6646
6647 * conform/glibcconform.py: New file.
6648 * conform/list-header-symbols.py: Likewise.
6649 * conform/list-header-symbols.pl: Remove.
6650 * conform/Makefile (tests-special): Only add linknamespace tests
6651 if [PYTHON].
6652 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
6653
6654 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
6655
6656 [BZ #23597]
6657 * support/Makefile (libsupport-routines): Add
6658 support_copy_file_range and xcopy_file_range.
6659 * support/support.h: Include <sys/types.h>.
6660 (support_copy_file_range): New prototype.
6661 * support/support_copy_file_range.c: New file. Copied and
6662 modified from io/copy_file_range-compat.c.
6663 * support/test-container.c (copy_one_file): Call xcopy_file_rang
6664 instead of copy_file_range.
6665 * support/xcopy_file_range.c: New file.
6666 * support/xunistd.h (xcopy_file_range): New prototype.
6667
6668 2018-08-30 Carlos O'Donell <carlos@redhat.com>
6669
6670 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
6671 xpthread_create and xpthread_join.
6672
6673 2018-08-30 Florian Weimer <fweimer@redhat.com>
6674
6675 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
6676
6677 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
6678
6679 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
6680 if malloc fails.
6681
6682 2018-08-29 Joseph Myers <joseph@codesourcery.com>
6683
6684 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
6685 and minus_oflow as non-finite.
6686
6687 2018-08-28 Joseph Myers <joseph@codesourcery.com>
6688
6689 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
6690 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
6691 moved to fenv_private.h except for ...
6692 (TOINT_INTRINSICS): Kept in math_private.h.
6693 (roundtoint): Likewise.
6694 (converttoint): Likewise.
6695 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
6696 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6697 * sysdeps/arm/math_private.h: Remove.
6698 * sysdeps/generic/fenv_private.h: New file. Contents moved from
6699 ....
6700 * sysdeps/generic/math_private.h: ... this file. Include
6701 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
6702 Include <fenv_private.h>. Remove functions and macros moved to
6703 fenv_private.h.
6704 * sysdeps/i386/fpu/math_private.h: Remove.
6705 * sysdeps/mips/math_private.h: Move to ....
6706 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
6707 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
6708 [__mips_hard_float] conditional. Include next <fenv_private.h>.
6709 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
6710 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6711 * sysdeps/powerpc/fpu/math_private.h: Do not include
6712 <fenv_private.h>.
6713 * sysdeps/riscv/rvf/math_private.h: Move to ....
6714 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
6715 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
6716 <fenv_private.h>.
6717 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
6718 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6719 * sysdeps/sparc/fpu/math_private.h: Remove.
6720 * sysdeps/i386/fpu/fenv_private.h: Move to ....
6721 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
6722 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
6723 <fenv_private.h>.
6724 * sysdeps/x86_64/fpu/math_private.h: Do not include
6725 <sysdeps/i386/fpu/fenv_private.h>.
6726
6727 2018-08-28 Florian Weimer <fweimer@redhat.com>
6728
6729 [BZ #23578]
6730 * posix/tst-regcomp-truncated.c: New file.
6731 * posix/Makefile (tests): Add it.
6732 (tst-regcomp-truncated.out): Depend on generated locales.
6733
6734 2018-08-28 Florian Weimer <fweimer@redhat.com>
6735
6736 * support/test-container.c (main): Treat unshare failure with
6737 EPERM as an unsupported test.
6738
6739 2018-08-28 Florian Weimer <fweimer@redhat.com>
6740
6741 [BZ #23520]
6742 nscd: Fix use-after-free in addgetnetgrentX and its callers.
6743 * nscd/netgroupcache.c
6744 (addgetnetgrentX): Add tofreep parameter. Do not free
6745 heap-allocated buffer.
6746 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
6747 (addgetnetgrentX_ignore): New function.
6748 (addgetnetgrent): Call it.
6749 (readdgetnetgrent): Likewise.
6750
6751 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6752
6753 * string/memmem.c: Use memcmp for first match.
6754
6755 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
6756
6757 [BZ #17426]
6758 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
6759
6760 2018-08-27 DJ Delorie <dj@redhat.com>
6761
6762 * support/Makefile (others): Don't list programs explicitly as a
6763 dependency of "others".
6764
6765 2018-08-27 Joseph Myers <joseph@codesourcery.com>
6766
6767 * sysdeps/generic/math-tests-trap-force.h: New file.
6768 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
6769 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
6770 * sysdeps/powerpc/math-tests.h: Remove file.
6771 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
6772
6773 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
6774 Torvald Riegel <triegel@redhat.com>
6775
6776 [BZ #23538]
6777 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
6778 Update r to include the set wake-request flag if waiters are
6779 remaining after spinning.
6780
6781 2018-08-27 Joseph Myers <joseph@codesourcery.com>
6782
6783 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
6784
6785 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
6786
6787 [BZ #23578]
6788 regex: fix uninitialized memory access
6789 I introduced this bug into gnulib in commit
6790 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
6791 eventually it was merged into glibc. The bug was found by
6792 project-repo <bugs@feusi.co> and reported here:
6793 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
6794 Diagnosis and draft fix reported by Assaf Gordon here:
6795 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
6796 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
6797 * posix/regex_internal.c (build_wcs_upper_buffer):
6798 Fix bug when mbrtowc returns 0.
6799
6800 2018-08-24 Carlos O'Donell <carlos@redhat.com>
6801
6802 * po/be.po: Update translation.
6803
6804 2018-08-24 DJ Delorie <dj@delorie.com>
6805
6806 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
6807 $(libunwind).
6808
6809 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
6810
6811 [BZ #23400]
6812 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
6813 create temporary files in source tree.
6814
6815 2018-08-24 Joseph Myers <joseph@codesourcery.com>
6816
6817 * sysdeps/generic/math-tests-trap.h: New file.
6818 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
6819 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
6820 * sysdeps/aarch64/math-tests.h: Remove file.
6821 * sysdeps/arm/math-tests.h: Likewise.
6822 * sysdeps/riscv/math-tests.h: Likewise.
6823 * sysdeps/aarch64/math-tests-trap.h: New file.
6824 * sysdeps/arm/math-tests-trap.h: Likewise.
6825 * sysdeps/riscv/math-tests-trap.h: Likewise.
6826
6827 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
6828
6829 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
6830 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
6831 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
6832 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
6833 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
6834 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
6835 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
6836 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
6837 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
6838 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
6839 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
6840 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6841 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
6842 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
6843 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
6844 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
6845 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
6846 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
6847
6848 2018-08-23 Joseph Myers <joseph@codesourcery.com>
6849
6850 * sysdeps/generic/math-tests-exceptions.h: New file.
6851 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
6852 (EXCEPTION_TESTS_float): Do not define here.
6853 (EXCEPTION_TESTS_double): Likewise.
6854 (EXCEPTION_TESTS_long_double): Likewise.
6855 (EXCEPTION_TESTS_float128): Likewise.
6856 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
6857 Likewise.
6858 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
6859 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
6860 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
6861 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
6862 * sysdeps/mips/math-tests.h: Likewise.
6863 * sysdeps/nios2/math-tests.h: Likewise.
6864 * sysdeps/riscv/math-tests.h [!__riscv_flen]
6865 (EXCEPTION_TESTS_float): Do not define here.
6866 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
6867 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
6868 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
6869
6870 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6871
6872 * NEWS: Move optimized sinf entry to 2.29.
6873
6874 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6875
6876 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
6877
6878 2018-08-22 DJ Delorie <dj@redhat.com>
6879
6880 * Makefile (testroot.pristine): New rules to initialize the
6881 test-in-container "testroot".
6882 * Makerules (all-testsuite): Add tests-container.
6883 * Rules (tests-expected): Add tests-container.
6884 (binaries-all-tests): Likewise.
6885 (tests-container): New, run these tests in the testroot container.
6886 * support/Makefile (others): Add *-container, support_paths.c,
6887 xmkdirp, and links-dso-program.
6888 * support/links-dso-program-c.c: New.
6889 * support/links-dso-program.cc: New.
6890 * support/test-container.c: New.
6891 * support/shell-container.c: New.
6892 * support/echo-container.c: New.
6893 * support/true-container.c: New.
6894 * support/xmkdirp.c: New.
6895 * support/xsymlink.c: New.
6896 * support/support_paths.c: New.
6897 * support/support.h: Add support paths prototypes.
6898 * support/xunistd.h: Add xmkdirp () and xsymlink ().
6899
6900 * nss/tst-nss-test3.c: Convert to test-in-container.
6901 * nss/tst-nss-test3.root/: New.
6902
6903 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
6904
6905 regex: port Gnulib code to z/OS POSIX environment
6906 Problem reported by Arnold Robbins in:
6907 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
6908 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
6909 Undef.
6910
6911 2018-08-22 Joseph Myers <joseph@codesourcery.com>
6912
6913 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
6914 (ROUNDING_TESTS_double): Remove.
6915 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
6916 (ROUNDING_TESTS_double): Remove.
6917 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
6918 (ROUNDING_TESTS_double): Remove.
6919 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
6920 (ROUNDING_TESTS_float): Remove.
6921 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
6922 (ROUNDING_TESTS_float): Remove.
6923 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
6924 (ROUNDING_TESTS_float): Remove.
6925 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
6926 !TEST_MATHVEC here.
6927 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
6928 (IF_ROUND_INIT_FE_UPWARD): Likewise.
6929
6930 * sysdeps/generic/math-tests-rounding.h: New file.
6931 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
6932 (ROUNDING_TESTS_float): Do not define here.
6933 (ROUNDING_TESTS_double): Likewise.
6934 (ROUNDING_TESTS_long_double): Likewise.
6935 (ROUNDING_TESTS_float128): Likewise.
6936 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
6937 (ROUNDING_TESTS_double): Undefine before defining.
6938 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
6939 (ROUNDING_TESTS_double): Undefine before defining.
6940 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
6941 (ROUNDING_TESTS_double): Undefine before defining.
6942 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
6943 (ROUNDING_TESTS_float): Undefine before defining.
6944 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
6945 (ROUNDING_TESTS_float): Undefine before defining.
6946 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
6947 (ROUNDING_TESTS_float): Undefine before defining.
6948 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
6949 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
6950 not define here.
6951 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
6952 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
6953 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
6954 * sysdeps/riscv/math-tests.h [!__riscv_flen]
6955 (ROUNDING_TESTS_float): Do not define here.
6956 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
6957 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
6958 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
6959 (ROUNDING_TESTS_float): Likewise.
6960 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
6961 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
6962 * sysdeps/mips/math-tests.h [__mips_soft_float]
6963 (ROUNDING_TESTS_float): Likewise.
6964 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
6965 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
6966 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
6967 (ROUNDING_TESTS_double): Likewise.
6968 (ROUNDING_TESTS_long_double): Likewise.
6969
6970 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
6971
6972 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
6973 (PF_XDP): New macro.
6974 (AF_XDP): New macro.
6975 (SOL_XDP): New macro.
6976
6977 2018-08-21 Joseph Myers <joseph@codesourcery.com>
6978
6979 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
6980 (TCP_INQ): Likewise.
6981 (TCP_CM_INQ): Likewise.
6982 (TCP_REPAIR_ON): Likewise.
6983 (TCP_REPAIR_OFF): Likewise.
6984 (TCP_REPAIR_OFF_NO_WP): Likewise.
6985 (struct tcp_zerocopy_receive): New type.
6986
6987 2018-08-21 Florian Weimer <fweimer@redhat.com>
6988
6989 * support/support.h (support_descriptor_supports_holes): Declare.
6990 * support/Makefile (libsupport-routines): Add
6991 support_descriptor_supports_holes.
6992 * support/support_descriptor_supports_holes.c: New file.
6993 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
6994 and stop testing if holes are not supported.
6995 * io/test-lfs.c (do_prepare): Likewise.
6996 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
6997 Likewise.
6998 * timezone/tst-tzset.c (create_tz_file): Likewise.
6999 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7000 variable.
7001 (do_prepare): Set it.
7002 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7003
7004 2018-08-21 Florian Weimer <fweimer@redhat.com>
7005
7006 [BZ #17248]
7007 * Makeconfig (+cflags): Do not sort (and deduplicate).
7008
7009 2018-08-21 Florian Weimer <fweimer@redhat.com>
7010
7011 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7012 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7013
7014 2018-08-20 Florian Weimer <fweimer@redhat.com>
7015
7016 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7017 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7018
7019 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7020
7021 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7022 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7023 and ssi_arch members.
7024
7025 * elf/elf.c (NT_VMCOREDD): New macro.
7026 (AT_MINSIGSTKSZ): Likewise.
7027
7028 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7029
7030 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7031 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7032 s_cosf-ppc64 and s_cosf-power8.
7033 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7034 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7035 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7036 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7037 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7038 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7039 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7043 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7044 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7045
7046 2018-08-17 Florian Weimer <fweimer@redhat.com>
7047
7048 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7049
7050 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7051
7052 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7053
7054 2018-08-16 Florian Weimer <fweimer@redhat.com>
7055
7056 * configure.ac: Add --with-nonshared-cflags option.
7057 * config.make.in (extra-nonshared-cflags): Set variable.
7058 * Makeconfig (CFLAGS-.oS): Use it.
7059 * manual/install.texi (Configuring and compiling): Document
7060 --with-nonshared-cflags.
7061 * configure: Regenerate.
7062 * INSTALL: Likewise.
7063
7064 2018-08-16 Florian Weimer <fweimer@redhat.com>
7065
7066 * Makeconfig (ASFLAGS): Always append required assembler flags.
7067
7068 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7069
7070 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7071 (malloc_consolidate): Likewise.
7072
7073 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7074
7075 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7076
7077 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7078
7079 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7080 every strlen call.
7081
7082 * benchtests/bench-strlen.c: Print performance numbers in json.
7083
7084 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7085
7086 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7087 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7088 only for little endian.
7089 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7090 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7091 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7092 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7093 Add check for little endian.
7094 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7095 (__strcmp_power9): Add check for little endian.
7096 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7097 Add check for little endian.
7098 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7099 (__strncmp_power9): Add check for little endian.
7100 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7101 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7102 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7103 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7104 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7105
7106 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7107
7108 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7109 [!STRLEN](STRLEN): Set to __strlen.
7110 * sysdeps/aarch64/multiarch/strlen.c: New file.
7111 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7112 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7113 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7114 (__libc_ifunc_impl_list): Add strlen.
7115 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7116 strlen_generic and strlen_asimd.
7117
7118 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7119
7120 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7121 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7122 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7123
7124 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7125
7126 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7127
7128 2018-08-14 Florian Weimer <fweimer@redhat.com>
7129
7130 [BZ #23519]
7131 * include/stdio.h (__vfxprintf): Declare.
7132 * stdio-common/fxprintf.c (__vfxprintf): New function.
7133 (__fxprintf): Call it.
7134 * misc/err.c (convert_and_print): Remove function.
7135 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7136 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7137 * misc/Makefile (tests): Add tst-warn-wide.
7138 * misc/tst-warn-wide.c: New file.
7139
7140 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7141 Szabolcs Nagy <szabolcs.nagy@arm.com>
7142
7143 * NEWS: Mention sinf, cosf, sincosf.
7144 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7145 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7146 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7147 constants rather than including generic sincosf.h.
7148 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7149 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7150 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7151 (reduced_cos): Remove.
7152 (sinf_poly): New function.
7153 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7154
7155 2018-08-14 Florian Weimer <fweimer@redhat.com>
7156
7157 [BZ #23521]
7158 [BZ #23522]
7159 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7160 processing, bail out if no room, and close the stream before
7161 returning ERANGE.
7162 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7163 (tst-nss-files-alias-leak): Link with libdl.
7164 (tst-nss-files-alias-leak.out): Depend on nss_files.
7165
7166 * nss/tst-nss-files-alias-leak.c: New file.
7167
7168 2018-08-14 Florian Weimer <fweimer@redhat.com>
7169
7170 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7171 server_user, stat_user.
7172
7173 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7174
7175 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7176 version to 4.18.
7177 (io_pgetevents): New syscall.
7178 (rseq): Likewise.
7179
7180 * manual/install.texi (Configuring and compiling): Do not list
7181 tools used for testing pretty printers here.
7182 (Tools for Compilation): List Python, PExpect and GDB here.
7183 Update descriptions of uses of Perl and Python.
7184 * INSTALL: Regenerate.
7185
7186 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7187 version to 4.18.
7188
7189 2018-08-13 Florian Weimer <fweimer@redhat.com>
7190
7191 * misc/error.c (error): Add missing va_end call.
7192 (error_at_line): Likewise.
7193
7194 2018-08-13 Florian Weimer <fweimer@redhat.com>
7195
7196 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7197
7198 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7199
7200 * benchtests/scripts/benchout.schema.json (properties): Add
7201 new properties.
7202
7203 * benchtests/bench-skeleton.c (main): Add duration and
7204 iterations attributes.
7205
7206 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7207
7208 regex: Gnulib unibyte RRI uses bytes not chars
7209 Adjust the non-glibc code to agree with what Gawk needs for
7210 rational range interpretation (RRI) for regular expression ranges.
7211 In unibyte locales, Gawk wants ranges to use the underlying byte
7212 rather than the character code point. This change does not affect
7213 glibc proper.
7214 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7215 In unibyte locales, use the byte value rather than
7216 running it through btowc.
7217
7218 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7219
7220 * sysdeps/generic/math-tests-snan.h: New file.
7221 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7222 (SNAN_TESTS_float): Do not define here.
7223 (SNAN_TESTS_double): Likewise.
7224 (SNAN_TESTS_long_double): Likewise.
7225 (SNAN_TESTS_float128): Likewise.
7226 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7227 * sysdeps/i386/fpu/math-tests.h: Remove file.
7228 * sysdeps/ia64/math-tests-snan.h: New file.
7229 * sysdeps/ia64/math-tests.h: Remove file.
7230 * sysdeps/x86/math-tests.h: Likewise.
7231 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7232
7233 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7234 Szabolcs Nagy <szabolcs.nagy@arm.com>
7235
7236 * math/Makefile: Add s_sincosf_data.c.
7237 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7238 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7239 (sincosf_poly): Likewise.
7240 (reduce_small): Likewise.
7241 (reduce_large): Likewise.
7242 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7243 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7244 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7245 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7246
7247 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7248 Szabolcs Nagy <szabolcs.nagy@arm.com>
7249
7250 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7251 (converttoint): Use lround.
7252 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7253 document the semantics when TOINT_INTRINSICS is set.
7254 (converttoint): Likewise.
7255 (TOINT_RINT): Remove.
7256 (TOINT_SHIFT): Remove.
7257 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7258 path.
7259
7260 2018-08-10 Florian Weimer <fweimer@redhat.com>
7261
7262 [BZ #23497]
7263 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7264 function.
7265 (__old_getdents64): Use getdents64. Convert entries without
7266 moving them.
7267 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7268 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7269 tst-readdir64-compat.
7270
7271 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7272
7273 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7274 Fix unwind.
7275
7276 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7277
7278 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7279 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7280 code to s390x-mcount.h and #include it.
7281 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7282 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7283 (__fentry__): Add.
7284
7285 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7286
7287 * stdlib/Versions: Remove __fentry__.
7288 * sysdeps/i386/Versions: Add __fentry__.
7289 * sysdeps/x86_64/Versions: Add __fentry__.
7290
7291 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7292
7293 * sysdeps/s390/Makefile: Register the new tests.
7294 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7295 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7296 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7297 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7298 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7299 * sysdeps/s390/tst-dl-runtime.c: New file.
7300
7301 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7302
7303 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7304 Do not clobber R0.
7305
7306 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7307
7308 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7309 Do not clobber R0.
7310
7311 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7312
7313 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7314 Do not clobber R0.
7315
7316 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7317
7318 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7319 Do not clobber R0.
7320
7321 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7322
7323 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7324 Use symbolic offsets for stack variables.
7325
7326 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7327
7328 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7329 Use symbolic offsets for stack variables.
7330
7331 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7332
7333 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7334 Use symbolic offsets for stack variables.
7335
7336 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7337
7338 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7339 Use symbolic offsets for stack variables.
7340
7341 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7342
7343 * math/gen-libm-test.py: New file.
7344 * math/gen-libm-test.pl: Remove.
7345 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7346 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7347 gen-libm-test.pl.
7348 ($(libm-test-c-noauto-obj)): Likewise.
7349 ($(libm-test-c-auto-obj)): Likewise.
7350 ($(libm-test-c-narrow-obj)): Likewise.
7351 (regen-ulps): Likewise.
7352 * math/README.libm-test: Update references to gen-libm-test.pl.
7353 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7354 referencing gen-libm-test.pl.
7355 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7356 * math/libm-test-support.c: Likewise.
7357 * math/libm-test-support.h: Likewise.
7358 * sysdeps/generic/libm-test-ulps: Likewise.
7359
7360 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7361
7362 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7363 Fix value.
7364
7365 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7366
7367 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7368 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7369
7370 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7371
7372 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7373 symbols.
7374 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7375 __pthread_setspecific): Add hidden proto.
7376 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7377 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7378
7379 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7380
7381 * benchtests/bench-string.h (buf1_size, buf2_size): New
7382 variables.
7383 (init_sizes): New function.
7384 (test_init): Use it.
7385 (alloc_buf, exit_error): New functions.
7386 (alloc_bufs): Use ALLOC_BUF.
7387 (realloc_bufs): Remove.
7388 * benchtests/bench-memcmp.c (do_test): Adjust.
7389 * benchtests/bench-memset-large.c (do_test): Likewise.
7390 * benchtests/bench-memset-walk.c (do_test): Likewise.
7391 * benchtests/bench-memset.c (do_test): Likewise.
7392 * benchtests/bench-strncmp.c (do_test): Likewise.
7393
7394 2018-08-06 Andreas Schwab <schwab@suse.de>
7395
7396 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7397 of CONST_THREAD_AREA.
7398
7399 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7400
7401 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7402 (STATE_SAVE_MASK): Likewise.
7403 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7404 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7405 (STATE_SAVE_MASK): Likewise.
7406 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7407 instead of <cpu-features.h>.
7408
7409 2018-08-03 DJ Delorie <dj@redhat.com>
7410
7411 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7412 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7413
7414 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7415
7416 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7417
7418 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7419 after TEST_* calls.
7420 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7421 * math/libm-test-logb.inc (logb_test_data): Likewise.
7422
7423 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7424
7425 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7426 * string/strstr.c (AVAILABLE): Likewise.
7427
7428 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7429
7430 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7431 <init-arch.h>.
7432 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7433 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7434 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7435
7436 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7437
7438 * po/be.po: Update translation.
7439
7440 * po/be.po: Update translation.
7441
7442 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7443
7444 * sysdeps/x86/cpu-features-offsets.sym
7445 (rtld_global_ro_offsetof): Removed.
7446 (CPU_FEATURES_SIZE): Likewise.
7447 (CPUID_OFFSET): Likewise.
7448 (CPUID_SIZE): Likewise.
7449 (CPUID_EAX_OFFSET): Likewise.
7450 (CPUID_EBX_OFFSET): Likewise.
7451 (CPUID_ECX_OFFSET): Likewise.
7452 (CPUID_EDX_OFFSET): Likewise.
7453 (FAMILY_OFFSET): Likewise.
7454 (MODEL_OFFSET): Likewise.
7455 (FEATURE_OFFSET): Likewise.
7456 (FEATURE_SIZ): Likewise.
7457 (COMMON_CPUID_INDEX_1): Likewise.
7458 (COMMON_CPUID_INDEX_7): Likewise.
7459 (FEATURE_INDEX_1): Likewise.
7460 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7461
7462 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7463
7464 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7465 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7466 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7467 (install-locales): Depend on install-locale-archive.
7468 (install-locale-archive): Define.
7469 (install-locale-files): Define.
7470 (build-one-locale): Define macro.
7471 * manual/install.texi (Running make install): Document.
7472 * manual/INSTALL: Regenerate.
7473
7474 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7475
7476 * benchtests/scripts/compare_strings.py: Import traceback.
7477 (parse_file): Pretty-print error.
7478
7479 * NEWS: Mention the change.
7480 * elf/dl-tunables.list: Rename tune namespace to cpu.
7481 * sysdeps/powerpc/dl-tunables.list: Likewise.
7482 * sysdeps/x86/dl-tunables.list: Likewise.
7483 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7484 cpu.name.
7485 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7486 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7487 * manual/README.tunables: Likewise.
7488 * manual/tunables.texi: Likewise.
7489 * sysdeps/powerpc/cpu-features.c: Likewise.
7490 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7491 (init_cpu_features): Likewise.
7492 * sysdeps/x86/cpu-features.c: Likewise.
7493 * sysdeps/x86/cpu-features.h: Likewise.
7494 * sysdeps/x86/cpu-tunables.c: Likewise.
7495 * sysdeps/x86_64/Makefile: Likewise.
7496 * sysdeps/x86/dl-cet.c: Likewise.
7497
7498 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7499
7500 [BZ #23479]
7501 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7502 [__mips_hard_float].
7503 (FE_UNDERFLOW): Likewise.
7504 (FE_OVERFLOW): Likewise.
7505 (FE_DIVBYZERO): Likewise.
7506 (FE_INVALID): Likewise.
7507 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7508 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7509 (FE_UPWARD): Likewise.
7510 (FE_DOWNWARD): Likewise.
7511 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7512 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7513 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7514 [__mips_hard_float].
7515 (FP_ROUNDMODE): Likewise.
7516 (FP_RND_NEAREST): Likewise.
7517 (FP_RND_ZERO): Likewise.
7518 (FP_RND_PINF): Likewise.
7519 (FP_RND_MINF): Likewise.
7520 (FP_EX_INVALID): Likewise.
7521 (FP_EX_OVERFLOW): Likewise.
7522 (FP_EX_UNDERFLOW): Likewise.
7523 (FP_EX_DIVZERO): Likewise.
7524 (FP_EX_INEXACT): Likewise.
7525 (FP_INIT_ROUNDMODE): Likewise.
7526 * sysdeps/mips/nofpu/fesetenv.c: New file.
7527 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7528
7529 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7530
7531 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7532 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7533 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7534 conditional on [FE_UPWARD].
7535
7536 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7537
7538 regex: fix memory leak in Gnulib
7539 Problem and fix reported by Assaf Gordon in:
7540 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7541 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7542 range_ends members too, as they are defined in 'struct
7543 re_charset_t' even if not _LIBC. This affects only Gnulib.
7544
7545 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7546
7547 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7548 ...
7549 (get_common_indices): This.
7550 (init_cpu_features): Updated.
7551
7552 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7553
7554 * sysdeps/generic/math-tests-snan-payload.h: New file.
7555 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7556 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7557 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7558 * sysdeps/generic/math-tests.h: Include
7559 <math-tests-snan-payload.h>.
7560 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7561 * sysdeps/hppa/math-tests.h: Remove file.
7562 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7563 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7564 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7565 Likewise.
7566
7567 * sysdeps/generic/math-tests-snan-cast.h: New file.
7568 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7569 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7570 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7571 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7572
7573 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7574
7575 * version.h (RELEASE): Set to "development".
7576 (VERSION): Set to "2.28.9000".
7577 * NEWS (2.29): New section.
7578
7579 * version.h (RELEASE): Set to "stable".
7580 (VERSION): Set to "2.28".
7581 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7582 * NEWS: Add the list of bugs fixed in 2.28.
7583
7584 * po/ca.po: Update to latest version.
7585 * po/cs.po: Likewise
7586 * po/da.po: Likewise
7587 * po/el.po: Likewise
7588 * po/eo.po: Likewise
7589 * po/es.po: Likewise
7590 * po/fi.po: Likewise
7591 * po/fr.po: Likewise
7592 * po/gl.po: Likewise
7593 * po/hu.po: Likewise
7594 * po/ia.po: Likewise
7595 * po/id.po: Likewise
7596 * po/it.po: Likewise
7597 * po/ja.po: Likewise
7598 * po/ko.po: Likewise
7599 * po/lt.po: Likewise
7600 * po/nb.po: Likewise
7601 * po/nl.po: Likewise
7602 * po/pt_BR.po: Likewise
7603 * po/ru.po: Likewise
7604 * po/rw.po: Likewise
7605 * po/sk.po: Likewise
7606 * po/sl.po: Likewise
7607 * po/tr.po: Likewise
7608 * po/zh_CN.po: Likewise
7609 * po/zh_TW.po: Likewise
7610
7611 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7612
7613 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7614 initialization...
7615 (init): ... before initializing libpthread.
7616
7617 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7618 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7619 (__mach_setup_tls): ... new function.
7620 (mach_setup_tls): New alias.
7621 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7622 __mach_setup_thread.
7623 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7624 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7625 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7626 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7627
7628 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7629
7630 * manual/install.texi: Update versions.
7631 * INSTALL: Regenerate.
7632
7633 * manual/contrib.texi (Contributors): Update contributions.
7634
7635 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7636
7637 * po/be.po: Update translations.
7638
7639 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7640
7641 * sysdeps/sh/libm-test-ulps: Update.
7642
7643 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7644
7645 * po/bg.po: Update translations.
7646 * po/de.po: Likewise.
7647 * po/hr.po: Likewise.
7648 * po/pt_BR.po: Likewise.
7649 * po/sv.po: Likewise.
7650 * po/vi.po: Likewise.
7651
7652 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7653
7654 [BZ #23467]
7655 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7656 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
7657 (CFLAGS-tst-cet-property-1.o): New.
7658 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
7659 ($(objpfx)tst-cet-property-2): Likewise.
7660 ($(objpfx)tst-cet-property-2.out): Likewise.
7661 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
7662 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
7663 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
7664 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
7665 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
7666
7667 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7668
7669 [BZ #23458]
7670 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
7671
7672 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7673
7674 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
7675 __sbrk): Do not set attribute_hidden.
7676 * sysdeps/mach/hurd/not-errno.h: New file.
7677 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7678 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
7679
7680 2018-07-27 Carlos O'Donell <carlos@redhat.com>
7681
7682 * po/uk.po: Update translations.
7683 * po/cs.po: Likewise.
7684 * po/pl.po: Likewise.
7685
7686 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
7687
7688 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
7689 parse beyond the note end.
7690
7691 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7692
7693 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
7694 kernel does not support OFD locks.
7695 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
7696
7697 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
7698
7699 * sysdeps/mach/hurd/Versions (libc): Make __access and
7700 __access_noerrno external so they can override the ld symbols.
7701 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
7702 __writev, __open64, __access_noerrno extern so they can be overrided.
7703 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
7704 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7705
7706 2018-07-26 Carlos O'Donell <carlos@redhat.com>
7707
7708 * po/libc.pot: Regenerate.
7709
7710 2018-07-26 Joseph Myers <joseph@codesourcery.com>
7711
7712 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7713
7714 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
7715
7716 [BZ #23459]
7717 * sysdeps/x86/cpu-features.c (get_extended_indices): New
7718 function.
7719 (init_cpu_features): Call get_extended_indices for both Intel
7720 and AMD CPUs.
7721 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
7722 Remove "for AMD" comment.
7723
7724 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
7725
7726 [BZ # 23456]
7727 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
7728 COMMON_CPUID_INDEX_80000001.
7729
7730 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
7731
7732 * string/tst-xbzero-opt.c (use_test_buffer): New function.
7733 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
7734
7735 2018-07-26 Florian Weimer <fweimer@redhat.com>
7736
7737 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
7738 aliases for symbols not in the implementation namespace.
7739
7740 2018-07-25 Carlos O'Donell <carlos@redhat.com>
7741
7742 [BZ #23393]
7743 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
7744 lowercase in LATIN script.
7745 * localedata/Makefile (test-input): Add en_US.UTF-8.
7746 * localedata/en_US.UTF-8.in: New file.
7747 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
7748 and restore old tests.
7749 * posix/tst-regexloc.c (do_test): Add back range expression test.
7750
7751 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7752
7753 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
7754
7755 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7756
7757 * nptl/threads.h: Move to ...
7758 * sysdeps/nptl/threads.h: ... here.
7759 * sysdeps/hurd/stdc-predef.h: New file.
7760
7761 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7762
7763 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7764 tst-cet-setcontext-1 if CET is enabled.
7765 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
7766 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
7767
7768 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7769
7770 * include/threads.h: Move to ...
7771 * sysdeps/nptl/threads.h: ... here.
7772 * sysdeps/htl/threads.h: New file.
7773 * conform/Makefile (linknamespace-libs-ISO11): Use
7774 static-thread-library instead of linking libpthread.
7775 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
7776
7777 2018-07-25 Florian Weimer <fweimer@redhat.com>
7778
7779 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
7780 nanoseconds into seconds.
7781 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
7782 (do_test): Likewise.
7783 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
7784 (do_test): Likewise. Avoid nanosecond overflow and spurious
7785 timeouts due to system load.
7786 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
7787 (child_wait): Increment it.
7788 (do_test): Wait as long as necessary until all expected threads
7789 have arrived.
7790
7791 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
7792 H.J. Lu <hongjiu.lu@intel.com>
7793
7794 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
7795 __ssp.
7796 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
7797 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
7798 (__push___start_context): New.
7799 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
7800 <asm/prctl.h>.
7801 (__getcontext): Record the current shadow stack base. Save the
7802 caller's shadow stack pointer and base.
7803 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
7804 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
7805 (__push___start_context): New prototype.
7806 (__makecontext): Call __push___start_context to allocate a new
7807 shadow stack, push __start_context onto the new stack as well
7808 as the new shadow stack.
7809 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
7810 <asm/prctl.h>.
7811 (__setcontext): Restore the target shadow stack.
7812 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
7813 <asm/prctl.h>.
7814 (__swapcontext): Record the current shadow stack base. Save
7815 the caller's shadow stack pointer and base. Restore the target
7816 shadow stack.
7817 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
7818 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
7819 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
7820
7821 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7822
7823 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
7824 tst-setcontext8 and tst-setcontext9.
7825 * stdlib/tst-setcontext6.c: New file.
7826 * stdlib/tst-setcontext7.c: Likewise.
7827 * stdlib/tst-setcontext8.c: Likewise.
7828 * stdlib/tst-setcontext9.c: Likewise.
7829
7830 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7831
7832 * stdlib/Makefile ((tests): Add tst-setcontext5.
7833 * stdlib/tst-setcontext5.c: New file.
7834
7835 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7836
7837 * stdlib/Makefile (tests): Add tst-setcontext4.
7838 * stdlib/tst-setcontext4.c: New file.
7839
7840 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7841
7842 * stdlib/Makefile (tests): Add tst-swapcontext1.
7843 * stdlib/tst-swapcontext1.c: New test.
7844
7845 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7846
7847 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
7848 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
7849 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
7850 and tst-cet-legacy-4c.
7851 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
7852 and tst-cet-legacy-mod-4.
7853 (CFLAGS-tst-cet-legacy-2.c): New.
7854 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
7855 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
7856 (CFLAGS-tst-cet-legacy-3.c): Likewise.
7857 (CFLAGS-tst-cet-legacy-4.c): Likewise.
7858 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
7859 ($(objpfx)tst-cet-legacy-1): Likewise.
7860 ($(objpfx)tst-cet-legacy-2): Likewise.
7861 ($(objpfx)tst-cet-legacy-2.out): Likewise.
7862 ($(objpfx)tst-cet-legacy-2a): Likewise.
7863 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
7864 ($(objpfx)tst-cet-legacy-4): Likewise.
7865 ($(objpfx)tst-cet-legacy-4.out): Likewise.
7866 ($(objpfx)tst-cet-legacy-4a): Likewise.
7867 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
7868 (tst-cet-legacy-4a-ENV): Likewise.
7869 ($(objpfx)tst-cet-legacy-4b): Likewise.
7870 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
7871 (tst-cet-legacy-4b-ENV): Likewise.
7872 ($(objpfx)tst-cet-legacy-4c): Likewise.
7873 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
7874 (tst-cet-legacy-4c-ENV): Likewise.
7875 * sysdeps/x86/tst-cet-legacy-1.c: New file.
7876 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
7877 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
7878 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
7879 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
7880 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
7881 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
7882 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
7883 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
7884 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
7885 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
7886
7887 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7888
7889 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
7890 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
7891 with ssp_base.
7892 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
7893 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
7894 with ssp_base.
7895
7896 2018-07-25 Andreas Schwab <schwab@suse.de>
7897
7898 [BZ #23442]
7899 * locale/weightwc.h (findidx): Handle the case where usrc is a
7900 prefix of cp but one character too short.
7901
7902 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7903
7904 * NEWS: Add ISO C threads addition.
7905
7906 2018-07-24 Florian Weimer <fweimer@redhat.com>
7907
7908 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7909 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
7910 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
7911 4.13.
7912
7913 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
7914
7915 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
7916 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
7917 <sys/prctl.h> and <asm/prctl.h>.
7918 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
7919 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
7920 and <asm/prctl.h>.
7921 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
7922 ARCH_CET_LEGACY_BITMAP.
7923 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
7924 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
7925 * sysdeps/x86/libc-start.c: Include <startup.h>.
7926
7927 2018-07-24 Florian Weimer <fweimer@redhat.com>
7928
7929 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
7930 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
7931
7932 2018-07-24 Rical Jasan <rj@2c3t.io>
7933 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7934 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
7935
7936 [BZ #14092]
7937 * manual/debug.texi: Update adjacent chapter name.
7938 * manual/probes.texi: Likewise.
7939 * manual/threads.texi (ISO C Threads): New section.
7940 (POSIX Threads): Convert to a section.
7941
7942 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7943 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
7944
7945 [BZ# 14092]
7946 * nptl/Makefile (tests): Add new test files.
7947 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
7948 * nptl/tst-cnd-basic.c: Likewise.
7949 * nptl/tst-cnd-broadcast.c: Likewise.
7950 * nptl/tst-cnd-timedwait.c: Likewise.
7951 * nptl/tst-mtx-basic.c: Likewise.
7952 * nptl/tst-mtx-recursive.c: Likewise.
7953 * nptl/tst-mtx-timedlock.c: Likewise.
7954 * nptl/tst-mtx-trylock.c: Likewise.
7955 * nptl/tst-thrd-basic.c: Likewise.
7956 * nptl/tst-thrd-detach.c: Likewise.
7957 * nptl/tst-thrd-sleep.c: Likewise.
7958 * nptl/tst-tss-basic.c: Likewise.
7959
7960 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7961
7962 [BZ #14092]
7963 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
7964 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
7965 symbols.
7966 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7967 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7968 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7969 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7970 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7971 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7972 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7973 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7974 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7975 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7976 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7977 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7978 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7979 Likewise.
7980 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7981 Likewise.
7982 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
7983 Likewise.
7984 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7985 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
7986 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7987 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7988 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7989 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7990 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7991 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7992 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7993 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
7994 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
7995 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
7996 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
7997 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
7998 Likewise.
7999 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8000 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8001 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8002 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8003 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8004 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8005 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8006 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8007 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8008 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8009 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8010 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8011 ikewise.
8012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8013 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8014 Likewise.
8015 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8016 Likewise.
8017 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8018 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8019 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8020 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8021 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8022 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8023 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8024 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8025
8026 [BZ #14092]
8027 * conform/data/threads.h-data (thread_local): New macro.
8028 (TSS_DTOR_ITERATIONS): Likewise.
8029 (tss_t): New type.
8030 (tss_dtor_t): Likewise.
8031 (tss_create): New function.
8032 (tss_get): Likewise.
8033 (tss_set): Likewise.
8034 (tss_delete): Likewise.
8035 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8036 tss_get, and tss_set objects.
8037 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8038 * nptl/tss_create.c: New file.
8039 * nptl/tss_delete.c: Likewise.
8040 * nptl/tss_get.c: Likewise.
8041 * nptl/tss_set.c: Likewise.
8042 * sysdeps/nptl/threads.h (thread_local): New define.
8043 (TSS_DTOR_ITERATIONS): Likewise.
8044 (tss_t): New typedef.
8045 (tss_dtor_t): Likewise.
8046 (tss_create): New prototype.
8047 (tss_get): Likewise.
8048 (tss_set): Likewise.
8049 (tss_delete): Likewise.
8050
8051 [BZ #14092]
8052 * conform/data/threads.h-data (cnd_t): New type.
8053 (cnd_init): New function.
8054 (cnd_signal): Likewise.
8055 (cnd_broadcast): Likewise.
8056 (cnd_wait): Likewise.
8057 (cnd_timedwait): Likewise.
8058 (cnd_destroy): Likewise.
8059 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8060 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8061 object.
8062 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8063 * nptl/cnd_broadcast.c: New file.
8064 * nptl/cnd_destroy.c: Likewise.
8065 * nptl/cnd_init.c: Likewise.
8066 * nptl/cnd_signal.c: Likewise.
8067 * nptl/cnd_timedwait.c: Likewise.
8068 * nptl/cnd_wait.c: Likewise.
8069 * sysdeps/nptl/threads.h (cnd_t): New type.
8070 (cnd_init): New prototype.
8071 (cnd_signa): Likewise.
8072 (cnd_broadcast): Likewise.
8073 (cnd_wait): Likewise.
8074 (cnd_timedwait): Likewise.
8075 (cnd_destroy): Likewise.
8076
8077 [BZ #14092]
8078 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8079 (once_flag): New type.
8080 (call_once): New function.
8081 * nptl/Makefile (libpthread-routines): Add call_once object.
8082 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8083 * nptl/call_once.c: New file.
8084 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8085 (once_flag): New type.
8086 (call_once): New prototype.
8087
8088 [BZ #14092]
8089 * conform/data/threads.h-data (mtx_plain): New constant.
8090 (mtx_recursive): Likewise.
8091 (mtx_timed): Likewise.
8092 (mtx_t): New type.
8093 (mtx_init): New function.
8094 (mtx_lock): Likewise.
8095 (mtx_timedlock): Likewise.
8096 (mtx_trylock): Likewise.
8097 (mtx_unlock): Likewise.
8098 (mtx_destroy): Likewise.
8099 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8100 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8101 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8102 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8103 * nptl/mtx_destroy.c: New file.
8104 * nptl/mtx_init.c: Likewise.
8105 * nptl/mtx_lock.c: Likewise.
8106 * nptl/mtx_timedlock.c: Likewise.
8107 * nptl/mtx_trylock.c: Likewise.
8108 * nptl/mtx_unlock.c: Likewise.
8109 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8110 (mtx_recursive): Likewise.
8111 (mtx_timed): Likewise.
8112 (mtx_t): New type.
8113 (mtx_init): New prototype.
8114 (mtx_lock): Likewise.
8115 (mtx_timedlock): Likewise.
8116 (mtx_trylock): Likewise.
8117 (mtx_unlock): Likewise.
8118 (mtx_destroy): Likewise.
8119
8120 [BZ #14092]
8121 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8122 (linknamespace-libs-ISO11): Add libpthread.a.
8123 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8124 functions.
8125 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8126 * nptl/Makefile (headers): Add threads.h.
8127 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8128 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8129 thrd_yield.
8130 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8131 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8132 thrd_join, thrd_sleep, and thrd_yield symbols.
8133 * nptl/descr.h (struct pthread): Add c11 field.
8134 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8135 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8136 routine with expected function prototype.
8137 (__pthread_create_2_1): Add C11 threads check based on attribute
8138 value.
8139 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8140 * nptl/thrd_create.c: New file.
8141 * nptl/thrd_current.c: Likewise.
8142 * nptl/thrd_detach.c: Likewise.
8143 * nptl/thrd_equal.c: Likewise.
8144 * nptl/thrd_exit.c: Likewise.
8145 * nptl/thrd_join.c: Likewise.
8146 * nptl/thrd_priv.h: Likewise.
8147 * nptl/thrd_sleep.c: Likewise.
8148 * nptl/thrd_yield.c: Likewise.
8149 * include/threads.h: Likewise.
8150
8151 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8152
8153 * bits/indirect-return.h: New file.
8154 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8155 * sysdeps/x86/bits/indirect-return.h: Likewise.
8156 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8157 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8158 (swapcontext): Add __INDIRECT_RETURN.
8159 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8160 (prepare_test_buffer): Use it.
8161
8162 2018-07-24 Andreas Schwab <schwab@suse.de>
8163
8164 [BZ #23448]
8165 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8166 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8167
8168 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8169
8170 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8171 Redefine if shadow stack is enabled.
8172 (SYSCALL_ERROR_LABEL): Likewise.
8173 (__vfork): Pop shadow stack and jump back to to caller directly
8174 when shadow stack is in use.
8175 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8176 Redefine if shadow stack is enabled.
8177 (SYSCALL_ERROR_LABEL): Likewise.
8178 (__vfork): Pop shadow stack and jump back to to caller directly
8179 when shadow stack is in use.
8180
8181 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8182
8183 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8184 enabled.
8185 (foo): Likewise.
8186 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8187 (foo): Likewise.
8188
8189 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8190
8191 * scripts/build-many-glibcs.py (Context.checkout): Default
8192 binutils version to 2.31 branch.
8193
8194 2018-07-20 Zong Li <zong@andestech.com>
8195
8196 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8197 URL of gcc's tarball.
8198
8199 2018-07-20 Florian Weimer <fweimer@redhat.com>
8200
8201 [BZ #23396]
8202 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8203 not compare an extra byte after the end of the weights.
8204
8205 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8206
8207 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8208 to 1.
8209 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8210 hidden prototypes.
8211 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8212 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8213 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8214 list of libraries whose stack executability is expected.
8215 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8216 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8217 variable.
8218 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8219 libc.so libpthread.so.
8220
8221 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8222
8223 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8224 SOCK_NONBLOCK.
8225 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8226 and SOCK_NONBLOCK.
8227 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8228 implement __pipe2.
8229 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8230
8231 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8232
8233 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8234 library to improve command line parsing.
8235 (__main__): make schema file as optional parameter (--schema),
8236 defaulting to benchtests/scripts/benchout.schema.json.
8237 (main): move out of the parsing stuff to __main_  and leave it
8238 only as caller of main comparison functions.
8239
8240 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8241
8242 * NEWS: Add a note for Intel CET status.
8243 * manual/install.texi: Likewise.
8244 * INSTALL: Regenerated.
8245
8246 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8247
8248 [BZ #23140]
8249 * localedata/locales/oc_FR (mon): Rename to...
8250 (alt_mon): This, then update October (typo fix).
8251 (mon): New content (genitive case, month names preceded by
8252 "de" or "d’").
8253
8254 [BZ #23422]
8255 * localedata/locales/oc_FR (abday): Update all items.
8256 (day): Update Wednesday and Saturday (typo fixes).
8257 (abmon): Update all items, except May.
8258 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8259 (LC_IDENTIFICATION): Bump the revision number and date.
8260 Keep the "category" entries in alphabetic order.
8261 (LC_ADDRESS): Remove no longer needed comment.
8262 (LC_COLLATE): Use “copy "ca_ES"”.
8263 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8264 "name_mrs".
8265
8266 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8267
8268 * grp/tst_fgetgrent.c: Include <unistd.h>.
8269 (main): Use mkstemp instead of tmpnam.
8270 * io/test-utime.c (main): Likewise.
8271 * posix/annexc.c (macrofile): Change to modifiable array.
8272 (main): Remove macrofile here.
8273 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8274 macrofile here.
8275 (check_header): Do not remove macrofile here.
8276 * posix/bug-getopt1.c: Include <stdlib.h>.
8277 (do_test): Use mkstemp instead of tmpnam.
8278 * posix/bug-getopt2.c: Include <stdlib.h>.
8279 (do_test): Use mkstemp instead of tmpnam.
8280 * posix/bug-getopt3.c: Include <stdlib.h>.
8281 (do_test): Use mkstemp instead of tmpnam.
8282 * posix/bug-getopt4.c: Include <stdlib.h>.
8283 (do_test): Use mkstemp instead of tmpnam.
8284 * posix/bug-getopt5.c: Include <stdlib.h>.
8285 (do_test): Use mkstemp instead of tmpnam.
8286 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8287 (main): Use mkstemp instead of tmpnam.
8288 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8289 (main): Use mkstemp instead of tmpnam.
8290 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8291 (main): use mkstemp instead of tmpnam.
8292 * stdlib/isomac.c (macrofile): Change to modifiable array.
8293 (main): Remove macrofile here.
8294 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8295 macrofile here.
8296 (check_header): Do not remove macrofile here.
8297
8298 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8299
8300 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8301 glibc.tune.x86_shstk.
8302
8303 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8304
8305 * NEWS: Mention --enable-cet.
8306 * manual/install.texi: Document --enable-cet.
8307 * INSTALL: Regenerated.
8308
8309 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8310
8311 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8312 Add _CET_NOTRACK before indirect jump to jump table.
8313
8314 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8315
8316 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8317 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8318 to jump table.
8319
8320 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8321
8322 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8323 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8324 to jump table.
8325
8326 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8327
8328 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8329 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8330 to jump table.
8331
8332 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8333
8334 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8335 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8336 to jump table.
8337
8338 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8339
8340 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8341 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8342 to jump table.
8343 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8344
8345 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8346
8347 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8348 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8349 to jump table.
8350
8351 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8352
8353 * sysdeps/i386/i686/multiarch/memset-sse2.S
8354 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8355 to jump table.
8356
8357 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8358
8359 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8360 indirect jump to jump table.
8361
8362 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8363
8364 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8365 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8366 to jump table.
8367 (MEMCPY): Likewise.
8368
8369 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8370
8371 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8372 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8373 to jump table.
8374 (MEMCPY): Likewise.
8375
8376 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8377
8378 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8379 _CET_NOTRACK before indirect jump to jump table.
8380
8381 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8382
8383 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8384 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8385 to jump table.
8386
8387 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8388
8389 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8390 indirect jump to jump table.
8391
8392 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8393
8394 [BZ #22241]
8395 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8396 (LOCALES): Likewise.
8397 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8398 * localedata/locales/sah_RU: New file.
8399 * localedata/sah_RU.UTF-8.in: New file.
8400
8401 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8402
8403 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8404 "sysdep.h".
8405 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8406 _CET_ENDBR to indirect jump targets and adjust jump destination
8407 for _CET_ENDBR.
8408 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8409 "sysdep.h".
8410 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8411 _CET_ENDBR to indirect jump targets and adjust jump destination
8412 for _CET_ENDBR.
8413 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8414 "sysdep.h".
8415 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8416 _CET_ENDBR to indirect jump targets and adjust jump destination
8417 for _CET_ENDBR.
8418
8419 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8420
8421 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8422 _CET_ENDBR.
8423
8424 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8425
8426 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8427 _CET_ENDBR.
8428 (_dl_tlsdesc_undefweak): Likewise.
8429 (_dl_tlsdesc_dynamic): Likewise.
8430 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8431 (_dl_tlsdesc_resolve_rel): Likewise.
8432 (_dl_tlsdesc_resolve_rela): Likewise.
8433 (_dl_tlsdesc_resolve_hold): Likewise.
8434 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8435 (_dl_tlsdesc_undefweak): Likewise.
8436 (_dl_tlsdesc_dynamic): Likewise.
8437 (_dl_tlsdesc_resolve_rela): Likewise.
8438 (_dl_tlsdesc_resolve_hold): Likewise.
8439
8440 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8441
8442 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8443 (_fini): Likewise.
8444 * sysdeps/x86_64/crti.S (_init): Likewise.
8445 (_fini): Likewise.
8446
8447 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8448
8449 [BZ #23140]
8450 * localedata/locales/os_RU (mon): Rename to...
8451 (alt_mon): This.
8452 (mon): Import from CLDR (genitive case).
8453
8454 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8455
8456 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8457 cet-tunables.h> when CET is enabled.
8458
8459 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8460
8461 [BZ #21598]
8462 * configure.ac: Add --enable-cet.
8463 * configure: Regenerated.
8464 * elf/Makefille (all-built-dso): Add a comment.
8465 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8466 Include <dl-prop.h>.
8467 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8468 segment.
8469 * elf/dl-open.c: Include <dl-prop.h>.
8470 (dl_open_worker): Call _dl_open_check.
8471 * elf/rtld.c: Include <dl-prop.h>.
8472 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8473 _rtld_main_check.
8474 * sysdeps/generic/dl-prop.h: New file.
8475 * sysdeps/i386/dl-cet.c: Likewise.
8476 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8477 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8478 * sysdeps/x86/cet-tunables.h: Likewise.
8479 * sysdeps/x86/check-cet.awk: Likewise.
8480 * sysdeps/x86/configure: Likewise.
8481 * sysdeps/x86/configure.ac: Likewise.
8482 * sysdeps/x86/dl-cet.c: Likewise.
8483 * sysdeps/x86/dl-procruntime.c: Likewise.
8484 * sysdeps/x86/dl-prop.h: Likewise.
8485 * sysdeps/x86/libc-start.h: Likewise.
8486 * sysdeps/x86/link_map.h: Likewise.
8487 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8488 _CET_ENDBR.
8489 (_dl_runtime_profile): Likewise.
8490 (_dl_runtime_resolve_shstk): New.
8491 (_dl_runtime_profile_shstk): Likewise.
8492 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8493 if CET is enabled.
8494 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8495 (CFLAGS-.os): Likewise.
8496 (CFLAGS-.op): Likewise.
8497 (CFLAGS-.oS): Likewise.
8498 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8499 is enabled.
8500 (tests-special): Add $(objpfx)check-cet.out.
8501 (cet-built-dso): New.
8502 (+$(cet-built-dso:=.note)): Likewise.
8503 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8504 ($(objpfx)check-cet.out): New.
8505 (generated): Add check-cet.out.
8506 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8507 <cet-tunables.h>.
8508 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8509 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8510 (init_cpu_features): Call get_cet_status to check CET status
8511 and update dl_x86_feature_1 with CET status. Call
8512 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8513 (set_x86_shstk). Disable and lock CET in libc.a.
8514 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8515 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8516 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8517 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8518 (_CET_ENDBR): Define if not defined.
8519 (ENTRY): Add _CET_ENDBR.
8520 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8521 x86_shstk.
8522 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8523 _CET_ENDBR.
8524 (_dl_runtime_profile): Likewise.
8525
8526 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8527
8528 [BZ #21895]
8529 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8530 restore r2 on longjmp.
8531 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8532 test list.
8533 Added rules to build test tst-setjmp-bug21895-static.
8534 Added module setjmp-bug21895 and rules to build a shared object from it.
8535 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8536 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8537
8538 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8539
8540 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8541 * benchtests/bench-strstr.c: Likewise.
8542 * string/memmem.c (FASTSEARCH): Define.
8543 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8544 Add support for FASTSEARCH.
8545 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8546 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8547 (FASTSEARCH): Define.
8548 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8549 * string/test-strstr.c: Likewise.
8550
8551 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8552
8553 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8554 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8555
8556 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8557 H.J. Lu <hongjiu.lu@intel.com>
8558
8559 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8560 (__longjmp): Restore shadow stack pointer if shadow stack is
8561 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8562 isn't defined for __longjmp_cancel.
8563 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8564 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8565 and SHADOW_STACK_POINTER_OFFSET is defined.
8566 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8567 (setjmp): Save shadow stack pointer if shadow stack is enabled
8568 and SHADOW_STACK_POINTER_OFFSET is defined.
8569 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8570 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8571 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8572 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8573 <jmp_buf-ssp.h>.
8574 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8575 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8576 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8577 Remove jmp_buf-ssp.sym.
8578 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8579 <jmp_buf-ssp.h>.
8580 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8581 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8582 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8583 jmp_buf-ssp.sym.
8584 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8585 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8586 (__longjmp): Restore shadow stack pointer if shadow stack is
8587 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8588 isn't defined for __longjmp_cancel.
8589 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8590 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8591 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8592
8593 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8594
8595 [BZ #22563]
8596 * nptl/pthread_create.c: Include <tls-setup.h>.
8597 (__pthread_create_2_1): Call tls_setup_tcbhead.
8598 * sysdeps/generic/tls-setup.h: New file.
8599 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8600 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8601 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8602 Likewise.
8603 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8604 to feature_1.
8605 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8606 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8607 (X86_FEATURE_1_SHSTK): Likewise.
8608 (CET_ENABLED): Likewise.
8609 (IBT_ENABLED): Likewise.
8610 (SHSTK_ENABLED): Likewise.
8611
8612 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8613
8614 [BZ #23208]
8615 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8616 (LOCALES): Likewise.
8617 * localedata/dsb_DE.UTF-8.in: New file.
8618 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8619
8620 2018-07-12 Florian Weimer <fweimer@redhat.com>
8621
8622 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8623 __mprotect, not mprotect.
8624
8625 2018-07-11 Florian Weimer <fweimer@redhat.com>
8626
8627 * io/Makefile (headers): Add bits/statx.h.
8628
8629 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8630
8631 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8632 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8633 and headers.
8634 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8635 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8636 for utf8_gen.py
8637
8638 2018-07-10 Florian Weimer <fweimer@redhat.com>
8639
8640 * io/Makefile (routines): Add statx.
8641 (tests-internal): Add tst-statx.
8642 * io/Versions (GLIBC_2.28): Export statx.
8643 * io/bits/statx.h: New file.
8644 * io/sys/stat.h [__USE_GNU]: Include it.
8645 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
8646 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
8647 Define.
8648 * io/statx.c: New file.
8649 * io/statx_generic.: Likewise.
8650 * io/tst-statx.: Likewise.
8651 * include/bits/statx.h: Likewise.
8652 * sysdeps/unix/sysv/linux/kernel-features.h
8653 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
8654 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8655 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
8656 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
8657 Undefine.
8658 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8659 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
8660 * sysdeps/unix/sysv/linux/statx.c: New file.
8661 * manual/filesys.texi: Note that statx is undocumented.
8662 * sysdeps/**/libc*.abilist: Update.
8663
8664 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8665
8666 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
8667 a kernel issue which lead to test failure in some cases.
8668
8669 2018-07-10 Florian Weimer <fweimer@redhat.com>
8670
8671 [BZ #23036]
8672 * posix/regexec.c (check_node_accept_bytes): When comparing
8673 weights, do not compare an extra byte after the end of the
8674 weights.
8675
8676 2018-07-10 Florian Weimer <fweimer@redhat.com>
8677
8678 * libio/readline.c: Fix copyright year.
8679 * libio/tst-readline.c Likewise.
8680 * nss/tst-nss-files-hosts-getent.c: Likewise.
8681
8682 2018-07-06 Florian Weimer <fweimer@redhat.com>
8683
8684 [BZ #18991]
8685 * nss/nss_files/files-XXX.c (internal_getent): Use
8686 __libc_readline_unlocked. Seek back to the start of the line if
8687 parsing failes with ERANGE.
8688 (get_contents_ret, get_contents): Remove.
8689 * nss/tst-nss-files-hosts-getent.c: New file.
8690 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
8691 (tst-nss-files-hosts-getent): Link with -ldl.
8692
8693 2018-07-06 Florian Weimer <fweimer@redhat.com>
8694
8695 * include/stdio.h (__libc_readline_unlocked): Declare.
8696 (__ftello64, __fseeko64): Declare aliases.
8697 * libio/readline.c: New file.
8698 * libio/tst-readline.c: Likewise.
8699 (routines): Add readline.
8700 (tests-internal): Add tst-readlime.
8701 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
8702 __libc_readline_unlocked.
8703 * libio/fseeko.c (__fseeko): Rename from fseeko.
8704 (fseeko): Add alias.
8705 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
8706 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
8707 (fseeko64): Add alias.
8708 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
8709 * libio/ftello64.c (__ftello64): Rename from ftello64.
8710 (ftello64): Add alias.
8711
8712 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8713
8714 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
8715 HWCAP_ATOMICS.
8716
8717 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8718
8719 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
8720 Use dl_hwcap without masking.
8721 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
8722 Remove HWCAP_CPUID.
8723
8724 2018-07-06 Florian Weimer <fweimer@redhat.com>
8725
8726 * conform/conformtest.pl (checknamespace): Escape literal braces
8727 in regular expressions.
8728
8729 2018-07-06 Amit Pawar <amit.pawar@amd.com>
8730
8731 * sysdeps/x86/cpu-features.c (get_common_indeces):
8732 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
8733 * sysdeps/x86/cpu-features.c (init_cpu_features):
8734 AVX_Fast_Unaligned_Load is disabled for Excavator core.
8735
8736 2018-07-05 Florian Weimer <fweimer@redhat.com>
8737
8738 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
8739 protector.
8740 (CFLAGS-elf-init.oS): Likewise.
8741
8742 2018-07-05 Florian Weimer <fweimer@redhat.com>
8743 Carlos O'Donell <carlos@redhat.com>
8744
8745 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
8746 $(no-stack-protector). stack_chk_fail_local.c can be compiled
8747 with stack protector enabled because there is no risk of infinite
8748 recursion.
8749
8750 2018-07-05 Maciej W. Rozycki <macro@mips.com>
8751
8752 [BZ #19818]
8753 [BZ #23307]
8754 * libc-abis (ABSOLUTE): New ABI.
8755 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
8756 * NEWS: Mention the new ABI.
8757
8758 2018-07-05 Florian Weimer <fweimer@redhat.com>
8759
8760 [BZ # 17662]
8761 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
8762 (RENAME_WHITEOUT): Define.
8763 [__USE_GNU] (renameat2): Declare.
8764 * stdio-common/Makefile (routines): Add renameat2.
8765 (tests): Add tst-renameat2.
8766 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
8767 * stdio-common/renameat2.c: New file.
8768 * stdio-common/tst-renameat2.c: Likewise.
8769 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
8770 * manual/filesys.texi (Temporary Files): Note that renameat2 is
8771 undocumented.
8772 * sysdeps/unix/sysv/linux/kernel-features.h
8773 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
8774 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8775 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
8776 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8777 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
8778 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8779 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
8780 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8781 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
8782 * include/stdio.h (__renameat): Add alias for renameat.
8783 * stdio-common/renameat.c (__renameat): Rename from renameat.
8784 Add hidden definition and alias.
8785 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
8786 * sysdeps/mach/hurd/renameat.c: Likewise.
8787 * sysdeps/**/libc*.abilist: Add renameat2.
8788
8789 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8790
8791 * posix/bug-regex33.c: Fix build after regex sync.
8792
8793 2018-07-04 Carlos O'Donell <carlos@redhat.com>
8794
8795 [BZ #23164]
8796 * localedata/tst-langinfo-setlocale.c: New file.
8797 * localedata/tst-langinfo-setlocale-static.c: New file.
8798 * localedata/tst-langinfo-newlocale.c: New file.
8799 * localedata/tst-langinfo-newlocale-static.c: New file.
8800 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
8801 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
8802 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
8803 (tests-static): Remove tst-langinfo-static. Add
8804 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
8805 (tests-special): Remove $(objpfx)tst-langinfo.out,
8806 $(objpfx)tst-langinfo-static.out. Add
8807 $(objpfx)tst-langinfo-setlocale.out,
8808 $(objpfx)tst-langinfo-newlocale.out,
8809 $(objpfx)tst-langinfo-setlocale-static.out,
8810 $(objpfx)tst-langinfo-newlocale-static.out.
8811 ($(objpfx)tst-langinfo.out): Remove.
8812 ($(objpfx)tst-langinfo-static.out): Remove.
8813 ($(objpfx)tst-langinfo-newlocale.out): New target.
8814 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
8815 (test-xfail-tst-langinfo-newlocale-static): Add.
8816 ($(objpfx)tst-langinfo-setlocale.out): New target.
8817 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
8818 * localedata/tst-langinfo.c: Call test_locale.
8819 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
8820 data.
8821
8822 2018-07-04 Florian Weimer <fweimer@redhat.com>
8823
8824 testrun.sh: Implement --tool=strace, --tool=valgrind
8825 * Makefile (testrun-script): Define variable.
8826 (testrun.sh): Use variable.
8827 * manual/install.texi (Tools for Compilation): make 4.0 or later
8828 is required.
8829 * configure.ac: Check for make 4.0 or later.
8830 * INSTALL: Regenerate.
8831 * configure: Likewise.
8832
8833 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8834
8835 [BZ #23233]
8836 [BZ #21163]
8837 [BZ #18986]
8838 [BZ #13762]
8839 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
8840 * posix/PCRE.tests: Remove invalid test.
8841 * posix/bug-regex28.c: Fix expected values for used syntax.
8842 * posix/bug-regex37.c: New file.
8843 * posix/bug-regex38.c: Likewise.
8844 * posix/regcomp.c: Sync with gnulib.
8845 * posix/regex.c: Likewise.
8846 * posix/regex.h: Likewise.
8847 * posix/regex_internal.c: Likewise.
8848 * posix/regex_internal.h: Likewise.
8849 * posix/regexec.c: Likewise.
8850
8851 2018-06-26 Mike FABIAN <mfabian@redhat.com>
8852
8853 [BZ #23308]
8854 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
8855 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
8856 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
8857 * localedata/unicode-gen/PropList.txt: likewise.
8858 * localedata/unicode-gen/UnicodeData.txt: likewise.
8859 * localedata/charmaps/UTF-8: Regenerate.
8860 * localedata/locales/i18n_ctype: likewise.
8861 * localedata/locales/tr_TR: likewise.
8862 * localedata/locales/translit_circle: likewise.
8863 * localedata/locales/translit_cjk_compat: likewise.
8864 * localedata/locales/translit_combining: likewise.
8865 * localedata/locales/translit_compat: likewise.
8866 * localedata/locales/translit_font: likewise.
8867 * localedata/locales/translit_fraction: likewise.
8868
8869 2018-07-03 Florian Weimer <fweimer@redhat.com>
8870
8871 [BZ #23363]
8872 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
8873 * stdio-common/tst-printf.sh: Adjust expected output.
8874 * LICENSES: Update.
8875
8876 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8877
8878 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
8879 symbol.
8880
8881 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8882
8883 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
8884 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
8885 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
8886 * stdio-common/tst-printfsz-islongdouble.c: New file.
8887 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
8888 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
8889 [subdir == stdio-common] (routines): Add ieee128-printf_size.
8890 [subdir == stdio-common] (tests-internal): Add
8891 test-printf-size-ieee128, and test-printf-size-ibm128.
8892 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
8893 (CFLAGS-test-printf-size-ibm128.c): New variables.
8894 [subdir == stdio-common] (tests-special): Add
8895 $(objpfx)test-printf-size-ieee128.out and
8896 $(objpfx)test-printf-size-ibm128.out.
8897 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
8898 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
8899 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
8900 __printf_sizeieee128.
8901 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
8902 New file.
8903 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
8904 Likewise.
8905 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
8906 Likewise.
8907
8908 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
8909
8910 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
8911 (exp2f_inline): Likewise.
8912 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
8913 (__math_uflowf): Likewise.
8914 (__math_may_uflowf): Likewise.
8915 (__math_divzerof): Likewise.
8916 (__math_invalidf): Likewise.
8917 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
8918 (__math_oflowf): Likewise.
8919 (__math_uflowf): Likewise.
8920 (__math_may_uflowf): Likewise.
8921 (__math_divzerof): Likewise.
8922 (__math_invalidf): Likewise.
8923
8924 2018-06-29 DJ Delorie <dj@redhat.com>
8925 Carlos O'Donell <carlos@redhat.com>
8926
8927 [BZ #23329]
8928 * include/libc-symbols.h: Comment the freeres framework.
8929 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
8930 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
8931 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
8932 * dlfcn/dlerror.c: Include libc-symbols.h
8933 (__dlerror_main_freeres): New function.
8934 * dlfcn/dlfreeres.c: New file.
8935 * dlfcn/sdlfreeres.c: New file.
8936 * include/dlfcn.h: Declare __dlerror_main_freeres.
8937 * malloc/set-freeres.c: Declare __libdl_freeres, and
8938 __libpthread_freeres.
8939 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
8940 the releavant libraries are loaded.
8941 * malloc/thread-freeres.c: Add comments.
8942 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
8943 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
8944 * nptl/allocatestack.c (__nptl_free_stacks): New function.
8945 (__free_stacks): Rename to...
8946 (free_stacks): ...this. Mark static.
8947 (queue_stack): Call free_stacks.
8948 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
8949 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
8950 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
8951 ptr_freeres element from struct.
8952 (pthread_functions): Remove .ptr_freeres from struct initializer.
8953 [SHARED] (nptl_freeres): Remove.
8954 * nptl/nptlfreeres.c: New file.
8955 * nptl/pthreadP.h
8956 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
8957 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
8958 attribute_hidden.
8959 (__free_stacks): Rename to...
8960 (__nptl_stacks_freeres): ...this.
8961 (__shm_directory_freeres): Declare.
8962 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
8963 (__nptl_unwind_freeres): ...this.
8964 * resolv/res-close.c: Add comment.
8965 * resolv/resolv_conf.c: Include libc-symbols.h.
8966 * string/strerror_l.c: Include libc-symbols.h.
8967 * sunrpc/rpc_thread.c: Include libc-symbols.h.
8968 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
8969 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
8970 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
8971
8972 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8973
8974 * stdlib/tst-strfmon_l.c: Add tests for long double.
8975
8976 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
8977
8978 [BZ #23208]
8979 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
8980 * localedata/locales/dsb_DE: New file.
8981
8982 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
8983
8984 [BZ #23140]
8985 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
8986 genitive case).
8987 (alt_mon): New entry, import from CLDR (nominative case).
8988
8989 2018-06-29 Sylvain Lesage <severo@rednegra.net>
8990
8991 [BZ #22996]
8992 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
8993
8994 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
8995
8996 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
8997 Use vector registers.
8998
8999 * sysdeps/aarch64/multiarch/memmove_falkor.S
9000 (__memcpy_falkor): Use vector registers.
9001
9002 2018-06-29 Martin Sebor <msebor@redhat.com>
9003
9004 * manual/stdio.texi (Customizing Printf): Mention interaction
9005 with GCC built-ins.
9006
9007 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9008
9009 [BZ #23307]
9010 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9011 `st_value' is 0 if `st_shndx' is SHN_ABS.
9012 * elf/tst-absolute-zero.c: New file.
9013 * elf/tst-absolute-zero-lib.c: New file.
9014 * elf/tst-absolute-zero-lib.lds: New file.
9015 * elf/Makefile (tests): Add `tst-absolute-zero'.
9016 (modules-names): Add `tst-absolute-zero-lib'.
9017 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9018 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9019 ($(objpfx)tst-absolute-zero: New dependency.
9020
9021 2018-06-29 Zack Weinberg <zackw@panix.com>
9022
9023 * configure.ac: New command-line option --disable-crypt.
9024 Force --disable-nss-crypt when --disable-crypt is given, with a
9025 warning if it was explicitly enabled.
9026 * configure: Regenerate.
9027 * config.make.in: New boolean substitution variable $(build-crypt).
9028 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9029 when $(build-crypt).
9030 * manual/install.texi: Document --disable-crypt.
9031 * INSTALL: Regenerate.
9032
9033 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9034 which is never set.
9035 * conform/Makefile: Only include libcrypt.a in
9036 linknamespace-libs-xsi and linknamespace-libs-XPG4
9037 when $(build-crypt).
9038 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9039 USE_CRYPT to 1 when $(build-crypt).
9040 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9041 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9042 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9043
9044 2018-06-29 Zack Weinberg <zackw@panix.com>
9045
9046 * crypt/crypt.h, posix/unistd.h: Update comments and
9047 prototypes for crypt and crypt_r.
9048
9049 * manual/crypt.texi (Cryptographic Functions): New initial
9050 exposition.
9051 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9052 (Unpredictable Bytes): Improve initial exposition. Clarify error
9053 behavior of getentropy and getrandom.
9054 * manual/examples/genpass.c: Generate a salt using getentropy
9055 instead of the current time. Use hash $5$ (SHA-2-256).
9056 * manual/examples/testpass.c: Demonstrate validation against
9057 hashes generated with three different one-way functions.
9058
9059 * manual/intro.texi: crypt.texi does not need an overview
9060 anymore.
9061
9062 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9063 * manual/terminal.texi: Consistently refer to "passphrases"
9064 * instead of "passwords", and to the "user database" instead
9065 * of the "password database".
9066 * manual/users.texi: Similarly. Add notes about how actual
9067 passphrase hashes are now stored in the shadow database.
9068 Remove 20-year-old junk todo note.
9069
9070 2018-06-29 Zack Weinberg <zackw@panix.com>
9071
9072 * manual/crypt.texi: Use a normal top-level @node declaration.
9073 Move most of the introductory text to the 'crypt' section.
9074 Move the example programs below the @deftypefun for 'crypt_r'.
9075 Move the 'getpass' section...
9076 * manual/terminal.texi: ...here.
9077
9078 2018-06-29 Zack Weinberg <zackw@panix.com>
9079 Florian Weimer <fweimer@redhat.com>
9080
9081 * posix/unistd.h: Do not declare encrypt.
9082 (_XOPEN_CRYPT): Remove macro definition.
9083 (crypt): Declare only for _USE_MISC.
9084 * stdlib/stdlib.h: Do not declare setkey.
9085 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9086 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9087
9088 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9089 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9090 into compat symbols. Don't define initial_perm if it's not
9091 going to be used.
9092 * crypt/cert.c: Link explicitly with the expected versions for
9093 setkey and encrypt. If they are not available at all, mark
9094 the test as unsupported.
9095
9096 * sunrpc/des_crypt.c: Unconditionally block linkage with
9097 cbc_crypt and ecb_crypt for new binaries.
9098 * sunrpc/des_soft.c: Unconditionally block linkage with
9099 des_setparity for new binaries.
9100
9101 * manual/crypt.texi: Remove the entire "DES Encryption"
9102 section. Also remove the paragraph talking about FIPS 140-2
9103 from the introduction.
9104 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9105 of libgcrypt for "real" encryption, not DES.
9106 * manual/conf.texi (Constants for Sysconf): Mention that
9107 _XOPEN_CRYPT is no longer impelemented.
9108
9109 * conform/data/unistd.h-data: Remove crypt function declaration.
9110
9111 2018-06-29 Florian Weimer <fweimer@redhat.com>
9112
9113 [BZ #23351]
9114 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9115 (disallow_malloc_check): Remove variable.
9116 (__malloc_check_init): Adjust.
9117 (malloc_set_state): Update comment.
9118 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9119 declarations.
9120
9121 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9122
9123 [BZ #23140]
9124 * localedata/locales/ast_ES (mon): Rename to...
9125 (alt_mon): This.
9126 (mon): Import from CLDR (genitive case).
9127
9128 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9129 Jakub Sitnicki <jkbs@redhat.com>
9130
9131 [BZ #21812]
9132 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9133 on NLM_F_DUMP_INTR.
9134
9135 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9136
9137 * manual/llio.texi: Remove spurious space.
9138
9139 2018-06-28 Florian Weimer <fweimer@redhat.com>
9140
9141 [BZ #23349]
9142 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9143 _STRUCT_TIMESPEC.
9144
9145 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9146
9147 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9148 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9149 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9150 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9151 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9152 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9153 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9154
9155 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9156
9157 [BZ #23266]
9158 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9159 Copy and null-terminate entries that are not terminated, in
9160 addition to empty ones.
9161
9162 2018-06-27 Florian Weimer <fweimer@redhat.com>
9163
9164 [BZ #18023]
9165 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9166 (extend_alloca_account): Remove.
9167 * manual/stdio.texi (Variable Arguments Output): Update comment.
9168
9169 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9170
9171 * nptl/sockperf.c: Remove file.
9172
9173 2018-06-27 Florian Weimer <fweimer@redhat.com>
9174
9175 [BZ #18023]
9176 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9177 scratch_buffer instead of extend_alloca.
9178
9179 2018-06-27 Florian Weimer <fweimer@redhat.com>
9180
9181 [BZ #18023]
9182 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9183 scratch_buffer instead of extend_alloca. Update comments.
9184
9185 2018-06-27 Florian Weimer <fweimer@redhat.com>
9186
9187 [BZ #18023]
9188 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9189 instead of extend_alloca.
9190
9191 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9192
9193 [BZ #13888]
9194 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9195 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9196 /tmp.
9197 * scripts/test-installation.pl: Put temporary files in build
9198 directory, not /tmp.
9199 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9200 (CFLAGS-bug4.c): Likewise.
9201 (CFLAGS-bug5.c): Likewise.
9202 (CFLAGS-test-fseek.c): Likewise.
9203 (CFLAGS-test-popen.c): Likewise.
9204 (CFLAGS-test_rdwr.c): Likewise.
9205 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9206 /tmp.
9207 * stdio-common/bug4.c (main): Likewise.
9208 * stdio-common/bug5.c (main): Likewise.
9209 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9210 * stdio-common/test-popen.c (do_test): Likewise.
9211 * stdio-common/test_rdwr.c (main): Likewise.
9212
9213 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9214
9215 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9216 (sem_open): Set sem.newsem.pad to zero for valgrind.
9217
9218 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9219
9220 [BZ #20251]
9221 * NEWS: Mention fcntl64 addition.
9222 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9223 * login/utmp_file.c: Likewise.
9224 * sysdeps/posix/fdopendir.c: Likewise.
9225 * sysdeps/posix/opendir.c: Likewise.
9226 * sysdeps/unix/pt-fcntl.c: Likewise.
9227 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9228 __fcntl64_nocancel_adjusted): New prototype.
9229 (__fcntl_nocancel_adjusted): Remove prototype.
9230 * io/Makefile (routines): Add fcntl64.
9231 (CFLAGS-fcntl64.c): New rule.
9232 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9233 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9234 * io/fcntl.h (fcntl64): Add prototype and redirect if
9235 __USE_FILE_OFFSET64 is defined.
9236 * io/fcntl64.c: New file.
9237 * manual/llio.text: Add a note for which commands fcntl acts a
9238 cancellation point.
9239 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9240 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9241 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9242 New symbols.
9243 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9244 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9245 non-LFS case.
9246 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9247 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9248 to __fcntl64_nocancel.
9249 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9250 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9251 to __fcntl64_nocancel.
9252 * sysdeps/generic/not-cancel.h: Likewise.
9253 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9254 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9255 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9256 (fcntl64): New symbol.
9257 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9258 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9259 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9262 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9263 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9264 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9265 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9266 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9267 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9268 fcntl64): Likewise.
9269 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9270 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9271 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9272 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9273 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9274 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9275 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9276 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9277 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9278 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9279 Likewise.
9280 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9281 Likewise.
9282 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9283 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9284 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9285
9286 2018-06-26 Florian Weimer <fweimer@redhat.com>
9287
9288 Run thread shutdown functions in an explicit order.
9289 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9290 definition.
9291 (__libc_thread_freeres): Call thread shutdown functions
9292 explicitly.
9293 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9294 * include/string.h (__strerror_thread_freeres): Declare.
9295 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9296 arena_thread_freeres. No longer static. Remove thread shutdown
9297 hook registration.
9298 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9299 Declare.
9300 * resolv/res-close.c (__res_thread_freeres): Renamed from
9301 res_thread_freeres. No longer static. Remove thread shutdown
9302 hook registration.
9303 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9304 * resolv/resolv_conf.c (freeres): Remove incorrect section
9305 attribute and use libc_freeres_fn.
9306 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9307 strerror_thread_freeres. No longer static. Remove thread
9308 shutdown hook registration.
9309 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9310 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9311 shutdown hook registration.
9312 * Makerules (shlib.lds): Do not provide section boundary symbols
9313 for __libc_thread_subfreeres.
9314 * manual/memory.texi (Basic Allocation): Update comment.
9315
9316 2018-06-26 Florian Weimer <fweimer@redhat.com>
9317
9318 Remove always-defined _RPC_THREAD_SAFE_ macro.
9319 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9320 Do not define _RPC_THREAD_SAFE_.
9321 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9322 conditional.
9323 * sunrpc/clnt_perr.c: Likewise.
9324 * sunrpc/clnt_raw.c: Likewise.
9325 * sunrpc/clnt_simp.c: Likewise.
9326 * sunrpc/key_call.c: Likewise.
9327 * sunrpc/rpc_common.c: Likewise.
9328 * sunrpc/rpc_main.c: Likewise.
9329 * sunrpc/rpc_thread.c: Likewise.
9330 * sunrpc/svc.c: Likewise.
9331 * sunrpc/svc_raw.c: Likewise.
9332 * sunrpc/svc_simple.c: Likewise.
9333 * sumrpc/svcauth_des.c: Likewise.
9334
9335 2018-06-26 Florian Weimer <fweimer@redhat.com>
9336
9337 * libio/Makefile (tests-internal): Add tst-vtables,
9338 tst-vtables-interposed.
9339 * libio/tst-vtables.c: New file.
9340 * libio/tst-vtables-common.c: Likewise.
9341 * libio/tst-vtables-interposed.c: Likewise.
9342
9343 2018-06-26 Florian Weimer <fweimer@redhat.com>
9344
9345 * support/support_test_main.c (support_test_main): Only call
9346 setvbuf if not disables.
9347 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9348 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9349
9350 2018-06-26 Florian Weimer <fweimer@redhat.com>
9351
9352 [BZ #23313]
9353 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9354
9355 2018-06-25 Florian Weimer <fweimer@redhat.com>
9356
9357 [BZ #18023]
9358 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9359 Use struct scratch_buffer instead of extend_alloca.
9360
9361 2018-06-25 Florian Weimer <fweimer@redhat.com>
9362
9363 [BZ #18023]
9364 * nss/getent.c (initgroups_keys): Use dynarray instead of
9365 extend_alloca.
9366
9367 2018-06-25 Florian Weimer <fweimer@redhat.com>
9368
9369 [BZ #18023]
9370 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9371 Use struct scratch_buffer instead of extend_alloca.
9372
9373 2018-06-25 Florian Weimer <fweimer@redhat.com>
9374
9375 [BZ #18023]
9376 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9377 back to malloc directly, without stack allocations.
9378
9379 2018-06-25 Florian Weimer <fweimer@redhat.com>
9380
9381 [BZ #18023]
9382 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9383 of extend_alloca.
9384
9385 2018-06-25 Florian Weimer <fweimer@redhat.com>
9386
9387 [BZ #18023]
9388 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9389 of extend_alloca.
9390 * nscd/hstcache.c (addhstbyX): Likewise.
9391 * nscd/pwdcache.c (addpwbyX): Likewise.
9392 * nscd/servicescache.c (addservbyX): Likewise.
9393
9394 2018-06-25 Florian Weimer <fweimer@redhat.com>
9395
9396 [BZ #18023]
9397 * nscd/connections.c (read_cmdline): New function.
9398 (restart): Use it. Update comment.
9399
9400 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9401
9402 [BZ #23140]
9403 * localedata/locales/csb_PL (mon): Rename to...
9404 (alt_mon): This.
9405 (abmon): Rename to...
9406 (ab_alt_mon): This.
9407 (mon): Add with proper genitive forms, copy from Wikipedia.
9408 (abmon): Likewise.
9409
9410 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9411
9412 [BZ #19485]
9413 * localedata/locales/csb_PL (mon): Fix typos:
9414 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9415 (yesstr): Add, value is "jo".
9416 (nostr): Add, value is "nié".
9417
9418 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9419
9420 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9421 all log1p and significand functions on m680x0.
9422 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9423 of s_significand.c..
9424 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9425 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9426 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9427 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9428 s_log1p.c and include it..
9429
9430 2018-06-21 Vincent Chen <vincentc@andestech.com>
9431
9432 * elf/elf.h (R_NDS32_NONE): New define.
9433 (R_NDS32_32_RELA): Likewise.
9434 (R_NDS32_COPY): Likewise.
9435 (R_NDS32_GLOB_DAT): Likewise.
9436 (R_NDS32_JUMP_SLOT): Likewise.
9437 (R_NDS32_RELATIVE): Likewise.
9438 (R_NDS32_TLS_TPOFF): Likewise.
9439 (R_NDS32_TLS_DESC): Likewise.
9440
9441 2018-06-21 Mark Wielaard <mark@klomp.org>
9442
9443 * elf/elf.h (R_BPF_MAP_FD): Removed.
9444 (R_BPF_64_64, R_BPF_64_32): New.
9445
9446 2018-06-21 Florian Weimer <fweimer@redhat.com>
9447
9448 [BZ #23253]
9449 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9450 Renamed from libc_feholdsetround_ctx.
9451 (default_libc_feresetround_ctx): Renamed from
9452 libc_feresetround_ctx.
9453 (default_libc_feholdsetround_noex_ctx): Renamed from
9454 libc_feholdsetround_noex_ctx.
9455 (default_libc_feresetround_noex_ctx): Renamed from
9456 libc_feresetround_noex_ctx.
9457 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9458 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9459 forwardning to the old implementations under the new names.
9460 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9461 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9462 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9463 (libc_feresetround_ctx): Forward to default implements for i386
9464 and MATH_SET_BOTH_ROUNDING_MODES.
9465 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9466 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9467
9468 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9469
9470 * string/tst-cmp.c: Include <libc-diag.h>.
9471 (strncmp_max): Disable -Wstringop-overflow= around call to
9472 strncmp.
9473 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9474 strncasecmp.
9475
9476 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9477 (main): Disable -Wunused-value around call to strpbrk.
9478 * string/bug-strspn1.c: Include <libc-diag.h>.
9479 (main): Disable -Wunused-value around call to strspn.
9480
9481 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9482 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9483
9484 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9485 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9486
9487 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9488
9489 * math/Makefile (libm-calls): Move s_significandF to...
9490 (gen-libm-calls): ... here.
9491 * math/s_significand_template.c: New file.
9492 * math/s_significand.c: Removed.
9493 * math/s_significandf.c: Removed.
9494 * math/s_significandl.c: Removed.
9495 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9496 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9497
9498 * math/e_exp2_template.c (declare_mgen_finite_alias,
9499 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9500 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9501 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9502
9503 2018-06-20 Florian Weimer <fweimer@redhat.com>
9504
9505 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9506
9507 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9508
9509 [BZ #23280]
9510 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9511 floating-point number to strtod functions rather than possibly
9512 negating result of those functions.
9513 * stdio-common/tst-scanf-round.c: New file.
9514 * stdio-common/Makefile (tests): Add tst-scanf-round.
9515 ($(objpfx)tst-scanf-round): Depend on $(libm).
9516
9517 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9518
9519 * sysdeps/mach/hurd/localplt.data: Move to...
9520 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9521 R_386_GLOB_DAT like on Linux i386.
9522
9523 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9524
9525 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9526 (SHM_STAT_ANY): New macro.
9527 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9528 (SHM_STAT_ANY): Likewise.
9529 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9530 (SHM_STAT_ANY): Likewise.
9531 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9532 (SHM_STAT_ANY): Likewise.
9533 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9534 (SHM_STAT_ANY): Likewise.
9535 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9536 (SHM_STAT_ANY): Likewise.
9537 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9538 (SHM_STAT_ANY): Likewise.
9539 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9540 (SHM_STAT_ANY): Likewise.
9541 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9542 (SHM_STAT_ANY): Likewise.
9543 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9544 (SHM_STAT_ANY): Likewise.
9545 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9546 (SHM_STAT_ANY): Likewise.
9547 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9548 (SHM_STAT_ANY): Likewise.
9549
9550 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9551 (SEM_STAT_ANY): New macro.
9552 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9553 (SEM_STAT_ANY): Likewise.
9554 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9555 (SEM_STAT_ANY): Likewise.
9556 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9557 (SEM_STAT_ANY): Likewise.
9558 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9559 (SEM_STAT_ANY): Likewise.
9560 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9561 (SEM_STAT_ANY): Likewise.
9562 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9563 (SEM_STAT_ANY): Likewise.
9564 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9565 (SEM_STAT_ANY): Likewise.
9566 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9567 (SEM_STAT_ANY): Likewise.
9568 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9569 (SEM_STAT_ANY): Likewise.
9570
9571 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9572 (MSG_STAT_ANY): New macro.
9573 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9574 (MSG_STAT_ANY): Likewise.
9575 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9576 (MSG_STAT_ANY): Likewise.
9577 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9578 (MSG_STAT_ANY): Likewise.
9579 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9580 (MSG_STAT_ANY): Likewise.
9581 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9582 (MSG_STAT_ANY): Likewise.
9583 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9584 (MSG_STAT_ANY): Likewise.
9585 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9586 (MSG_STAT_ANY): Likewise.
9587 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9588 (MSG_STAT_ANY): Likewise.
9589 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9590 (MSG_STAT_ANY): Likewise.
9591
9592 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9593 (MAP_TYPE): Change value to 0x2b.
9594
9595 2018-06-18 Florian Weimer <fweimer@redhat.com>
9596
9597 [BZ #15722]
9598 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9599 socket with SOCK_CLOEXEC.
9600
9601 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9602
9603 [BZ #23303]
9604 * sysdeps/powerpc/powerpc64/le/Makefile
9605 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9606 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9607 (gnulib-tests): Also add $(f128-loader-link) for
9608 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9609
9610 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9611
9612 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9613 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9614 of sendfile.
9615 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9616 (sendfile64): New strong alias.
9617 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9618 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9619 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9620 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9621 attribute.
9622 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9623 ___pthread_get_cleanup_stack.
9624 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9625 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9626 * mach/shortcut.awk: Make syscall stubs include
9627 <mach-shortcuts-hidden.h> and add hidden definition.
9628 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9629 (__mach_msg): Add hidden prototype.
9630 * mach/msg.c: Include <mach.h>.
9631 (__mach_msg): Add hidden definition.
9632 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9633 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9634 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9635 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9636 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9637 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9638 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9639 prototype and definition.
9640 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9641 hidden target for _hurd_self_sigstate.
9642
9643 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9644
9645 [BZ #23007]
9646 * stdlib/tst-strtod-nan-sign-main.c: New file.
9647 * stdlib/tst-strtod-nan-sign.c: Likewise.
9648 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
9649 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
9650 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
9651 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
9652 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
9653
9654 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
9655
9656 [BZ #23007]
9657 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
9658 appropriate sign.
9659
9660 2018-06-14 Florian Weimer <fweimer@redhat.com>
9661
9662 [BZ #23290]
9663 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
9664 that the result stays within the ISO-8859-1 range.
9665 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
9666 characters are defined in IBM273.
9667
9668 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9669
9670 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
9671 __mach_task_self): Remove attribute_hidden.
9672
9673 2018-06-14 Joseph Myers <joseph@codesourcery.com>
9674
9675 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
9676 ignore -Wrestrict for one test.
9677
9678 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
9679 Szabolcs Nagy <szabolcs.nagy@arm.com>
9680
9681 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
9682
9683 2018-06-14 Florian Weimer <fweimer@redhat.com>
9684
9685 * scripts/update-abilist.sh: Accept empty list of files to patch.
9686
9687 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
9688
9689 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
9690 test-xfail-check-abi-libmachuser): Add.
9691 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
9692 __libc_read and __libc_write to __read and __write.
9693 * sysdeps/hurd/include/hurd/port.h: New file.
9694 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
9695 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
9696 __thread_switch, __evc_wait): Move declarations to...
9697 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
9698 attribute_hidden.
9699 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
9700 use PLT to call _hurd_self_sigstate.
9701
9702 2018-06-13 Joseph Myers <joseph@codesourcery.com>
9703
9704 [BZ #23279]
9705 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
9706 MAX_EXP as overflowing.
9707 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
9708 overflow flag.
9709 (round_str): Output also whether result overflows in each rounding
9710 mode.
9711 * stdlib/tst-strtod-round-data: Add more tests.
9712 * stdlib/tst-strtod-round-data.h: Regenerated.
9713 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
9714 (TEST): Handle extra arguments for overflow flags.
9715 (struct test_overflow): New type.
9716 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
9717 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
9718 (test_in_one_mode): Take argument with overflow information.
9719 (do_test): Update calls to test_in_one_mode.
9720
9721 2018-06-12 Carlos O'Donell <carlos@redhat.com>
9722
9723 * elf/dl-load (_dl_dst_substitute): Correct comment.
9724 (_dl_dst_count): Likewise.
9725
9726 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
9727 lll_futex_timed_wait.
9728
9729 2018-06-12 Joseph Myers <joseph@codesourcery.com>
9730
9731 [BZ #23277]
9732 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
9733 attribute.
9734 * math/test-nan-const.c: New file.
9735 * math/Makefile (tests): Add test-nan-const.
9736 (CFLAGS-test-nan-const.c): New variable.
9737
9738 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
9739
9740 * benchtests/scripts/compare_strings.py (process_results): Add
9741 funcs argument. Compare only functions which are selected.
9742 (main): Check if base function is among selected functions.
9743 Pass selected functions to process_results.
9744 (__main__): Add -f/--functions argument.
9745
9746 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
9747 Hongbo Zhang <hongbo.zhang@linaro.org>
9748
9749 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
9750 __memcpy_falkor for phecda core.
9751 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
9752 __memmove_falkor for phecda core.
9753 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
9754 __memset_falkor for phecda core.
9755 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
9756 for phecda core.
9757 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
9758 macro to identify phecda core.
9759
9760 2018-06-12 Carlos O'Donell <carlos@redhat.com>
9761 Andreas Schwab <schwab@suse.de>
9762 Dmitry V. Levin <ldv@altlinux.org>
9763 Florian Weimer <fweimer@redhat.com>
9764
9765 [BZ #23102]
9766 [BZ #21942]
9767 [BZ #18018]
9768 [BZ #23259]
9769 CVE-2011-0536
9770 * elf/dl-dst.h: Remove DL_DST_COUNT.
9771 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
9772 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
9773 (is_dst): Comment. Support ELF gABI.
9774 (_dl_dst_count): Comment. Simplify and count DSTs.
9775 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
9776 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
9777 locals.
9778
9779 2018-06-12 Zack Weinberg <zackw@panix.com>
9780
9781 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
9782 * sysdeps/unix/sysv/linux/dl-sysdep.c
9783 Include not-cancel.h. Use __close_nocancel instead of __close,
9784 __open64_nocancel instead of __open, __read_nocancel instead of
9785 __libc_read, and __write_nocancel instead of __libc_write.
9786
9787 * csu/check_fds.c (check_one_fd)
9788 * sysdeps/posix/fdopendir.c (__fdopendir)
9789 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
9790 instead of __fcntl and/or __libc_fcntl.
9791
9792 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
9793 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
9794 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
9795 Use __open64_nocancel instead of __open_nocancel.
9796
9797 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
9798 hidden_proto declarations to the end and issue them if either
9799 IS_IN(libc) or IS_IN(rtld).
9800 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9801 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
9802 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
9803 read_nocancel, waitpid_nocancel, write_nocancel.
9804
9805 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
9806 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
9807 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
9808
9809 * nptl/pt-fcntl.c: New file.
9810 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
9811 (libpthread-routines): Add pt-fcntl.
9812 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
9813 (__libc_fcntl): Remove attribute_hidden.
9814 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
9815 __fcntl_nocancel_adjusted, not fcntl_common.
9816 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
9817 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
9818 to fcntl_nocancel.c.
9819 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
9820 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
9821 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9822 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
9823
9824 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
9825 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
9826 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
9827 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
9828 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
9829 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
9830 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
9831 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
9832 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
9833 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
9834 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
9835 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
9836 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
9837 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
9838 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
9839 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
9840 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
9841 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
9842 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
9843 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
9844
9845 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
9846 libpthread-routines.
9847 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
9848 defines nothing.
9849
9850 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
9851 __libc_read, and __write instead of __libc_write. Define
9852 __open64 in addition to __open.
9853
9854 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
9855
9856 [BZ #23250]
9857 [BZ #10686]
9858 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
9859 to _private_tm[3] and add __glibc_reserved2.
9860 Add _Static_assert of offset of __private_ss == 0x30.
9861 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
9862 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
9863
9864 2018-06-12 Florian Weimer <fweimer@redhat.com>
9865
9866 x86: Make strncmp usable from rtld.
9867 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
9868 __strncmp_ia32 if in libc (and not in rtld).
9869 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
9870 strncmp if not in libc (and not to __strncmp_sse2).
9871
9872 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
9873
9874 [BZ #23140]
9875 * localedata/locales/gd_GB (mon): Rename to...
9876 (alt_mon): This.
9877 (mon): Import from CLDR (genitive case).
9878 * localedata/locales/hsb_DE (mon): Rename to...
9879 (alt_mon): This.
9880 (mon): Import from CLDR (genitive case).
9881 * localedata/locales/wa_BE (mon): Rename to...
9882 (alt_mon): This.
9883 (mon): Add, fill with the proper genitive forms, but CLDR data
9884 is incomplete; completed according to the comments in this file.
9885 (d_t_fmt): Do not use "di" before the month name, no longer needed.
9886
9887 * localedata/locales/wa_BE (country_name): Reword
9888 "Beljike" -> "Beldjike".
9889
9890 2018-06-11 Joseph Myers <joseph@codesourcery.com>
9891
9892 [BZ #23272]
9893 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
9894 cases of non-finite arguments.
9895 * math/libm-test-fma.inc (fma_test_data): Add more tests.
9896
9897 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
9898
9899 [BZ #23174]
9900 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
9901
9902 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9903
9904 [BZ #23264]
9905 * include/unistd.h (__execvpex): New prototype.
9906 * posix/Makefile (tests): Add tst-spawn4.
9907 (tests-internal): Add tst-spawn4-compat.
9908 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
9909 * posix/tst-spawn4-compat.c: New file.
9910 * posix/tst-spawn4.c: Likewise.
9911 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
9912 binaries as shell scripts.
9913 * sysdeps/posix/spawni.c (__spawni): Likewise.
9914
9915 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
9916
9917 [BZ #23145]
9918 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
9919 ($(all-built-dso:=.dynsym): New target.
9920 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
9921 ($(objpfx)check-initfini.out): New target.
9922 (generated): Add check-initfini.out.
9923 * scripts/check-initfini.awk: New file.
9924 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
9925 (_fini): Likewise.
9926 * sysdeps/alpha/crti.S (_init): Mark as hidden.
9927 (_fini): Likewise.
9928 * sysdeps/arm/crti.S (_init): Mark as hidden.
9929 (_fini): Likewise.
9930 * sysdeps/hppa/crti.S (_init): Mark as hidden.
9931 (_fini): Likewise.
9932 * sysdeps/i386/crti.S (_init): Mark as hidden.
9933 (_fini): Likewise.
9934 * sysdeps/ia64/crti.S (_init): Mark as hidden.
9935 (_fini): Likewise.
9936 * sysdeps/m68k/crti.S (_init): Mark as hidden.
9937 (_fini): Likewise.
9938 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
9939 (_fini): Likewise.
9940 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
9941 (_fini): Likewise.
9942 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
9943 (_fini): Likewise.
9944 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
9945 (_fini): Likewise.
9946 * sysdeps/nios2/crti.S (_init): Mark as hidden.
9947 (_fini): Likewise.
9948 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
9949 (_fini): Likewise.
9950 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
9951 (_fini): Likewise.
9952 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
9953 (_fini): Likewise.
9954 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
9955 (_fini): Likewise.
9956 * sysdeps/sh/crti.S (_init): Mark as hidden.
9957 (_fini): Likewise.
9958 * sysdeps/sparc/crti.S (_init): Mark as hidden.
9959 (_fini): Likewise.
9960 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
9961 (_fini): Likewise.
9962
9963 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9964
9965 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
9966 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
9967 and TF redirection to KFtype and KF only when the default
9968 long double type is not the IEEE 128-bit floating point type.
9969
9970 2018-06-05 Joseph Myers <joseph@codesourcery.com>
9971
9972 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
9973 macro.
9974 (HWCAP_USCAT): Likewise.
9975 (HWCAP_ILRCPC): Likewise.
9976 (HWCAP_FLAGM): Likewise.
9977 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
9978 Increase to 28.
9979 (_dl_aarch64_cap_flags): Add new flag names.
9980
9981 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
9982 (MAP_FIXED_NOREPLACE): New macro.
9983 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
9984 (MAP_FIXED_NOREPLACE): Likewise.
9985 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
9986 (MAP_FIXED_NOREPLACE): Likewise.
9987 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9988 (MAP_FIXED_NOREPLACE): Likewise.
9989 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
9990 (MAP_FIXED_NOREPLACE): Likewise.
9991 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
9992 (MAP_FIXED_NOREPLACE): Likewise.
9993 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
9994 (MAP_FIXED_NOREPLACE): Likewise.
9995 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
9996 (MAP_FIXED_NOREPLACE): Likewise.
9997 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
9998 (MAP_FIXED_NOREPLACE): Likewise.
9999 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10000 (MAP_FIXED_NOREPLACE): Likewise.
10001 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10002 (MAP_FIXED_NOREPLACE): Likewise.
10003 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10004 (MAP_FIXED_NOREPLACE): Likewise.
10005 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10006 (MAP_FIXED_NOREPLACE): Likewise.
10007 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10008 (MAP_FIXED_NOREPLACE): Likewise.
10009 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10010 (MAP_FIXED_NOREPLACE): Likewise.
10011
10012 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10013 version to 4.17.
10014
10015 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10016
10017 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10018 version to 4.17
10019
10020 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10021
10022 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10023 int.
10024 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10025
10026 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10027
10028 * benchtests/scripts/compare_string.py: (process_results) Catch
10029 exception in non-existent base_func and catch exception in
10030 non-existent attribute.
10031 (parse_file) Catch exception if input file does not exist.
10032
10033 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10034
10035 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10036 options to avoid diff calculation and omit header, respectively.
10037 (main): process --no-diff and --no-header
10038
10039 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10040 H.J. Lu <hongjiu.lu@intel.com>
10041
10042 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10043 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10044 wcsncmp-sse2.
10045 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10046 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10047 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10048 and __wcsncmp_sse2.
10049 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10050 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10051 AVX unaligned load is fast and vzeroupper is preferred.
10052 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10053 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10054 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10055 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10056 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10057 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10058 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10059 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10060 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10061 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10062 is undefined.
10063
10064 2018-06-01 Florian Weimer <fweimer@redhat.com>
10065
10066 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10067 configuring with --disable-multi-arch, building with
10068 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10069 Haswell-era CPU.
10070
10071 2018-06-01 Florian Weimer <fweimer@redhat.com>
10072
10073 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10074 results from building with “-march=x86-64 -mtune=generic
10075 -mfpmath=sse” and running on a Haswell-era CPU.
10076
10077 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10078
10079 [BZ #18473]
10080 * soft-fp/sqrttf2.c: Remove file.
10081 * soft-fp/sqrtdf2.c: Move to ....
10082 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10083 <shlib-compat.h>.
10084 (__sqrtdf2): Make conditional on
10085 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10086 symbol.
10087 * soft-fp/sqrtsf2.c: Move to ....
10088 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10089 <shlib-compat.h>.
10090 (__sqrtsf2): Make conditional on
10091 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10092 symbol.
10093 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10094 (gcc-double-routines): Remove sqrtdf2.
10095 (gcc-quad-routines): Remove sqrttf2.
10096 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10097 Do not filter out sqrtsf2 and sqrtdf2.
10098 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10099 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10100
10101 2018-06-01 Florian Weimer <fweimer@redhat.com>
10102
10103 * sysdeps/generic/libcidn.abilist: Remove file.
10104
10105 2018-06-01 Florian Weimer <fweimer@redhat.com>
10106
10107 [BZ #23236]
10108 * libio/strfile.h (struct _IO_str_fields): Rename members to
10109 discourage their use and add comment.
10110 (_IO_STR_DYNAMIC): Remove unused macro.
10111 * libio/strops.c (_IO_str_init_static_internal): Do not use
10112 callback pointers. Call malloc and free.
10113 (_IO_str_overflow): Do not use callback pointers. Call malloc
10114 and free.
10115 (enlarge_userbuf): Likewise.
10116 (_IO_str_finish): Call free.
10117 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10118 _allocate_buffer_unused.
10119 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10120 and free.
10121 (enlarge_userbuf): Likewise.
10122 (_IO_wstr_finish): Call free.
10123 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10124 _allocate_buffer_unused, _free_buffer_unused.
10125 * libio/memstream.c (__open_memstream): Likewise.
10126 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10127 * libio/wmemstream.c (open_wmemstream): Likewise.
10128
10129 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10130
10131 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10132 AMD Ryzen 7 1800X.
10133
10134 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10135
10136 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10137 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10138 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10139 New file.
10140 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10141 Likewise.
10142 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10143
10144 2018-05-29 Florian Weimer <fweimer@redhat.com>
10145
10146 * support/Makefile (libsupport-routines): Add
10147 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10148 xpthread_barrierattr_setpshared.
10149 * support/xpthread_barrierattr_destroy.c: New file.
10150 * support/xpthread_barrierattr_init.c: Likewise.
10151 * support/xpthread_barrierattr_setpshared.c: Likewise.
10152
10153 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10154
10155 [BZ #23206]
10156 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10157 _r_debug and update DT_DEBUG for debugger.
10158
10159 2018-05-29 Florian Weimer <fweimer@redhat.com>
10160
10161 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10162 (tst-strtod5i.out): Likewise.
10163
10164 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10165
10166 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10167 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10168 (sparc64-quad-routines): New variable. Moved from ....
10169 [$(subdir) = soft-fp] (sysdep_routines): Add
10170 $(sparc64-quad-routines). Moved from ....
10171 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10172 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10173 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10174 moved from ....
10175 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10176 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10177 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10178 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10179 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10180 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10181 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10182 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10183 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10184 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10185 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10186 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10187 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10188 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10189 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10190 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10191 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10192 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10193 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10194 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10195 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10196 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10197 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10198 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10199 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10200 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10201 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10202 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10203 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10204 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10205 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10206 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10207 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10208 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10209 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10210 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10211 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10212 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10213 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10214 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10215 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10216 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10217 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10218 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10219 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10220 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10221 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10222 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10223 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10224 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10225 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10226 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10227 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10228 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10229 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10230 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10231 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10232 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10233
10234 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10235 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10236 (sparc32-quad-routines): New variable. Moved from ....
10237 [$(subdir) = soft-fp] (sysdep_routines): Add
10238 $(sparc32-quad-routines). Moved from ....
10239 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10240 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10241 moved from ....
10242 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10243 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10244 * sysdeps/sparc/sparc32/q_add.c: ... here.
10245 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10246 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10247 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10248 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10249 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10250 * sysdeps/sparc/sparc32/q_div.c: ... here.
10251 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10252 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10253 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10254 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10255 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10256 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10257 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10258 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10259 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10260 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10261 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10262 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10263 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10264 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10265 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10266 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10267 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10268 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10269 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10270 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10271 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10272 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10273 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10274 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10275 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10276 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10277 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10278 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10279 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10280 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10281 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10282 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10283 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10284 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10285 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10286 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10287 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10288 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10289 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10290 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10291 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10292 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10293 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10294 * sysdeps/sparc/sparc32/q_util.c: ... here.
10295 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10296 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10297 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10298 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10299
10300 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10301 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10302
10303 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10304 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10305 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10306 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10307
10308 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10309
10310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10311 powerpc/soft-fp.
10312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10313 Likewise.
10314 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10315 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10316
10317 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10318
10319 [BZ #23171]
10320 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10321 double version.
10322
10323 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10324
10325 * sysdeps/sh/Implies: Remove sh/soft-fp.
10326 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10327 * sysdeps/sh/sfp-machine.h: ... here.
10328
10329 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10330
10331 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10332 (__mempcpy_erms): Skip zero length.
10333 (__memmove_erms): Likewise.
10334 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10335 (__memset_erms): Likewise.
10336
10337 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10338
10339 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10340 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10341 Add functions moved from ....
10342 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10343 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10344 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10345 from ....
10346 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10347 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10348 * sysdeps/alpha/e_sqrtl.c: ... here.
10349 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10350 * sysdeps/alpha/local-soft-fp.h: ... here.
10351 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10352 * sysdeps/alpha/ots_add.c: ... here.
10353 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10354 * sysdeps/alpha/ots_cmp.c: ... here.
10355 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10356 * sysdeps/alpha/ots_cmpe.c: ... here.
10357 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10358 * sysdeps/alpha/ots_cvtqux.c: ... here.
10359 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10360 * sysdeps/alpha/ots_cvtqx.c: ... here.
10361 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10362 * sysdeps/alpha/ots_cvttx.c: ... here.
10363 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10364 * sysdeps/alpha/ots_cvtxq.c: ... here.
10365 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10366 * sysdeps/alpha/ots_cvtxt.c: ... here.
10367 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10368 * sysdeps/alpha/ots_div.c: ... here.
10369 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10370 * sysdeps/alpha/ots_mul.c: ... here.
10371 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10372 * sysdeps/alpha/ots_nintxq.c: ... here.
10373 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10374 * sysdeps/alpha/ots_sub.c: ... here.
10375 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10376 * sysdeps/alpha/sfp-machine.h: ... here.
10377
10378 2018-05-23 Florian Weimer <fweimer@redhat.com>
10379
10380 [BZ #19728]
10381 [BZ #19729]
10382 [BZ #22247]
10383 CVE-2016-6261
10384 CVE-2016-6263
10385 CVE-2017-14062
10386 Switch to extern IDNA implementation (libidn2).
10387 * libidn: Remove subdirectory.
10388 * LICENSES: Do not mention licensing conditions for the removed
10389 libidn code.
10390 * config.h.in (HAVE_LIBIDN): Remove.
10391 * include/dlfcn.h (__libc_dlopen): Update comment.
10392 * include/idna.h: Remove file.
10393 * inet/Makefile (routines): Add idna.
10394 (tests-static, tests-internal): Add tst-idna_name_classify.
10395 (LOCALES): Generate locales for tests.
10396 (tst-idna_name_classify.out): Depend on generated locales.
10397 * inet/idna_name_classify.c: New file.
10398 * inet/tst-idna_name_classify.c: Likewise.
10399 * inet/net-internal.h (__idna_to_dns_encoding)
10400 (__idna_from_dns_encoding): Declare.
10401 * inet/net-internal.h (enum idna_name_classification): Define.
10402 (__idna_name_classify): Declare.
10403 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10404 __idna_from_dns_encoding.
10405 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10406 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10407 name as a fallback in case of encoding errors.
10408 (getnameinfo): Use DEPRECATED_NI_IDN.
10409 * inet/idna.c: New file.
10410 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10411 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10412 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10413 (modules-names): Add tst-no-libidn2.
10414 (extra-test-objs): Add tst-no-libidn2.os.
10415 (LDFLAGS-tst-no-libidn2.so): Set soname.
10416 (LOCALES): Set, and generate locales.
10417 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10418 (tst-resolv-ai_idn-latin1): Likewise.
10419 (tst-resolv-ai_idn-nolibidn2): Likewise.
10420 (tst-resolv-ai_idn.out): Depend on locales.
10421 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10422 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10423 tst-no-libidn2.so.
10424 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10425 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10426 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10427 * resolv/tst-resolv-ai_idn.c: New file.
10428 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10429 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10430 * resolv/tst-no-libidn2.c: Likewise.
10431 * support/support_format_addrinfo.c (format_ai_flags): Do not
10432 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10433 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10434 (gaih_inet): Call __idna_to_dns_encoding and
10435 __idna_from_dns_encoding, and use the original (punycode) name if
10436 __idna_from_dns_encoding fails due to an encoding error.
10437 (getaddrinfo): Use DEPRECATED_AI_IDN.
10438 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10439 * sysdeps/unix/inet/configure: Remove file.
10440 * sysdeps/unix/inet/configure.ac: Likewise.
10441
10442 2018-05-23 Florian Weimer <fweimer@redhat.com>
10443
10444 Implement allocate_once.
10445 * include/allocate_once.h: New file.
10446 * misc/allocate_once.c: Likewise.
10447 * misc/tst-allocate_once.c: Likewise.
10448 * misc/Makefile (routines): Add allocate_once.
10449 (tests-internal): Add tst-allocate_once.
10450 (generated): Add tst-allocate_once.mtrace,
10451 tst-allocate_once-mem.out.
10452 (tests-special): Add tst-allocate_once-mem.out.
10453 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10454 (tst-allocate_once-mem.out): Call mtrace.
10455 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10456
10457 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10458
10459 [BZ #23196]
10460 * string/test-memcpy.c (do_test1): New function.
10461 (test_main): Call it.
10462
10463 2018-05-23 Andreas Schwab <schwab@suse.de>
10464
10465 [BZ #23196]
10466 CVE-2018-11237
10467 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10468 (L(preloop_large)): Save initial destination pointer in %r11 and
10469 use it instead of %rax after the loop.
10470 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10471
10472 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10473
10474 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10475 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10476 -I../soft-fp. Moved from ....
10477 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10478 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10479 * sysdeps/aarch64/e_sqrtl.c: ... here.
10480 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10481 * sysdeps/aarch64/sfp-machine.h: ... here.
10482
10483 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10484 -Wmaybe-uninitialized around access to fq[0].
10485 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10486 Likewise.
10487
10488 [BZ #18471]
10489 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10490 aliases for non-libc case of versioned symbols.
10491 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10492 (llseek): Define as compat symbol if
10493 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10494 with link warning.
10495 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10496 Make into a compat symbol, disabled for minimum symbol version
10497 GLIBC_2.28 and later.
10498 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10499
10500 2018-05-22 Florian Weimer <fweimer@redhat.com>
10501
10502 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10503 not add -mpreferred-stack-boundary=4.
10504 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10505 (stack-align-test-flags): Likewise.
10506 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10507 Likewise.
10508 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10509 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10510 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10511 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10512 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10513 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10514 (CFLAGS-tst-align2.c): Likewise.
10515
10516 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10517
10518 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10519 (index_arch_Prefer_FSRM): Likewise.
10520 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10521 Also check Prefer_FSRM.
10522 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10523 Also return OPTIMIZE (erms) for Prefer_FSRM.
10524
10525 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10526
10527 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10528 (index_cpu_FSRM): Likewise.
10529 (reg_FSRM): Likewise.
10530
10531 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10532
10533 * math/gen-tgmath-tests.py: Import sys.
10534 (Tests.__init__): Initialize macros_seen.
10535 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10536 if requested to do so for this macro.
10537 (Tests.add_all_tests): Take argument for macro for which to
10538 generate tests.
10539 (Tests.check_macro_list): New function.
10540 (main): Handle check-list argument and argument specifying macro
10541 for which to generate tests.
10542 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10543 [PYTHON] (tgmath3-macro-tests): Likewise.
10544 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10545 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10546 not test-tgmath3.c.
10547 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10548 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10549 to CFLAGS.
10550 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10551 [PYTHON] ($(foreach
10552 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10553 rule.
10554 [PYTHON] (tests-special): Add
10555 $(objpfx)test-tgmath3-macro-list.out.
10556 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10557
10558 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10559 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10560 later.
10561
10562 [BZ #22639]
10563 * time/tzset.c (SECSPERDAY): Cast to time_t.
10564 * time/tst-y2039.c: New file.
10565 * time/Makefile (tests): Add tst-y2039.
10566
10567 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10568
10569 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10570 (PREFETCH_ONE_SET): Remove duplicate line.
10571
10572 2018-05-17 Florian Weimer <fweimer@redhat.com>
10573
10574 * sysdeps/generic/math-type-macros-double.h: Include
10575 <math-nan-payload-double.h> after <libm-alias-double.h>.
10576 * sysdeps/generic/math-type-macros-float.h: Include
10577 <math-nan-payload-float.h> after <libm-alias-float.h>.
10578 * sysdeps/generic/math-type-macros-float128.h: Include
10579 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10580 * sysdeps/generic/math-type-macros-ldouble.h: Include
10581 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10582
10583 2018-05-17 Andreas Schwab <schwab@suse.de>
10584
10585 * resolv/res_send.c (__res_context_send): Don't set errno when
10586 returing error after malloc failure.
10587
10588 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10589
10590 * nptl/allocatestack.c (allocate_stack): Remove the
10591 !__ASSUME_PRIVATE_FUTEX paths.
10592 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10593 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10594 Likewise.
10595 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10596 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10597 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10598 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10599 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10600 !__ASSUME_PRIVATE_FUTEX path.
10601 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10602 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10603 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10604 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10605 !__ASSUME_PRIVATE_FUTEX macros.
10606 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10607 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10608 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10609 * sysdeps/unix/sysv/linux/kernel-features.h
10610 (__ASSUME_PRIVATE_FUTEX): Removed.
10611
10612 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10613
10614 * math/Makefile (libm-narrow-fns): Add div.
10615 (libm-test-funcs-narrow): Likewise.
10616 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10617 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10618 * math/gen-auto-libm-tests.c (test_functions): Add div.
10619 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10620 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10621 (NARROW_DIV_TRIVIAL): Likewise.
10622 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10623 macro.
10624 (__ddivl): Likewise.
10625 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10626 ddiv.
10627 (CFLAGS-nldbl-ddiv.c): New variable.
10628 (CFLAGS-nldbl-fdiv.c): Likewise.
10629 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10630 __nldbl_ddivl.
10631 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10632 prototype.
10633 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10634 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10635 * math/auto-libm-test-in: Add tests of div.
10636 * math/auto-libm-test-out-narrow-div: New generated file.
10637 * math/libm-test-narrow-div.inc: New file.
10638 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10639 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10640 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10641 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10642 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10643 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10644 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10645 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
10646 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
10647 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
10648 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
10649 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
10650 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
10651 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
10652 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
10653 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
10654 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
10655 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
10656 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10657 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10658 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10659 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10660 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10661 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10662 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10663 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10664 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10665 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10666 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10667 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10668 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10669 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10672 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10674 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10675 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10676 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10677 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10678 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10679 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10680 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10681 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10682
10683 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10684
10685 [BZ #23178]
10686 * nscd/nscd-client.h (sendfileall): Remove prototype.
10687 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
10688 (handle_request): Use writeall instead of sendfileall.
10689 * nscd/aicache.c (addhstaiX): Likewise.
10690 * nscd/grpcache.c (cache_addgr): Likewise.
10691 * nscd/hstcache.c (cache_addhst): Likewise.
10692 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10693 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
10694 * nscd/pwdcache.c (cache_addpw): Likewise.
10695 * nscd/servicescache.c (cache_addserv): Likewise.
10696 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
10697 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
10698 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
10699 Remove define.
10700
10701 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
10702
10703 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
10704 Include <string/strncat.c>.
10705 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
10706 alias.
10707 (__GI___strncat): New hidden alias.
10708
10709 2018-05-16 Joseph Myers <joseph@codesourcery.com>
10710
10711 * sysdeps/mips/mips32/libm-test-ulps: Update.
10712 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10713
10714 2018-05-16 Florian Weimer <fweimer@redhat.com>
10715
10716 * support/Makefile (libsupport-routines): Add support_quote_blob,
10717 support_test_compare_blob.
10718 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
10719 * support/check.h (TEST_COMPARE_BLOB): Define.
10720 (support_test_compare_blob): Declare.
10721 * support/support.h (support_quote_blob): Declare.
10722 * support/support_quote_blob.c: New file.
10723 * support/support_test_compare_blob.c: Likewise.
10724 * support/tst-support_quote_blob.c: Likewise.
10725 * support/tst-test_compare_blob.c: Likewise.
10726
10727 2018-05-16 Florian Weimer <fweimer@redhat.com>
10728
10729 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
10730 of <strtod_nan_double.h>.
10731 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
10732 instead of SET_MANTISSA.
10733 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
10734 of include <strtod_nan_float.h>.
10735 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
10736 instead of <strtod_nan_ldouble.h>.
10737 * stdlib/strtod_nan_double.h: Move to ...
10738 * sysdeps/generic/math-nan-payload-double.h: ... here.
10739 (FLOAT): Remove definition.
10740 (SET_MANTISSA): Rename to ...
10741 (SET_NAN_PAYLOAD): ... this.
10742 * stdlib/strtod_nan_float.h: Move to ...
10743 * sysdeps/generic/math-nan-payload-float.h: ... here.
10744 (FLOAT): Remove definition.
10745 (SET_MANTISSA): Rename to ...
10746 (SET_NAN_PAYLOAD): ... this.
10747 * sysdeps/generic/math-type-macros-double.h: Include
10748 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
10749 instead of <math-svid-compat.h>.
10750 * sysdeps/generic/math-type-macros-float.h: Include
10751 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
10752 instead of <math-svid-compat.h>.
10753 * sysdeps/generic/math-type-macros-float128.h: Include
10754 <math-nan-payload-float128.h>.
10755 * sysdeps/generic/math-type-macros-ldouble.h: Include
10756 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
10757 instead of <math-svid-compat.h>.
10758 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
10759 check for definition.
10760 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
10761 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
10762 Include <ieee754_float128.h>.
10763 (FLOAT): Remove definition.
10764 (SET_MANTISSA): Rename to ...
10765 (SET_NAN_PAYLOAD): ... this.
10766 * sysdeps/ieee754/float128/strtof128_nan.c: Include
10767 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
10768 Do not include <float128_private.h>.
10769 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
10770 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
10771 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
10772 (FLOAT): Remove definition.
10773 (SET_MANTISSA): Rename to ...
10774 (SET_NAN_PAYLOAD): ... this.
10775 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
10776 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
10777 (FLOAT): Remove definition.
10778 (SET_MANTISSA): Rename to ...
10779 (SET_NAN_PAYLOAD): ... this.
10780 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
10781 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
10782 (FLOAT): Remove definition.
10783 (SET_MANTISSA): Rename to ...
10784 (SET_NAN_PAYLOAD): ... this.
10785 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
10786 of "../stdlib/strtod_nan_double.h".
10787 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
10788 of "../stdlib/strtod_nan_float.h".
10789 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
10790 instead of "../stdlib/strtod_nan_ldouble.h".
10791 * manual/arith.texi (Parsing of Floats): Adjust comment.
10792
10793 2018-05-16 Joseph Myers <joseph@codesourcery.com>
10794
10795 * math/Makefile (libm-narrow-fns): Add mul.
10796 (libm-test-funcs-narrow): Likewise.
10797 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
10798 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
10799 * math/gen-auto-libm-tests.c (test_functions): Add mul.
10800 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
10801 (NARROW_MUL_ROUND_TO_ODD): Likewise.
10802 (NARROW_MUL_TRIVIAL): Likewise.
10803 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
10804 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
10805 macro.
10806 (__dmull): Likewise.
10807 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
10808 dmul.
10809 (CFLAGS-nldbl-dmul.c): New variable.
10810 (CFLAGS-nldbl-fmul.c): Likewise.
10811 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10812 __nldbl_dmull.
10813 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
10814 prototype.
10815 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
10816 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
10817 * math/auto-libm-test-in: Add tests of mul.
10818 * math/auto-libm-test-out-narrow-mul: New generated file.
10819 * math/libm-test-narrow-mul.inc: New file.
10820 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
10821 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
10822 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
10823 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
10824 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
10825 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
10826 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
10827 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
10828 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
10829 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
10830 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
10831 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
10832 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
10833 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
10834 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
10835 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
10836 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
10837 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
10838 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10839 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10840 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10841 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10842 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10843 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10844 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10845 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10846 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10847 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10848 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10849 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10850 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10851 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10852 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10853 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10856 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10857 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10858 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10859 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10860 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10861 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10862 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10863 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10864
10865 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
10866
10867 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
10868 with *%eax in call.
10869
10870 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
10871
10872 * sysdeps/i386/ldsodefs.h: Removed.
10873 * sysdeps/x86_64/ldsodefs.h: Moved to ...
10874 * sysdeps/x86/ldsodefs.h: This.
10875 (La_i86_regs): New.
10876 (La_i86_retval): Likewise.
10877 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
10878 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
10879
10880 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
10881
10882 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
10883 unnecessary testl.
10884
10885 2018-05-13 Alan Modra <amodra@gmail.com>
10886
10887 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
10888 R_PARISC_TLS_DTPOFF32 reloc addend.
10889
10890 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10891
10892 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
10893 * math/math.h: Restrict the prototype definition for the functions
10894 issignaling(_Float128) and iszero(_Float128); and template
10895 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
10896 __HAVE_FLOAT128_UNLIKE_LDBL.
10897 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
10898 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
10899 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
10900 __f128() constants; define the type _Float128 as long double;
10901 and reuse long double in __CFLOAT128.
10902
10903 2018-05-11 Joseph Myers <joseph@codesourcery.com>
10904
10905 * sysdeps/generic/math_private.h: Do not include
10906 <math-barriers.h>.
10907 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
10908 <math_private.h>.
10909 * math/fromfp.h: Include <math-barriers.h>.
10910 * math/math-narrow.h: Likewise.
10911 * math/s_nextafter.c: Likewise.
10912 * math/s_nexttowardf.c: Likewise.
10913 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
10914 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
10915 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
10916 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
10917 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10918 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10919 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10920 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10921 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10922 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10923 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10924 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10925 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10926 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10927 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
10928 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10929 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10930 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10931 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10932 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10933 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10934 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10935 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10936 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10937 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10938 * sysdeps/ieee754/k_standardl.c: Likewise.
10939 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10940 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10941 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10942 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10943 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10944 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10945 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10946 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10947 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10948 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
10949 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
10950 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10951 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10952 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10953 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10954 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10955 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10956 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10957 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10958 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10959 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
10960 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
10961
10962 2018-05-11 Florian Weimer <fweimer@redhat.com>
10963
10964 Use 64-bit epoch values in the time zone file parser.
10965 * include/time.h (internal_time_t): Define.
10966 (__tzfile_compute): Use it.
10967 * time/tzfile.c (struct leap): Use internal_time_t for epoch
10968 member.
10969 (transitions): Switch to internal_time_t.
10970 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
10971 types.
10972 (__tzfile_compute): Use internal_time_t for timer argument. Check
10973 for truncation before calling __offtime.
10974
10975 2018-05-11 Florian Weimer <fweimer@redhat.com>
10976
10977 [BZ #23166]
10978 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
10979 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
10980 Likewise.
10981 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
10982 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
10983 export without --enable-obsolete-rpc.
10984 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
10985 symbol. This should not have been exported, ever.
10986
10987 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
10988
10989 [BZ #23152]
10990 * localedata/locales/gd_GB (abmon): Fix typo in May:
10991 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
10992
10993 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10994
10995 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10996 Use multiple registers to copy data in loop tail.
10997
10998 * sysdeps/aarch64/multiarch/memmove_falkor.S
10999 (__memmove_falkor): Use multiple registers to move data in
11000 loop tail.
11001
11002 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11003
11004 * math/math-underflow.h: New file.
11005 * sysdeps/generic/math_private.h: Do not include <float.h>.
11006 (fabs_tg): Remove macro. Moved to math-underflow.h.
11007 (min_of_type_f): Likewise.
11008 (min_of_type_): Likewise.
11009 (min_of_type_l): Likewise.
11010 (min_of_type_f128): Likewise.
11011 (min_of_type): Likewise.
11012 (math_check_force_underflow): Likewise.
11013 (math_check_force_underflow_nonneg): Likewise.
11014 (math_check_force_underflow_complex): Likewise.
11015 * math/e_exp2_template.c: Include <math-underflow.h>.
11016 * math/k_casinh_template.c: Likewise.
11017 * math/s_catan_template.c: Likewise.
11018 * math/s_catanh_template.c: Likewise.
11019 * math/s_ccosh_template.c: Likewise.
11020 * math/s_cexp_template.c: Likewise.
11021 * math/s_clog10_template.c: Likewise.
11022 * math/s_clog_template.c: Likewise.
11023 * math/s_csin_template.c: Likewise.
11024 * math/s_csinh_template.c: Likewise.
11025 * math/s_csqrt_template.c: Likewise.
11026 * math/s_ctan_template.c: Likewise.
11027 * math/s_ctanh_template.c: Likewise.
11028 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11029 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11030 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11031 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11032 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11033 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11034 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11035 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11036 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11037 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11038 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11039 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11040 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11041 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11042 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11043 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11044 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11045 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11046 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11047 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11048 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11049 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11050 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11051 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11052 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11053 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11054 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11055 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11056 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11057 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11058 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11059 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11060 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11061 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11062 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11063 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11064 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11065 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11066 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11067 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11068 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11069 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11070 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11071 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11072 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11073 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11074 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11075 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11076 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11077 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11078 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11079 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11080 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11081 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11082 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11083 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11084 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11085 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11086 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11087 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11088 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11089 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11090 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11091 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11092 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11093 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11094 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11095 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11096 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11097 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11098 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11099 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11100 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11101 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11102 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11103 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11104 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11105 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11106 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11107 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11108 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11109 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11110 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11111 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11112
11113 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11114
11115 * sysdeps/generic/math-barriers.h: New file.
11116 * sysdeps/generic/math_private.h [!math_opt_barrier]
11117 (math_opt_barrier): Move to math-barriers.h.
11118 [!math_opt_barrier] (math_force_eval): Likewise.
11119 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11120 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11121 math-barriers.h.
11122 (math_force_eval): Likewise.
11123 * sysdeps/alpha/fpu/math-barriers.h: New file.
11124 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11125 math-barriers.h.
11126 (math_force_eval): Likewise.
11127 * sysdeps/x86/fpu/math-barriers.h: New file.
11128 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11129 math-barriers.h.
11130 (math_force_eval): Likewise.
11131 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11132 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11133 multiple-include guard for rename.
11134 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11135 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11136 math-barriers.h.
11137 (math_force_eval): Likewise.
11138
11139 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11140
11141 [BZ #22786]
11142 CVE-2018-11236
11143 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11144 computation.
11145 * stdlib/Makefile (test-bz22786): New test.
11146 * stdlib/test-bz22786.c: New test.
11147
11148 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11149
11150 * include/math-narrow-eval.h: New file. Contents moved from ....
11151 * sysdeps/generic/math_private.h: ... here.
11152 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11153 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11154 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11155 * stdlib/strtod_l.c: Likewise.
11156 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11157 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11158 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11159 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11160 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11161 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11162 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11163 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11164 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11165 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11166 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11167 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11168 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11169 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11170 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11171 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11172 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11173 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11174 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11175 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11176 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11177 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11178 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11179 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11180 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11181 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11182 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11183 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11184 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11185
11186 2018-05-08 Andreas Schwab <schwab@suse.de>
11187
11188 * sysdeps/nptl/internaltypes.h: Fix comment.
11189
11190 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11191
11192 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11193 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11194 hidden.
11195
11196 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11197
11198 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11199 of I into loop header.
11200 * benchtests/bench-memmove-walk.c
11201 (test_main): Likewise.
11202
11203 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11204
11205 Revert:
11206 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11207 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11208
11209 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11210
11211 [BZ #20419]
11212 * elf/dl-load.c (open_verify): Fix stack overflow.
11213 * elf/Makefile (tst-big-note): New test.
11214 * elf/tst-big-note-lib.S: New.
11215 * elf/tst-big-note.c: New.
11216
11217 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11218
11219 * scripts/abilist.awk: Ignore absolute symbols.
11220 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11221 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11222 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11223 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11224 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11225 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11226 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11227 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11228 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11229 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11230 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11231 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11232 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11233 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11234 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11235 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11236 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11237 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11238 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11239 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11240 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11241 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11242 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11243 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11244 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11245 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11246 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11247 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11248 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11249 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11250 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11251 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11252 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11253 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11254 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11255 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11256 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11257 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11258 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11259 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11260 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11261 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11262 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11263 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11264 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11265 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11266 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11267 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11268 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11269 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11270 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11271 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11272 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11273 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11274 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11275 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11276 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11277 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11278 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11279 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11280 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11281 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11282 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11283 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11284 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11285 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11286 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11287 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11288 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11289 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11290 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11291 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11292 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11293 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11294 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11295 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11296 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11297 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11298 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11299 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11300 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11301 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11302 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11303 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11304 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11305 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11306 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11307 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11308 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11309 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11310 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11311 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11312 Likewise.
11313 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11314 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11315 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11316 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11317 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11318 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11319 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11320 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11321 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11322 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11323 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11324 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11325 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11326 Likewise.
11327 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11328 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11329 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11330 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11331 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11332 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11333 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11334 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11335 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11336 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11337 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11338 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11339 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11340 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11341 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11342 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11343 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11344 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11345 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11346 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11347 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11348 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11349 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11350 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11351 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11352 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11353 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11354 Likewise.
11355 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11356 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11357 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11358 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11359 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11360 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11361 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11362 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11363 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11364 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11365 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11366 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11367 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11368 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11369 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11370 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11371 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11372 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11373 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11374 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11375 Likewise.
11376 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11377 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11378 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11379 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11380 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11381 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11382 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11383 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11384 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11385 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11386 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11387 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11388 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11389 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11390 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11391 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11392 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11393 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11394 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11395 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11396 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11397 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11398 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11399 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11400 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11401 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11402 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11403 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11406 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11408 Likewise.
11409 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11414 Likewise.
11415 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11416 Likewise.
11417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11418 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11419 Likewise.
11420 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11422 Likewise.
11423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11424 Likewise.
11425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11428 Likewise.
11429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11430 Likewise.
11431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11432 Likewise.
11433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11436 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11437 Likewise.
11438 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11440 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11444 Likewise.
11445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11447 Likewise.
11448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11449 Likewise.
11450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11451 Likewise.
11452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11453 Likewise.
11454 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11457 Likewise.
11458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11459 Likewise.
11460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11461 Likewise.
11462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11463 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11464 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11465 Likewise.
11466 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11467 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11468 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11469 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11470 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11471 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11472 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11473 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11474 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11475 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11476 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11477 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11478 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11479 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11480 Likewise.
11481 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11482 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11483 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11484 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11485 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11486 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11487 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11488 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11489 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11490 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11491 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11492 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11493 Likewise.
11494 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11495 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11496 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11497 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11498 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11499 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11500 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11501 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11502 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11503 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11504 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11505 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11506 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11507 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11508 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11509 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11510 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11511 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11512 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11513 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11514 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11515 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11516 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11517 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11518 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11519 Likewise.
11520 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11521 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11522 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11523 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11524 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11525 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11526 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11527 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11528 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11529 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11530 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11531 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11532 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11533 Likewise.
11534 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11535 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11536 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11537 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11538 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11539 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11540 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11541 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11542 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11543 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11544 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11545 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11546 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11547 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11548 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11549 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11550 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11551 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11552 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11553 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11554 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11555 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11556 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11558 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11559 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11572
11573 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11574
11575 [BZ #23137]
11576 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11577 Use atomic_load_acquire to load __tid.
11578
11579 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11580
11581 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11582 Restore the pointer into %rdx, after syscall and use %rdx,
11583 instead of %rsi, to restore context.
11584
11585 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11586
11587 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11588 Pop the pointer into %rdx after syscall and use %rdx, instead
11589 of %rsi, to restore context.
11590
11591 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11592
11593 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11594 handlers after setjmp.
11595 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11596 defined.
11597 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11598 <libc-pointer-arith.h>.
11599 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11600 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11601 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11602 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11603 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11604 * sysdeps/x86/__longjmp_cancel.S: New file.
11605 * sysdeps/x86/longjmp.c: Likewise.
11606 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11607
11608 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11609
11610 * NEWS: Add ustat.h deprecation entry.
11611 * bits/ustat.h: Remove file.
11612 * misc/sys/ustat.h: Likewise.
11613 * misc/ustat.h: Likewise.
11614 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11615 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11616 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11617 compatibility mode.
11618 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11619 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11620 generic Linux implementation.
11621
11622 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11623
11624 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11625 * math/w_expl_compat.c: Likewise.
11626 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11627
11628 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11629
11630 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11631
11632 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11633
11634 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11635 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11636 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11637 Remove.
11638 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11639 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11640 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11641 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11642 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11643 and SYSCALL_LL64.
11644
11645 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11646
11647 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
11648
11649 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
11650 * math/w_asin_template.c: Likewise.
11651 * math/w_atanh_template.c: Likewise.
11652
11653 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11654
11655 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
11656 to powerpc/powerpc64/be for big-endian.
11657 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
11658 little-endian.
11659
11660 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
11661 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
11662 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
11663 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
11664 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
11665 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
11666 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
11667 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
11668 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
11669 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
11670 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
11671 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
11672 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
11673 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
11674 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
11675 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
11676 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
11677 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
11678 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
11679 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
11680 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
11681 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
11682 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
11683 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
11684 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
11685 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
11686 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
11687 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
11688 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
11689 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
11690 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
11691 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
11692
11693 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
11694 adjusted to imply powerpc64 and older processors on powerpc64/be.
11695 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
11696 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
11697 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
11698 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
11699 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
11700 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
11701 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
11702 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
11703 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
11704 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
11705 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
11706 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
11707 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
11708 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
11709 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
11710 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
11711 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
11712 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
11713 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
11714 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
11715 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
11716 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
11717 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
11718 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
11719 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
11720 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
11721 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
11722 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
11723 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
11724 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
11725 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
11726
11727 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
11728 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
11729 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
11730 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
11731
11732 * sysdeps/powerpc/powerpc64/be/Implies: New file.
11733 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
11734 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
11735 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
11736
11737 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
11738 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
11739 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
11740 * sysdeps/powerpc/powerpc64le/configure: Likewise.
11741 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
11742 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
11743 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
11744 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
11745 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
11746 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
11747 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
11748
11749 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
11750 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
11751 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
11752 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
11753 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
11754 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
11755 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
11756 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
11757 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
11758 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
11759 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
11760
11761 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
11762 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
11763 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
11764 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
11765 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
11766 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
11767 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
11768 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
11769 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
11770 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
11771 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
11772 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
11773
11774 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
11775 and adjusted to imply olders processors.
11776 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
11777 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
11778 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
11779 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
11780 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
11781 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
11782 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
11783 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
11784 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
11785 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
11786 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
11787
11788 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
11789 powerpc64/le.
11790 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
11791 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
11792
11793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
11794 powerpc64le.
11795 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
11796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
11797
11798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
11799 powerpc64/be.
11800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
11801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
11802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
11803
11804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
11805 powerpc64 and adjusted.
11806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
11807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
11808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
11809 Likewise.
11810
11811 2018-04-27 Joseph Myers <joseph@codesourcery.com>
11812
11813 * sysdeps/tile: Remove.
11814 * sysdeps/unix/sysv/linux/tile: Likewise.
11815 * README (tilegx-*-linux-gnu): Remove from list of supported
11816 configurations.
11817 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
11818 contribution of support for generic Linux kernel syscall
11819 interface.
11820 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
11821 tilegx configurations.
11822 (Config.install_linux_headers): Do not handle tile.
11823 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
11824 in comment.
11825 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
11826 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
11827 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
11828 conditional undefine and redefine.
11829 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
11830 in comment.
11831 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
11832 conditional undefine and redefine.
11833
11834 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
11835
11836 * signal/tst-sigaction.c: New file to test BZ #23069.
11837 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
11838
11839 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11840
11841 [BZ #22766]
11842 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
11843 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
11844 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
11845 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
11846
11847 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11848
11849 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
11850 _DIRENT_MATCHES_DIRENT64 is not defined.
11851 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
11852 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
11853 is defined.
11854 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
11855 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
11856
11857 2018-04-25 Joseph Myers <joseph@codesourcery.com>
11858
11859 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
11860 version to GCC 8 branch.
11861
11862 2018-04-24 Joseph Myers <joseph@codesourcery.com>
11863
11864 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
11865 (check_no_hidden): Use type of original function when declaring
11866 alias.
11867
11868 * sysdeps/unix/sysv/linux/sys/ptrace.h
11869 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
11870 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
11871 (struct __ptrace_seccomp_metadata): New type.
11872 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
11873 (PTRACE_SECCOMP_GET_METADATA): Likewise.
11874 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
11875 (PTRACE_SECCOMP_GET_METADATA): Likewise.
11876 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
11877 (PTRACE_SECCOMP_GET_METADATA): Likewise.
11878 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
11879 (PTRACE_SECCOMP_GET_METADATA): Likewise.
11880 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
11881 (PTRACE_SECCOMP_GET_METADATA): Likewise.
11882 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
11883 (PTRACE_SECCOMP_GET_METADATA): Likewise.
11884 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
11885 (PTRACE_SECCOMP_GET_METADATA): Likewise.
11886 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
11887 (PTRACE_SECCOMP_GET_METADATA): Likewise.
11888
11889 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11890
11891 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
11892 defined.
11893 * dirent/versionsort.c (versionsort): Likewise.
11894 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
11895 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
11896 * dirent/versionsort64.c (versionsort64): Likewise.
11897 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
11898 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
11899 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
11900 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
11901 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
11902 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
11903 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
11904 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
11905 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
11906 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
11907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
11908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
11909 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
11910 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
11911
11912 2018-04-23 Joseph Myers <joseph@codesourcery.com>
11913
11914 * elf/elf.h (NT_PPC_PKEY): New macro.
11915
11916 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
11917
11918 [BZ #23094]
11919 * localedata/locales/hr_HR: fix thousands_sep and
11920 mon_thousands_sep
11921
11922 2018-04-20 Joseph Myers <joseph@codesourcery.com>
11923
11924 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
11925 (XTABS): Define to TAB3.
11926
11927 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11928
11929 * sysdeps/hppa/fpu/libm-test-ulps: Update.
11930
11931 * dirent/scandir-tail-common.c: New file.
11932 * dirent/scandir-tail.c: Use scandir-tail-common.c.
11933 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
11934 * dirent/scandir.c: Use scandir-tail-common.c.
11935 * dirent/scandirat.c: Likewise.
11936 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
11937 * dirent/scandir64.c (scandir64): Always build and alias to scandir
11938 if _DIRENT_MATCHES_DIRENT64 is defined.
11939 * dirent/scandirat64.c (scandirat64): Likewise.
11940 * include/dirent.h (__scandir_tail): Only define iff
11941 _DIRENT_MATCHES_DIRENT64 is not defined.
11942 (__scandir64_tail): Define regardless.
11943 (__scandirat, scandirat64): Remove libc_hidden_proto.
11944 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
11945 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
11946 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
11947 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
11948 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
11949 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
11950 * sysdeps/unix/sysv/linux/scandir64.c: New file.
11951
11952 2018-04-20 Joseph Myers <joseph@codesourcery.com>
11953
11954 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
11955 New macro.
11956 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11957 Increase to 24.
11958 (_dl_aarch64_cap_flags): Add asimdfhm.
11959
11960 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
11961
11962 * sysdeps/nios2/libm-test-ulps: Update.
11963
11964 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11965
11966 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
11967 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
11968
11969 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
11970 requirements.
11971 (_DIRENT_MATCHES_DIRENT64): Undef
11972 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
11973 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
11974 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
11975 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
11976 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
11977 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
11978 use getdents64 syscalls as base.
11979 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
11980 symbol if required.
11981 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
11982 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
11983 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
11984 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
11985 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
11986 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
11987 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
11988 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
11989 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11990 (__get_clockfreq_via_proc_openprom): Use __getdents64.
11991 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
11992
11993 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
11994
11995 * scripts/test_printers_common.py (init_test): Disable lock elision.
11996
11997 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
11998
11999 * math/test-tgmath.c (count_double, count_float,
12000 count_ldouble, count_cdouble, count_cfloat,
12001 count_cldouble): Use volatile int.
12002
12003 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12004
12005 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12006 (conformtest-xfail-conds): Add i386-gnu.
12007 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12008 i386-gnu.
12009 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12010 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12011 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12012 msqid_ds.msg_lrpid): Likewise.
12013 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12014 Likewise.
12015 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12016 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12017 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12018 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12019 unsigned int.
12020 (struct statvfs64): Likewise.
12021 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12022 Likewise.
12023 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12024 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12025 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12026 instead of wait_queue.
12027 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12028 instead of vm_area_struct.
12029 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12030 struct sched_param definition to it.
12031 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12032 * bits/types/struct_sched_param.h: New file.
12033 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12034 <bits/types/struct_sched_param.h> instead of <sched.h>.
12035 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12036 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12037 generic version but include <bits/pthreadtypes.h> to make struct
12038 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12039 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12040 non-compliant.
12041 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12042 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12043 [__USE_XOPEN] (OFDEL): New macro.
12044 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12045 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12046 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12047 prototypes.
12048 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12049 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12050 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12051 non-compliant.
12052 * sysdeps/i386/sys/ucontext.h: Likewise.
12053 * sysdeps/m68k/sys/ucontext.h: Likewise.
12054 * sysdeps/mips/sys/ucontext.h: Likewise.
12055 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12056 * sysdeps/mach/hurd/i386/Makefile
12057 (test-xfail-POSIX/fcntl.h/conform): Add.
12058 (test-xfail-POSIX/signal.h/conform): Add.
12059 (test-xfail-POSIX/semaphore.h/conform): Add.
12060 (test-xfail-POSIX/regex.h/conform): Add.
12061 (test-xfail-POSIX/aio.h/conform): Add.
12062 (test-xfail-POSIX/mqueue.h/conform): Add.
12063 (test-xfail-POSIX/sys/types.h/conform): Add.
12064 (test-xfail-UNIX98/fcntl.h/conform): Add.
12065 (test-xfail-UNIX98/netdb.h/conform): Add.
12066 (test-xfail-UNIX98/signal.h/conform): Add.
12067 (test-xfail-UNIX98/semaphore.h/conform): Add.
12068 (test-xfail-UNIX98/regex.h/conform): Add.
12069 (test-xfail-UNIX98/aio.h/conform): Add.
12070 (test-xfail-UNIX98/ftw.h/conform): Add.
12071 (test-xfail-UNIX98/mqueue.h/conform): Add.
12072 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12073 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12074 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12075 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12076 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12077 (test-xfail-UNIX98/sys/types.h/conform): Add.
12078 (test-xfail-UNIX98/stdlib.h/conform): Add.
12079 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12080 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12081 (test-xfail-POSIX2008/netdb.h/conform): Add.
12082 (test-xfail-POSIX2008/signal.h/conform): Add.
12083 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12084 (test-xfail-POSIX2008/regex.h/conform): Add.
12085 (test-xfail-POSIX2008/aio.h/conform): Add.
12086 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12087 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12088 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12089 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12090 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12091 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12092 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12093 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12094 (test-xfail-XOPEN2K/signal.h/conform): Add.
12095 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12096 (test-xfail-XOPEN2K/regex.h/conform): Add.
12097 (test-xfail-XOPEN2K/aio.h/conform): Add.
12098 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12099 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12100 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12101 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12102 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12103 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12104 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12105 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12106 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12107 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12108 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12109 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12110 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12111 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12112 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12113 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12114 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12115 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12116 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12117 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12118 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12119 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12120 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12121 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12122 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12123 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12124 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12125 i386-gnu.
12126 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12127 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12128
12129 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12130
12131 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12132 --enable-obsolete for powerpc-linux-gnuspe.
12133
12134 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12135
12136 * conform/data/sys/un.h-data: Allow sun_ prefix.
12137 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12138 prototypes.
12139 * sysdeps/mach/include/mach.h: Likewise.
12140 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12141 * sysdeps/mach/include/mach_error.h: Likewise.
12142
12143 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12144
12145 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12146 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12147 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12148 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12149
12150 2018-04-16 Andreas Schwab <schwab@suse.de>
12151
12152 [BZ #19527]
12153 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12154
12155 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12156
12157 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12158 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12159
12160 2018-04-12 DJ Delorie <dj@redhat.com>
12161
12162 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12163 version to 4.16.
12164
12165 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12166
12167 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12168 (struct kernel_sigaction): Use the same definition on 31bit as is used
12169 on 64bit.
12170
12171 2018-04-09 Florian Weimer <fweimer@redhat.com>
12172
12173 [BZ #23037]
12174 * resolv/res_send.c (send_dg): Use designated initializers instead
12175 of assignment to zero-initialize other fields of struct mmsghdr.
12176
12177 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12178
12179 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12180 __READDIR_ALIAS): Undefine after usage.
12181 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12182 __READDIR_R_ALIAS): Likewise.
12183 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12184 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12185 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12186 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12187 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12188 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12189 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12190 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12191 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12192 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12193 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12194 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12195 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12196 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12197 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12198 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12199 * sysdeps/unix/sysv/linux/readdir.c: New file.
12200 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12201 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12202 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12203
12204 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12205
12206 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12207
12208 * manual/charset.texi (Converting a Character): Fix typo.
12209
12210 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12211
12212 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12213
12214 * sysdeps/arm/libm-test-ulps: Update.
12215
12216 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12217 as base implementation.
12218 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12219 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12220 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12221 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12222 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12223 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12224 remove unrequired definitions and update comments.
12225 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12226 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12227 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12228 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12229 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12230 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12231 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12232 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12233 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12234 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12235 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12236 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12237 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12238 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12239 and RESET_SA_RESTORER hooks.
12240
12241 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12242
12243 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12244
12245 2018-04-05 Florian Weimer <fweimer@redhat.com>
12246
12247 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12248 integer overflow, memory leak on error, and indeterminate errno
12249 value. Add a null wide character to terminate the result string.
12250 * manual/charset.texi (Converting a Character): Mention embedded
12251 null bytes in the mbrtowc input string. Explain what happens in
12252 the -2 result case. Do not claim that mbrtowc is simple or
12253 obvious to use. Adjust the description of the code example. Use
12254 @code, not @var, for concrete variables.
12255
12256 2018-04-05 Florian Weimer <fweimer@redhat.com>
12257
12258 * manual/examples/mbstouwcs.c: New file.
12259 * manual/charset.texi (Converting a Character): Include it.
12260
12261 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12262
12263 * include/dirent.h (dirfd): Add hidden proto.
12264 * dirent/dirfd.c (dirfd): Add hidden def.
12265 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12266 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12267
12268 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12269
12270 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12271 sin, cos and sincos to 1 ULP.
12272
12273 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12274
12275 [BZ #19818]
12276 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12277 symbols.
12278 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12279 * elf/tst-absolute-sym.c: New file.
12280 * elf/tst-absolute-sym-lib.c: New file.
12281 * elf/tst-absolute-sym-lib.lds: New file.
12282 * elf/Makefile (tests): Add `tst-absolute-sym'.
12283 (modules-names): Add `tst-absolute-sym-lib'.
12284 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12285 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12286 ($(objpfx)tst-absolute-sym): New dependency.
12287
12288 [BZ #19818]
12289 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12290 parameter.
12291 (SYMBOL_ADDRESS): New macro.
12292 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12293 SYMBOL_ADDRESS for symbol address calculation.
12294 * elf/dl-runtime.c (_dl_fixup): Likewise.
12295 (_dl_profile_fixup): Likewise.
12296 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12297 * elf/rtld.c (dl_main): Likewise.
12298 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12299 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12300 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12301 (elf_machine_rela): Likewise.
12302 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12303 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12304 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12305 (elf_machine_rela): Likewise.
12306 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12307 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12308 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12309 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12310 Likewise.
12311 (elf_machine_reloc): Likewise.
12312 (elf_machine_got_rel): Likewise.
12313 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12314 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12315 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12316 Likewise.
12317 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12318 Likewise.
12319 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12320 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12321 Likewise.
12322 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12323 Likewise.
12324 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12325 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12326 Likewise.
12327 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12328 Likewise.
12329 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12330 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12331
12332 2018-04-04 Zack Weinberg <zackw@panix.com>
12333
12334 * sysdeps/generic/internal-signals.h: Include signal.h,
12335 sigsetops.h, and stdbool.h.
12336 (__libc_signal_block_all): Actually block all signals.
12337 (__libc_signal_block_app): Likewise.
12338 (__libc_signal_restore_set): Actually restore the signal mask.
12339
12340 2018-04-04 Florian Weimer <fweimer@redhat.com>
12341
12342 inet: Actually build and run tst-deadline.
12343 * inet/Makefile (tests-internal): Add tst-deadline and do not
12344 overwrite the variable.
12345 (tests-static-internal): Remove variable.
12346
12347 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12348
12349 [BZ #22947]
12350 * bits/uio-ext.h (RWF_APPEND): New.
12351 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12352 * manual/llio.texi: Document RWF_APPEND.
12353 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12354 (RWF_SUPPORTED): Add RWF_APPEND.
12355
12356 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12357
12358 [BZ #22391]
12359 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12360 check for internal nptl signals.
12361 * nptl/sigaction.c (__sigaction): Likewise.
12362 * signal/sigaddset.c (sigaddset): Likewise.
12363 * signal/sigdelset.c (sigdelset): Likewise.
12364 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12365 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12366 value.
12367 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12368 to filter out internal nptl signals.
12369 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12370 also check realtime signals using standard macros.
12371 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12372 __is_internal_signal, __libc_signal_block_all,
12373 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12374 * sysdeps/nptl/sigfillset.c: Remove file.
12375 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12376 Change return to bool.
12377 (__clear_internal_signals): Remove SIGTIMER clean since it is
12378 equal to SIGCANEL on Linux.
12379 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12380 signal set was constructed using standard functions.
12381
12382 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12383
12384 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12385 ifname is too long.
12386 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12387 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12388 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12389 hidden def.
12390 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12391 * signal/sigaddset.c: Include <sigsetopts.h>.
12392 * signal/sigdelset.c: Likewise.
12393
12394 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12395
12396 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12397 (__cos): Likewise.
12398 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12399 logic as sin and cos.
12400
12401 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12402
12403 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12404 inputs. Return correct sign.
12405 (do_sincos): Remove small input check before do_sin, let do_sin set
12406 the sign.
12407 (__sin): Likewise.
12408 (__cos): Likewise.
12409
12410 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12411
12412 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12413 (do_cos_slow): Likewise.
12414 (do_sin_slow): Likewise.
12415 (reduce_and_compute): Likewise.
12416 (slow): Likewise.
12417 (slow1): Likewise.
12418 (slow2): Likewise.
12419 (sloww): Likewise.
12420 (sloww1): Likewise.
12421 (sloww2): Likewise.
12422 (bslow): Likewise.
12423 (bslow1): Likewise.
12424 (bslow2): Likewise.
12425 (cslow2): Likewise.
12426
12427 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12428
12429 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12430 (do_cos): Remove corp parameter and calculations.
12431 (do_sin): Likewise.
12432 (do_sincos): Remove cor variable.
12433 (__sin): Use do_sincos for huge inputs.
12434 (__cos): Likewise.
12435 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12436 (reduce_and_compute_sincos): Remove unused function.
12437
12438 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12439
12440 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12441 reduce_sincos, improve accuracy to 136 bits.
12442 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12443 (__sin): Use improved reduction and simplified do_sincos calculation.
12444 (__cos): Likewise.
12445 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12446
12447 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12448
12449 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12450 (do_sincos_2): Likewise.
12451 (__sin): Remove middle range reduction case.
12452 (__cos): Likewise.
12453 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12454 reduction case.
12455
12456 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12457
12458 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12459 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12460 inputs.
12461 (__cos): Likewise.
12462 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12463
12464 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12465
12466 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12467 version to 4.16
12468
12469 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12470
12471 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12472 Remove definitions.
12473 (opendir_oflags): Use O_DIRECTORY regardless.
12474 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12475 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12476
12477 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12478
12479 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12480 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12481 macros.
12482 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12483 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12484 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12485 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12486 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12487 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12488
12489 * htl/Makefile: Bump licence to LGPL 2.1+.
12490 * htl/alloca_cutoff.c: Likewise.
12491 * htl/cthreads-compat.c: Likewise.
12492 * htl/lockfile.c: Likewise.
12493 * htl/pt-alloc.c: Likewise.
12494 * htl/pt-cancel.c: Likewise.
12495 * htl/pt-cleanup.c: Likewise.
12496 * htl/pt-create.c: Likewise.
12497 * htl/pt-dealloc.c: Likewise.
12498 * htl/pt-detach.c: Likewise.
12499 * htl/pt-exit.c: Likewise.
12500 * htl/pt-getattr.c: Likewise.
12501 * htl/pt-initialize.c: Likewise.
12502 * htl/pt-internal.h: Likewise.
12503 * htl/pt-join.c: Likewise.
12504 * htl/pt-self.c: Likewise.
12505 * htl/pt-setcancelstate.c: Likewise.
12506 * htl/pt-setcanceltype.c: Likewise.
12507 * htl/pt-sigmask.c: Likewise.
12508 * htl/pt-spin-inlines.c: Likewise.
12509 * htl/pt-testcancel.c: Likewise.
12510 * htl/pt-yield.c: Likewise.
12511 * htl/tests/test-1.c: Likewise.
12512 * htl/tests/test-10.c: Likewise.
12513 * htl/tests/test-11.c: Likewise.
12514 * htl/tests/test-12.c: Likewise.
12515 * htl/tests/test-13.c: Likewise.
12516 * htl/tests/test-14.c: Likewise.
12517 * htl/tests/test-15.c: Likewise.
12518 * htl/tests/test-16.c: Likewise.
12519 * htl/tests/test-17.c: Likewise.
12520 * htl/tests/test-2.c: Likewise.
12521 * htl/tests/test-3.c: Likewise.
12522 * htl/tests/test-4.c: Likewise.
12523 * htl/tests/test-5.c: Likewise.
12524 * htl/tests/test-6.c: Likewise.
12525 * htl/tests/test-7.c: Likewise.
12526 * htl/tests/test-8.c: Likewise.
12527 * htl/tests/test-9.c: Likewise.
12528 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12529 * sysdeps/htl/bits/cancelation.h: Likewise.
12530 * sysdeps/htl/bits/pthread-np.h: Likewise.
12531 * sysdeps/htl/bits/pthread.h: Likewise.
12532 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12533 * sysdeps/htl/bits/semaphore.h: Likewise.
12534 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12535 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12536 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12537 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12538 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12539 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12540 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12541 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12542 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12543 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12544 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12545 * sysdeps/htl/old_pt-atfork.c: Likewise.
12546 * sysdeps/htl/pt-atfork.c: Likewise.
12547 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12548 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12549 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12550 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12551 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12552 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12553 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12554 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12555 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12556 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12557 * sysdeps/htl/pt-attr-init.c: Likewise.
12558 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12559 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12560 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12561 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12562 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12563 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12564 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12565 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12566 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12567 * sysdeps/htl/pt-attr.c: Likewise.
12568 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12569 * sysdeps/htl/pt-barrier-init.c: Likewise.
12570 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12571 * sysdeps/htl/pt-barrier.c: Likewise.
12572 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12573 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12574 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12575 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12576 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12577 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12578 * sysdeps/htl/pt-cond-init.c: Likewise.
12579 * sysdeps/htl/pt-cond-signal.c: Likewise.
12580 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12581 * sysdeps/htl/pt-cond-wait.c: Likewise.
12582 * sysdeps/htl/pt-cond.c: Likewise.
12583 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12584 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12585 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12586 * sysdeps/htl/pt-condattr-init.c: Likewise.
12587 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12588 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12589 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12590 * sysdeps/htl/pt-equal.c: Likewise.
12591 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12592 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12593 * sysdeps/htl/pt-getschedparam.c: Likewise.
12594 * sysdeps/htl/pt-getspecific.c: Likewise.
12595 * sysdeps/htl/pt-init-specific.c: Likewise.
12596 * sysdeps/htl/pt-key-create.c: Likewise.
12597 * sysdeps/htl/pt-key-delete.c: Likewise.
12598 * sysdeps/htl/pt-key.h: Likewise.
12599 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12600 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12601 * sysdeps/htl/pt-mutex-init.c: Likewise.
12602 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12603 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12604 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12605 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12606 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12607 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12608 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12609 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12610 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12611 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12612 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12613 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12614 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12615 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12616 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12617 * sysdeps/htl/pt-mutexattr.c: Likewise.
12618 * sysdeps/htl/pt-once.c: Likewise.
12619 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12620 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12621 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12622 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12623 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12624 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12625 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12626 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12627 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12628 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12629 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12630 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12631 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12632 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12633 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12634 * sysdeps/htl/pt-setschedparam.c: Likewise.
12635 * sysdeps/htl/pt-setschedprio.c: Likewise.
12636 * sysdeps/htl/pt-setspecific.c: Likewise.
12637 * sysdeps/htl/pt-spin.c: Likewise.
12638 * sysdeps/htl/pt-startup.c: Likewise.
12639 * sysdeps/htl/pthread.h: Likewise.
12640 * sysdeps/htl/sem-close.c: Likewise.
12641 * sysdeps/htl/sem-destroy.c: Likewise.
12642 * sysdeps/htl/sem-getvalue.c: Likewise.
12643 * sysdeps/htl/sem-init.c: Likewise.
12644 * sysdeps/htl/sem-open.c: Likewise.
12645 * sysdeps/htl/sem-post.c: Likewise.
12646 * sysdeps/htl/sem-timedwait.c: Likewise.
12647 * sysdeps/htl/sem-trywait.c: Likewise.
12648 * sysdeps/htl/sem-unlink.c: Likewise.
12649 * sysdeps/htl/sem-wait.c: Likewise.
12650 * sysdeps/hurd/htl/pt-kill.c: Likewise.
12651 * sysdeps/i386/htl/pt-machdep.h: Likewise.
12652 * sysdeps/mach/htl/pt-block.c: Likewise.
12653 * sysdeps/mach/htl/pt-spin.c: Likewise.
12654 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
12655 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
12656 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
12657 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
12658 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
12659 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
12660 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
12661 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
12662 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
12663 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
12664 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
12665 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
12666 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
12667 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
12668 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
12669 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
12670 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
12671 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
12672 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
12673 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
12674 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
12675 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
12676 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
12677 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
12678 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
12679 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
12680 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
12681 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
12682 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
12683 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
12684 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
12685 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
12686 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
12687 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
12688 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
12689 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
12690 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
12691 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
12692 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
12693 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
12694 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
12695 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
12696 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
12697
12698 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
12699 * README: Remove the mention of out-of-tree patches needed for
12700 GNU/Hurd.
12701
12702 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
12703 (UTIME_NOW, UTIME_OMIT): Define macros.
12704
12705 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
12706 instead of pthread_detach.
12707 (__cthread_fork): Call __pthread_create instead of pthread_create.
12708 (__cthread_keycreate): Call __pthread_key_create instead of
12709 pthread_key_create.
12710 (__cthread_getspecific): Call __pthread_getspecific instead of
12711 pthread_getspecific.
12712 (__cthread_setspecific): Call __pthread_setspecific instead of
12713 pthread_setspecific.
12714 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
12715 __pthread_mutex_unlock instead of pthread_mutex_lock and
12716 pthread_mutex_unlock.
12717 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
12718 ___pthread_get_cleanup_stack.
12719 (__pthread_get_cleanup_stack): New strong alias.
12720 * htl/pt-create.c: Include <pthreadP.h>.
12721 (entry_point): Call __pthread_exit instead of pthread_exit.
12722 (pthread_create): Rename to __pthread_create.
12723 (pthread_create): New strong alias.
12724 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
12725 (pthread_detach): New strong alias.
12726 (__pthread_detach): Call __pthread_cond_broadcast instead of
12727 pthread_cond_broadcast.
12728 * htl/pt-exit.c: Include <pthreadP.h>.
12729 (__pthread_exit): Call __pthread_setcancelstate and
12730 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
12731 __pthread_get_cleanup_stack.
12732 * htl/pt-testcancel.c: Include <pthreadP.h>.
12733 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
12734 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
12735 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
12736 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
12737 pthread_attr_getstacksize.
12738 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
12739 Rename to __pthread_attr_getstackaddr.
12740 (pthread_attr_getstackaddr): New strong alias.
12741 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
12742 Rename to __pthread_attr_getstacksize.
12743 (pthread_attr_getstacksize): New strong alias.
12744 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
12745 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
12746 (pthread_attr_setstack): New strong alias.
12747 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
12748 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
12749 pthread_attr_getstacksize, pthread_attr_setstacksize and
12750 pthread_attr_setstackaddr.
12751 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
12752 Rename to __pthread_attr_setstackaddr.
12753 (pthread_attr_setstackaddr): New strong alias.
12754 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
12755 Rename to __pthread_attr_setstacksize.
12756 (pthread_attr_setstacksize): New strong alias.
12757 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
12758 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
12759 pthread_exit.
12760 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
12761 (__pthread_key_create): New hidden def.
12762 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
12763 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
12764 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
12765 __pthread_exit, __pthread_key_create, __pthread_getspecific,
12766 __pthread_setspecific, __pthread_setcancelstate,
12767 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
12768 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
12769 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
12770 declarations.
12771 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
12772 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
12773 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
12774 (pthread_attr_setstackaddr): New strong alias.
12775 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
12776 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
12777 (pthread_attr_setstacksize): New strong alias.
12778 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
12779 (call_exit): Call __pthread_exit instead of pthread_exit.
12780 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
12781 (_pthread_mutex_init): New hidden definition.
12782 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
12783 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
12784 instead of pthread_attr_init and pthread_attr_setstack.
12785
12786 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
12787 __vm_deallocate instead of vm_allocate and vm_deallocate.
12788 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
12789 setenv.
12790 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
12791 of geteuid.
12792 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
12793 strdup.
12794 * hurd/siginfo.c: Include <libioP.h>.
12795 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
12796 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
12797 munmap.
12798 * mach/devstream.c: Include <libioP.h>.
12799 (dealloc_ref): Call __mach_port_deallocate instead of
12800 mach_port_deallocate.
12801 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
12802 Call __mach_port_deallocate instead of mach_port_deallocate.
12803 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
12804 pathconf.
12805 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
12806 munmap.
12807 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
12808 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
12809 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
12810 of munmap.
12811 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
12812 of close.
12813 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
12814 instead of sysconf.
12815 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
12816 __clock_gettime instead of clock_gettime.
12817 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
12818 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
12819 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
12820 * sysdeps/unix/bsd/stty.c (stty): Likewise.
12821 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
12822 tcgetattr.
12823 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
12824 __clock_gettime and __nanosleep instead of clock_gettime and
12825 nanosleep.
12826 * hurd/catch-signal.c (hurd_catch_signal): Rename to
12827 __hurd_catch_signal.
12828 (hurd_catch_signal): New strong alias.
12829 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
12830 __hurd_catch_signal instead of hurd_catch_signal.
12831 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
12832 * hurd/hurdexec.c (_hurd_init): Add hidden def.
12833 * hurd/hurdinit.c (_hurd_init): Add hidden def.
12834 * hurd/hurdsig.c: Include <mach/mig_support.h>.
12835 (_hurd_thread_sigstate): Add hidden def.
12836 (_hurd_internal_post_signal): Use __mutex_unlock instead of
12837 mutex_unlock.
12838 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
12839 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
12840 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
12841 __hurd_file_name_path_lookup.
12842 (hurd_file_name_path_lookup): New strong alias.
12843 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
12844 hurd_file_name_path_lookup.
12845 * mach/errstring.c (mach_error_type): Add hidden def.
12846 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
12847 * mach/mutex-init.c (__mutex_init): Add hidden def.
12848 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
12849 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
12850 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
12851 * sysdeps/mach/hurd/getcwd.c
12852 (_hurd_canonicalize_directory_name_internal): Rename to
12853 __hurd_canonicalize_directory_name_internal.
12854 (_hurd_canonicalize_directory_name_internal): New strong alias.
12855 (__canonicalize_directory_name_internal, __getcwd): Call
12856 __hurd_canonicalize_directory_name_internal instead of
12857 _hurd_canonicalize_directory_name_internal.
12858 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
12859 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
12860 hidden defs.
12861 * sysdeps/hurd/include/hurd.h: New file.
12862 * sysdeps/hurd/include/hurd/fd.h: New file.
12863 * sysdeps/hurd/include/hurd/signal.h: New file.
12864 * sysdeps/mach/include/lock-intern.h: New file.
12865 * sysdeps/mach/include/mach.h: New file.
12866 * sysdeps/mach/include/mach/mig_support.h: New file.
12867 * sysdeps/mach/include/mach_error.h: New file.
12868 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
12869 prototype.
12870 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
12871 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
12872 _HEADER_H_HIDDEN_DEF macro.
12873 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
12874 _hurd_fd_error_signal): Add hidden prototype.
12875 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
12876 hidden def.
12877 * libio/iolibio.h (_IO_puts): New hidden prototype.
12878 * libio/ioputs.c (_IO_puts): New hidden def.
12879 * sysdeps/mach/hurd/localplt.data: New file.
12880
12881 2018-04-02 Agustina Arzille <avarzille@riseup.net>
12882 Amos Jeffries <squid3@treenet.co.nz>
12883 David Michael <fedora.dm0@gmail.com>
12884 Marco Gerards <marco@gnu.org>
12885 Marcus Brinkmann <marcus@gnu.org>
12886 Neal H. Walfield <neal@gnu.org>
12887 Pino Toscano <toscano.pino@tiscali.it>
12888 Richard Braun <rbraun@sceen.net>
12889 Roland McGrath <roland@gnu.org>
12890 Samuel Thibault <samuel.thibault@ens-lyon.org>
12891 Thomas DiModica <ricinwich@yahoo.com>
12892 Thomas Schwinge <tschwinge@gnu.org>
12893
12894 * htl: New directory.
12895 * sysdeps/htl: New directory.
12896 * sysdeps/hurd/htl: New directory.
12897 * sysdeps/i386/htl: New directory.
12898 * sysdeps/mach/htl: New directory.
12899 * sysdeps/mach/hurd/htl: New directory.
12900 * sysdeps/mach/hurd/i386/htl: New directory.
12901 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
12902 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
12903 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
12904
12905 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12906
12907 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
12908 signals in thread created for runing timers.
12909
12910 2018-04-01 Florian Weimer <fweimer@redhat.com>
12911
12912 * support/support_format_addrinfo.c (support_format_addrinfo):
12913 Include unknown error number in formatted result.
12914
12915 2018-03-29 Florian Weimer <fweimer@redhat.com>
12916
12917 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
12918 capture SIGBUS.
12919
12920 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12921
12922 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
12923 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
12924 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12925 (__ASSUME_CLONE_BACKWARDS): Define.
12926
12927 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
12928
12929 [BZ #23024]
12930 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
12931 early when linux sentinel value is set.
12932
12933 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
12934
12935 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
12936
12937 2018-03-27 Andreas Schwab <schwab@suse.de>
12938
12939 [BZ #23005]
12940 * resolv/res_send.c (__res_context_send): Return ENOMEM if
12941 allocation of private copy of nsaddr_list fails.
12942
12943 2018-03-26 Joseph Myers <joseph@codesourcery.com>
12944
12945 [BZ #16552]
12946 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
12947 * sysdeps/unix/sysv/linux/umount.c: ... here.
12948 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
12949 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
12950 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
12951 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
12952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
12953 * sysdeps/unix/sysv/linux/umount.S: Likewise.
12954 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
12955
12956 2018-03-26 Andreas Schwab <schwab@suse.de>
12957
12958 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
12959 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
12960 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
12961 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
12962 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
12963 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
12964 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
12965 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
12966 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
12967 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
12968 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
12969 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
12970 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
12971 (R_RISCV_NUM): Define.
12972
12973 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
12974
12975 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
12976 TLS declaration of errno.
12977 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
12978 __libc_setup_tls.
12979 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
12980 (ARCH_SETUP_TLS): Likewise.
12981 * sysdeps/mach/hurd/libc-start.h: New file copied from
12982 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
12983 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
12984 instead of __libc_setup_tls.
12985 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
12986 __libc_setup_tls before initializing libpthread and running _hurd_init
12987 which starts the signal thread.
12988 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
12989 Declare function.
12990 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
12991
12992 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
12993
12994 [BZ #22998]
12995 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
12996 after it is defined.
12997
12998 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
12999 Max Horn <max@quendi.de>
13000
13001 [BZ #22644]
13002 CVE-2017-18269
13003 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13004 branch conditions.
13005 * string/test-memmove.c (do_test2): New testcase.
13006
13007 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13008
13009 * sysdeps/generic/frame.h: Remove file.
13010 * sysdeps/arm/frame.h: Likewise.
13011 * sysdeps/hppa/frame.h: Likewise.
13012 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13013 macro.
13014 (GET_FRAME): Likewise.
13015 (GET_STACK): Likewise.
13016 (CALL_SIGHANDLER): Likewise.
13017 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13018 Likewise.
13019 (GET_FRAME): Likewise.
13020 (GET_STACK): Likewise.
13021 (CALL_SIGHANDLER): Likewise.
13022 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13023 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13024 (GET_FRAME): Likewise.
13025 (GET_STACK): Likewise.
13026 (CALL_SIGHANDLER): Likewise.
13027 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13028 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13029 (GET_FRAME): Likewise.
13030 (GET_STACK): Likewise.
13031 (ADVANCE_STACK_FRAME): Likewise.
13032 (CALL_SIGHANDLER): Likewise.
13033 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13034 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13035 (GET_FRAME): Likewise.
13036 (GET_STACK): Likewise.
13037 (CALL_SIGHANDLER): Likewise.
13038 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13039 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13040 (GET_FRAME): Likewise.
13041 (GET_STACK): Likewise.
13042 (CALL_SIGHANDLER): Likewise.
13043 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13044 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13045 (GET_FRAME): Likewise.
13046 (GET_STACK): Likewise.
13047 (CALL_SIGHANDLER): Likewise.
13048 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13049 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13050 (GET_FRAME): Likewise.
13051 (GET_STACK): Likewise.
13052 (CALL_SIGHANDLER): Likewise.
13053 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13054 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13055 (GET_FRAME): Likewise.
13056 (GET_STACK): Likewise.
13057 (CALL_SIGHANDLER): Likewise.
13058 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13059 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13060 (GET_FRAME): Likewise.
13061 (GET_STACK): Likewise.
13062 (CALL_SIGHANDLER): Likewise.
13063 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13064 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13065 (GET_FRAME): Likewise.
13066 (GET_STACK): Likewise.
13067 (CALL_SIGHANDLER): Likewise.
13068 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13069 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13070 (GET_FRAME): Likewise.
13071 (GET_STACK): Likewise.
13072 (CALL_SIGHANDLER): Likewise.
13073 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13074 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13075 (GET_FRAME): Likewise.
13076 (GET_STACK): Likewise.
13077 (CALL_SIGHANDLER): Likewise.
13078 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13079 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13080 (FIRST_FRAME_POINTER): Likewise.
13081 (ADVANCE_STACK_FRAME): Likewise.
13082 (GET_STACK): Likewise.
13083 (GET_FRAME): Likewise.
13084 (CALL_SIGHANDLER): Likewise.
13085 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13086 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13087 (ADVANCE_STACK_FRAME): Likewise.
13088 (GET_STACK): Likewise.
13089 (GET_FRAME): Likewise.
13090 (CALL_SIGHANDLER): Likewise.
13091 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13092 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13093 (GET_FRAME): Likewise.
13094 (GET_STACK): Likewise.
13095 (CALL_SIGHANDLER): Likewise.
13096 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13097 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13098 (GET_FRAME): Likewise.
13099 (GET_STACK): Likewise.
13100 (CALL_SIGHANDLER): Likewise.
13101
13102 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13103
13104 * sysdeps/x86_64/backtrace.c: Move to ....
13105 * debug/backtrace.c: ... here.
13106 * sysdeps/aarch64/backtrace.c: Remove file.
13107 * sysdeps/alpha/backtrace.c: Likewise.
13108 * sysdeps/hppa/backtrace.c: Likewise.
13109 * sysdeps/ia64/backtrace.c: Likewise.
13110 * sysdeps/mips/backtrace.c: Likewise.
13111 * sysdeps/nios2/backtrace.c: Likewise.
13112 * sysdeps/riscv/backtrace.c: Likewise.
13113 * sysdeps/sh/backtrace.c: Likewise.
13114 * sysdeps/tile/backtrace.c: Likewise.
13115
13116 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13117
13118 [BZ #22987]
13119 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13120 function.
13121 (fdimf): Likewise.
13122 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13123
13124 [BZ #17343]
13125 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13126 possibly overflowing computations.
13127
13128 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13129
13130 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13131 values from Linux-specific section now that it is in the GNU section.
13132 * sysdeps/gnu/errlist.c: Regenerate.
13133
13134 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13135
13136 * math/Makefile (libm-narrow-fns): Add sub.
13137 (libm-test-funcs-narrow): Likewise.
13138 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13139 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13140 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13141 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13142 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13143 (NARROW_SUB_TRIVIAL): Likewise.
13144 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13145 macro.
13146 (__dsubl): Likewise.
13147 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13148 dsub.
13149 (CFLAGS-nldbl-dsub.c): New variable.
13150 (CFLAGS-nldbl-fsub.c): Likewise.
13151 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13152 __nldbl_dsubl.
13153 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13154 prototype.
13155 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13156 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13157 * math/auto-libm-test-in: Add tests of sub.
13158 * math/auto-libm-test-out-narrow-sub: New generated file.
13159 * math/libm-test-narrow-sub.inc: New file.
13160 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13161 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13162 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13163 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13164 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13165 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13166 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13167 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13168 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13169 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13170 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13171 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13172 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13173 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13174 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13175 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13176 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13177 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13178 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13179 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13180 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13181 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13182 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13183 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13184 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13185 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13186 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13187 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13188 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13189 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13190 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13191 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13193 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13195 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13196 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13197 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13198 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13199 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13200 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13201 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13202 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13203 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13204 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13205 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13206
13207 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13208
13209 [BZ #20079]
13210 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13211
13212 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13213
13214 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13215
13216 2018-03-18 Richard Braun <rbraun@sceen.net>
13217
13218 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13219 thread reference.
13220
13221 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13222
13223 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13224 (__libc_cleanup_fct): Define function.
13225 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13226 __libc_cleanup_end): Rewrite implementation using
13227 __attribute__ ((__cleanup__)).
13228 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13229 * hurd/Makefile (routines): Add hurdlock.
13230 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13231 interface.
13232 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13233 * hurd/hurdpid.c: Include <lowlevellock.h>
13234 (_S_msg_proc_newids): Use lll_wait to synchronize.
13235 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13236 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13237 * mach/Makefile (lock-headers): Remove machine-lock.h.
13238 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13239 <machine-lock.h>.
13240 (__spin_lock_t): New type.
13241 (__SPIN_LOCK_INITIALIZER): New macro.
13242 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13243 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13244 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13245 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13246 (__mutex_init): Initialize with lll.
13247 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13248 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13249 needing lll.
13250 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13251 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13252 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13253 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13254 (__setpgid): Use lll for synchronization.
13255 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13256 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13257 instead of <cthreads.h>.
13258 (_IO_lock_inexpensive): New macro
13259 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13260 (__libc_lock_self0): New declaration.
13261 (__libc_lock_owner_self): New macro.
13262 (__libc_key_t): Remove type.
13263 (_LIBC_LOCK_INITIALIZER): New macro.
13264 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13265 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13266 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13267 __libc_lock_define_initialized_recursive,
13268 __rtld_lock_define_initialized_recursive,
13269 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13270 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13271 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13272 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13273 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13274 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13275 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13276 New macros.
13277 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13278 * hurd/hurdlock.c: New file.
13279 * hurd/hurdlock.h: New file.
13280 * mach/lowlevellock.h: New file
13281
13282 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13283
13284 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13285 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13286 when opening a symlink with O_NOFOLLOW.
13287 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13288 path when flags contains O_NOFOLLOW.
13289 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13290 if flags contains O_DIRECTORY and the result is a directory.
13291 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13292 oneself when the pointer given in D is nul (as set by ext2fs).
13293 * sysdeps/mach/hurd/mlockall.c: New file.
13294 * sysdeps/mach/hurd/munlockall.c: New file.
13295
13296 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13297
13298 * hurd/hurdsig.c: Include <pthread.h>.
13299 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13300 get the signal thread stack layout.
13301 * hurd/Makefile (headers): Remove threadvar.h.
13302 (inline-headers): Remove threadvar.h.
13303 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13304 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13305 __hurd_threadvar_max, __hurd_errno_location.
13306 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13307 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13308 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13309 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13310 unless TLS is not initialized yet, in which case we do not need a
13311 critical section yet anyway.
13312 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13313 <machine-sp.h>.
13314 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13315 declarations.
13316 (__hurd_threadvar_index): Remove enum.
13317 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13318 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13319 inlines.
13320 (__hurd_reply_port0): New variable declaration.
13321 (__hurd_local_reply_port): New macro.
13322 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13323 (interrupted_reply_port_location): Add thread_t parameter. Use it
13324 with THREAD_TCB to access thread-local variables.
13325 (_hurdsig_abort_rpcs): Pass ss->thread to
13326 interrupted_reply_port_location.
13327 (_hurd_internal_post_signal): Likewise.
13328 (_hurdsig_init): Use presence of cthread_fork instead of
13329 __hurd_threadvar_stack_mask to start signal thread by hand.
13330 Remove signal thread threadvar initialization.
13331 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13332 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13333 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13334 of threadvar.
13335 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13336 __libc_lock_self0.
13337 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13338 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13339 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13340 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13341 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13342 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13343 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13344 define variables.
13345 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13346 <hurd/threadvar.h>.
13347 [IS_IN(rtld)] (rtld_errno): New variable.
13348 [IS_IN(rtld)] (__errno_location): New weak function.
13349 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13350 * sysdeps/mach/hurd/errno.c: Remove file.
13351 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13352 (__fork): Remove THREADVAR_SPACE macro and its use.
13353 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13354 variable.
13355 (init): Do not initialize threadvar.
13356 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13357 symbol.
13358 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13359 __hurd_local_reply_port instead of threadvar.
13360 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13361 _hurd_sigstate fields.
13362 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13363 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13364 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13365 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13366 instead of threadvar.
13367 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13368 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13369 (use_threadvar, global_reply_port): Remove variables.
13370 (__hurd_reply_port0): New variable.
13371 (__mig_get_reply_port): Use __hurd_local_reply_port and
13372 __hurd_reply_port0 instead of threadvar.
13373 (__mig_dealloc_reply_port): Likewise.
13374 (__mig_init): Do not initialize threadvar.
13375 * sysdeps/mach/hurd/profil.c: Fix comment.
13376 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13377 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13378 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13379 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13380 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13381 __cthread_setspecific.
13382 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13383 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13384 __cthread_t instead of cthread_fork, cthread_detach,
13385 pthread_getattr_np, pthread_attr_getstack.
13386 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13387 __cthread_keycreate.
13388 (cthread_getspecific): Rename to __cthread_getspecific.
13389 (cthread_setspecific): Rename to __cthread_setspecific.
13390 (__libc_getspecific): Use __cthread_getspecific instead of
13391 cthread_getspecific.
13392 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13393 __cthread_keycreate instead of cthread_keycreate.
13394 (__libc_setspecific): Use __cthread_setspecific instead of
13395 cthread_setspecific.
13396 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13397 Likewise.
13398 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13399 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13400 testing whether it is defined.
13401
13402 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13403
13404 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13405 Define macro.
13406 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13407 * sysdeps/mach/i386/thread_state.h
13408 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13409 i386_THREAD_STATE.
13410 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13411 i386_THREAD_STATE.
13412 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13413
13414 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13415 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13416
13417 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13418 macros.
13419 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13420 descriptor instead of creating a new one.
13421 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13422
13423 * mach/setup-thread.c: Include <ldsodefs.h>.
13424 (__mach_setup_thread): Call _dl_allocate_tls, pass
13425 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13426 MACHINE_THREAD_STATE_FLAVOR, before getting
13427 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13428 MACHINE_THREAD_STATE_FLAVOR with the result.
13429 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13430 MACHINE_THREAD_STATE_FIX_NEW.
13431 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13432 too. Add original thread parameter.
13433
13434 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13435
13436 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13437 Remove inline function.
13438
13439 * sysdeps/i386/fpu/libm-test-ulps: Update.
13440 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13441
13442 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13443
13444 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13445 commit.
13446
13447 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13448
13449 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13450 (__sincos_code): Remove define and undefine.
13451 [__FAST_MATH__] (__sincos): Remove inline function.
13452 [__FAST_MATH__] (__sincosf): Remove inline function.
13453 [__FAST_MATH__] (__sincosl): Remove inline function.
13454 (__atan2l): Remove inline functions.
13455 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13456 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13457 function.
13458 (floor): Remove inline function.
13459 (ceil): Likewise.
13460 [__FAST_MATH__] (__ldexp_code): Remove macro.
13461 [__FAST_MATH__] (ldexp): Remove inline function.
13462 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13463 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13464 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13465 [__USE_ISOC99] (__lrint_code): Remove macro.
13466 [__USE_ISOC99] (__llrint_code): Likewise.
13467 [__USE_ISOC99] (lrintf): Remove inline function.
13468 [__USE_ISOC99] (lrint): Likewise.
13469 [__USE_ISOC99] (lrintl): Likewise.
13470 [__USE_ISOC99] (llrint): Likewise.
13471 [__USE_ISOC99] (llrintf): Likewise.
13472 [__USE_ISOC99] (llrintl): Likewise.
13473
13474 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13475
13476 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13477 (__ieee754_sqrtf): Remove.
13478 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13479 (__ieee754_sqrtf): Remove.
13480 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13481 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13482 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13483 (__ieee754_sqrtf): Remove.
13484 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13485 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13486 (sqrtf): Remove.
13487 (sqrtl): Remove.
13488 (__ieee754_sqrt): Remove.
13489 (__ieee754_sqrtf): Remove.
13490 (__ieee754_sqrtl): Remove.
13491 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13492 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13493 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13494 (__ieee754_sqrtf): Remove.
13495 (__ieee754_sqrtl): Remove.
13496
13497 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13498
13499 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13500 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13501 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13502 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13503 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13504 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13505 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13506 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13507 Likewise.
13508 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13509 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13510 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13511 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13512 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13513 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13514 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13515 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13516 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13517 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13518 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13519 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13520 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13521 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13522 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13523 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13524 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13525 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13526 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13527 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13528 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13529 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13530 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13531 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13532 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13533 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13534 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13535 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13536 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13537 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13538 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13539 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13540 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13541 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13542 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13543 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13544 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13545 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13546 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13547 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13548
13549 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13550
13551 * include/math.h (sqrt): Declare with asm redirect.
13552 (sqrtf): Likewise.
13553 (sqrtl): Likewise.
13554 (sqrtf128): Likewise.
13555 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13556 nonlib and libnldbl with -fmath-errno.
13557 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13558 * math/w_sqrt_template.c: Likewise.
13559 * math/w_sqrtf_compat.c: Likewise.
13560 * math/w_sqrtl_compat.c: Likewise.
13561 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13562 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13563 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13564 complex.h.
13565
13566 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13567
13568 * benchtests/Makefile: Define _ISOMAC.
13569 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13570 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13571 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13572 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13573 * benchtests/bench-timing.h: Define attribute_hidden.
13574
13575 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13576
13577 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13578 mov + lsr.
13579
13580 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13581
13582 [BZ #22963]
13583 * localedata/locales/cs_CZ (mon): Rename to...
13584 (alt_mon): This.
13585 (mon): Import from CLDR (genitive case).
13586
13587 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13588
13589 [BZ #22937]
13590 * localedata/locales/el_CY (abmon): Rename to...
13591 (ab_alt_mon): This.
13592 (abmon): Import from CLDR (abbreviated genitive case).
13593 * localedata/locales/el_GR (abmon): Rename to...
13594 (ab_alt_mon): This.
13595 (abmon): Import from CLDR (abbreviated genitive case).
13596
13597 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13598
13599 [BZ #22932]
13600 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13601
13602 2018-03-15 Robert Buj <robert.buj@gmail.com>
13603
13604 [BZ #22848]
13605 * localedata/locales/ca_ES (abmon): Rename to...
13606 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13607 (mon): Rename to...
13608 (alt_mon): This.
13609 (abmon): Import from CLDR (genitive case, month names preceded by
13610 "de" or "d’").
13611 (mon): Likewise.
13612 (abday): Synchronize with CLDR.
13613 (d_t_fmt): Likewise.
13614 (d_fmt): Likewise.
13615 (am_pm): Likewise.
13616
13617 (LC_TIME): Improve indentation.
13618 (LC_TELEPHONE): Likewise.
13619 (LC_NAME): Likewise.
13620 (LC_ADDRESS): Likewise.
13621
13622 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13623
13624 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13625 (lrintf): Remove definitions used only with old GCC.
13626 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13627 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13628 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13629 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13630 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13631 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13632 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13633 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13634 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13635 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13636 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13637 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13638 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13639 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13640 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13641 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13642 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13643 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13644 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13645 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
13646 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
13647 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
13648 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
13649 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
13650 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
13651 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
13652 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
13653 [__FAST_MATH__] (__M_SQRT2): Remove macro.
13654
13655 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
13656
13657 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
13658 instruction to unbreak builds with binutils 2.26 and older.
13659
13660 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
13661
13662 * sysdeps/aarch64/strncmp.S (count): New macro.
13663 (strncmp): Store misaligned length in SRC1 in COUNT.
13664 (mutual_align): Adjust.
13665 (misaligned8): Load dword at a time when it is safe.
13666
13667 2018-03-12 Zack Weinberg <zackw@panix.com>
13668
13669 [BZ #1190]
13670 [BZ #19476]
13671 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
13672 if the _IO_EOF_SEEN bit is already set; update commentary.
13673 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
13674 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
13675
13676 * support/support_openpty.c, support/tty.h: New files.
13677 * support/Makefile (libsupport-routines): Add support_openpty.
13678
13679 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
13680 New test cases.
13681 * libio/Makefile (tests): Add tst-fgetc-after-eof.
13682 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
13683
13684 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
13685
13686 * po/pt_BR.po: Update translations.
13687
13688 2018-03-12 David Michael <fedora.dm0@gmail.com>
13689
13690 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
13691 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
13692 get a port to the startup server.
13693
13694 2018-03-11 Zack Weinberg <zackw@panix.com>
13695
13696 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
13697 before nldbl-compat.h.
13698
13699 2018-03-10 Zack Weinberg <zackw@panix.com>
13700
13701 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
13702 math.h or math_private.h.
13703
13704 * sysdeps/alpha/fpu/s_isnan.c
13705 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
13706 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
13707 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
13708 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
13709 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
13710 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
13711 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
13712 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
13713 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
13714 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
13715 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
13716 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
13717 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
13718 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
13719 Include math_private.h.
13720
13721 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
13722 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
13723 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
13724 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
13725 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
13726 * sysdeps/powerpc/power7/fpu/s_logb.c:
13727 Include math.h and math_private.h.
13728
13729 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
13730 uses of $at in .set noat / .set at.
13731
13732 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
13733
13734 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
13735 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
13736 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
13737 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
13738 Likewise.
13739
13740 2018-03-09 Florian Weimer <fweimer@redhat.com>
13741
13742 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
13743 in comment.
13744
13745 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
13746
13747 [BZ #22919]
13748 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
13749 Add nop before __startcontext, add explaining comments.
13750
13751 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13752
13753 [BZ #22926]
13754 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
13755 empty for __SPE__.
13756 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
13757 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
13758 Do not build hardware transactional code for __SPE__.
13759 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13760 (__lll_trylock_elision): Likewise.
13761 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
13762 (__lll_unlock_elision): Likewise.
13763
13764 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
13765 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
13766 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
13767 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
13768 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
13769 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
13770 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
13771 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
13772 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
13773 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
13774 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
13775 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
13776 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
13777 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
13778 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
13779 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
13780 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
13781 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
13782 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
13783 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
13784 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
13785 * sysdeps/unix/sysv/linux/arm/kernel-features.h
13786 (__ASSUME_CLONE_BACKWARDS): Define.
13787 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
13788 __clone2 if __NR_clone2 is defined.
13789 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13790 (__ASSUME_CLONE_BACKWARDS): Likewise.
13791 * sysdeps/unix/sysv/linux/i386/kernel-features.h
13792 (__ASSUME_CLONE_BACKWARDS): Likewise.
13793 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
13794 (__ASSUME_CLONE2): Likewise.
13795 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
13796 (__ASSUME_CLONE_BACKWARDS3): Likewise.
13797 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
13798 variants and the define architecture can use.
13799 (__ASSUME_CLONE_DEFAULT): Define as default.
13800 * sysdeps/unix/sysv/linux/mips/kernel-features.h
13801 (__ASSUME_CLONE_BACKWARDS): Likewise.
13802 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13803 (__ASSUME_CLONE_BACKWARDS): Likewise.
13804 * sysdeps/unix/sysv/linux/s390/kernel-features.h
13805 (__ASSUME_CLONE_BACKWARDS2): Likewise.
13806
13807 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
13808
13809 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
13810
13811 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
13812 time.
13813
13814 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
13815 (do_test_limit): Likewise.
13816
13817 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
13818 for every implementation.
13819 (do_test): Likewise.
13820
13821 * benchtests/bench-strncmp.c: Convert output to json.
13822
13823 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
13824
13825 * io/futimens.c: Add missing start-of-file descriptive comment.
13826 * io/utime.c: Likewise.
13827 * misc/futimesat.c: Likewise.
13828 * misc/utimes.c: Likewise.
13829 * sysdeps/mach/hurd/futimesat.c: Likewise.
13830 * sysdeps/mach/hurd/utimes.c: Likewise.
13831 * sysdeps/posix/utime.c: Likewise.
13832 * sysdeps/posix/utimes.c: Likewise.
13833 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
13834 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
13835 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
13836 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
13837
13838 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13839
13840 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
13841 hurd_futimes.
13842 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
13843 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
13844 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
13845 (__futimens): Move implementation to...
13846 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
13847 utime_tvalue_from_tspec): ... new helper functions.
13848 (hurd_futimens): New function.
13849 * sysdeps/mach/hurd/futimesat.c: New file.
13850 * sysdeps/mach/hurd/utimensat.c: New file.
13851
13852 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
13853
13854 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
13855 UTIME_OMIT): New macros.
13856 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
13857 before reverting to converting time spec to time value and calling
13858 __file_utimes.
13859 * sysdeps/mach/hurd/utime-helper.c: New file.
13860 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
13861 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
13862 reverting to utime_tvalue_from_tval and __file_utimes.
13863 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
13864 (__lutimes): Just call hurd_futimens after lookup.
13865 * sysdeps/mach/hurd/utimes.c: Likewise.
13866
13867 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13868
13869 * bits/sigaction.h: Add include guard.
13870 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
13871 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
13872 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
13873 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
13874 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
13875 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
13876 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
13877 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
13878 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
13879
13880 2018-03-05 Joseph Myers <joseph@codesourcery.com>
13881
13882 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
13883 -Wmaybe-uninitialized for -Os.
13884 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
13885 this disabling.
13886
13887 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13888
13889 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
13890 __INO_T_MATCHES_INO64_T is defined.
13891 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
13892 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
13893 of definition.
13894 * dirent/alphasort64.c: Likewise.
13895 * dirent/scandir.c: Likewise.
13896 * dirent/scandir64-tail.c: Likewise.
13897 * dirent/scandir64.c: Likewise.
13898 * dirent/scandirat.c: Likewise.
13899 * dirent/scandirat64.c: Likewise.
13900 * dirent/versionsort.c: Likewise.
13901 * dirent/versionsort64.c: Likewise.
13902 * include/dirent.h: Likewise.
13903
13904 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
13905 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
13906 for socketpair endpoint.
13907 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
13908 WRITE_BUFFER_SIZE as buffer size for sending socket.
13909 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
13910 issue on system where send is implemented with sendto syscall.
13911 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
13912 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
13913 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
13914 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
13915
13916 [BZ #21269]
13917 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
13918 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
13919 sa_restorer for vDSO case.
13920 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
13921
13922 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13923
13924 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
13925 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
13926 * hurd/hurd/ioctl.h: Include <mach/port.h>
13927 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
13928 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
13929 <mach/mach_types.h> and <mach/message.h>.
13930 (headers): Move mach/param.h to bits/mach/param.h.
13931 * sysdeps/mach/i386/mach/param.h: Move file to ...
13932 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
13933 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
13934 of <mach/param.h>.
13935 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
13936 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
13937 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
13938 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
13939 trivial, for C++ conformity.
13940 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
13941 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
13942 Process mig output through $(migheadersed).
13943 * hurd/Makefile (migheadersed): Define variable.
13944 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
13945 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
13946 headers.
13947 * hurd/hurd.h: Include <bits/types/sigset_t.h>
13948 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
13949 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
13950 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
13951 <bits/types/sigset_t.h>.
13952 [!defined __USE_GNU]: Do not #error out.
13953 (struct hurd_sigstate): Use _NSIG instead of NSIG.
13954 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
13955 Include <stddef.h> and <bits/types/sigset_t.h>
13956 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
13957 instead of sighandler_t.
13958 * stdlib/errno.h (error_t): Move definition to...
13959 * bits/types/error_t.h: ... new header.
13960 * stdlib/Makefile (headers): Add bits/types/error_t.h.
13961 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
13962 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
13963 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
13964 * hurd/hurd.h: Include <bits/types/error_t.h>
13965 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
13966 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
13967 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
13968 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
13969 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
13970 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
13971 * sysdeps/mach/hurd/futimens.c: New file.
13972
13973 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
13974
13975 [BZ #22918]
13976 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
13977 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
13978 * nscd/gai.c (__nss_hosts_database): Readd definition.
13979 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
13980 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
13981 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
13982
13983 2018-03-02 Joseph Myers <joseph@codesourcery.com>
13984
13985 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
13986 (ifunc_one): Likewise.
13987
13988 2018-03-01 DJ Delorie <dj@delorie.com>
13989
13990 [BZ #22342]
13991 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
13992 key value.
13993
13994 2018-03-01 Maciej W. Rozycki <macro@mips.com>
13995
13996 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
13997 `match_pid' parameter.
13998 (td_ta_thr_iter): Update accordingly.
13999
14000 2018-03-01 Florian Weimer <fweimer@redhat.com>
14001
14002 * nptl/Makefile (install-lib-ldscripts): Remove.
14003 (install): Remove rule.
14004 ($(inst_libdir)/libpthread.so): Likewise.
14005
14006 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14007
14008 [BZ #22896]
14009 * localedata/locales/an_ES: update month and day names,
14010 improve d_fmt, improve postal_fmt, add country_post,
14011 add country_isbn
14012
14013 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14014
14015 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14016 Ukrainian instead of Bulgarian.
14017
14018 2018-03-01 Florian Weimer <fweimer@redhat.com>
14019
14020 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14021 reference.
14022
14023 2018-03-01 Florian Weimer <fweimer@redhat.com>
14024
14025 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14026 * nptl/Makefile (routines): Add pthread_atfork.
14027 (static-only-routines): Set to pthread_atfork.
14028 (libpthread-routines): Remove pthread_atfork.
14029 (libpthread-static-only-routines): Remove.
14030 (install): Update comment.
14031 (libpthread.so): Do not install libpthread_nonshared.a.
14032 (tests): Do not link with libpthread_nonshared.a.
14033 (generated): Remove libpthread_nonshared.a.
14034 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14035 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14036 with libpthread_nonshared.a.
14037
14038 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14039
14040 [BZ #22902]
14041 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14042 (libc_feholdexcept_setroundf128): New macro.
14043 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14044
14045 [BZ #15105]
14046 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14047 libc_hidden_def.
14048 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14049 * include/inttypes.h: New file.
14050
14051 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14052
14053 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14054 -Os in two more places.
14055
14056 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14057
14058 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14059 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14060 be sorted correctly at the moment because of a bug.
14061
14062 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14063
14064 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14065 treat ñ as a primary different character, sync the collation
14066 for Spanish with CLDR.
14067 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14068 * localedata/Makefile: Add new test files.
14069 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14070 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14071 collation order.
14072 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14073 * localedata/am_ET.UTF-8.in: New test file.
14074 * localedata/az_AZ.UTF-8.in: Likewise.
14075 * localedata/be_BY.UTF-8.in: Likewise.
14076 * localedata/ber_DZ.UTF-8.in: Likewise.
14077 * localedata/ber_MA.UTF-8.in: Likewise.
14078 * localedata/bg_BG.UTF-8.in: Likewise.
14079 * localedata/br_FR.UTF-8.in: Likewise.
14080 * localedata/cmn_TW.UTF-8.in: Likewise.
14081 * localedata/crh_UA.UTF-8.in: Likewise.
14082 * localedata/csb_PL.UTF-8.in: Likewise.
14083 * localedata/cv_RU.UTF-8.in: Likewise.
14084 * localedata/cy_GB.UTF-8.in: Likewise.
14085 * localedata/dz_BT.UTF-8.in: Likewise.
14086 * localedata/eo.UTF-8.in: Likewise.
14087 * localedata/es_ES.UTF-8.in: Likewise.
14088 * localedata/fa_IR.UTF-8.in: Likewise.
14089 * localedata/fi_FI.UTF-8.in: Likewise.
14090 * localedata/fil_PH.UTF-8.in: Likewise.
14091 * localedata/fur_IT.UTF-8.in: Likewise.
14092 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14093 * localedata/ha_NG.UTF-8.in: Likewise.
14094 * localedata/ig_NG.UTF-8.in: Likewise.
14095 * localedata/ik_CA.UTF-8.in: Likewise.
14096 * localedata/kk_KZ.UTF-8.in: Likewise.
14097 * localedata/ku_TR.UTF-8.in: Likewise.
14098 * localedata/ky_KG.UTF-8.in: Likewise.
14099 * localedata/ln_CD.UTF-8.in: Likewise.
14100 * localedata/mi_NZ.UTF-8.in: Likewise.
14101 * localedata/ml_IN.UTF-8.in: Likewise.
14102 * localedata/mn_MN.UTF-8.in: Likewise.
14103 * localedata/mr_IN.UTF-8.in: Likewise.
14104 * localedata/mt_MT.UTF-8.in: Likewise.
14105 * localedata/nb_NO.UTF-8.in: Likewise.
14106 * localedata/om_KE.UTF-8.in: Likewise.
14107 * localedata/os_RU.UTF-8.in: Likewise.
14108 * localedata/ps_AF.UTF-8.in: Likewise.
14109 * localedata/ro_RO.UTF-8.in: Likewise.
14110 * localedata/ru_RU.UTF-8.in: Likewise.
14111 * localedata/sc_IT.UTF-8.in: Likewise.
14112 * localedata/se_NO.UTF-8.in: Likewise.
14113 * localedata/sq_AL.UTF-8.in: Likewise.
14114 * localedata/sv_SE.UTF-8.in: Likewise.
14115 * localedata/szl_PL.UTF-8.in: Likewise.
14116 * localedata/tg_TJ.UTF-8.in: Likewise.
14117 * localedata/tk_TM.UTF-8.in: Likewise.
14118 * localedata/tt_RU.UTF-8.in: Likewise.
14119 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14120 * localedata/ug_CN.UTF-8.in: Likewise.
14121 * localedata/uz_UZ.UTF-8.in: Likewise.
14122 * localedata/vi_VN.UTF-8.in: Likewise.
14123 * localedata/yi_US.UTF-8.in: Likewise.
14124 * localedata/yo_NG.UTF-8.in: Likewise.
14125 * localedata/zh_CN.UTF-8.in: Likewise.
14126 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14127 file and fix bugs in the collation.
14128 * localedata/locales/az_AZ: Likewise.
14129 * localedata/locales/be_BY: Likewise.
14130 * localedata/locales/ber_DZ: Likewise.
14131 * localedata/locales/ber_MA: Likewise.
14132 * localedata/locales/bg_BG: Likewise.
14133 * localedata/locales/br_FR: Likewise.
14134 * localedata/locales/br_FR@euro: Likewise.
14135 * localedata/locales/ca_ES: Likewise.
14136 * localedata/locales/cns11643_stroke: Likewise.
14137 * localedata/locales/crh_UA: Likewise.
14138 * localedata/locales/cs_CZ: Likewise.
14139 * localedata/locales/csb_PL: Likewise.
14140 * localedata/locales/cv_RU: Likewise.
14141 * localedata/locales/cy_GB: Likewise.
14142 * localedata/locales/da_DK: Likewise.
14143 * localedata/locales/dz_BT: Likewise.
14144 * localedata/locales/en_CA: Likewise.
14145 * localedata/locales/eo: Likewise.
14146 * localedata/locales/es_CU: Likewise.
14147 * localedata/locales/es_EC: Likewise.
14148 * localedata/locales/es_ES: Likewise.
14149 * localedata/locales/es_US: Likewise.
14150 * localedata/locales/et_EE: Likewise.
14151 * localedata/locales/fa_IR: Likewise.
14152 * localedata/locales/fi_FI: Likewise.
14153 * localedata/locales/fil_PH: Likewise.
14154 * localedata/locales/fur_IT: Likewise.
14155 * localedata/locales/gez_ER@abegede: Likewise.
14156 * localedata/locales/ha_NG: Likewise.
14157 * localedata/locales/hr_HR: Likewise.
14158 * localedata/locales/hsb_DE: Likewise.
14159 * localedata/locales/hu_HU: Likewise.
14160 * localedata/locales/ig_NG: Likewise.
14161 * localedata/locales/ik_CA: Likewise.
14162 * localedata/locales/is_IS: Likewise.
14163 * localedata/locales/iso14651_t1_pinyin: Likewise.
14164 * localedata/locales/kk_KZ: Likewise.
14165 * localedata/locales/ku_TR: Likewise.
14166 * localedata/locales/ky_KG: Likewise.
14167 * localedata/locales/ln_CD: Likewise.
14168 * localedata/locales/lt_LT: Likewise.
14169 * localedata/locales/lv_LV: Likewise.
14170 * localedata/locales/mi_NZ: Likewise.
14171 * localedata/locales/ml_IN: Likewise.
14172 * localedata/locales/mn_MN: Likewise.
14173 * localedata/locales/mr_IN: Likewise.
14174 * localedata/locales/mt_MT: Likewise.
14175 * localedata/locales/nb_NO: Likewise.
14176 * localedata/locales/om_KE: Likewise.
14177 * localedata/locales/os_RU: Likewise.
14178 * localedata/locales/pl_PL: Likewise.
14179 * localedata/locales/ps_AF: Likewise.
14180 * localedata/locales/ro_RO: Likewise.
14181 * localedata/locales/ru_RU: Likewise.
14182 * localedata/locales/ru_UA: Likewise.
14183 * localedata/locales/sc_IT: Likewise.
14184 * localedata/locales/se_NO: Likewise.
14185 * localedata/locales/si_LK: Likewise.
14186 * localedata/locales/sq_AL: Likewise.
14187 * localedata/locales/sv_FI: Likewise.
14188 * localedata/locales/sv_FI@euro: Likewise.
14189 * localedata/locales/sv_SE: Likewise.
14190 * localedata/locales/szl_PL: Likewise.
14191 * localedata/locales/tg_TJ: Likewise.
14192 * localedata/locales/ti_ER: Likewise.
14193 * localedata/locales/tk_TM: Likewise.
14194 * localedata/locales/tl_PH: Likewise.
14195 * localedata/locales/tr_TR: Likewise.
14196 * localedata/locales/tt_RU: Likewise.
14197 * localedata/locales/tt_RU@iqtelif: Likewise.
14198 * localedata/locales/ug_CN: Likewise.
14199 * localedata/locales/uk_UA: Likewise.
14200 * localedata/locales/uz_UZ: Likewise.
14201 * localedata/locales/uz_UZ@cyrillic: Likewise.
14202 * localedata/locales/vi_VN: Likewise.
14203 * localedata/locales/yi_US: Likewise.
14204 * localedata/locales/yo_NG: Likewise.
14205
14206 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14207
14208 * gen-locales.mk: Make test files which contain @ modifiers in their
14209 name work.
14210 * localedata/gen-locale.sh: Likewise.
14211
14212 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14213
14214 * posix/tst-fnmatch.input: Fix results for range expressions
14215 for non C locales.
14216 * posix/tst-regexloc.c: Do not use a range expression for
14217 de_DE.ISO-8859-1 locale.
14218
14219 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14220
14221 * posix/bug-regex5.c: Fix test case because with the new
14222 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14223 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14224 file.
14225
14226 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14227
14228 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14229 downloaded from ISO, the collation order of @-. and space has changed.
14230 Therefore, this test file needed to be adapted.
14231 * localedata/fr_CA.UTF-8.in: Likewise.
14232 * localedata/fr_FR.UTF-8.in: Likewise.
14233 * localedata/uk_UA.UTF-8.in: Likewise.
14234
14235 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14236
14237 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14238 order of ȥ in the new iso14651_t1_common file.
14239 * localedata/pl_PL.UTF-8.in: Likewise.
14240
14241 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14242
14243 * localedata/locales/iso14651_t1_common: Add sections for various
14244 scripts to the iso14651_t1_common file.
14245
14246 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14247
14248 * localedata/locales/iso14651_t1_common: Use the code point of a
14249 character in the fourth collation level instead of IGNORE for all
14250 entries which have IGNORE on all 4 levels.
14251
14252 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14253
14254 * localedata/locales/iso14651_t1_common: Add some convenient collation
14255 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14256 rules similar to those in CLDR.
14257
14258 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14259
14260 * localedata/locales/iso14651_t1_common: The new version of this
14261 file downloaded from ISO contained several syntax errors which
14262 are fixed by this patch.
14263
14264 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14265
14266 * localedata/locales/iso14651_t1_common: replace all <U.....>
14267 with <U000.....> because glibc understands only 4 digit or 8 digit
14268
14269 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14270
14271 * localedata/locales/iso14651_t1_common: Necessary changes
14272 to make the file downloaded from ISO usable by glibc.
14273
14274 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14275
14276 [BZ #14095]
14277 * localedata/locales/iso14651_t1_common: Update file to
14278 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14279
14280 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14281
14282 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14283 of <nptl/pthreadP.h>
14284 (thread_attr_compare): Move function to...
14285 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14286 * sysdeps/nptl/timer_routines.h: ... new header.
14287 * sysdeps/mach/hurd/gai_misc.h: New file.
14288
14289 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14290
14291 * string/strcoll_l.c: Include <libc-diag.h>.
14292 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14293 declarations of seq1 and seq2.
14294
14295 [BZ #15105]
14296 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14297 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14298
14299 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14300
14301 [BZ #22433]
14302 [BZ #22807]
14303 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14304 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14305 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14306 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14307 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14308 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14309
14310 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14311
14312 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14313 macros used in __ptrace_request.
14314
14315 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14316
14317 [BZ #22792]
14318 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14319 to $(CC).
14320 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14321 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14322 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14323 <tcb-offsets.h>.
14324
14325 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14326
14327 [BZ #15105]
14328 * ctype/ctype.c (tolower): Use libc_hidden_def.
14329 (toupper): Likewise.
14330 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14331 [!_ISOMAC] (toupper): Likewise.
14332
14333 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14334
14335 * localedata/Makefile: Remove --quiet argument when
14336 installing locales
14337
14338 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14339
14340 [BZ #17438]
14341 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14342 in d_fmt.
14343 * localedata/locales/pt_PT (LC_TIME): likewise
14344
14345 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14346
14347 [BZ #22646]
14348 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14349 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14350 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14351
14352 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14353
14354 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14355
14356 * nptl/Makefile (routines): Remove unregister-atfork.
14357 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14358 (fork_handler_alloc): Remove function.
14359 (fork_handlers, fork_handler_init): New variables.
14360 (__fork_lock): Rename to atfork_lock.
14361 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14362 to use a dynamic array to add/remove atfork handlers.
14363 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14364 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14365 Remove declaration.
14366 (fork_handler): Remove next, refcntr, and need_signal member.
14367 (__run_fork_handler_type): New enum.
14368 (__run_fork_handlers): New prototype.
14369 * nptl/register-atfork.c: Remove file.
14370 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14371
14372 * sysdeps/nptl/nptl-signals.h: Move to ...
14373 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14374 comments.
14375 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14376 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14377 unnecessary check for SIGTIMER.
14378 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14379 remove unnecessary removal of SIGTIMER.
14380 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14381 include-signals.h rename.
14382 * nptl/pthreadP.h: Likewise.
14383 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14384 __is_internal_signal instead of __nptl_is_internal_signal.
14385
14386 2018-02-22 Andrew Waterman <andrew@sifive.com>
14387
14388 [BZ # 22884]
14389 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14390 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14391 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14392 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14393
14394 2018-02-22 DJ Delorie <dj@delorie.com>
14395
14396 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14397
14398 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14399
14400 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14401 do_misaligned, not misaligned8.
14402
14403 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14404
14405 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14406 Add memcpy_thunderx2.
14407 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14408 Increment to 4.
14409 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14410 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14411 and IS_THUNDERX2PA checks.
14412 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14413 Use macro to set name appropriately.
14414 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14415 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14416 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14417 New macro.
14418 (IS_THUNDERX2): New macro.
14419
14420 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14421
14422 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14423
14424 2018-02-21 Zack Weinberg <zackw@panix.com>
14425
14426 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14427 Define here, unconditionally.
14428 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14429 * libio/libioP.h: Remove #if 0 blocks.
14430 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14431 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14432 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14433
14434 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14435 Assume weak_alias is always defined.
14436
14437 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14438 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14439 Remove #if 0 and #ifdef TODO blocks.
14440 Assume text_set_element is always defined.
14441
14442 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14443 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14444 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14445
14446 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14447 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14448 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14449 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14450 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14451 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14452 Reformat bit flags for _flags field to make occupancy clearer.
14453 Update commentary.
14454 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14455 Keep definitions consistent with those in libio/libio.h.
14456
14457 * libio/libio.h (_IO_file_flags): Remove macro.
14458 All uses changed to _flags.
14459
14460 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14461 (__HAVE_COLUMN, _IO_BE): Don't define.
14462 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14463 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14464 * libio/libioP.h (EOF): Don't define.
14465 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14466 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14467 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14468 testing _IO_UNIFIED_JUMPTABLES.
14469
14470 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14471 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14472 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14473 (_IO_size_t): Delete; all uses changed to size_t.
14474 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14475 (_IO_off_t): Delete; all uses changed to off_t.
14476 (_IO_off64_t): Delete; all uses changed to off64_t.
14477 (_IO_pid_t): Delete; all uses changed to pid_t.
14478 (_IO_uid_t): Delete; all uses changed to uid_t.
14479 (_IO_wint_t): Delete; all uses changed to wint_t.
14480 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14481 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14482 (_IO_cookie_io_functions_t): Delete; all uses changed to
14483 cookie_io_functions_t.
14484 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14485 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14486 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14487 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14488
14489 * libio/iofopncook.c: Remove unnecessary forward declarations.
14490 * libio/iolibio.h: Correct outdated commentary.
14491 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14492 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14493 Remove unnecessary casts.
14494 * stdio-common/getline.c: Use _IO_getdelim directly.
14495 Don't redefine ssize_t.
14496 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14497 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14498 Remove outdated comments.
14499 * stdio-common/vfscanf.c: Don't redefine va_list.
14500
14501 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14502 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14503 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14504 which are always true, and __cplusplus, which is always false.
14505
14506 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14507
14508 [BZ #15105]
14509 [BZ #19463]
14510 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14511 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14512 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14513 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14514 libc_hidden_proto.
14515 [!_ISOMAC] (putc_unlocked): Likewise.
14516 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14517 define inline if [__USE_EXTERN_INLINES].
14518 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14519 putc_unlocked.
14520
14521 [BZ #15105]
14522 [BZ #19463]
14523 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14524 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14525 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14526 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14527 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14528 getc_unlocked.
14529 * time/tzfile.c (__tzfile_read): Likewise.
14530
14531 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14532
14533 [BZ #22517]
14534 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14535
14536 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14537
14538 * io/fcntl.h: Fix a typo in a comment.
14539
14540 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14541
14542 [BZ #22862]
14543 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14544 define _DEFAULT_SOURCE.
14545 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14546
14547 2018-02-21 Florian Weimer <fweimer@redhat.com>
14548
14549 [BZ #20890]
14550 * elf/cache.c (save_cache): Call fsync on temporary file before
14551 renaming it.
14552 (save_aux_cache): Call fdatasync on temporary file before renaming
14553 it.
14554
14555 2018-02-21 Florian Weimer <fweimer@redhat.com>
14556
14557 [BZ #22787]
14558 * include/caller.h: Remove file.
14559 * elf/dl-caller.c: Likewise.
14560 * elf/Makefile (dl-routines): Remove dl-caller.
14561 (shared-only-routines): Do not add dl-caller.
14562 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14563 __check_caller.
14564 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14565 member.
14566 (dl_open_worker): Do not call __check_caller.
14567 (_dl_open): Do not set caller_dl_open member.
14568 * elf/rtld.c (_rtld_global_ro): Do not initialize
14569 _dl_check_caller member.
14570 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14571 _dl_check_caller member.
14572 (_dl_check_caller): Remove declaration.
14573 * sysdeps/unix/sysv/linux/dl-execstack.c
14574 (_dl_make_stack_executable): Do not call __check_caller.
14575
14576 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14577
14578 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14579 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14580
14581 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14582
14583 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14584 description.
14585
14586 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14587
14588 [BZ #16335]
14589 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14590 of 199606L, 200112L, and 200809L.
14591 (_XOPEN_SOURCE): Document special values of 600 and 700.
14592 (_ISOC11_SOURCE): Document macro.
14593 (_ATFILE_SOURCE): Likewise.
14594 (_FORTIFY_SOURCE): Likewise.
14595
14596 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14597
14598 [BZ #15105]
14599 [BZ #19463]
14600 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14601 and define as weak alias of __ferror_unlocked. Use
14602 libc_hidden_weak.
14603 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14604 libc_hidden_proto.
14605 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14606 function if [__USE_EXTERN_INLINES].
14607 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14608 ferror_unlocked.
14609
14610 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14611
14612 [BZ #6889]
14613 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14614
14615 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14616
14617 [BZ #22818]
14618 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14619 the GLIBC_2.1 version.
14620
14621 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14622
14623 [BZ #21508]
14624 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14625 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14626 intl/tst-gettext-de.po from po/de.po by removing the
14627 POT-Creation-Date line.
14628 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14629 ../po/de.po.
14630 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14631 ../po/de.po.
14632
14633 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14634
14635 * mach/Makefile (headers): Add mach/param.h.
14636 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14637 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14638 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14639 (__ptsname_r): Move implementation to...
14640 (__ptsname_internal): ... new function. Add filling the STP
14641 structure.
14642
14643 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14644
14645 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
14646 idouble to 1 ULP.
14647
14648 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
14649
14650 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
14651 syntax.
14652
14653 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
14654
14655 * nptl/Makefile (tst-mutex8-ENV): Delete.
14656 * nptl/tst-mutex8.c (check_type):
14657 Add runtime check if mutex will be elided.
14658
14659 2018-02-15 Joseph Myers <joseph@codesourcery.com>
14660
14661 [BZ #20980]
14662 [BZ #21234]
14663 * manual/install.texi (Configuring and compiling): Describe
14664 passing CC and CFLAGS on configure command line, not as
14665 environment variables. Use @code markup on those variables.
14666 Specify what options go in CC and what go in CFLAGS. Note the
14667 requirement to compile with optimization.
14668 * INSTALL: Regenerated.
14669
14670 [BZ #18124]
14671 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
14672 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
14673 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
14674 __sigprocmask instead of sigprocmask.
14675 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
14676 Likewise.
14677 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
14678 __sigsetjmp and sigprocmask.
14679
14680 [BZ #15105]
14681 * include/argz.h (argz_next): Use libc_hidden_proto.
14682 (__argz_next): Likewise.
14683 * string-argz-next.c (__argz_next): Use libc_hidden_def.
14684 (argz_next): Use libc_hidden_weak.
14685
14686 [BZ #15105]
14687 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
14688 libc_hidden_proto.
14689 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
14690 libc_hidden_def.
14691
14692 [BZ #15105]
14693 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
14694 libc_hidden_proto.
14695 * libio/iofputs.c (fputs): Use libc_hidden_weak.
14696
14697 [BZ #15105]
14698 [BZ #19463]
14699 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
14700 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
14701 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
14702 (__feof_unlocked): New declaration, and inline function if
14703 [__USE_EXTERN_INLINES].
14704 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
14705 instead of feof_unlocked.
14706 * intl/localealias.c [_LIBC] (FEOF): Likewise.
14707 * nss/nsswitch.c (nss_parse_file): Likewise.
14708 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
14709 Likewise.
14710 * time/getdate.c (__getdate_r): Likewise.
14711 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
14712 Define as macro to call __feof_unlocked.
14713
14714 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
14715
14716 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
14717
14718 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
14719
14720 * math/Makefile: Remove mpexp.c and mplog.c
14721 * sysdeps/i386/fpu/mpexp.c: Delete file.
14722 * sysdeps/i386/fpu/mplog.c: Likewise.
14723 * sysdeps/ia64/fpu/mpexp.c: Likewise.
14724 * sysdeps/ia64/fpu/mplog.c: Likewise.
14725 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
14726 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
14727 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
14728 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
14729 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
14730 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
14731 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
14732 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
14733 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
14734 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14735 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
14736 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
14737 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14738 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
14739 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
14740 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14741
14742 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
14743
14744 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14745
14746 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14747
14748 * sysdeps/sh/libm-test-ulps: Update.
14749
14750 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14751
14752 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
14753 idouble to 1 ULP.
14754
14755 2018-02-12 Zack Weinberg <zackw@panix.com>
14756
14757 [BZ #19239]
14758 * posix/sys/types.h: Don't include sys/sysmacros.h.
14759 * misc/sys/sysmacros.h: Remove the conditional deprecation
14760 warnings for the macros defined by this header.
14761
14762 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
14763
14764 * manual/probes.texi: Remove slowexp probes.
14765 * math/Makefile: Remove slowexp.
14766 * sysdeps/generic/math_private.h (__slowexp): Remove.
14767 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
14768 document error bounds.
14769 * sysdeps/i386/fpu/slowexp.c: Remove.
14770 * sysdeps/ia64/fpu/slowexp.c: Remove.
14771 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
14772 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
14773 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
14774 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
14775 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
14776 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
14777 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
14778 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
14779 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
14780 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
14781 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
14782
14783 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
14784
14785 [BZ #13932]
14786 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
14787 * benchtests/pow-inputs: Update comment for slow path cases.
14788 * manual/probes.texi (slowpow_p10): Delete removed probe.
14789 (slowpow_p10): Likewise.
14790 * math/Makefile: Remove halfulp.c and slowpow.c.
14791 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
14792 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
14793 (__halfulp): Remove.
14794 (__slowpow): Remove.
14795 * sysdeps/i386/fpu/halfulp.c: Delete file.
14796 * sysdeps/i386/fpu/slowpow.c: Likewise.
14797 * sysdeps/ia64/fpu/halfulp.c: Likewise.
14798 * sysdeps/ia64/fpu/slowpow.c: Likewise.
14799 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
14800 improve comments and add error analysis.
14801 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
14802 (power1): Remove function:
14803 (log1): Remove error argument, add error analysis.
14804 (my_log2): Remove function.
14805 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
14806 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14807 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
14808 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
14809 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
14810 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
14811 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
14812 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
14813 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
14814 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
14815 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
14816 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14817 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
14818 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14819
14820 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
14821
14822 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
14823 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
14824
14825 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
14826
14827 [BZ #22433]
14828 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
14829 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
14830 and PTRACE_SETHBPREGS.
14831
14832 2018-02-10 Zack Weinberg <zackw@panix.com>
14833
14834 [BZ #22830]
14835 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
14836 correctly.
14837 * malloc/tst-malloc-stats-cancellation.c: New test case.
14838 * malloc/Makefile: Add new test case.
14839
14840 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
14841
14842 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
14843
14844 2018-02-10 Joseph Myers <joseph@codesourcery.com>
14845
14846 * math/Makefile (libm-narrow-fns): Add add.
14847 (libm-test-funcs-narrow): Likewise.
14848 * math/Versions (GLIBC_2.28): Add narrowing add functions.
14849 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
14850 * math/gen-auto-libm-tests.c (test_functions): Add add.
14851 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
14852 (NARROW_ADD_ROUND_TO_ODD): Likewise.
14853 (NARROW_ADD_TRIVIAL): Likewise.
14854 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
14855 macro.
14856 (__daddl): Likewise.
14857 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
14858 dadd.
14859 (CFLAGS-nldbl-dadd.c): New variable.
14860 (CFLAGS-nldbl-fadd.c): Likewise.
14861 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14862 __nldbl_daddl.
14863 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
14864 prototype.
14865 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
14866 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
14867 * math/auto-libm-test-in: Add tests of add.
14868 * math/auto-libm-test-out-narrow-add: New generated file.
14869 * math/libm-test-narrow-add.inc: New file.
14870 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14871 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
14872 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
14873 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
14874 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
14875 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
14876 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
14877 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
14878 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
14879 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
14880 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
14881 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
14882 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
14883 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
14884 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
14885 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
14886 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
14887 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
14888 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14889 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14890 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14891 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14892 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14893 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14894 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14895 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14896 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14897 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14898 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14899 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14900 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14901 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14902 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14903 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14904 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14906 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14907 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14908 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14909 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14910 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14911 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14912 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14913 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14914 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14915 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14916
14917 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
14918 (f128-pairs): New variable.
14919 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
14920 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
14921 to CFLAGS.
14922 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
14923 Also make tests add $(f128-loader-link) to gnulib-tests.
14924
14925 2018-02-09 DJ Delorie <dj@redhat.com>
14926
14927 [BZ #22827]
14928 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
14929 64-bit ELF type for 64-bit ELF objects.
14930
14931 2018-02-09 Joseph Myers <joseph@codesourcery.com>
14932
14933 * math/libm-test-driver.c (snan_tests_arg): New variable.
14934 * math/libm-test-support.h (snan_tests_arg): New declaration.
14935 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
14936
14937 * math/Makefile (test-type-pairs): New variable.
14938 (test-type-pairs-f64xf128-yes): Likewise.
14939 (tests): Add test-narrow-macros.
14940 (libm-test-funcs-narrow): New variable.
14941 (libm-test-c-narrow): Likewise.
14942 (generated): Add $(libm-test-c-narrow).
14943 (libm-tests-base-narrow): New variable.
14944 (libm-tests-narrow): Likewise.
14945 (libm-tests): Add $(libm-tests-narrow).
14946 (libm-tests-for-type): Handle $(libm-tests-narrow).
14947 (libm-test-c-narrow-obj): New variable.
14948 ($(libm-test-c-narrow-obj)): New rule.
14949 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
14950 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
14951 $(o-iterator) to set dependencies and CFLAGS.
14952 * math/gen-auto-libm-tests.c: Document use for narrowing
14953 functions.
14954 (output_for_one_input_case): Take argument NARROW.
14955 (generate_output): Likewise. Update call to
14956 output_for_one_input_case.
14957 (main): Take --narrow option. Update call to generate_output.
14958 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
14959 (apply_lit): Update call to _apply_lit.
14960 (apply_arglit): New function.
14961 (parse_args): Handle "a" arguments.
14962 (parse_auto_input): Handle format names using ":".
14963 * math/README.libm-test: Document "a" parameter type.
14964 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
14965 (ARG_TYPE_TRUE_MIN): Likewise.
14966 (ARG_TYPE_MAX): Likwise.
14967 (ARG_MIN_EXP): Likewise.
14968 (ARG_MAX_EXP): Likewise.
14969 (ARG_MANT_DIG): Likewise.
14970 (TEST_COND_arg_ibm128): Likewise.
14971 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
14972 (TEST_COND_arg_fmt): New macro.
14973 (init_max_error): Update prototype.
14974 * math/libm-test-support.c (test_ibm128): New variable.
14975 (init_max_error): Take argument testing_ibm128 and set test_ibm128
14976 instead of using [TEST_COND_ibm128] conditional.
14977 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
14978 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
14979 [TEST_NARROW] (TEST_MSG): New definition.
14980 (arg_plus_zero): New macro.
14981 (arg_minus_zero): Likewise.
14982 (arg_plus_infty): Likewise.
14983 (arg_minus_infty): Likewise.
14984 (arg_qnan_value_pl): Likewise.
14985 (arg_qnan_value): Likewise.
14986 (arg_snan_value_pl): Likewise.
14987 (arg_snan_value): Likewise.
14988 (arg_max_value): Likewise.
14989 (arg_min_value): Likewise.
14990 (arg_min_subnorm_value): Likewise.
14991 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
14992 (RUN_TEST_LOOP_aa_f): New macro.
14993 (TEST_SUFF): New macro.
14994 (TEST_SUFF_STR): Likewise.
14995 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
14996 (TEST_COND_any_ibm128): New macro.
14997 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
14998 this_func. Update call to init_max_error.
14999 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15000 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15001 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15002 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15003 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15004 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15005 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15006 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15007 * math/test-math-vector.h (TEST_NARROW): Likewise.
15008 * math/test-arg-double.h: New file.
15009 * math/test-arg-float128.h: Likewise.
15010 * math/test-arg-float32x.h: Likewise.
15011 * math/test-arg-float64.h: Likewise.
15012 * math/test-arg-float64x.h: Likewise.
15013 * math/test-arg-ldouble.h: Likewise.
15014 * math/test-math-narrow.h: Likewise.
15015 * math/test-narrow-macros.c: Likewise.
15016 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15017 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15018 test-narrow-macros-ldbl-64.
15019 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15020
15021 * math/bits/mathcalls-narrow.h: New file.
15022 * include/bits/mathcalls-narrow.h: Likewise.
15023 * math/math-narrow.h: Likewise.
15024 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15025 (__MATHCALL_NARROW_ARGS_2): Likewise.
15026 (__MATHCALL_NARROW_ARGS_3): Likewise.
15027 (__MATHCALL_NARROW_NORMAL): Likewise.
15028 (__MATHCALL_NARROW_REDIR): Likewise.
15029 (__MATHCALL_NARROW): Likewise.
15030 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15031 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15032 defined.
15033 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15034 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15035 (libm-narrow-fns): New variable.
15036 (libm-narrow-types-basic): Likewise.
15037 (libm-narrow-types-ldouble-yes): Likewise.
15038 (libm-narrow-types-float128-yes): Likewise.
15039 (libm-narrow-types-float128-alias-yes): Likewise.
15040 (libm-narrow-types): Likewise.
15041 (libm-routines): Add narrowing functions.
15042 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15043 (libc_feholdexcept_setroundf128): New macro.
15044 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15045 * sysdeps/ieee754/float128/float128_private.h: Include
15046 <math/math-narrow.h>.
15047 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15048 Undefine and redefine.
15049 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15050 (libm_alias_float_ldouble): Undefine and redefine.
15051 (libm_alias_double_ldouble): Likewise.
15052
15053 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15054
15055 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15056
15057 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15058 FPCR/FPSR.
15059
15060 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15061
15062 * manual/creature.texi: Convert references to gcc.info to gcc.
15063 * manual/stdio.texi: Likewise.
15064 * manual/string.texi: Likewise.
15065
15066 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15067
15068 [BZ #17979]
15069 * posix/bits/types.h (__int_least8_t): New typedef.
15070 (__uint_least8_t): Likewise.
15071 (__int_least16_t): Likewise.
15072 (__uint_least16_t): Likewise.
15073 (__int_least32_t): Likewise.
15074 (__uint_least32_t): Likewise.
15075 (__int_least64_t): Likewise.
15076 (__uint_least64_t): Likewise.
15077 * sysdeps/generic/stdint.h (int_least8_t): Define using
15078 __int_least8_t.
15079 (int_least16_t): Define using __int_least16_t.
15080 (int_least32_t): Define using __int_least32_t.
15081 (int_least64_t): Define using __int_least64_t.
15082 (uint_least8_t): Define using __uint_least8_t.
15083 (uint_least16_t): Define using __uint_least16_t.
15084 (uint_least32_t): Define using __uint_least32_t.
15085 (uint_least64_t): Define using __uint_least64_t.
15086 * wcsmbs/uchar.h: Include <bits/types.h>.
15087 (char16_t): Define using __uint_least16_t conditional only on
15088 [!__USE_ISOCXX11].
15089 (char32_t): Define using __uint_least32_t conditional only on
15090 [!__USE_ISOCXX11].
15091 * wcsmbs/test-char-types.c: New file.
15092 * wcsmbs/Makefile (tests): Add test-char-types.
15093
15094 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15095 version to 4.0.1.
15096
15097 2018-02-07 Zack Weinberg <zackw@panix.com>
15098
15099 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15100 Delete all contents except for definitions of _G_HAVE_MMAP and
15101 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15102 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15103 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15104 change as above.
15105
15106 * libio/libio.h: Don't include bits/_G_config.h here.
15107 Include stddef.h with __need_wchar_t defined. Include
15108 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15109 Define _IO_iconv_t here, directly.
15110 Don't define _IO_HAVE_ST_BLKSIZE.
15111 * libio/libioP.h: Include _G_config.h here. Move include of
15112 shlib-compat.h up with rest of includes. Simplify conditionals
15113 controlling definition of _IO_JUMPS_OFFSET.
15114
15115 * csu/init.c: Remove always-true #if around entire file.
15116 Don't include stdio.h. Set _IO_stdin_used to hardwired
15117 constant 0x20001, and update commentary.
15118 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15119 Replace all uses of _G_va_list with __gnuc_va_list.
15120 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15121 instead of #if _IO_HAVE_ST_BLKSIZE.
15122 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15123 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15124 not #ifdef.
15125
15126 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15127 multiple-include guard to match.
15128 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15129 into this file.
15130 Remove preprocessor conditionals that are always true and/or
15131 redundant to other preprocessor conditionals in the same nest.
15132 Include shlib-compat.h unconditionally.
15133 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15134 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15135 defined after including stdio.h.
15136 Use __BEGIN_DECLS/__END_DECLS.
15137
15138 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15139 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15140 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15141
15142 2018-02-07 Zack Weinberg <zackw@panix.com>
15143
15144 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15145 New single-type headers split from _G_config.h.
15146 * libio/bits/types/cookie_io_functions_t.h
15147 * libio/bits/types/struct_FILE.h
15148 New single-type headers split from libio.h.
15149
15150 * libio/Makefile: Install the above new headers. Don't install
15151 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15152 bits/libio-ldbl.h.
15153 * libio/_G_config.h, libio/libio.h: Delete file.
15154
15155 * libio/bits/libio.h: Remove improper-inclusion guard.
15156 Include stdio.h and don't repeat anything that it does.
15157 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15158 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15159 __io_read_fn as cookie_read_function_t,
15160 __io_write_fn as cookie_write_function_t,
15161 __io_seek_fn as cookie_seek_function_t,
15162 __io_close_fn as cookie_close_function_t,
15163 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15164 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15165 here, in the "compatibility defines" section. Remove an #if 0
15166 block. Use the "body" macros from bits/types/struct_FILE.h to
15167 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15168 and _IO_ferror_unlocked.
15169 Move prototypes of __uflow and __overflow...
15170
15171 * libio/stdio.h: ...here. Don't include bits/libio.h.
15172 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15173 directly from stdarg.h. Include bits/types/__fpos_t.h,
15174 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15175 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15176 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15177 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15178 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15179 __ssize_t, not _IO_ssize_t. Unconditionally define
15180 BUFSIZ as 8192 and EOF as (-1).
15181
15182 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15183 macros from bits/types/struct_FILE.h instead of _IO_* macros
15184 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15185 instead of _IO_ssize_t.
15186 * libio/bits/stdio2.h: Similarly.
15187
15188 * libio/iolibio.h: Add multiple-include guard.
15189 Include bits/libio.h after stdio.h.
15190 * libio/libioP.h: Add multiple-include guard.
15191 Include stdio.h and bits/libio.h before iolibio.h.
15192
15193 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15194 * include/bits/types/cookie_io_functions_t.h
15195 * include/bits/types/struct_FILE.h: New wrappers.
15196
15197 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15198 Get definitions of _G_fpos_t and _G_fpos64_t from
15199 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15200 respectively. Remove improper-inclusion guards.
15201
15202 * conform/data/stdio.h-data: Update expectations of va_list.
15203 * scripts/check-installed-headers.sh: Remove special case for
15204 libio.h and _G_config.h.
15205
15206 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15207
15208 [BZ #15105]
15209 [BZ #19463]
15210 * include/sys/sysmacros.h [!_ISOMAC]
15211 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15212 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15213 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15214 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15215 libc_hidden_proto.
15216 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15217 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15218 Likewise.
15219 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15220 Undefine and redefine to add use __gnu_dev_ prefix.
15221 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15222 Likewise.
15223 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15224 and define as hidden inline function.
15225 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15226 Likewise.
15227 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15228 Likewise.
15229 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15230 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15231 (gnu_dev_minor): Likewise.
15232 (gnu_dev_makedev): Likewise.
15233 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15234 makedev.
15235 * posix/wordexp.c (exec_comm_child): Likewise.
15236 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15237 instead of minor and __gnu_dev_major instead of major.
15238 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15239 __gnu_dev_major instead of major.
15240 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15241 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15242 instead of gnu_dev_minor.
15243 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15244 (SLAVE_P): Likewise.
15245 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15246 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15247 instead of major.
15248
15249 [BZ #21313]
15250 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15251 in another place.
15252 * locale/weightwc.h (findidx): Likewise.
15253
15254 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15255
15256 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15257 (slowlog_inexact): Likewise
15258 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15259 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15260
15261 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15262
15263 [BZ #22797]
15264 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15265 missing second underscore to parameter name.
15266
15267 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15268
15269 [BZ #14508]
15270 [BZ #15512]
15271 [BZ #17082]
15272 [BZ #20530]
15273 * bits/byteswap.h: Update file comment. Do not include
15274 <bits/byteswap-16.h>.
15275 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15276 constant.
15277 (__bswap_16): Define as inline function.
15278 (__bswap_constant_32): Reformat definition.
15279 (__bswap_32): Always define as inline function, not macro, using
15280 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15281 otherwise __bswap_constant_32.
15282 (__bswap_constant_64): Reformat definition. Do not use
15283 __extension__ here.
15284 (__bswap_64): Always define as inline function, not macro. Use
15285 __extension__ on function definition. Use __builtin_bswap64 if
15286 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15287 * string/test-endian-file-scope.c: New file.
15288 * string/test-endian-sign-conversion.c: Likewise.
15289 * string/Makefile (headers): Remove bits/byteswap-16.h.
15290 (tests): Add test-endian-file-scope and
15291 test-endian-sign-conversion.
15292 (CFLAGS-test-endian-sign-conversion.c): New variable.
15293 * bits/byteswap-16.h: Remove file.
15294 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15295 * sysdeps/ia64/bits/byteswap.h: Likewise.
15296 * sysdeps/m68k/bits/byteswap.h: Likewise.
15297 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15298 * sysdeps/s390/bits/byteswap.h: Likewise.
15299 * sysdeps/tile/bits/byteswap.h: Likewise.
15300 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15301 * sysdeps/x86/bits/byteswap.h: Likewise.
15302
15303 [BZ #17721]
15304 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15305 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15306 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15307 199901L] (__restrict): Define to restrict.
15308
15309 [BZ #19667]
15310 * string/testcopy.c: Include <support/support.h>. Do not include
15311 <malloc.h>. Use <support/test-driver.c>.
15312 (main): Rename to do_test. Make static. Use xmalloc instead of
15313 malloc.
15314
15315 [BZ #13575]
15316 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15317 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15318 (SSIZE_MAX): Define to INT_MAX.
15319 * posix/test-ssize-max.c: New file.
15320 * posix/Makefile (tests): Add test-ssize-max.
15321
15322 [BZ #19668]
15323 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15324 <support/support.h>. Do not include <malloc.h>.
15325 (query_auxv): Use xmalloc instead of malloc.
15326
15327 [BZ #14553]
15328 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15329 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15330 instead of loff_t.
15331
15332 2018-02-06 Florian Weimer <fweimer@redhat.com>
15333
15334 [BZ #18023]
15335 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15336 Use scratch_buffer instead of extend_alloca.
15337
15338 2018-02-06 Zack Weinberg <zackw@panix.com>
15339
15340 * libio/stdio.h: Don't define getc or putc as macros.
15341 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15342 not _IO_getc and _IO_putc.
15343
15344 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15345 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15346
15347 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15348
15349 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15350 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15351
15352 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15353
15354 [BZ #14890]
15355 * elf/elf.h (NT_PRFPREG): New macro.
15356 (NT_S390_VXRS_LOW): Likewise.
15357 (NT_S390_VXRS_HIGH): Likewise.
15358 (NT_S390_GS_CB): Likewise.
15359 (NT_S390_GS_BC): Likewise.
15360 (NT_S390_RI_CB): Likewise.
15361
15362 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15363 (MAP_SYNC): New macro.
15364 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15365 Likewise.
15366 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15367 (MAP_SYNC): Likewise.
15368 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15369 (MAP_SYNC): Likewise.
15370 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15371 (MAP_SYNC): Likewise.
15372 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15373 (MAP_SYNC): Likewise.
15374 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15375 (MAP_SYNC): Likewise.
15376 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15377 (MAP_SYNC): Likewise.
15378 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15379 Likewise.
15380 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15381 Likewise.
15382
15383 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15384 (MAP_SHARED_VALIDATE): New macro.
15385 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15386 (MAP_SHARED_VALIDATE): Likewise.
15387
15388 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15389
15390 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15391 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15392 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15393
15394 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15395
15396 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15397 (DT_NUM): Updated to 35.
15398
15399 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15400
15401 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15402 __builtin_expect with __glibc_likely and __glibc_unlikely.
15403 (elf_machine_rela): Likewise.
15404 (elf_machine_lazy_rel): Likewise.
15405
15406 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15407
15408 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15409 __builtin_expect with __glibc_likely and __glibc_unlikely.
15410 (elf_machine_lazy_rel): Likewise.
15411
15412 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15413
15414 [BZ #22638]
15415 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15416 SHARED.
15417 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15418
15419 2018-02-05 Andreas Schwab <schwab@suse.de>
15420
15421 [BZ #22761]
15422 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15423 string.
15424
15425 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15426
15427 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15428 not check against PTHREAD_STACK_MIN.
15429
15430 2018-02-02 Sean McKean <smckean83@gmail.com>
15431
15432 [BZ #22735]
15433 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15434
15435 2018-02-02 Florian Weimer <fweimer@redhat.com>
15436
15437 [BZ #22753]
15438 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15439 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15440 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15441 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15442 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15443 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15444 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15445 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15446 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15447 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15448 * misc/tst-preadvwritev2.c (do_test): Call it.
15449 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15450
15451 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15452
15453 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15454
15455 * benchtests/bench-memcmp.c: Print json instead of plain text.
15456
15457 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15458 every test run.
15459
15460 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15461
15462 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15463 version to 4.15.
15464 (s390_sthyi): New syscall.
15465
15466 * sysdeps/generic/ldbl-classify-compat.h: New file.
15467 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15468 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15469 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15470 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15471 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15472 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15473 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15474 <ldbl-classify-compat.h>.
15475 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15476 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15477 <ldbl-classify-compat.h>.
15478 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15479 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15480 <ldbl-classify-compat.h>.
15481 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15482 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15483 <ldbl-classify-compat.h>.
15484 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15485 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15486 <ldbl-classify-compat.h>.
15487 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15488 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15489 <ldbl-classify-compat.h>.
15490 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15491 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15492 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15493 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15494 * sysdeps/microblaze/math_private.h: Likewise.
15495 * sysdeps/nios2/math_private.h: Likewise.
15496 * sysdeps/sh/math_private.h: Likewise.
15497
15498 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15499 * sysdeps/m68k/coldfire/math_private.h: ... here.
15500 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15501 * sysdeps/tile/math_private.h: Likewise.
15502 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15503 Remove macro.
15504 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15505 Likewise.
15506
15507 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15508 Remove macro.
15509 (libc_fetestexcept): Likewise.
15510 (libc_feupdateenv_test): Likewise.
15511 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15512 (libc_fetestexcept): Likewise.
15513 (libc_feupdateenv_test): Likewise.
15514 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15515 (libc_fetestexcept): Likewise.
15516 (libc_feupdateenv_test): Likewise.
15517 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15518 (libc_fetestexcept): Likewise.
15519 (libc_feupdateenv_test): Likewise.
15520
15521 * sysdeps/generic/math_private.h
15522 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15523 New inline function.
15524 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15525 Likewise.
15526
15527 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15528 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15529 * sysdeps/generic/math_private.h
15530 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15531 inline function.
15532 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15533 Likewise.
15534 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15535 Likewise.
15536 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15537 Likewise.
15538 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15539 Likewise.
15540 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15541 Likewise.
15542 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15543 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15544 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15545 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15546 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15547 (__fegetenv): Likewise.
15548 (fesetenv): Likewise.
15549 (__fesetenv): Likewise.
15550 (feupdateenv): Likewise.
15551 (__feupdateenv): Likewise.
15552 (fegetround): Likewise.
15553 (__fegetround): Likewise.
15554 (fesetround): Likewise.
15555 (__fesetround): Likewise.
15556
15557 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15558 (feraiseexcept): New macro.
15559 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15560 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15561 Remove macro.
15562 (__feraiseexcept): Likewise.
15563 (feclearexcept): Likewise.
15564 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15565 (__feraiseexcept): Likewise.
15566 (feclearexcept): Likewise.
15567 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15568 (__feraiseexcept): Likewise.
15569 (feclearexcept): Likewise.
15570 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15571 (__feraiseexcept): Likewise.
15572 (feclearexcept): Likewise.
15573 (fetestexcept): Likewise.
15574
15575 * sysdeps/m68k/coldfire/math-tests.h: New file.
15576
15577 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15578 * sysdeps/m68k/bits/fenv.h: ... here.
15579 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15580 not define.
15581 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15582 Likewise.
15583 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15584 Likewise.
15585 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15586 Likewise.
15587 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15588 Likewise.
15589 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15590 Define to 0.
15591 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15592 (__FE_UNDEFINED): New enum constant.
15593 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15594 Do not define.
15595 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15596 Likewise.
15597 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15598 Likewise.
15599 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15600 to match generic bits/fenv.h.
15601 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15602 Do not define.
15603
15604 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15605 packed on bits.
15606 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15607 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15608 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15609 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15610
15611 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15612 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15613 Joseph Myers <joseph@codesourcery.com>
15614
15615 [BZ #21314]
15616 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15617 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15618 computation using c.
15619 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15620 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15621 computation using c.
15622
15623 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15624
15625 * version.h (RELEASE): Set to "development".
15626 (VERSION): Set to "2.27.9000".
15627 * NEWS (2.28): New section.
15628
15629 * version.h (RELEASE): Set to "stable".
15630 (VERSION): Set to "2.27".
15631 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15632
15633 * NEWS: Add the list of bugs fixed in 2.27.
15634
15635 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15636
15637 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15638 against PTHREAD_STACK_MIN.
15639
15640 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15641
15642 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15643 New entries.
15644 (Rafal Luzynski, Andreas Schwab): Update.
15645
15646 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
15647
15648 [BZ #10871]
15649 * NEWS: List the languages which actually use the alternative
15650 months feature in this release. Also explain that "alt_mon" and
15651 "ab_alt_mon" are optional.
15652
15653 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
15654
15655 [BZ #22765]
15656 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
15657
15658 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
15659
15660 * manual/install.texi (Tools for Compilation): Update the newest
15661 versions of gcc, binutils, texinfo, gawk, bison, and sed.
15662 * INSTALL: Regenerated.
15663
15664 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
15665
15666 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
15667 instead of __builtin_expect.
15668
15669 2018-01-30 Florian Weimer <fweimer@redhat.com>
15670
15671 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
15672 data.
15673 * nss/tst-nss-getpwent.c (do_test): Likewise.
15674
15675 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
15676
15677 [BZ #10871]
15678 * localedata/locales/hr_HR (mon): Rename to...
15679 (alt_mon): This.
15680 (mon): Import from CLDR (genitive case).
15681 (d_t_fmt): Update the comment.
15682
15683 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
15684
15685 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
15686 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
15687 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
15688
15689 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
15690
15691 * mach/Versions: Fix version when __mach_host_self_ was added.
15692 * hurd/Versions: Fix version when _hurd_exec_paths was added.
15693 * sysdeps/mach/hurd/i386/ld.abilist: New file.
15694 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
15695 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
15696 * sysdeps/mach/hurd/i386/libc.abilist: New file.
15697 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
15698 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
15699 * sysdeps/mach/hurd/i386/libm.abilist: New file.
15700 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
15701 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
15702 * sysdeps/mach/hurd/i386/librt.abilist: New file.
15703 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
15704 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
15705 || to respect codestyle.
15706 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
15707 (do_test_bz20181): Rename accordingly.
15708 * malloc/malloc.c: Include <assert.h>.
15709 (assert): Do not define.
15710 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
15711 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
15712 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
15713 * sysdeps/mach/hurd/hp-timing.h: New file.
15714 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
15715
15716 2018-01-29 Darius Rad <darius@bluespec.com>
15717
15718 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
15719
15720 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
15721
15722 * sysdeps/init_array/crti.S (.section .init_array): Add
15723 PREINIT_FUNCTION when defined.
15724 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
15725 * config.h.in: Regenerate.
15726 * manual/platform.texi: Add RISC-V documenation for
15727 __riscv_flush_icache.
15728 * sysdeps/riscv/__longjmp.S: New file.
15729 * sysdeps/riscv/backtrace.c: Likewise.
15730 * sysdeps/riscv/bits/endian.h: Likewise.
15731 * sysdeps/riscv/bits/setjmp.h: Likewise.
15732 * sysdeps/riscv/bits/wordsize.h: Likewise.
15733 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
15734 * sysdeps/riscv/bsd-setjmp.c: Likewise.
15735 * sysdeps/riscv/dl-trampoline.S: Likewise.
15736 * sysdeps/riscv/gccframe.h: Likewise.
15737 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
15738 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
15739 * sysdeps/riscv/machine-gmon.h: Likewise.
15740 * sysdeps/riscv/memusage.h: Likewise.
15741 * sysdeps/riscv/setjmp.S: Likewise.
15742 * sysdeps/riscv/sys/asm.h: Likewise.
15743 * sysdeps/riscv/tls-macros.h: Likewise.
15744 * sysdeps/riscv/dl-tls.h: New file.
15745 * sysdeps/riscv/libc-tls.c: Likewise.
15746 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
15747 * sysdeps/riscv/nptl/tls.h: Likewise.
15748 * sysdeps/riscv/stackinfo.h: Likewise.
15749 * sysdeps/riscv/bits/fenv.h: New file.
15750 * sysdeps/riscv/e_sqrtl.c: Likewise.
15751 * sysdeps/riscv/fpu_control.h: Likewise.
15752 * sysdeps/riscv/math-tests.h: Likewise.
15753 * sysdeps/riscv/nofpu/Implies: Likewise.
15754 * sysdeps/riscv/sfp-machine.h: Likewise.
15755 * sysdeps/riscv/tininess.h: Likewise.
15756 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
15757 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
15758 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
15759 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
15760 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
15761 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
15762 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
15763 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
15764 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
15765 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
15766 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
15767 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
15768 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
15769 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
15770 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
15771 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
15772 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
15773 * sysdeps/riscv/rvd/s_finite.c: Likewise.
15774 * sysdeps/riscv/rvd/s_fma.c: Likewise.
15775 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
15776 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
15777 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
15778 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
15779 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
15780 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
15781 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
15782 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
15783 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
15784 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
15785 * sysdeps/riscv/rvf/fegetround.c: Likewise.
15786 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
15787 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
15788 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
15789 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
15790 * sysdeps/riscv/rvf/fesetround.c: Likewise.
15791 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
15792 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
15793 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
15794 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
15795 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
15796 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
15797 * sysdeps/riscv/rvf/math_private.h: Likewise.
15798 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
15799 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
15800 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
15801 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
15802 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
15803 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
15804 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
15805 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
15806 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
15807 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
15808 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
15809 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
15810 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
15811 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
15812 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
15813 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
15814 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
15815 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
15816 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
15817 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
15818 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
15819 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15820 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
15821 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
15822 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
15823 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
15824 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
15825 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
15826 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
15827 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
15828 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
15829 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
15830 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
15831 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
15832 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
15833 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
15834 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
15835 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
15836 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
15837 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
15838 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
15839 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
15840 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
15841 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
15842 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
15843 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
15844 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
15845 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
15846 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
15847 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
15848 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
15849 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
15850 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
15851 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
15852 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
15853 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
15854 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
15855 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
15856 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
15857 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
15858 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
15859 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
15860 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15861 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
15862 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15863 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
15864 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
15865 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
15866 * sysdeps/riscv/Implies: New file.
15867 * sysdeps/riscv/Makefile: Likewise.
15868 * sysdeps/riscv/configure: Likewise.
15869 * sysdeps/riscv/configure.ac: Likewise.
15870 * sysdeps/riscv/nptl/Makefile: Likewise.
15871 * sysdeps/riscv/preconfigure: Likewise.
15872 * sysdeps/riscv/rv64/Implies-after: Likewise.
15873 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
15874 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
15875 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
15876 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
15877 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
15878 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
15879 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
15880 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
15881 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
15882 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
15883 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
15884 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
15885 (Config): Likewise.
15886
15887 2018-01-29 Florian Weimer <fweimer@redhat.com>
15888
15889 [BZ #22701]
15890 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
15891 libnsl_hidden_proto.
15892 * include/rpcsvc/yp.h (yp_xdrall): Declare with
15893 libnsl_hidden_proto.
15894 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
15895 * nis/Makefile (libnsl-routines): Add nss-default only for
15896 build-obsolete-nsl.
15897 * nis/nis_defaults.c (__nis_default_ttl): Add
15898 libnsl_hidden_nolink_def.
15899 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
15900 declaration.
15901 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
15902 * nis/ypclnt.c (yp_maplist): Likewise.
15903
15904 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
15905
15906 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15907 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
15908
15909 2018-01-29 Joseph Myers <joseph@codesourcery.com>
15910
15911 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
15912 clean -dxfq for git updates when replacing sources.
15913
15914 * scripts/build-many-glibcs.py (Config.build_gcc): Use
15915 --disable-libcilkrts unconditionally, not just for the final GCC
15916 build for Hurd.
15917
15918 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15919 version to 4.15.
15920
15921 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
15922
15923 [BZ #10871]
15924 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
15925 case).
15926
15927 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
15928
15929 [BZ #10871]
15930 * localedata/locales/be_BY (mon): Rename to...
15931 (alt_mon): This, then synchronize with CLDR (nominative case).
15932 (abmon): Rename to...
15933 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
15934 (mon): Import from CLDR (genitive case).
15935 (abmon): Likewise.
15936 * localedata/locales/be_BY@latin (mon): Rename to...
15937 (alt_mon): This.
15938 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
15939
15940 * localedata/locales/be_BY@latin (lang_name): Reworded to
15941 "biełaruskaja mova".
15942
15943 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
15944
15945 [BZ #10871]
15946 * localedata/locales/el_CY (mon): Renamed to...
15947 (alt_mon): This.
15948 (mon): Import from CLDR (genitive case).
15949 * localedata/locales/el_GR: Likewise.
15950
15951 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
15952
15953 [BZ #10871]
15954 * localedata/locales/ru_RU (mon): Rename to...
15955 (alt_mon): This.
15956 (abmon): Rename to...
15957 (ab_alt_mon): This.
15958 (mon): Import from CLDR (genitive case).
15959 (abmon): Copy from the old content except the 5th month which is
15960 now in the genitive case, even when abbreviated.
15961 * localedata/locales/ru_UA: Likewise.
15962 * time/tst-strptime.c (day_tests): Add an actual example of
15963 a difference between %b and %Ob in Russian.
15964
15965 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15966
15967 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
15968 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
15969 a `c' variable.
15970 * resolv/res-close.c: Include <stdlib.h>.
15971 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
15972 <sys/wait.h>, <time.h>, <sys/uio.h>.
15973 (NOT_CANCEL_H): Add inclusion guard.
15974 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
15975 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
15976 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
15977 return 0.
15978 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
15979 vm_address_t * to ElfW(Addr) * for dl_main parameter.
15980 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
15981 instead of void *.
15982 * sysdeps/pthread/timer_create.c (timer_create): Do not use
15983 timer_ptr2id to cast struct timer_node * to void *.
15984 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
15985 --disable-libcilkrts to gcc configure.
15986 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
15987 and make them the default for now.
15988 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
15989 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
15990 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
15991 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
15992 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
15993 MACH_IPC_COMPAT.
15994 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
15995 __task_terminate would ever return successfully.
15996 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
15997 to global scope.
15998 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
15999 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16000 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16001 critical section to make code simpler and avoid warning.
16002 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16003 critical section to make code simpler and avoid warning.
16004 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16005 const char * instead of char *.
16006 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16007 __hurd_file_name_split, hurd_file_name_split,
16008 __hurd_directory_name_split, hurd_directory_name_split,
16009 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16010 hurd_file_name_path_lookup): Make lookup function parameter take a
16011 const char *name instead of char *name.
16012 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16013 __hurd_directory_name_split): Likewise.
16014 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16015 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16016 * sysdeps/mach/hurd/check_native.c: New file.
16017 * sysdeps/mach/hurd/check_pf.c: New file.
16018 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16019 (__freeifaddrs): Define macro to freeifaddrs.
16020 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16021 * sysdeps/mach/libmachuser.abilist: New file.
16022 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16023 (do_test_bz20181): Rename accordingly.
16024 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16025 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16026 <sys/mount.h>.
16027 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16028 version only if __USE_EXTERN_INLINES is defined.
16029 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16030 __hurd_sockfail): Likewise.
16031 (_hurd_fd_get): Always declare functions, and provide inline versions
16032 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16033 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16034 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16035 _hurd_port_set): Always declare functions, and provide inline versions
16036 only if __USE_EXTERN_INLINES and _LIBC are defined and
16037 IS_IN(libc).
16038 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16039 _hurd_critical_section_unlock): Likewise.
16040 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16041 * __hurd_threadvar_location): Likewise.
16042 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16043 _hurd_userlink_clear): Likewise.
16044 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16045 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16046 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16047 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16048 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16049 __spin_lock_locked): Likewise.
16050 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16051 __spin_lock_locked): Likewise.
16052 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16053 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16054 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16055 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16056 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16057 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16058 _POSIX_NO_TRUNC): Define to 0.
16059 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16060 check size against PTHREAD_STACK_MIN.
16061 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16062 IS_IN(libpthread)]: Include <sigsetops.h>.
16063 * mach/Makefile (user-interfaces): Add mach/gnumach.
16064 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16065 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16066 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16067 instead of invalid -1.
16068 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16069 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16070 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16071 <net/ppp_defs.h>.
16072
16073 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16074
16075 * hurd/fcntl-internal.h: New file.
16076
16077 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16078
16079 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16080
16081 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16082
16083 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16084
16085 [BZ #22701]
16086 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16087 Build only shared objects.
16088
16089 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16090
16091 * README: Update for hppa.
16092
16093 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16094
16095 * sysdeps/sparc/fpu/libm-test-ulps: Update
16096 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16097
16098 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16099
16100 Revert:
16101
16102 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16103
16104 [BZ #22563]
16105 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16106 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16107 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16108 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16109 to feature_1.
16110
16111 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16112
16113 [BZ #22563]
16114 * bits/types/__cancel_jmp_buf_tag.h: New file.
16115 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16116 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16117 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16118 * nptl/Makefile (headers): Add
16119 bits/types/__cancel_jmp_buf_tag.h.
16120 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16121 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16122 * sysdeps/nptl/pthread.h: Include
16123 <bits/types/__cancel_jmp_buf_tag.h>.
16124 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16125 __cancel_jmp_buf.
16126 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16127
16128 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16129
16130 [BZ #10871]
16131 * localedata/locales/uk_UA (mon): Renamed to...
16132 (alt_mon): This.
16133 (alt_digits): "0" removed and then renamed to...
16134 (mon): This.
16135 (date_fmt): Definition changed not to use the alternative
16136 digits hack.
16137
16138 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16139
16140 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16141 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16142 * elf/elf.h (EF_RISCV_RVC): New define.
16143 (EF_RISCV_FLOAT_ABI): Likewise.
16144 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16145 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16146 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16147 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16148 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16149 define.
16150 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16151
16152 2018-01-25 Andreas Schwab <schwab@suse.de>
16153
16154 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16155 single quotes.
16156 * sysdeps/gnu/configure: Regenerate.
16157 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16158 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16160 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16161 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16162 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16163 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16164 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16165
16166 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16167
16168 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16169 URL, and run autoconf, make it the default for now.
16170
16171 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16172
16173 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16174 soft-float ColdFire configuration.
16175
16176 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16177 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16178 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16179
16180 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16181 MicroBlaze file.
16182
16183 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16184 ....
16185 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16186 ... here.
16187 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16188 New file.
16189
16190 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16191 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16192 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16193 file.
16194
16195 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16196
16197 [BZ #22742]
16198 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16199 Rename to __reserved and add comment.
16200 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16201 Rename to __reserved.
16202
16203 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16204
16205 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16206 i686-gnu configurations.
16207 (Context.run_builds): Include mig, gnumach and hurd in components
16208 considered.
16209 (Context.checkout): Add mig, gnumach and hurd to components.
16210 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16211 hurd.
16212 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16213 (Config.build): Install gnumach headers, build mig and install
16214 hurd headers for 'gnu' OS.
16215 (Config.install_gnumach_headers): New function.
16216 (Config.install_hurd_headers): Likewise.
16217 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16218 when building for 'gnu' OS.
16219
16220 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16221
16222 * manual/tunables.texi (Hardware Capability Tunables): Fix
16223 spelling.
16224
16225 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16226
16227 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16228 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16229 (ALTMON_11, ALTMON_12): Improve documentation.
16230 * manual/time.texi (strftime): Likewise.
16231
16232 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16233
16234 [BZ #10871]
16235 * localedata/locales/pl_PL: Alternative month names added,
16236 primary month names are genitive now.
16237 * time/tst-strptime.c (day_tests): Actually use a genitive case
16238 of a month name in Polish language.
16239
16240 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16241
16242 [BZ #10871]
16243 * manual/locale.texi: Document ALTMON_1..12 constants for
16244 nl_langinfo. Specify when to use ALTMON instead of MON.
16245 * manual/time.texi (strftime, strptime): Document GNU extension
16246 permitting O modifier with %B and %b. Specify when to use
16247 %OB instead of %B.
16248
16249 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16250
16251 [BZ #10871]
16252 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16253 names, define them as the same as abbreviated month names explicitly.
16254 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16255 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16256 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16257 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16258 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16259 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16260 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16261 _NL_WABALTMON_12): New enum constants.
16262 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16263 wab_alt_mon, and ab_alt_mon_defined members.
16264 (time_output): Output ab_alt_mon and wab_alt_mon members.
16265 (time_read): Read them, initialize them as copies of abmon and wabmon
16266 respectively if they are missing, initialize ab_alt_mon_defined.
16267 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16268 * locale/programs/locfile-kw.h: Regenerate.
16269 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16270 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16271 and ru_RU.UTF-8.
16272 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16273 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16274 (__strftime_internal): Handle %Ob and %Oh formats.
16275 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16276 (__strptime_internal): Handle %Ob and %Oh formats.
16277 * time/tst-strptime.c (day_tests): Add more tests to parse different
16278 forms of month names including the new %Ob format specifier.
16279
16280 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16281
16282 [BZ #10871]
16283 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16284 define them as the same as primary full month names explicitly.
16285 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16286 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16287 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16288 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16289 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16290 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16291 _NL_WALTMON_12): New enum constants.
16292 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16293 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16294 macros.
16295 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16296 walt_mon, and alt_mon_defined members.
16297 (time_output): Output alt_mon and walt_mon members.
16298 (time_read): Read them, initialize them as copies of mon and wmon
16299 respectively if they are missing, initialize alt_mon_defined.
16300 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16301 * locale/programs/locfile-kw.h: Regenerate.
16302 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16303 * localedata/tst-langinfo.c (map): Add tests for the new constants
16304 ALTMON_1 .. ALTMON_12.
16305 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16306 and pl_PL.UTF-8.
16307 * time/strftime_l.c (f_altmonth): New macro.
16308 (__strftime_internal): Handle %OB format.
16309 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16310 (__strptime_internal): Handle %OB format.
16311 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16312 of month names including the new %OB format specifier.
16313
16314 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16315
16316 [BZ #22685]
16317 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16318 from ABORT_TRANSACTION.
16319 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16320 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16321 ABORT_TRANSACTION_IMPL): Likewise.
16322 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16323 Linux code, but remove the code that aborts transactions.
16324
16325 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16326
16327 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16328
16329 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16330
16331 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16332 in date: "2004-14-09" should be "2004-09-14".
16333 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16334 "2003-15-09" should be "2003-09-15".
16335
16336 2018-01-18 Arjun Shankar <arjun@redhat.com>
16337
16338 [BZ #22343]
16339 [BZ #22774]
16340 CVE-2018-6485
16341 CVE-2018-6551
16342 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16343 after padding.
16344 (_int_memalign): check for integer overflow before calling
16345 _int_malloc.
16346 * malloc/tst-malloc-too-large.c: New test.
16347 * malloc/Makefile: Add tst-malloc-too-large.
16348
16349 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16350
16351 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16352 in date: "2017-24-07" should be "2017-07-24".
16353 * localedata/locales/mai_IN: Likewise.
16354 * localedata/locales/mai_NP: Likewise.
16355
16356 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16357
16358 * po/ru.po: Update translations.
16359
16360 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16361
16362 [BZ #22719]
16363 * sysdeps/hppa/backtrace.c: New file.
16364
16365 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16366
16367 [BZ #22715]
16368 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16369 align La_x86_64_retval to VEC_SIZE.
16370
16371 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16372
16373 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16374 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16375
16376 2018-01-16 Florian Weimer <fweimer@redhat.com>
16377
16378 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16379 Move tst-thread-exit-clobber ...
16380 [$(CXX)] (tests-unsupported): ... to here.
16381
16382 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16383
16384 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16385 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16386 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16387 (_dl_aarch64_cap_flags): Update.
16388 (_DL_HWCAP_COUNT): Update.
16389
16390 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16391
16392 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16393 (_DL_HWCAP_LAST): Remove.
16394 (_DL_HWCAP_COUNT): Move to ...
16395 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16396 (_DL_HWCAP_COUNT): ... here.
16397
16398 2018-01-16 Florian Weimer <fweimer@redhat.com>
16399
16400 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16401 mode with GNU extensions.
16402
16403 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16404
16405 * elf/elf.h (NT_ARM_SVE): Define.
16406
16407 2018-01-15 Florian Weimer <fweimer@redhat.com>
16408
16409 [BZ #22636]
16410 * nptl/tst-minstack-throw.cc: New file.
16411 * nptl/Makefile (tests): Add tst-minstack-throw.
16412 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16413 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16414
16415 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16416
16417 * scripts/build-many-glibcs.py (Context.checkout): Default
16418 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16419 version to 1.1.0.
16420
16421 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16422
16423 [BZ #22707]
16424 * elf/elf.h (DF_1_STUB): Define.
16425 (DF_1_PIE): Define.
16426
16427 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16428
16429 [BZ #22697]
16430 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16431 Do not add 0.5 to integer or out-of-range arguments.
16432
16433 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16434
16435 * po/bg.po: Update translations.
16436 * po/cs.po: Likewise.
16437 * po/de.po: Likewise.
16438 * po/ko.po: Likewise.
16439 * po/pl.po: Likewise.
16440 * po/sv.po: Likewise.
16441 * po/uk.po: Likewise.
16442 * po/vi.po: Likewise.
16443
16444 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16445
16446 * aarch64/start.S (_start): Use __wrap_main.
16447 (__wrap_main): New local symbol.
16448
16449 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16450
16451 [BZ #22679]
16452 CVE-2018-1000001
16453 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16454 generic_getcwd if the path returned by getcwd syscall is not absolute.
16455 * io/tst-getcwd-abspath.c: New test.
16456 * io/Makefile (tests): Add tst-getcwd-abspath.
16457
16458 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16459
16460 * malloc/malloc.c (malloc_consolidate): Add size check.
16461
16462 2018-01-12 Florian Weimer <fweimer@redhat.com>
16463
16464 * support/write_message.c (write_message): Preserve errno.
16465 * support/check.c (print_failure): Likewise.
16466 * support/support_test_verify_impl.c (support_test_verify_impl):
16467 Likewise.
16468 * support/support_test_compare_failure.c
16469 (support_test_compare_failure): Likewise.
16470
16471 2018-01-12 Florian Weimer <fweimer@redhat.com>
16472
16473 [BZ #22701]
16474 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16475 Prevent installation of libnsl.so.
16476 (libnsl-inhibit-o): Do not build (or install) static libraries.
16477
16478 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16479
16480 [BZ #22657]
16481 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16482 before the day number which may produce a double space.
16483 (date_fmt): Likewise.
16484
16485 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16486
16487 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16488 instead of fegetenv.
16489
16490 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16491
16492 [BZ #22702]
16493 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16494 comment to say exceptions are discarded.
16495 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16496 __fegetenv.
16497 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16498 be enabled.
16499
16500 2018-01-11 Florian Weimer <fweimer@redhat.com>
16501
16502 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16503 and error message.
16504
16505 2018-01-11 Florian Weimer <fweimer@redhat.com>
16506
16507 [BZ #22636]
16508 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16509 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16510
16511 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16512
16513 [BZ #22693]
16514 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16515 negative arguments in test for NaN or infinity argument.
16516
16517 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16518
16519 * po/libc.pot: Regenerate.
16520
16521 2018-01-10 Florian Weimer <fweimer@redhat.com>
16522
16523 [BZ #22636]
16524 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16525 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16526
16527 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16528
16529 * hurd/hurd/fd.h: Include <fcntl.h>
16530 (__hurd_at_flags): New function.
16531 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16532 with call to __hurd_at_flags.
16533 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16534 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16535 __faccessat
16536 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16537 (__access_noerrno): Use __faccessat_common instead of access_common.
16538 (__access): Likewise.
16539 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16540 with a call to __faccessat.
16541 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16542 (__faccessat_common): ... this. Move implementation of __access into it when
16543 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16544 reauthenticate_cwdir_at helper to implement AT mechanism.
16545 (__faccessat_noerrno): New function, just calls __faccessat_common.
16546 (__faccessat): New function, just calls __faccessat_common.
16547 (faccessat): Define weak alias.
16548
16549 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16550
16551 [BZ #22691]
16552 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16553 (CFLAGS-s_fmaxmagl.c): New variable.
16554 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16555
16556 [BZ #22690]
16557 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16558 long int for arguments of possibly overflowing addition or
16559 subtraction.
16560 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16561
16562 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16563
16564 [BZ #22688]
16565 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16566 (CFLAGS-e_remainderl.c): New variable.
16567
16568 [BZ #22687]
16569 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16570 variable.
16571 (CFLAGS-s_cacoshl.c): Likewise.
16572 (CFLAGS-s_casinhl.c): Likewise.
16573 (CFLAGS-s_catanl.c): Likewise.
16574 (CFLAGS-s_catanhl.c): Likewise.
16575 (CFLAGS-s_cexpl.c): Likewise.
16576 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16577 (CFLAGS-s_csinhl.c): Likewise.
16578 (CFLAGS-s_clogl.c): Likewise.
16579 (CFLAGS-s_clog10l.c): Likewise.
16580 (CFLAGS-s_csinl.c): Likewise.
16581 (CFLAGS-s_csqrtl.c): Likewise.
16582
16583 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16584 2017-01-09 Svante Signell <svante.signell@gmail.com>
16585
16586 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16587 (_hurd_exec_paths): New function.
16588 * hurd/hurd.h (_hurd_exec): Deprecate function.
16589 (_hurd_exec_paths): Declare function.
16590 * hurd/Versions: Export _hurd_exec_paths.
16591 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16592 (__execve): Use __getcwd to build absolute path, and use
16593 _hurd_exec_paths instead of _hurd_exec.
16594 * sysdeps/mach/hurd/spawni.c: Likewise.
16595 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16596 _hurd_exec.
16597
16598 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16599
16600 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16601 test instead of failing in case of ENOENT returned by posix_openpt.
16602
16603 2018-01-08 Florian Weimer <fweimer@redhat.com>
16604
16605 resolv: Support binary labels in test framework.
16606 * support/resolv_test.c (struct to_be_freed): Remove.
16607 (struct compressed_name): New.
16608 (allocate_compressed_name, ascii_tolower)
16609 (compare_compressed_name): New functions.
16610 (struct resolv_response_builder): Update type of
16611 compression_offsets for use with tsearch. Rempve to_be_freed.
16612 (response_push_pointer_to_free): Remove function.
16613 (resolv_response_add_name): Rewrite using struct compressed_name
16614 and tsearch instead of hsearch_r.
16615 (response_builder_allocate): Remove initialization of
16616 compression_offsets.
16617 (response_builder_free): Update for removal of to_be_freed. Use
16618 tdestroy instead of hdestroy_r.
16619 * resolv/Makefile (tests): Add tst-resolv-binary.
16620 (tst-resolv-binary): Link with -lresolv -lpthread.
16621
16622 2018-01-08 Florian Weimer <fweimer@redhat.com>
16623
16624 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16625 time. Pass positive flag instead of negative flag to
16626 support_test_compare_failure.
16627 (support_test_compare_failure): Change negative parameter to
16628 positive.
16629 * support/support_test_compare_failure.c (report)
16630 (support_test_compare_failure): Likewise.
16631 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16632 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16633
16634 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16635
16636 [BZ #22637]
16637 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16638 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16639 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16640 stacksize.
16641 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16642
16643 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16644
16645 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16646 Add s_sincosf-sse2 and s_sincosf-fma.
16647 (CFLAGS-s_sincosf-fma.c): New.
16648 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
16649 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
16650 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
16651 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
16652 __sincosf is defined.
16653
16654 2018-01-08 Florian Weimer <fweimer@redhat.com>
16655
16656 * nptl/tst-thread-exit-clobber.cc: New file.
16657 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
16658 C++11 mode.
16659 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
16660 (tests): Add tst-thread-exit-clobber.
16661 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
16662
16663 2018-01-08 Florian Weimer <fweimer@redhat.com>
16664
16665 * support/check.h (support_static_assert): Define.
16666 (TEST_COMPARE): Use it.
16667
16668 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
16669
16670 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
16671 [!__RLIM_T_MATCHES_RLIM64_T]
16672 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
16673 __getrlimit64. Add libc_hidden_weak.
16674
16675 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
16676
16677 * elf/elf.h (R_RISCV_NONE): New define.
16678 (R_RISCV_32): Likewise.
16679 (R_RISCV_64): Likewise.
16680 (R_RISCV_RELATIVE): Likewise.
16681 (R_RISCV_COPY): Likewise.
16682 (R_RISCV_JUMP_SLOT): Likewise.
16683 (R_RISCV_TLS_DTPMOD32): Likewise.
16684 (R_RISCV_TLS_DTPMOD64): Likewise.
16685 (R_RISCV_TLS_DTPREL32): Likewise.
16686 (R_RISCV_TLS_DTPREL64): Likewise.
16687 (R_RISCV_TLS_TPREL32): Likewise.
16688 (R_RISCV_TLS_TPREL64): Likewise.
16689 * Makerules (make-link-multidir): Make directories before linking into
16690 them.
16691 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
16692 define.
16693 (VDSO_HASH_LINUX_4_15): Likewise.
16694 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
16695 in subdirectories of lib.
16696 * nptl/Makefile (/librt.so): Always depend on
16697 "$(shared-thread-library)".
16698
16699 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16700
16701 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
16702 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
16703 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
16704 (___tls_get_addr).
16705 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
16706 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
16707 "-O2 -march=i686".
16708 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
16709 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
16710 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
16711 * sysdeps/gnu/glob-lstat-compat.c: New file.
16712 * sysdeps/gnu/glob64-lstat-compat.c: New file.
16713 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
16714
16715 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16716
16717 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
16718 Reserve 16 chars to reloc_addr before calling _itoa_word.
16719
16720 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16721
16722 [BZ #22678]
16723 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
16724 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
16725
16726 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
16727 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
16728
16729 * resource/tst-getrlimit.c: Add copyright header.
16730
16731 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16732 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16733
16734 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
16735 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
16736 Define __GI_getrlimit64 as weak alias of __getrlimit64.
16737 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
16738 instead.
16739 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
16740 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
16741 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
16742 RLIM64_INFINITY): Fix values to match the kernel ones.
16743 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
16744 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
16745 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
16746 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
16747 getrlimit64@@GLIBC_2_27.
16748 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
16749 and setrlimit64.
16750 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
16751 getrlimit, setrlimit, getrlimit64 and setrlimit64.
16752 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
16753 setrlimit, getrlimit64 and setrlimit64.
16754
16755 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16756
16757 [BZ #22648]
16758 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
16759 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
16760
16761 2018-01-04 Joseph Myers <joseph@codesourcery.com>
16762
16763 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
16764 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
16765 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
16766
16767 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16768
16769 [BZ #15479]
16770 [BZ #22666]
16771 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
16772 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
16773
16774 [BZ #15479]
16775 [BZ #22665]
16776 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
16777 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
16778 * sysdeps/alpha/fpu/s_floor.c: Likewise.
16779 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
16780
16781 2018-01-04 Florian Weimer <fweimer@redhat.com>
16782
16783 [BZ #22667]
16784 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
16785 Align the stack before calling exit.
16786 * stdlib/tst-makecontext-align.c: New file.
16787 * stdlib/Makefile (tests): Add tst-makecontext-align.
16788
16789 2018-01-04 Florian Weimer <fweimer@redhat.com>
16790
16791 Add support for calling dlvsym from libc.so.
16792 * include/dlfcn.h (__libc_dlvsym): Declare.
16793 * elf/Makefile (tests-static-internal): Add
16794 tst-libc_dlvsym-static.
16795 (tests-internal): Add tst-libc_dlvsym.
16796 (modules-names): Add tst-libc_dlvsym-dso.
16797 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
16798 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
16799 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
16800 object tst-libc_dlvsym-dso.so needs to be built before running
16801 these tests.
16802 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
16803 * elf/Versions: Export __libc_dlvsym.
16804 * elf/dl-libc.c (struct do_dlvsym_args): New.
16805 (do_dlvsym, __libc_dlvsym): New functions.
16806 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
16807 (_dl_open_hook2): New variable.
16808 (__libc_register_dl_open_hook): Set it.
16809 * elf/tst-libc_dlvsym-dso.c: New file.
16810 * elf/tst-libc_dlvsym-static.c: Likewise.
16811 * elf/tst-libc_dlvsym.c: Likewise.
16812 * elf/tst-libc_dlvsym.h: Likewise.
16813
16814 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16815
16816 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
16817 include <sys/mount.h>.
16818
16819 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
16820
16821 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
16822 Add __NO_MATH_ERRNO__ check.
16823
16824 2018-01-02 Joseph Myers <joseph@codesourcery.com>
16825
16826 * sysdeps/mips/mips32/libm-test-ulps: Update.
16827 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16828
16829 2018-01-02 Florian Weimer <fweimer@redhat.com>
16830
16831 * misc/tst-pselect.c: Add copyright header.
16832
16833 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
16834
16835 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
16836 comment.
16837 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
16838 comment.
16839 (settrlimit): Rename into setrlimit.
16840 (__sttrlimit): Rename into __setrlimit.
16841
16842 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
16843 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
16844 never defined in that case.
16845
16846 2018-01-02 Joseph Myers <joseph@codesourcery.com>
16847
16848 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
16849
16850 * sysdeps/arm/libm-test-ulps: Update.
16851
16852 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
16853 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
16854
16855 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16856
16857 * NEWS: Add cosf and sincosf to list of optimized functions.
16858
16859 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
16860
16861 [BZ #22660]
16862 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
16863 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
16864 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
16865 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
16866
16867 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
16868
16869 [BZ #22433]
16870 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
16871
16872 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
16873 making a copy of it.
16874
16875 2018-01-01 Joseph Myers <joseph@codesourcery.com>
16876
16877 * manual/texinfo.tex: Update to version 2017-12-26.21 with
16878 trailing whitespace removed.
16879 * scripts/config.guess: Update to version 2018-01-01.
16880 * scripts/config.sub: Update to version 2018-01-01.
16881 * scripts/move-if-change: Update from gnulib.
16882
16883 * NEWS: Update copyright dates.
16884 * catgets/gencat.c (print_version): Likewise.
16885 * csu/version.c (banner): Likewise.
16886 * debug/catchsegv.sh: Likewise.
16887 * debug/pcprofiledump.c (print_version): Likewise.
16888 * debug/xtrace.sh (do_version): Likewise.
16889 * elf/ldconfig.c (print_version): Likewise.
16890 * elf/ldd.bash.in: Likewise.
16891 * elf/pldd.c (print_version): Likewise.
16892 * elf/sotruss.sh: Likewise.
16893 * elf/sprof.c (print_version): Likewise.
16894 * iconv/iconv_prog.c (print_version): Likewise.
16895 * iconv/iconvconfig.c (print_version): Likewise.
16896 * locale/programs/locale.c (print_version): Likewise.
16897 * locale/programs/localedef.c (print_version): Likewise.
16898 * login/programs/pt_chown.c (print_version): Likewise.
16899 * malloc/memusage.sh (do_version): Likewise.
16900 * malloc/memusagestat.c (print_version): Likewise.
16901 * malloc/mtrace.pl: Likewise.
16902 * manual/libc.texinfo: Likewise.
16903 * nptl/version.c (banner): Likewise.
16904 * nscd/nscd.c (print_version): Likewise.
16905 * nss/getent.c (print_version): Likewise.
16906 * nss/makedb.c (print_version): Likewise.
16907 * posix/getconf.c (main): Likewise.
16908 * scripts/test-installation.pl: Likewise.
16909 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
16910
16911 * All files with FSF copyright notices: Update copyright dates
16912 using scripts/update-copyrights.
16913 * locale/programs/charmap-kw.h: Regenerated.
16914 * locale/programs/locfile-kw.h: Likewise.
16915
16916 2017-12-31 Zack Weinberg <zackw@panix.com>
16917
16918 * libio/bits/libio-ldbl.h: Correct check for improper
16919 inclusion. Add own multiple include guard.
16920
16921 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
16922 Dmitry V. Levin <ldv@altlinux.org>
16923
16924 [BZ #22625]
16925 CVE-2017-16997
16926 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
16927 string token expansion. Check for NULL pointer or empty string possibly
16928 returned by expand_dynamic_string_token.
16929 (decompose_rpath): Check for empty path after dynamic string
16930 token expansion.
16931
16932 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
16933
16934 [BZ #22433]
16935 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
16936
16937 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
16938 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
16939 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
16940 and PTRACE_SYSCALL.
16941 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
16942 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16943 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16944 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16945 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16946 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
16947
16948 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
16949 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
16950 __ptrace_peeksiginfo_flags, ptrace): Move to ...
16951 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
16952 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16953 bits/ptrace-shared.h.
16954 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
16955 <bits/ptrace-shared.h>.
16956 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
16957 __ptrace_peeksiginfo_flags, ptrace): Remove.
16958 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16959 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16960 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16961 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16962 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
16963
16964 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
16965
16966 [BZ #17804]
16967 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
16968 end of the loop. Improve comments.
16969
16970 2017-12-29 Zack Weinberg <zackw@panix.com>
16971
16972 [BZ #22615]
16973 * manual/errno.texi (Checking for Errors): Explicitly say that errno
16974 might be set on success.
16975
16976 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
16977
16978 [BZ #22611]
16979 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
16980 is unchanged on success.
16981
16982 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
16983
16984 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
16985 updated.
16986 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
16987 expand_dynamic_string_token): Likewise.
16988 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
16989 is_path argument.
16990
16991 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
16992 contains ':'.
16993
16994 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
16995 is set and name contains ':', and all code depending on these checks.
16996
16997 2017-12-24 Zack Weinberg <zackw@panix.com>
16998
16999 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17000 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17001 respectively.
17002 * libio/libio.h: Rename the original version of this file to
17003 libio/bits/libio.h. Error out if not included by stdio.h or the
17004 stub libio.h.
17005 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17006 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17007 if not included by bits/libio.h or the stub _G_config.h.
17008 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17009 sysdeps/unix/sysv/linux/bits. Error out if not included by
17010 bits/libio.h or the stub _G_config.h.
17011 * libio/stdio.h: Include bits/libio.h, not libio.h.
17012 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17013 well as libio.h and _G_config.h.
17014
17015 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17016 * libio/strfile.h, stdio-common/vfscanf.c
17017 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17018 Include stdio.h, not _G_config.h nor libio.h.
17019 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17020 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17021
17022 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17023
17024 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17025
17026 [BZ #22347]
17027 * stdlib/getrandom.c (getrandom): Fix comment.
17028 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17029
17030 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17031
17032 [BZ #21161]
17033 * manual/arith.texi (strtoul): Fix a typo.
17034
17035 [BZ #22596]
17036 * manual/arith.texi (finite): Fix the description of the return
17037 value.
17038
17039 2017-12-22 Eric Blake <ebb9@byu.net>
17040
17041 Avoid gcc warnings on cygwin
17042 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17043 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17044 Avoid unused variable.
17045
17046 2017-12-22 Florian Weimer <fweimer@redhat.com>
17047
17048 * io/Makefile (routines): Add copy_file_range.
17049 (tests): Add tst-copy_file_range.
17050 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17051 * io/Versions (GLIBC_2.27): Export copy_file_range.
17052 * io/copy_file_range-compat.c: New file.
17053 * io/copy_file_range.c: Likewise.
17054 * io/tst-copy_file_range-compat.c: Likewise.
17055 * io/tst-copy_file_range.c: Likewise.
17056 * manual/llio.texi (Copying File Data): New section.
17057 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17058 * support/Makefile (libsupport-routines): Add support-xfstat,
17059 xftruncate, xlseek.
17060 * support/support-xfstat.c: New file.
17061 * support/xftruncate.c: Likewise.
17062 * support/xlseek.c: Likewise.
17063 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17064 * sysdeps/unix/sysv/linux/**.abilist: Update.
17065 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17066
17067 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17068
17069 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17070 disable-multi-arch variant to aarch64-linux-gnu.
17071
17072 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17073
17074 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17075 trailing whitespace removed.
17076 * scripts/config.guess: Update to version 2017-12-17.
17077 * scripts/config.sub: Update to version 2017-11-23.
17078 * scripts/install-sh: Update to version 2017-09-23.17.
17079 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17080
17081 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17082
17083 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17084 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17085 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17086 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17087 * sysdeps/tile/crtn.S: Likewise.
17088 * sysdeps/tile/dl-start.S (_start): Likewise.
17089 * sysdeps/tile/dl-trampoline.S: Likewise.
17090 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17091 * sysdeps/tile/start.S (_start): Likewise.
17092 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17093 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17094 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17095 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17096 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17097 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17098 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17099
17100 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17101 comment.
17102 * sysdeps/tile/preconfigure: Remove tilegx folder.
17103 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17104 * sysdeps/tile/Implies: ... here.
17105 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17106 * sysdeps/tile/Makefile: ... here.
17107 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17108 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17109 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17110 * sysdeps/tile/bits/wordsize.h: ... here.
17111 * sysdeps/tile/tilegx/*: Move to ...
17112 * sysdeps/tile/*: ... here.
17113 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17114 * sysdeps/tile/tilegx32/Implies: ... here.
17115 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17116 * sysdeps/tile/tilegx64/Implies: ... here.
17117 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17118 to ...
17119 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17120 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17121 * sysdeps/unix/sysv/linux/tile/*: ... here.
17122 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17123 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17124 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17125 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17126
17127 * README: Remove tilepro-*-linux-gnu from supported architecture.
17128 * scripts/build-many-glibcs.py: Likewise.
17129 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17130 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17131 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17132 elf_machine_matches_host, elf_machine_dynamic,
17133 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17134 howto, elf_machine_rela): Likewise.
17135 * sysdeps/tile/dl-start.S (_start): Likewise.
17136 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17137 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17138 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17139 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17140 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17141 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17142 Likewise.
17143 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17144 * sysdeps/tile/preconfigure: Likewise.
17145 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17146 POINTER_CHK_GUARD): Likewise.
17147 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17148 * sysdeps/tile/start.S (_start): Likewise.
17149 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17150 Likewise.
17151 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17152 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17153 CMOVNEZ): Remove.
17154 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17155 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17156 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17157 Likewise.
17158 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17159 * sysdeps/tile/tilepro/Implies: Remove file.
17160 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17161 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17162 * sysdeps/tile/tilepro/memchr.c: Likewise.
17163 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17164 * sysdeps/tile/tilepro/memset.c: Likewise.
17165 * sysdeps/tile/tilepro/memusage.h: Likewise.
17166 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17167 * sysdeps/tile/tilepro/strchr.c: Likewise.
17168 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17169 * sysdeps/tile/tilepro/strlen.c: Likewise.
17170 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17171 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17172 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17173 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17174 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17175 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17176 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17177 Likewise.
17178 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17179 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17180 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17181 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17182 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17183 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17184 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17185 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17186 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17187 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17188 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17189 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17190 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17191 tilepro mention in comment.
17192
17193 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17194 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17195 * nptl/pthread_join_common.c: New file: common function used on
17196 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17197 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17198 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17199 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17200 (cleanup): Move definition to pthread_join_common.c.
17201 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17202 Remove superflous checks.
17203 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17204 Likewise.
17205
17206 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17207
17208 * sysdeps/aarch64/libm-test-ulps: Update.
17209
17210 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17211
17212 * sysdeps/aarch64/memset.S (MEMSET): Define.
17213
17214 2017-12-20 Florian Weimer <fweimer@redhat.com>
17215
17216 [BZ #22635]
17217 nptl: Provide full implementation of pthread_self in libc.so.
17218 * nptl/Makefile (routines): Add pthread_self.
17219 (libpthread-routines): Replace pthread_self with
17220 compat-pthread_self.
17221 * nptl/forward.c (pthread_self): Remove.
17222 * nptl/nptl-init.c (pthread_functions): Do not initialize
17223 ptr_pthread_self.
17224 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17225 * nptl/compat-pthread_self.c: New file.
17226 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17227 Remove ptr_pthread_self.
17228
17229 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17230
17231 * posix/regcomp.c: Fix spelling in comments.
17232 * posix/regex.h: Likewise.
17233 * posix/regex_internal.c: Likewise.
17234 * posix/regexec.c: Likewise.
17235
17236 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17237
17238 [BZ #22377]
17239 * math/Makefile [C++] (tests): Add test for iseqsig.
17240 * math/math.h [C++] (iseqsig): New implementation, which does
17241 not rely on __MATH_TG/__builtin_types_compatible_p.
17242 * math/test-math-iseqsig.cc: New file.
17243 * sysdeps/powerpc/powerpc64le/Makefile
17244 (CFLAGS-test-math-iseqsig.cc): New variable.
17245
17246 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17247
17248 * elf/dl-load.c (is_trusted_path): Remove.
17249 (fillin_rpath): Remove check_trusted argument and its use,
17250 all callers changed.
17251
17252 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17253
17254 [BZ #22630]
17255 * Makeconfig (link-pie-before-libc): Replace -pie with
17256 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17257 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17258 (tst-dlopen-aout-no-pie): New.
17259 (LDFLAGS-tst-prelink): Removed.
17260 (tst-prelink-no-pie): New.
17261 (LDFLAGS-tst-main1): Removed.
17262 (tst-main1-no-pie): New.
17263 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17264 (tst-gmon-no-pie): New.
17265
17266 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17267
17268 * manual/install.texi: Document that --enable-static-pie
17269 implies PIE.
17270 * INSTALL: Regenerated.
17271
17272 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17273
17274 [BZ #21309]
17275 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17276 unsigned.
17277
17278 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17279
17280 Revert:
17281
17282 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17283
17284 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17285
17286 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17287
17288 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17289 <errno.h>. Include "eexp.tbl".
17290 (half): New constant.
17291 (one): Likewise.
17292 (__ieee754_exp): Rewrite.
17293 (__slowexp): Remove prototype.
17294 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17295 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17296 * sysdeps/i386/fpu/slowexp.c: Likewise.
17297 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17298 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17299 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17300 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17301 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17302 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17303 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17304 comment.
17305 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17306 (CPPFLAGS-slowexp.c): Remove variable.
17307 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17308 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17309 (CFLAGS-slowexp-fma.c): Remove variable.
17310 (CFLAGS-slowexp-fma4.c): Likewise.
17311 (CFLAGS-slowexp-avx.c): Likewise.
17312 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17313 define as macro.
17314 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17315 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17316 * math/Makefile (type-double-routines): Remove slowexp.
17317 * manual/probes.texi (slowexp_p6): Remove.
17318 (slowexp_p32): Likewise.
17319
17320 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17321
17322 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17323 arithmetic.
17324
17325 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17326
17327 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17328
17329 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17330
17331 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17332
17333 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17334 <errno.h>. Include "eexp.tbl".
17335 (half): New constant.
17336 (one): Likewise.
17337 (__ieee754_exp): Rewrite.
17338 (__slowexp): Remove prototype.
17339 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17340 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17341 * sysdeps/i386/fpu/slowexp.c: Likewise.
17342 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17343 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17344 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17345 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17346 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17347 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17348 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17349 comment.
17350 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17351 (CPPFLAGS-slowexp.c): Remove variable.
17352 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17353 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17354 (CFLAGS-slowexp-fma.c): Remove variable.
17355 (CFLAGS-slowexp-fma4.c): Likewise.
17356 (CFLAGS-slowexp-avx.c): Likewise.
17357 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17358 define as macro.
17359 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17360 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17361 * math/Makefile (type-double-routines): Remove slowexp.
17362 * manual/probes.texi (slowexp_p6): Remove.
17363 (slowexp_p32): Likewise.
17364
17365 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17366 James Clarke <jrtc27@jrtc27.com>
17367
17368 [BZ #22603]
17369 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17370 addition.
17371
17372 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17373
17374 [BZ #22605]
17375 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17376 code.
17377
17378 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17379
17380 [BZ #22563]
17381 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17382 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17383 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17384 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17385 to feature_1.
17386
17387 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17388
17389 [BZ #22563]
17390 * bits/types/__cancel_jmp_buf_tag.h: New file.
17391 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17392 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17393 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17394 * nptl/Makefile (headers): Add
17395 bits/types/__cancel_jmp_buf_tag.h.
17396 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17397 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17398 * sysdeps/nptl/pthread.h: Include
17399 <bits/types/__cancel_jmp_buf_tag.h>.
17400 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17401 __cancel_jmp_buf.
17402 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17403
17404 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17405
17406 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17407 --enable-static-pie variants to x86_64, x32 and i686.
17408
17409 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17410
17411 [BZ #22631]
17412 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17413 argument for attrubutes. All callers changed.
17414 (__inline_mathop1): Likewise. All callers changed.
17415 (__inline_mathop): Likewise. All callers changed.
17416 [__USE_MISC] (scalbn): Use __inline_forward instead of
17417 __inline_forward_c.
17418 [__USE_ISOC99] (scalbln): Likewise.
17419 [__USE_ISOC99] (nearbyint): Likewise.
17420 [__USE_ISOC99] (lrint): Likewise.
17421 [__USE_MISC] (scalbnf): Likewise.
17422 [__USE_ISOC99] (scalblnf): Likewise.
17423 [__USE_ISOC99] (nearbyintf): Likewise.
17424 [__USE_ISOC99] (lrintf): Likewise.
17425 [__USE_MISC] (scalbnl): Likewise.
17426 [__USE_ISOC99] (scalblnl): Likewise.
17427 [__USE_ISOC99] (nearbyintl): Likewise.
17428 [__USE_ISOC99] (lrintl): Likewise.
17429 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17430 __inline_mathop and __m81_defun changed.
17431
17432 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17433 CPU or FPU for ARM hard-float configurations.
17434
17435 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17436
17437 * nptl/tst-attr3.c: Include <libc-diag.h>.
17438 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17439
17440 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17441
17442 * string/tester.c (test_strncat): Also disable -Warray-bounds
17443 warnings for two tests.
17444
17445 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17446
17447 [BZ #22614]
17448 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17449 $(cc-pie-default) == yes.
17450 * config.make.in (cc-pie-default): New.
17451 * configure.ac (libc_cv_pie_default): Renamed to ...
17452 (libc_cv_cc_pie_default): This.
17453 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17454 * configure: Regenerated.
17455
17456 2017-12-18 Florian Weimer <fweimer@redhat.com>
17457
17458 [BZ #20204]
17459 ld.so: Harden dl-libc/libdl hooks.
17460 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17461 (rtld_active): New function.
17462 * dlfcn/dladdr.c (__dladdr): Call it.
17463 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17464 * dlfcn/dlclose.c (__dlcose): Likewise.
17465 * dlfcn/dlerror.c (__dlerror): Likewise.
17466 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17467 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17468 * dlfcn/dlopen.c (__dlopen): Likewise.
17469 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17470 * dlfcn/dlsym.c (__dlsym): Likewise.
17471 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17472 * libio/vtables.c (_IO_vtable_check): Likewise.
17473 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17474 (__libc_dlclose): Likewise.
17475 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17476 assignment.
17477
17478 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17479
17480 [BZ #22446]
17481 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17482 buffers for readlink input and output.
17483
17484 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17485
17486 [BZ #22624]
17487 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17488 inhibit_stack_protector.
17489
17490 [BZ #22624]
17491 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17492 inhibit_stack_protector.
17493
17494 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17495
17496 [BZ #22627]
17497 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17498 code and invocation.
17499
17500 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17501
17502 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17503
17504 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17505
17506 [BZ #22505]
17507 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17508
17509 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17510
17511 * sysdeps/s390/fpu/libm-test-ulps: Update.
17512
17513 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17514
17515 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17516
17517 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17518
17519 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17520 constants to s_sincosf.h file.
17521 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17522 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17523 implementation.
17524 * sysdeps/ieee754/flt-32/s_sincosf.h:
17525 New file.
17526
17527 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17528
17529 [BZ #14681]
17530 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17531 before mtrace.
17532
17533 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17534
17535 [BZ #19574]
17536 * INSTALL: Regenerated.
17537 * Makeconfig (real-static-start-installed-name): New.
17538 (pic-default): Updated for --enable-static-pie.
17539 (pie-default): New for --enable-static-pie.
17540 (default-pie-ldflag): Likewise.
17541 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17542 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17543 Replace $(static-start-installed-name) with
17544 $(real-static-start-installed-name).
17545 (+prectorT): Updated for --enable-static-pie.
17546 (+postctorT): Likewise.
17547 (CFLAGS-.o): Add $(pie-default).
17548 (CFLAGS-.op): Likewise.
17549 * NEWS: Mention --enable-static-pie.
17550 * config.h.in (ENABLE_STATIC_PIE): New.
17551 * configure.ac (--enable-static-pie): New configure option.
17552 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17553 (have-static-pie): Likewise.
17554 Enable static PIE if linker supports --no-dynamic-linker.
17555 (ENABLE_STATIC_PIE): New AC_DEFINE.
17556 (enable-static-pie): New LIBC_CONFIG_VAR.
17557 * configure: Regenerated.
17558 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17559 gr$(start-installed-name) for --enable-static-pie.
17560 (extra-objs): Likewise.
17561 (install-lib): Likewise.
17562 (extra-objs): Add static-reloc.o and static-reloc.os
17563 ($(objpfx)$(start-installed-name)): Also depend on
17564 $(objpfx)static-reloc.o.
17565 ($(objpfx)r$(start-installed-name)): New.
17566 ($(objpfx)g$(start-installed-name)): Also depend on
17567 $(objpfx)static-reloc.os.
17568 ($(objpfx)gr$(start-installed-name)): New.
17569 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17570 in libc.a.
17571 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17572 initimage.
17573 * csu/static-reloc.c: New file.
17574 * elf/Makefile (routines): Add dl-reloc-static-pie.
17575 (elide-routines.os): Likewise.
17576 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17577 (tst-tls1-static-non-pie-no-pie): New.
17578 * elf/dl-reloc-static-pie.c: New file.
17579 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17580 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17581 STATIC_PIE_BOOTSTRAP.
17582 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17583 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17584 (tests-static): Likewise.
17585 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17586 (tst-gmon-static-no-pie): New.
17587 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17588 (CRT-tst-gmon-static-pie): Likewise.
17589 (tst-gmon-static-pie-ENV): Likewise.
17590 (tests-special): Likewise.
17591 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17592 (clean-tst-gmon-static-pie-data): Likewise.
17593 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17594 * gmon/tst-gmon-static-pie.c: New file.
17595 * manual/install.texi: Document --enable-static-pie.
17596 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17597 (_dl_get_dl_main_map): Likewise.
17598 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17599 * sysdeps/x86_64/configure.ac: Likewise.
17600 * sysdeps/i386/configure: Regenerated.
17601 * sysdeps/x86_64/configure: Likewise.
17602 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17603 (ASFLAGS-.op): Likewise.
17604
17605 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17606
17607 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17608 * posix/tst-mmap-offset.c (fname): Use /tmp.
17609 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17610
17611 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17612
17613 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17614
17615 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17616
17617 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17618 errno.
17619
17620 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17621
17622 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17623 --with-float=hard for arm-linux-gnueabihf configurations.
17624
17625 [BZ #14121]
17626 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17627 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17628 ($(mo-installed)): Use $(objpfx)%.mo.
17629 (realclean): Remove rule.
17630
17631 * po/Makefile (linguas): Remove rule and dependencies.
17632 (linguas.mo): Likewise.
17633 (.PHONY): Do not depend on linguas and linguas.mo.
17634 (podir): Remove variable.
17635 (pofiles): Likewise.
17636 [$(pofiles)] (%.po): Remove rule.
17637
17638 * sysdeps/sparc/sparc32/Makefile
17639 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17640 start-of-line whitespace in argument of echo.
17641 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17642 with whitespace. Generate __wrap_.udiv alias.
17643 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17644 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17645 * sysdeps/sparc/sparc32/udiv.S: Likewise.
17646 * sysdeps/sparc/sparc32/urem.S: Likewise.
17647
17648 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17649
17650 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
17651 for aligned inputs.
17652
17653 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17654
17655 * benchtests/bench-strcmp.c: Print output in JSON format.
17656
17657 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
17658
17659 2017-12-14 Florian Weimer <fweimer@redhat.com>
17660
17661 [BZ #22607]
17662 CVE-2017-1000409
17663 * elf/dl-load.c (_dl_init_paths): Compute number of components in
17664 the expanded path string.
17665
17666 2017-12-14 Florian Weimer <fweimer@redhat.com>
17667
17668 [BZ #22606]
17669 CVE-2017-1000408
17670 * elf/dl-load.c (system_dirs): Update comment.
17671 (nsystem_dirs_len): Use array_length.
17672 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
17673
17674 2017-12-14 Florian Weimer <fweimer@redhat.com>
17675
17676 Simplify compiling most of support/ outside of glibc.
17677 * support/check_addrinfo.c: Include <string.h>.
17678 * support/check_dns_packet.c: Likewise.
17679 * support/check_hostent.c: Likewise.
17680 * support/support_can_chroot.c: Include <support/xunistd.h>.
17681 * support/support_format_addrinfo.c: Include <stdlib.h>
17682 * support/support_format_dns_packet.c: Include <stdbool.h>.
17683 * support/support_format_hostent.c: Include <stdlib.h>.
17684 * support/support_format_netent.c: Likewise.
17685 * support/support_write_string.c: Include <support/xunistd.h>.
17686 * support/xdlfcn.c: Include <stddef.h>.
17687
17688 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
17689
17690 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
17691
17692 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17693 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17694
17695 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17696 (sysdeps_routines): Add memset-niagara7.
17697 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
17698 Likewise.
17699 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
17700 file.
17701 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
17702 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17703 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
17704 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
17705 Add niagara7 option.
17706 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
17707 memset.
17708
17709 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17710 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
17711 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
17712 Likewise.
17713 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
17714 New file.
17715 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
17716 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
17717 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17718 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
17719 and __memmove_niagara7.
17720 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
17721 Add niagara7 option.
17722 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
17723 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
17724 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
17725 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
17726 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
17727
17728 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
17729
17730 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
17731 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
17732 * sysdeps/sparc/sparc64/memmove.S: Likewise.
17733 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
17734
17735 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
17736 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
17737 _dl_sparc_cap_flags array.
17738 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
17739
17740 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
17741
17742 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
17743 time whenever possible.
17744
17745 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17746
17747 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
17748 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
17749
17750 2017-12-12 Joseph Myers <joseph@codesourcery.com>
17751
17752 * soft-fp/fmadf4.c: Move to ....
17753 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
17754 * soft-fp/fmasf4.c: Move to ....
17755 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
17756 * soft-fp/fmatf4.c: Move to ....
17757 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
17758 * sysdeps/ieee754/soft-fp/Makefile: New file.
17759 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
17760 * sysdeps/arm/preconfigure: Regenerated.
17761 * sysdeps/arm/nofpu/Implies: New file.
17762 * sysdeps/arm/s_fma.c: Remove file.
17763 * sysdeps/arm/s_fmaf.c: Likewise.
17764 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
17765 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
17766 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
17767 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
17768 * sysdeps/microblaze/s_fma.c: Remove file.
17769 * sysdeps/microblaze/s_fmaf.c: Likewise.
17770 * sysdeps/mips/mips32/nofpu/Implies: New file.
17771 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
17772 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
17773 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
17774 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
17775 * sysdeps/mips/ieee754/s_fma.c: Remove file.
17776 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
17777 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
17778 implementation.
17779 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
17780 * sysdeps/nios2/s_fma.c: Remove file.
17781 * sysdeps/nios2/s_fmaf.c: Likewise.
17782 * sysdeps/sh/nofpu/Implies: New file.
17783 * sysdeps/sh/s_fma.c: Remove file.
17784 * sysdeps/sh/s_fmaf.c: Likewise.
17785 * sysdeps/tile/Implies: Add ieee754/soft-fp.
17786 * sysdeps/tile/s_fma.c: Remove file.
17787 * sysdeps/tile/s_fmaf.c: Likewise.
17788
17789 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
17790
17791 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17792 Add s_cosf-sse2 and s_cosf-fma.
17793 (CFLAGS-s_cosf-fma.c): New.
17794 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
17795 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
17796 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
17797
17798 2017-12-12 Steve Ellcey <sellcey@cavium.com>
17799
17800 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
17801
17802 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17803
17804 * libio/Makefile (tests): Add tst-bz22415.
17805 (tst-bz22415-ENV): New rule.
17806 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
17807 (tests-special): Add tst-bz22415-mem.out.
17808 ($(objpfx)tst-bz22415-mem.out): New rule.
17809 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
17810 in case of a successful seek operation.
17811 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
17812 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
17813 buffer is required.
17814 * libio/tst-bz22415.c: New test.
17815
17816 * sysdeps/ia64/fpu/libm-test-ulps: Update.
17817
17818 2017-12-12 James Clarke <jrtc27@jrtc27.com>
17819
17820 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
17821 __IPC_64 to 0 to avoid IPC_64 being set.
17822
17823 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17824
17825 [BZ #22593]
17826 * math/bits/mathcalls.h (nextafter): Remove const.
17827 (nexttoward): Likewise.
17828
17829 2017-12-12 Joseph Myers <joseph@codesourcery.com>
17830
17831 * configure.ac (--with-fp): Remove configure option.
17832 (with_fp_cond): New variable.
17833 (libc_cv_with_fp): New configure test. Use this variable instead
17834 of with_fp.
17835 * configure: Regenerated.
17836 * config.make.in (with-fp): Use @libc_cv_with_fp@.
17837 * manual/install.texi (Configuring and compiling): Remove
17838 --without-fp.
17839 * INSTALL: Regenerated.
17840 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
17841 * sysdeps/mips/preconfigure (with_fp_cond): Define.
17842 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
17843 * sysdeps/sh/preconfigure (with_fp_cond): Define.
17844 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
17845 use --without-fp to configure glibc.
17846
17847 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
17848
17849 * manual/locale.texi (nl_langinfo): Fix a typo.
17850
17851 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
17852
17853 [BZ #22588]
17854 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
17855
17856 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
17857
17858 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
17859 (CFLAGS-argp-parse.c): Likewise.
17860 (CFLAGS-argp-fmtstream.c): Likewise.
17861 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
17862 (CPPFLAGS-sha512-crypt.c): Likewise.
17863 (CPPFLAGS-md5-crypt.c): Likewise.
17864 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
17865 (CFLAGS-stack_chk_fail_local.c): Likewise.
17866 (CFLAGS-backtrace.c): Likewise.
17867 (CFLAGS-sprintf_chk.c): Likewise.
17868 (CFLAGS-snprintf_chk.c): Likewise.
17869 (CFLAGS-vsprintf_chk.c): Likewise.
17870 (CFLAGS-vsnprintf_chk.c): Likewise.
17871 (CFLAGS-asprintf_chk.c): Likewise.
17872 (CFLAGS-vasprintf_chk.c): Likewise.
17873 (CFLAGS-obprintf_chk.c): Likewise.
17874 (CFLAGS-dprintf_chk.c): Likewise.
17875 (CFLAGS-vdprintf_chk.c): Likewise.
17876 (CFLAGS-printf_chk.c): Likewise.
17877 (CFLAGS-fprintf_chk.c): Likewise.
17878 (CFLAGS-vprintf_chk.c): Likewise.
17879 (CFLAGS-vfprintf_chk.c): Likewise.
17880 (CFLAGS-gets_chk.c): Likewise.
17881 (CFLAGS-fgets_chk.c): Likewise.
17882 (CFLAGS-fgets_u_chk.c): Likewise.
17883 (CFLAGS-fread_chk.c): Likewise.
17884 (CFLAGS-fread_u_chk.c): Likewise.
17885 (CFLAGS-swprintf_chk.c): Likewise.
17886 (CFLAGS-vswprintf_chk.c): Likewise.
17887 (CFLAGS-wprintf_chk.c): Likewise.
17888 (CFLAGS-fwprintf_chk.c): Likewise.
17889 (CFLAGS-vwprintf_chk.c): Likewise.
17890 (CFLAGS-vfwprintf_chk.c): Likewise.
17891 (CFLAGS-fgetws_chk.c): Likewise.
17892 (CFLAGS-fgetws_u_chk.c): Likewise.
17893 (CFLAGS-read_chk.c): Likewise.
17894 (CFLAGS-pread_chk.c): Likewise.
17895 (CFLAGS-pread64_chk.c): Likewise.
17896 (CFLAGS-recv_chk.c): Likewise.
17897 (CFLAGS-recvfrom_chk.c): Likewise.
17898 (CFLAGS-tst-longjmp_chk.c): Likewise.
17899 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
17900 (CFLAGS-tst-longjmp_chk2.c): Likewise.
17901 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
17902 (CFLAGS-tst-longjmp_chk3.c): Likewise.
17903 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
17904 (CFLAGS-tst-chk1.c): Likewise.
17905 (CFLAGS-tst-chk2.c): Likewise.
17906 (CFLAGS-tst-chk3.c): Likewise.
17907 (CFLAGS-tst-chk4.cc): Likewise.
17908 (CFLAGS-tst-chk5.cc): Likewise.
17909 (CFLAGS-tst-chk6.cc): Likewise.
17910 (CFLAGS-tst-lfschk1.c): Likewise.
17911 (CFLAGS-tst-lfschk2.c): Likewise.
17912 (CFLAGS-tst-lfschk3.c): Likewise.
17913 (CFLAGS-tst-lfschk4.cc): Likewise.
17914 (CFLAGS-tst-lfschk5.cc): Likewise.
17915 (CFLAGS-tst-lfschk6.cc): Likewise.
17916 (CFLAGS-tst-ssp-1.c): Likewise.
17917 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
17918 (CFLAGS-scandir64.c): Likewise.
17919 (CFLAGS-scandir-tail.c): Likewise.
17920 (CFLAGS-scandir64-tail.c): Likewise.
17921 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
17922 (CFLAGS-dl-tunables.c): Likewise.
17923 (CFLAGS-dl-runtime.c): Likewise.
17924 (CFLAGS-dl-lookup.c): Likewise.
17925 (CFLAGS-dl-iterate-phdr.c): Likewise.
17926 (CFLAGS-vismain.c): Likewise.
17927 (CFLAGS-tst-linkall-static.c): Likewise.
17928 (CFLAGS-tst-linkall-static.c): Likewise.
17929 (CPPFLAGS-dl-load.c): Likewise.
17930 (CFLAGS-ldconfig.c): Likewise.
17931 (CFLAGS-dl-cache.c): Likewise.
17932 (CFLAGS-cache.c): Likewise.
17933 (CFLAGS-rtld.c): Likewise.
17934 (CFLAGS-multiload.c): Likewise.
17935 (CFLAGS-filtmod1.c): Likewise.
17936 (CFLAGS-tst-align.c): Likewise.
17937 (CFLAGS-tst-align2.c): Likewise.
17938 (CFLAGS-tst-alignmod.c): Likewise.
17939 (CFLAGS-tst-alignmod2.c): Likewise.
17940 (CPPFLAGS-tst-execstack.c): Likewise.
17941 (CFLAGS-tst-ptrguard1-static.c): Likewise.
17942 (CFLAGS-tst-latepthreadmod.c): Likewise.
17943 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
17944 (CFLAGS-getgrnam_r.c): Likewise.
17945 (CFLAGS-getgrent_r.c): Likewise.
17946 (CFLAGS-getgrent.c): Likewise.
17947 (CFLAGS-fgetgrent.c): Likewise.
17948 (CFLAGS-fgetgrent_r.c): Likewise.
17949 (CFLAGS-putgrent.c): Likewise.
17950 (CFLAGS-initgroups.c): Likewise.
17951 (CFLAGS-getgrgid.c): Likewise.
17952 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
17953 (CFLAGS-getsgent.c): Likewise.
17954 (CFLAGS-fgetsgent.c): Likewise.
17955 (CFLAGS-fgetsgent_r.c): Likewise.
17956 (CFLAGS-putsgent.c): Likewise.
17957 (CFLAGS-getsgnam.c): Likewise.
17958 (CFLAGS-getsgnam_r.c): Likewise.
17959 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
17960 (CFLAGS-iconv_charmap.c): Likewise.
17961 (CFLAGS-dummy-repertoire.c): Likewise.
17962 (CFLAGS-charmap.c): Likewise.
17963 (CFLAGS-linereader.c): Likewise.
17964 (CFLAGS-simple-hash.c): Likewise.
17965 (CFLAGS-gconv_conf.c): Likewise.
17966 (CFLAGS-iconvconfig.c): Likewise.
17967 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
17968 (CFLAGS-gethstbyad.c): Likewise.
17969 (CFLAGS-gethstbynm_r.c): Likewise.
17970 (CFLAGS-gethstbynm.c): Likewise.
17971 (CFLAGS-gethstbynm2_r.c): Likewise.
17972 (CFLAGS-gethstbynm2.c): Likewise.
17973 (CFLAGS-gethstent_r.c): Likewise.
17974 (CFLAGS-gethstent.c): Likewise.
17975 (CFLAGS-rcmd.c): Likewise.
17976 (CFLAGS-getnetbynm_r.c): Likewise.
17977 (CFLAGS-getnetbynm.c): Likewise.
17978 (CFLAGS-getnetbyad_r.c): Likewise.
17979 (CFLAGS-getnetbyad.c): Likewise.
17980 (CFLAGS-getnetent_r.c): Likewise.
17981 (CFLAGS-getnetent.c): Likewise.
17982 (CFLAGS-getaliasent_r.c): Likewise.
17983 (CFLAGS-getaliasent.c): Likewise.
17984 (CFLAGS-getrpcent_r.c): Likewise.
17985 (CFLAGS-getrpcent.c): Likewise.
17986 (CFLAGS-getservent_r.c): Likewise.
17987 (CFLAGS-getservent.c): Likewise.
17988 (CFLAGS-getprtent_r.c): Likewise.
17989 (CFLAGS-getprtent.c): Likewise.
17990 (CFLAGS-either_ntoh.c): Likewise.
17991 (CFLAGS-either_hton.c): Likewise.
17992 (CFLAGS-getnetgrent.c): Likewise.
17993 (CFLAGS-getnetgrent_r.c): Likewise.
17994 (CFLAGS-tst-checks-posix.c): Likewise.
17995 (CFLAGS-tst-sockaddr.c): Likewise.
17996 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
17997 (CFLAGS-tst-translit.c): Likewise.
17998 (CFLAGS-tst-gettext2.c): Likewise.
17999 (CFLAGS-tst-codeset.c): Likewise.
18000 (CFLAGS-tst-gettext3.c): Likewise.
18001 (CFLAGS-tst-gettext4.c): Likewise.
18002 (CFLAGS-tst-gettext5.c): Likewise.
18003 (CFLAGS-tst-gettext6.c): Likewise.
18004 * io/Makefile (CFLAGS-open.c): Likewise.
18005 (CFLAGS-open64.c): Likewise.
18006 (CFLAGS-creat.c): Likewise.
18007 (CFLAGS-creat64.c): Likewise.
18008 (CFLAGS-fcntl.c): Likewise.
18009 (CFLAGS-poll.c): Likewise.
18010 (CFLAGS-ppoll.c): Likewise.
18011 (CFLAGS-lockf.c): Likewise.
18012 (CFLAGS-statfs.c): Likewise.
18013 (CFLAGS-fstatfs.c): Likewise.
18014 (CFLAGS-statvfs.c): Likewise.
18015 (CFLAGS-fstatvfs.c): Likewise.
18016 (CFLAGS-fts.c): Likewise.
18017 (CFLAGS-fts64.c): Likewise.
18018 (CFLAGS-ftw.c): Likewise.
18019 (CFLAGS-ftw64.c): Likewise.
18020 (CFLAGS-lockf.c): Likewise.
18021 (CFLAGS-posix_fallocate.c): Likewise.
18022 (CFLAGS-posix_fallocate64.c): Likewise.
18023 (CFLAGS-fallocate.c): Likewise.
18024 (CFLAGS-fallocate64.c): Likewise.
18025 (CFLAGS-read.c): Likewise.
18026 (CFLAGS-write.c): Likewise.
18027 (CFLAGS-test-stat.c): Likewise.
18028 (CFLAGS-test-lfs.c): Likewise.
18029 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18030 (CFLAGS-fputc.c): Likewise.
18031 (CFLAGS-fputwc.c): Likewise.
18032 (CFLAGS-freopen64.c): Likewise.
18033 (CFLAGS-freopen.c): Likewise.
18034 (CFLAGS-fseek.c): Likewise.
18035 (CFLAGS-fseeko64.c): Likewise.
18036 (CFLAGS-fseeko.c): Likewise.
18037 (CFLAGS-ftello64.c): Likewise.
18038 (CFLAGS-ftello.c): Likewise.
18039 (CFLAGS-fwide.c): Likewise.
18040 (CFLAGS-genops.c): Likewise.
18041 (CFLAGS-getc.c): Likewise.
18042 (CFLAGS-getchar.c): Likewise.
18043 (CFLAGS-getwc.c): Likewise.
18044 (CFLAGS-getwchar.c): Likewise.
18045 (CFLAGS-iofclose.c): Likewise.
18046 (CFLAGS-iofflush.c): Likewise.
18047 (CFLAGS-iofgetpos64.c): Likewise.
18048 (CFLAGS-iofgetpos.c): Likewise.
18049 (CFLAGS-iofgets.c): Likewise.
18050 (CFLAGS-iofgetws.c): Likewise.
18051 (CFLAGS-iofputs.c): Likewise.
18052 (CFLAGS-iofputws.c): Likewise.
18053 (CFLAGS-iofread.c): Likewise.
18054 (CFLAGS-iofsetpos64.c): Likewise.
18055 (CFLAGS-iofsetpos.c): Likewise.
18056 (CFLAGS-ioftell.c): Likewise.
18057 (CFLAGS-iofwrite.c): Likewise.
18058 (CFLAGS-iogetdelim.c): Likewise.
18059 (CFLAGS-iogetline.c): Likewise.
18060 (CFLAGS-iogets.c): Likewise.
18061 (CFLAGS-iogetwline.c): Likewise.
18062 (CFLAGS-ioputs.c): Likewise.
18063 (CFLAGS-ioseekoff.c): Likewise.
18064 (CFLAGS-ioseekpos.c): Likewise.
18065 (CFLAGS-iosetbuffer.c): Likewise.
18066 (CFLAGS-iosetvbuf.c): Likewise.
18067 (CFLAGS-ioungetc.c): Likewise.
18068 (CFLAGS-ioungetwc.c): Likewise.
18069 (CFLAGS-oldfileops.c): Likewise.
18070 (CFLAGS-oldiofclose.c): Likewise.
18071 (CFLAGS-oldiofgetpos64.c): Likewise.
18072 (CFLAGS-oldiofgetpos.c): Likewise.
18073 (CFLAGS-oldiofsetpos64.c): Likewise.
18074 (CFLAGS-oldiofsetpos.c): Likewise.
18075 (CFLAGS-peekc.c): Likewise.
18076 (CFLAGS-putc.c): Likewise.
18077 (CFLAGS-putchar.c): Likewise.
18078 (CFLAGS-putwc.c): Likewise.
18079 (CFLAGS-putwchar.c): Likewise.
18080 (CFLAGS-rewind.c): Likewise.
18081 (CFLAGS-wfileops.c): Likewise.
18082 (CFLAGS-wgenops.c): Likewise.
18083 (CFLAGS-oldiofopen.c): Likewise.
18084 (CFLAGS-iofopen.c): Likewise.
18085 (CFLAGS-iofopen64.c): Likewise.
18086 (CFLAGS-oldtmpfile.c): Likewise.
18087 (CFLAGS-tst_putwc.c): Likewise.
18088 * locale/Makefile (CFLAGS-md5.c): Likewise.
18089 (CFLAGS-charmap.c): Likewise.
18090 (CFLAGS-locfile.c): Likewise.
18091 (CFLAGS-charmap-dir.c): Likewise.
18092 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18093 (CFLAGS-getpt.c): Likewise.
18094 (CFLAGS-pt_chown.c): Likewise.
18095 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18096 (CFLAGS-obstack.c): Likewise.
18097 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18098 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18099 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18100 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18101 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18102 (CFLAGS-test-tgmath.c): Likewise.
18103 (CFLAGS-test-tgmath2.c): Likewise.
18104 (CFLAGS-test-tgmath-ret.c): Likewise.
18105 (CFLAGS-test-powl.c): Likewise.
18106 (CFLAGS-test-snan.c): Likewise.
18107 (CFLAGS-test-signgam-finite.c): Likewise.
18108 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18109 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18110 (CFLAGS-test-signgam-uchar.c): Likewise.
18111 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18112 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18113 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18114 (CFLAGS-test-signgam-uint.c): Likewise.
18115 (CFLAGS-test-signgam-uint-init.c): Likewise.
18116 (CFLAGS-test-signgam-uint-static.c): Likewise.
18117 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18118 (CFLAGS-test-signgam-ullong.c): Likewise.
18119 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18120 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18121 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18122 (CFLAGS-test-math-cxx11.cc): Likewise.
18123 (CFLAGS-test-math-isinff.cc): Likewise.
18124 (CFLAGS-test-math-iszero.cc): Likewise.
18125 (CFLAGS-test-math-issignaling.cc): Likewise.
18126 (CFLAGS-test-math-iscanonical.cc): Likewise.
18127 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18128 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18129 (CFLAGS-test-flt-eval-method.c): Likewise.
18130 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18131 (CFLAGS-test-finite-macros.c): Likewise.
18132 * misc/Makefile (CFLAGS-select.c): Likewise.
18133 (CFLAGS-tsearch.c): Likewise.
18134 (CFLAGS-lsearch.c): Likewise.
18135 (CFLAGS-pselect.c): Likewise.
18136 (CFLAGS-readv.c): Likewise.
18137 (CFLAGS-writev.c): Likewise.
18138 (CFLAGS-preadv.c): Likewise.
18139 (CFLAGS-preadv64.c): Likewise.
18140 (CFLAGS-pwritev.c): Likewise.
18141 (CFLAGS-pwritev64.c): Likewise.
18142 (CFLAGS-preadv2.c): Likewise.
18143 (CFLAGS-preadv64v2.c): Likewise.
18144 (CFLAGS-pwritev2.c): Likewise.
18145 (CFLAGS-pwritev64v2.c): Likewise.
18146 (CFLAGS-usleep.c): Likewise.
18147 (CFLAGS-syslog.c): Likewise.
18148 (CFLAGS-error.c): Likewise.
18149 (CFLAGS-getpass.c): Likewise.
18150 (CFLAGS-mkstemp.c): Likewise.
18151 (CFLAGS-mkstemp64.c): Likewise.
18152 (CFLAGS-getsysstats.c): Likewise.
18153 (CFLAGS-getusershell.c): Likewise.
18154 (CFLAGS-err.c): Likewise.
18155 (CFLAGS-tst-tsearch.c): Likewise.
18156 (CFLAGS-msync.c): Likewise.
18157 (CFLAGS-fdatasync.c): Likewise.
18158 (CFLAGS-fsync.c): Likewise.
18159 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18160 (CFLAGS-unwind.c): Likewise.
18161 (CFLAGS-unwind-forcedunwind.c): Likewise.
18162 (CFLAGS-pthread_cancel.c): Likewise.
18163 (CFLAGS-pthread_setcancelstate.c): Likewise.
18164 (CFLAGS-pthread_setcanceltype.c): Likewise.
18165 (CFLAGS-cancellation.c): Likewise.
18166 (CFLAGS-libc-cancellation.c): Likewise.
18167 (CFLAGS-pthread_exit.c): Likewise.
18168 (CFLAGS-forward.c): Likewise.
18169 (CFLAGS-pthread_testcancel.c): Likewise.
18170 (CFLAGS-pthread_join.c): Likewise.
18171 (CFLAGS-pthread_timedjoin.c): Likewise.
18172 (CFLAGS-pthread_once.c): Likewise.
18173 (CFLAGS-pthread_cond_wait.c): Likewise.
18174 (CFLAGS-sem_wait.c): Likewise.
18175 (CFLAGS-sem_timedwait.c): Likewise.
18176 (CFLAGS-fcntl.c): Likewise.
18177 (CFLAGS-lockf.c): Likewise.
18178 (CFLAGS-pread.c): Likewise.
18179 (CFLAGS-pread64.c): Likewise.
18180 (CFLAGS-pwrite.c): Likewise.
18181 (CFLAGS-pwrite64.c): Likewise.
18182 (CFLAGS-wait.c): Likewise.
18183 (CFLAGS-waitpid.c): Likewise.
18184 (CFLAGS-sigwait.c): Likewise.
18185 (CFLAGS-msgrcv.c): Likewise.
18186 (CFLAGS-msgsnd.c): Likewise.
18187 (CFLAGS-tcdrain.c): Likewise.
18188 (CFLAGS-open.c): Likewise.
18189 (CFLAGS-open64.c): Likewise.
18190 (CFLAGS-pause.c): Likewise.
18191 (CFLAGS-recv.c): Likewise.
18192 (CFLAGS-send.c): Likewise.
18193 (CFLAGS-accept.c): Likewise.
18194 (CFLAGS-sendto.c): Likewise.
18195 (CFLAGS-connect.c): Likewise.
18196 (CFLAGS-recvfrom.c): Likewise.
18197 (CFLAGS-recvmsg.c): Likewise.
18198 (CFLAGS-sendmsg.c): Likewise.
18199 (CFLAGS-close.c): Likewise.
18200 (CFLAGS-read.c): Likewise.
18201 (CFLAGS-write.c): Likewise.
18202 (CFLAGS-nanosleep.c): Likewise.
18203 (CFLAGS-sigsuspend.c): Likewise.
18204 (CFLAGS-msync.c): Likewise.
18205 (CFLAGS-fdatasync.c): Likewise.
18206 (CFLAGS-fsync.c): Likewise.
18207 (CFLAGS-pt-system.c): Likewise.
18208 (CFLAGS-tst-cleanup2.c): Likewise.
18209 (CFLAGS-tst-cleanupx2.c): Likewise.
18210 (CFLAGS-flockfile.c): Likewise.
18211 (CFLAGS-ftrylockfile.c): Likewise.
18212 (CFLAGS-funlockfile.c): Likewise.
18213 (CFLAGS-tst-initializers1.c): Likewise.
18214 (CFLAGS-tst-initializers1-c89.c): Likewise.
18215 (CFLAGS-tst-initializers1-c99.c): Likewise.
18216 (CFLAGS-tst-initializers1-c11.c): Likewise.
18217 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18218 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18219 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18220 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18221 (CFLAGS-nscd_getgr_r.c): Likewise.
18222 (CFLAGS-nscd_gethst_r.c): Likewise.
18223 (CFLAGS-nscd_getai.c): Likewise.
18224 (CFLAGS-nscd_initgroups.c): Likewise.
18225 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18226 (CFLAGS-pause.c): Likewise.
18227 (CFLAGS-pread.c): Likewise.
18228 (CFLAGS-pread64.c): Likewise.
18229 (CFLAGS-pwrite.c): Likewise.
18230 (CFLAGS-pwrite64.c): Likewise.
18231 (CFLAGS-sleep.c): Likewise.
18232 (CFLAGS-wait.c): Likewise.
18233 (CFLAGS-waitid.c): Likewise.
18234 (CFLAGS-waitpid.c): Likewise.
18235 (CFLAGS-getopt.c): Likewise.
18236 (CFLAGS-wordexp.c): Likewise.
18237 (CFLAGS-sysconf.c): Likewise.
18238 (CFLAGS-pathconf.c): Likewise.
18239 (CFLAGS-fpathconf.c): Likewise.
18240 (CFLAGS-spawn.c): Likewise.
18241 (CFLAGS-spawnp.c): Likewise.
18242 (CFLAGS-spawni.c): Likewise.
18243 (CFLAGS-glob.c): Likewise.
18244 (CFLAGS-glob64.c): Likewise.
18245 (CFLAGS-getconf.c): Likewise.
18246 (CFLAGS-nanosleep.c): Likewise.
18247 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18248 (CFLAGS-getpwent.c): Likewise.
18249 (CFLAGS-getpw.c): Likewise.
18250 (CFLAGS-fgetpwent_r.c): Likewise.
18251 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18252 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18253 (CFLAGS-mq_timedreceive.c): Likewise.
18254 (CFLAGS-mq_timedsend.c): Likewise.
18255 (CFLAGS-clock_nanosleep.c): Likewise.
18256 (CFLAGS-librt-cancellation.c): Likewise.
18257 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18258 (CFLAGS-getspent.c): Likewise.
18259 (CFLAGS-fgetspent.c): Likewise.
18260 (CFLAGS-fgetspent_r.c): Likewise.
18261 (CFLAGS-putspent.c): Likewise.
18262 (CFLAGS-getspnam.c): Likewise.
18263 (CFLAGS-getspnam_r.c): Likewise.
18264 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18265 (CFLAGS-sigsuspend.c): Likewise.
18266 (CFLAGS-sigtimedwait.c): Likewise.
18267 (CFLAGS-sigwait.c): Likewise.
18268 (CFLAGS-sigwaitinfo.c): Likewise.
18269 (CFLAGS-sigreturn.c): Likewise.
18270 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18271 (CFLAGS-vfwprintf.c): Likewise.
18272 (CFLAGS-tmpfile.c): Likewise.
18273 (CFLAGS-tmpfile64.c): Likewise.
18274 (CFLAGS-tempname.c): Likewise.
18275 (CFLAGS-psignal.c): Likewise.
18276 (CFLAGS-vprintf.c): Likewise.
18277 (CFLAGS-cuserid.c): Likewise.
18278 (CFLAGS-errlist.c): Likewise.
18279 (CFLAGS-siglist.c): Likewise.
18280 (CFLAGS-scanf15.c): Likewise.
18281 (CFLAGS-scanf17.c): Likewise.
18282 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18283 (CFLAGS-msort.c): Likewise.
18284 (CFLAGS-qsort.c): Likewise.
18285 (CFLAGS-system.c): Likewise.
18286 (CFLAGS-fmtmsg.c): Likewise.
18287 (CFLAGS-strfmon.c): Likewise.
18288 (CFLAGS-strfmon_l.c): Likewise.
18289 (CFLAGS-strfromd.c): Likewise.
18290 (CFLAGS-strfromf.c): Likewise.
18291 (CFLAGS-strfroml.c): Likewise.
18292 (CFLAGS-tst-bsearch.c): Likewise.
18293 (CFLAGS-tst-qsort.c): Likewise.
18294 (CFLAGS-tst-makecontext2.c): Likewise.
18295 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18296 (CFLAGS-xnlm_prot.c): Likewise.
18297 (CFLAGS-xrstat.c): Likewise.
18298 (CFLAGS-xyppasswd.c): Likewise.
18299 (CFLAGS-xklm_prot.c): Likewise.
18300 (CFLAGS-xrex.c): Likewise.
18301 (CFLAGS-xsm_inter.c): Likewise.
18302 (CFLAGS-xmount.c): Likewise.
18303 (CFLAGS-xrusers.c): Likewise.
18304 (CFLAGS-xspray.c): Likewise.
18305 (CFLAGS-xnfs_prot.c): Likewise.
18306 (CFLAGS-xrquota.c): Likewise.
18307 (CFLAGS-xkey_prot.c): Likewise.
18308 (CFLAGS-auth_unix.c): Likewise.
18309 (CFLAGS-key_call.c): Likewise.
18310 (CFLAGS-pmap_rmt.c): Likewise.
18311 (CFLAGS-clnt_perr.c): Likewise.
18312 (CFLAGS-openchild.c): Likewise.
18313 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18314 (CFLAGS-msgsnd.c): Likewise.
18315 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18316 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18317 (CFLAGS-tzset.c): Likewise.
18318 (CFLAGS-getdate.c): Likewise.
18319 (CFLAGS-test_time.c): Likewise.
18320 (CPPFLAGS-tst-tzname.c): Likewise.
18321 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18322 (CFLAGS-zic.c): Likewise.
18323 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18324 (CFLAGS-wcswidth.c): Likewise.
18325 (CFLAGS-wcstol.c): Likewise.
18326 (CFLAGS-wcstoul.c): Likewise.
18327 (CFLAGS-wcstoll.c): Likewise.
18328 (CFLAGS-wcstoull.c): Likewise.
18329 (CFLAGS-wcstod.c): Likewise.
18330 (CFLAGS-wcstold.c): Likewise.
18331 (CFLAGS-wcstof128.c): Likewise.
18332 (CFLAGS-wcstof.c): Likewise.
18333 (CFLAGS-wcstol_l.c): Likewise.
18334 (CFLAGS-wcstoul_l.c): Likewise.
18335 (CFLAGS-wcstoll_l.c): Likewise.
18336 (CFLAGS-wcstoull_l.c): Likewise.
18337 (CFLAGS-wcstod_l.c): Likewise.
18338 (CFLAGS-wcstold_l.c): Likewise.
18339 (CFLAGS-wcstof128_l.c): Likewise.
18340 (CFLAGS-wcstof_l.c): Likewise.
18341 (CPPFLAGS-tst-wchar-h.c): Likewise.
18342 (CPPFLAGS-wcstold_l.c): Likewise.
18343
18344 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18345
18346 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18347
18348 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18349 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18350
18351 * manual/tunables.texi (Hardware Capability Tunables): Document
18352 glibc.tune.cached_memopt.
18353 * sysdeps/powerpc/cpu-features.c: New file.
18354 * sysdeps/powerpc/cpu-features.h: New file.
18355 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18356 _dl_powerpc_cpu_features.
18357 * sysdeps/powerpc/dl-tunables.list: New file.
18358 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18359 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18360 (INIT_ARCH): Initialize use_aligned_memopt.
18361 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18362 IS_IN(rtld))]: Restrict dl_platform_init availability and
18363 initialize CPU features used by tunables.
18364 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18365 Add memcpy-power8-cached.
18366 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18367 __memcpy_power8_cached.
18368 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18369 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18370 New file.
18371
18372 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18373
18374 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18375 (CFLAGS-noinl-tester.c): Likewise.
18376 (CFLAGS-tst-strlen.c): Likewise.
18377 (CFLAGS-stratcliff.c): Likewise.
18378 (CFLAGS-test-ffs.c): Likewise.
18379 (CFLAGS-tst-inlcall.c): Likewise.
18380 (CFLAGS-tst-xbzero-opt.c): Likewise.
18381 (CFLAGS-memcpy.c): Likewise.
18382 (CFLAGS-wordcopy.c): Likewise.
18383
18384 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18385
18386 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18387 Store r15 on stack and add cfi rule.
18388 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18389 Likewise.
18390
18391 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18392
18393 [BZ #22577]
18394 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18395 call.
18396
18397 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18398
18399 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18400 Add s_sinf-sse2 and s_sinf-fma.
18401 (CFLAGS-s_sinf-fma.c): New.
18402 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18403 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18404 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18405
18406 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18407
18408 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18409
18410 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18411
18412 [BZ #22568]
18413 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18414 part of result to imaginary part of argument if it is zero and the
18415 real part of the argument is not finite.
18416 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18417 of result to real part of argument if it is zero and the imaginary
18418 part of the argument is not finite.
18419
18420 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18421
18422 [BZ #22524]
18423 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18424 and to the list of locales to be built for testing.
18425 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18426 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18427 and build the collation rules upon that.
18428
18429 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18430
18431 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18432 * manual/math.texi (Mathematics): Document support for _Float32.
18433 * math/Makefile (test-types): Add float32.
18434 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18435 * stdlib/Versions (GLIBC_2.27): Likewise.
18436 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18437 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18438 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18439 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18440 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18441 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18442 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18443 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18444 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18445 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18446 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18447 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18448 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18449 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18450 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18451 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18452 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18453 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18454 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18455 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18456 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18457 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18458 Likewise.
18459 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18460 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18461 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18462 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18463 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18464 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18465 Likewise.
18466 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18467 Likewise.
18468 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18469 Likewise.
18470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18471 Likewise.
18472
18473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18474 Likewise.
18475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18476 Likewise.
18477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18478 Likewise.
18479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18480 Likewise.
18481 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18482 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18483 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18484 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18485 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18486 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18487 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18488 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18489 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18490 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18491 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18492 Likewise.
18493 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18494 Likewise.
18495 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18496 Likewise.
18497 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18498 Likewise.
18499 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18500 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18501 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18502 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18503 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18504 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18505 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18506 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18507
18508 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18509
18510 * stdlib/strtof.c: Include <bits/floatn.h>
18511 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18512 and later undefine as macro. Define as weak alias if
18513 [!USE_WIDE_CHAR].
18514 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18515 and later undefine as macro. Define as weak alias if
18516 [USE_WIDE_CHAR].
18517 * stdlib/strtof_l.c: Include <bits/floatn.h>
18518 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18519 and later undefine as macro. Define as weak alias if
18520 [!USE_WIDE_CHAR].
18521 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18522 and later undefine as macro. Define as weak alias if
18523 [USE_WIDE_CHAR].
18524
18525 * stdlib/strfromf.c: Include <bits/floatn.h>.
18526 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18527 and later undefine as macro and define as weak alias.
18528
18529 * math/test-float32.h: New file.
18530
18531 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18532 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18533 (libm_alias_float_other_r): Create f32 alias.
18534 (libm_alias_float_r): Use semicolon before call to
18535 libm_alias_float_other_r.
18536
18537 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18538 second argument to libm_alias_float_other.
18539 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18540 second argument to libm_alias_float_other.
18541 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18542 argument to libm_alias_float_other.
18543
18544 [BZ #22561]
18545 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18546 real part of result for argument 0 + i * NaN.
18547 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18548 results for tests of 0 + i * NaN.
18549
18550 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18551
18552 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18553
18554 2017-12-06 David S. Miller <davem@davemloft.net>
18555
18556 * sysdeps/sparc/fpu/libm-test-ulps: Update
18557 exp_{downward,towardzero,upward} ulps.
18558
18559 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18560
18561 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18562 variables static.
18563
18564 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18565 (Y0_2D): Likewise.
18566 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18567 (Y0_2D): Likewise.
18568 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18569 (Y0_2D): Likewise.
18570 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18571 (Y0_2D): Likewise.
18572
18573 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18574
18575 [BZ #22515]
18576 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18577 and to the list of locales to be built for testing.
18578 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18579 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18580 and build the collation rules upon that.
18581
18582 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18583
18584 * NEWS: Add sinf to list of optimized functions.
18585
18586 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18587
18588 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18589 (__HAVE_FLOAT32X): Likewise.
18590 * manual/math.texi (Mathematics): Document support for _Float64
18591 and _Float32x.
18592 * math/Makefile (test-types): Add float64 and float32x.
18593 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18594 functions.
18595 * stdlib/Versions (GLIBC_2.27): Likewise.
18596 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18597 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18598 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18599 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18600 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18601 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18602 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18603 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18604 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18605 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18606 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18607 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18608 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18609 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18610 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18611 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18612 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18613 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18614 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18615 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18616 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18617 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18618 Likewise.
18619 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18620 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18621 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18622 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18623 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18625 Likewise.
18626 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18627 Likewise.
18628 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18629 Likewise.
18630 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18631 Likewise.
18632 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18633 Likewise.
18634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18635 Likewise.
18636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18637 Likewise.
18638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18639 Likewise.
18640 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18641 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18642 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18643 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18644 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18645 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18646 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18647 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18648 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18649 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18650 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18651 Likewise.
18652 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18653 Likewise.
18654 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18655 Likewise.
18656 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18657 Likewise.
18658 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18659 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18660 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18661 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18662 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18663 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18664 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18665 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18666
18667 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18668
18669 * bits/floatn-common.h: Include <bits/long-double.h>.
18670 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18671 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
18672 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18673 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
18674 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18675 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
18676 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18677 (__builtin_huge_valf64): Use __builtin_huge_vall.
18678 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18679 (__builtin_inff64): Use __builtin_infl.
18680 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18681 (__builtin_nanf64): Use __builtin_nanl.
18682 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18683 (__builtin_nansf64): Use __builtin_nansl.
18684
18685 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
18686 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
18687 Carlos O'Donnell <carlos@redhat.com>
18688
18689 * elf/dl-tunables.list: Add elision parameters.
18690 * manual/tunables.texi: Add entries about elision tunable.
18691 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
18692 Add callback functions to dynamically enable/disable elision.
18693 Add multiple callbacks functions to set elision parameters.
18694 Deleted __libc_enable_secure check.
18695 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
18696 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
18697 * configure: Regenerated.
18698 * configure.ac: Option enable_lock_elision was deleted.
18699 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
18700 * config.make.in: Remove references to enable_lock_elision.
18701 * manual/install.texi: Elision configure option was removed.
18702 * INSTALL: Regenerated to remove enable_lock_elision.
18703 * nptl/Makefile:
18704 Disable elision so it can verify error case for destroying a mutex.
18705 * sysdeps/powerpc/nptl/elide.h:
18706 Cleanup ENABLE_LOCK_ELISION check.
18707 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
18708 * sysdeps/s390/configure: Regenerated.
18709 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
18710 * nptl/tst-mutex8.c:
18711 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
18712 * sysdeps/powerpc/powerpc32/sysdep.h:
18713 Deleted all ENABLE_LOCK_ELISION checks.
18714 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
18715 * sysdeps/powerpc/sysdep.h: Likewise.
18716 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
18717 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
18718 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
18719 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
18720 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
18721 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
18722 enable-lock-elision.
18723
18724 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18725
18726 * stdlib/strtod.c: Include <bits/floatn.h>.
18727 (BUILD_DOUBLE): New macro.
18728 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18729 (strtof64): Define and later undefine as macro. Define as weak
18730 alias if [!USE_WIDE_CHAR].
18731 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18732 (wcstof64): Define and later undefine as macro. Define as weak
18733 alias if [USE_WIDE_CHAR].
18734 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18735 (strtof32x): Define and later undefine as macro. Define as weak
18736 alias if [!USE_WIDE_CHAR].
18737 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18738 (wcstof32x): Define and later undefine as macro. Define as weak
18739 alias if [USE_WIDE_CHAR].
18740 * stdlib/strtod_l.c: Include <bits/floatn.h>.
18741 (BUILD_DOUBLE): New macro.
18742 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18743 (strtof64_l): Define and later undefine as macro. Define as weak
18744 alias if [!USE_WIDE_CHAR].
18745 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18746 (wcstof64_l): Define and later undefine as macro. Define as weak
18747 alias if [USE_WIDE_CHAR].
18748 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18749 (strtof32x_l): Define and later undefine as macro. Define as weak
18750 alias if [!USE_WIDE_CHAR].
18751 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18752 (wcstof32x_l): Define and later undefine as macro. Define as weak
18753 alias if [USE_WIDE_CHAR].
18754
18755 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18756
18757 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
18758 (reduced): Use ones as double instead of integer.
18759
18760 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
18761
18762 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
18763
18764 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18765
18766 * stdlib/strfromd.c: Include <bits/floatn.h>.
18767 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
18768 and later undefine as macro and define as weak alias.
18769 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
18770 Likewise.
18771
18772 * math/test-float32x.h: New file.
18773 * math/test-float64.h: Likewise.
18774
18775 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
18776 (libm_alias_double_other_r_f64): New macro.
18777 (libm_alias_double_other_r_f32x): Likewise.
18778 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
18779 libm_alias_double_other_r_f32x.
18780 (libm_alias_double_r): Use semicolon before call to
18781 libm_alias_double_other_r.
18782 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
18783 <bits/floatn.h>.
18784 (libm_alias_double_other_r_f64): New macro.
18785 (libm_alias_double_other_r_f32x): Likewise.
18786 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
18787 libm_alias_double_other_r_f32x.
18788
18789 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
18790
18791 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
18792 int.
18793 (SINF_FUNC): Likewise. Replace floor with simple casts.
18794
18795 2017-12-05 Mike FABIAN <mfabian@redhat.com>
18796
18797 [BZ #22517]
18798 * localedata/Makefile: Add et_EE.UTF-8 to test-input
18799 and to the list of locales to be built for testing.
18800 * localedata/et_EE.UTF-8.in: New file for testing the collation.
18801 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
18802 and build the collation rules upon that.
18803
18804 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
18805
18806 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
18807 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
18808 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
18809 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
18810 instead of __insn__xxx.
18811 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
18812 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
18813 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
18814 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
18815 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
18816 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
18817
18818 2017-12-05 Florian Weimer <fweimer@redhat.com>
18819
18820 Linux: Implement interfaces for memory protection keys
18821 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
18822 xsignal, xsysconf.
18823 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
18824 * support/xunistd.h (xsysconf): Declare.
18825 * support/xraise.c: New file.
18826 * support/xsigaction.c: Likewise.
18827 * support/xsignal.c: Likewise.
18828 * support/xsysconf.c: Likewise.
18829 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
18830 pkey_set, pkey_get, pkey_mprotect.
18831 [misc] (tests): Add tst-pkey.
18832 (tst-pkey): Link with -lpthread.
18833 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
18834 pkey_free, pkey_set, pkey_get, pkey_mprotect.
18835 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
18836 (PKEY_DISABLE_WRITE): Define.
18837 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
18838 Declare.
18839 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
18840 (SEGV_PKUERR): Add.
18841 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
18842 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
18843 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
18844 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
18845 Add.
18846 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
18847 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
18848 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
18849 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
18850 * sysdeps/unix/sysv/linux/**.abilist: Update.
18851
18852 2017-12-05 Florian Weimer <fweimer@redhat.com>
18853
18854 * support/tst-test_compare.c (subprocess): Use long long instead
18855 of long argument for consistent type width across 32-bit and
18856 64-bit architectures.
18857 (do_test): Adjust expected output.
18858
18859 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18860
18861 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
18862 (cosf): Define using libm_alias_float.
18863 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
18864 (fabsf): Define using libm_alias_float.
18865 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
18866 (fmaf): Define using libm_alias_float.
18867 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
18868 (rintf): Define using libm_alias_float.
18869 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
18870 (sinf): Define using libm_alias_float.
18871 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
18872 <libm-alias-float.h>.
18873 (modff): Define using libm_alias_float.
18874 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
18875 <libm-alias-float.h>.
18876 (logbf): Define using libm_alias_float.
18877 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
18878 <libm-alias-float.h>.
18879 (ceilf): Define using libm_alias_float.
18880 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
18881 <libm-alias-float.h>.
18882 (copysignf): Define using libm_alias_float.
18883 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
18884 <libm-alias-float.h>.
18885 (floorf): Define using libm_alias_float.
18886 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
18887 <libm-alias-float.h>.
18888 (llrintf): Define using libm_alias_float.
18889 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
18890 <libm-alias-float.h>.
18891 (llroundf): Define using libm_alias_float.
18892 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
18893 <libm-alias-float.h>.
18894 (lrintf): Define using libm_alias_float.
18895 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
18896 <libm-alias-float.h>.
18897 (lroundf): Define using libm_alias_float.
18898 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
18899 <libm-alias-float.h>.
18900 (nearbyintf): Define using libm_alias_float.
18901 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
18902 <libm-alias-float.h>.
18903 (rintf): Define using libm_alias_float.
18904 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
18905 <libm-alias-float.h>.
18906 (roundf): Define using libm_alias_float.
18907 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
18908 <libm-alias-float.h>.
18909 (truncf): Define using libm_alias_float.
18910 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
18911 Include <libm-alias-float.h>.
18912 (ceilf): Define using libm_alias_float.
18913 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
18914 Include <libm-alias-float.h>.
18915 (copysignf): Define using libm_alias_float.
18916 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
18917 Include <libm-alias-float.h>.
18918 (floorf): Define using libm_alias_float.
18919 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
18920 Include <libm-alias-float.h>.
18921 (llrintf): Define using libm_alias_float.
18922 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
18923 Include <libm-alias-float.h>.
18924 (llroundf): Define using libm_alias_float.
18925 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
18926 Include <libm-alias-float.h>.
18927 (logbf): Define using libm_alias_float.
18928 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
18929 Include <libm-alias-float.h>.
18930 (lrintf): Define using libm_alias_float.
18931 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
18932 Include <libm-alias-float.h>.
18933 (lroundf): Define using libm_alias_float.
18934 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
18935 Include <libm-alias-float.h>.
18936 (modff): Define using libm_alias_float.
18937 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
18938 Include <libm-alias-float.h>.
18939 (roundf): Define using libm_alias_float.
18940 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
18941 Include <libm-alias-float.h>.
18942 (truncf): Define using libm_alias_float.
18943 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
18944 <libm-alias-float.h>.
18945 (llrintf): Define using libm_alias_float.
18946 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
18947 <libm-alias-float.h>.
18948 (llroundf): Define using libm_alias_float.
18949 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
18950 <libm-alias-float.h>.
18951 (ceilf): Define using libm_alias_float.
18952 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
18953 <libm-alias-float.h>.
18954 (floorf): Define using libm_alias_float.
18955 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
18956 <libm-alias-float.h>.
18957 (llroundf): Define using libm_alias_float.
18958 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
18959 <libm-alias-float.h>.
18960 (lroundf): Define using libm_alias_float.
18961 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
18962 <libm-alias-float.h>.
18963 (roundf): Define using libm_alias_float.
18964 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
18965 <libm-alias-float.h>.
18966 (truncf): Define using libm_alias_float.
18967 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
18968 <libm-alias-float.h>.
18969 (copysignf): Define using libm_alias_float.
18970 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
18971 <libm-alias-float.h>.
18972 (llrintf): Define using libm_alias_float.
18973 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
18974 <libm-alias-float.h>.
18975 (llroundf): Define using libm_alias_float.
18976 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
18977 <libm-alias-float.h>.
18978 (lrintf): Define using libm_alias_float.
18979 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
18980 <libm-alias-float.h>.
18981 (lroundf): Define using libm_alias_float.
18982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
18983 <libm-alias-float.h>.
18984 (ceilf): Define using libm_alias_float.
18985 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
18986 <libm-alias-float.h>.
18987 (copysignf): Define using libm_alias_float.
18988 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
18989 <libm-alias-float.h>.
18990 (cosf): Define using libm_alias_float.
18991 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
18992 <libm-alias-float.h>.
18993 (floorf): Define using libm_alias_float.
18994 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
18995 <libm-alias-float.h>.
18996 (llrintf): Define using libm_alias_float.
18997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
18998 <libm-alias-float.h>.
18999 (llroundf): Define using libm_alias_float.
19000 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19001 <libm-alias-float.h>.
19002 (logbf): Define using libm_alias_float.
19003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19004 <libm-alias-float.h>.
19005 (modff): Define using libm_alias_float.
19006 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19007 <libm-alias-float.h>.
19008 (roundf): Define using libm_alias_float.
19009 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19010 <libm-alias-float.h>.
19011 (sinf): Define using libm_alias_float.
19012 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19013 <libm-alias-float.h>.
19014 (truncf): Define using libm_alias_float.
19015 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19016 <libm-alias-float.h>.
19017 (ceilf): Define using libm_alias_float.
19018 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19019 <libm-alias-float.h>.
19020 (copysignf): Define using libm_alias_float.
19021 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19022 <libm-alias-float.h>.
19023 (floorf): Define using libm_alias_float.
19024 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19025 <libm-alias-float.h>.
19026 (llrintf): Define using libm_alias_float.
19027 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19028 <libm-alias-float.h>.
19029 (llroundf): Define using libm_alias_float.
19030 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19031 <libm-alias-float.h>.
19032 (nearbyintf): Define using libm_alias_float.
19033 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19034 <libm-alias-float.h>.
19035 (rintf): Define using libm_alias_float.
19036 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19037 <libm-alias-float.h>.
19038 (roundf): Define using libm_alias_float.
19039 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19040 <libm-alias-float.h>.
19041 (truncf): Define using libm_alias_float.
19042 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19043 <libm-alias-float.h>.
19044 (ceilf): Define using libm_alias_float.
19045 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19046 <libm-alias-float.h>.
19047 (floorf): Define using libm_alias_float.
19048 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19049 <libm-alias-float.h>.
19050 (llroundf): Define using libm_alias_float.
19051 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19052 <libm-alias-float.h>.
19053 (roundf): Define using libm_alias_float.
19054 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19055 <libm-alias-float.h>.
19056 (truncf): Define using libm_alias_float.
19057 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19058 <libm-alias-float.h>.
19059 (copysignf): Define using libm_alias_float.
19060 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19061 <libm-alias-float.h>.
19062 (llrintf): Define using libm_alias_float.
19063 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19064 <libm-alias-float.h>.
19065 (llroundf): Define using libm_alias_float.
19066 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19067 <libm-alias-float.h>.
19068 (cosf): Define using libm_alias_float.
19069 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19070 <libm-alias-float.h>.
19071 (llrintf): Define using libm_alias_float.
19072 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19073 <libm-alias-float.h>.
19074 (llroundf): Define using libm_alias_float.
19075 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19076 <libm-alias-float.h>.
19077 (sinf): Define using libm_alias_float.
19078
19079 2017-12-04 Florian Weimer <fweimer@redhat.com>
19080
19081 * support/check.h (TEST_COMPARE): Define.
19082 (support_test_compare_failure): Declare.
19083 * support/Makefile (libsupport-routines): Add
19084 support_test_compare_failure.
19085 (tests): Add tst-test_compare.
19086 * support /support_test_compare_failure.c: New file.
19087 * support/tst-test_compare.c: Likewise.
19088
19089 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19090
19091 [BZ #22527]
19092 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19093 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19094 available, this rewrite of the collation rules does reproduce
19095 the test file in the same order.
19096
19097 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19098
19099 [BZ #10580]
19100 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19101 digraphs in the month and day names. Using single code points for
19102 digraphs is deprecated. While there are dedicated Unicode
19103 codepoints, for the digraphs, these are included for backwards
19104 compatibility and modern texts use a sequence of Basic Latin
19105 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19106 This makes the month and day names agree exactly with CLDR now,
19107 CLDR does not use the single code points for the digraphs either.
19108
19109 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19110
19111 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19112
19113 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19114
19115 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19116 of floor.
19117
19118 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19119
19120 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19121 Define only for libc.so.
19122
19123 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19124
19125 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19126 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19127 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19128 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19129 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19130
19131 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19132
19133 [BZ #5997]
19134 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19135
19136 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19137
19138 [BZ libc/19170]
19139 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19140 PREINIT_FUNCTION_WEAK is nonzero.
19141 (gmon_initializer): New function. Put procedure label for it in
19142 .init_array section.
19143 (_init): Don't call PREINIT_FUNCTION.
19144 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19145 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19146 value when map argument is null.
19147
19148 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19149 depi instruction from PIC pc-relative sequence.
19150 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19151 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19152 (elf_machine_load_address): Likewise.
19153 (elf_machine_runtime_setup): Likewise.
19154
19155 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19156
19157 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19158 <libm-alias-double.h>.
19159 (logb): Define using libm_alias_double.
19160 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19161 <libm-alias-double.h>.
19162 (copysign): Define using libm_alias_double.
19163 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19164 <libm-alias-double.h>.
19165 (llrint): Define using libm_alias_double.
19166 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19167 <libm-alias-double.h>.
19168 (llround): Define using libm_alias_double.
19169 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19170 <libm-alias-double.h>.
19171 (lrint): Define using libm_alias_double.
19172 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19173 <libm-alias-double.h>.
19174 (lround): Define using libm_alias_double.
19175 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19176 Include <libm-alias-double.h>.
19177 (copysign): Define using libm_alias_double.
19178 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19179 Include <libm-alias-double.h>.
19180 (llrint): Define using libm_alias_double.
19181 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19182 Include <libm-alias-double.h>.
19183 (llround): Define using libm_alias_double.
19184 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19185 <libm-alias-double.h>.
19186 (logb): Define using libm_alias_double.
19187 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19188 Include <libm-alias-double.h>.
19189 (lrint): Define using libm_alias_double.
19190 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19191 Include <libm-alias-double.h>.
19192 (lround): Define using libm_alias_double.
19193 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19194 <libm-alias-double.h>.
19195 (llrint): Define using libm_alias_double.
19196 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19197 <libm-alias-double.h>.
19198 (llround): Define using libm_alias_double.
19199 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19200 <libm-alias-double.h>.
19201 (llround): Define using libm_alias_double.
19202 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19203 <libm-alias-double.h>.
19204 (lround): Define using libm_alias_double.
19205 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19206 <libm-alias-double.h>.
19207 (copysign): Define using libm_alias_double.
19208 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19209 <libm-alias-double.h>.
19210 (llrint): Define using libm_alias_double.
19211 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19212 <libm-alias-double.h>.
19213 (llround): Define using libm_alias_double.
19214 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19215 <libm-alias-double.h>.
19216 (lrint): Define using libm_alias_double.
19217 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19218 <libm-alias-double.h>.
19219 (lround): Define using libm_alias_double.
19220 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19221 <libm-alias-double.h>.
19222 (copysign): Define using libm_alias_double.
19223 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19224 <libm-alias-double.h>.
19225 (llrint): Define using libm_alias_double.
19226 (lrint): Likewise.
19227 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19228 <libm-alias-double.h>.
19229 (llround): Define using libm_alias_double.
19230 (lround): Likewise.
19231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19232 <libm-alias-double.h>.
19233 (logb): Define using libm_alias_double.
19234 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19235 <libm-alias-double.h>.
19236 (copysign): Define using libm_alias_double.
19237 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19238 <libm-alias-double.h>.
19239 (llrint): Define using libm_alias_double.
19240 (lrint): Likewise.
19241 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19242 <libm-alias-double.h>.
19243 (llround): Define using libm_alias_double.
19244 (lround): Likewise.
19245 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19246 <libm-alias-double.h>.
19247 (llround): Define using libm_alias_double.
19248 (lround): Likewise.
19249 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19250 <libm-alias-double.h>.
19251 (copysign): Define using libm_alias_double.
19252 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19253 <libm-alias-double.h>.
19254 (llrint): Define using libm_alias_double.
19255 (lrint): Likewise.
19256 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19257 <libm-alias-double.h>.
19258 (llround): Define using libm_alias_double.
19259 (lround): Likewise.
19260 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19261 <libm-alias-double.h>.
19262 (llrint): Define using libm_alias_double.
19263 (lrint): Likewise.
19264 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19265 <libm-alias-double.h>.
19266 (llround): Define using libm_alias_double.
19267 (lround): Likewise.
19268
19269 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19270
19271 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19272 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19273 compat symbol based on llround.
19274
19275 * sysdeps/powerpc/power7/fpu/s_logb.c
19276 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19277 symbol based on __logb, not on logb.
19278 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19279 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19281 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19282
19283 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19284 (rint): Define using libm_alias_double.
19285 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19286 <libm-alias-double.h>.
19287 (modf): Define using libm_alias_double.
19288 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19289 <libm-alias-double.h>.
19290 (ceil): Define using libm_alias_double.
19291 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19292 <libm-alias-double.h>.
19293 (floor): Define using libm_alias_double.
19294 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19295 <libm-alias-double.h>.
19296 (nearbyint): Define using libm_alias_double.
19297 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19298 <libm-alias-double.h>.
19299 (rint): Define using libm_alias_double.
19300 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19301 <libm-alias-double.h>.
19302 (round): Define using libm_alias_double.
19303 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19304 <libm-alias-double.h>.
19305 (trunc): Define using libm_alias_double.
19306 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19307 <libm-alias-double.h>.
19308 (ceil): Define using libm_alias_double.
19309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19310 Include <libm-alias-double.h>.
19311 (floor): Define using libm_alias_double.
19312 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19313 <libm-alias-double.h>.
19314 (modf): Define using libm_alias_double.
19315 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19316 Include <libm-alias-double.h>.
19317 (round): Define using libm_alias_double.
19318 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19319 Include <libm-alias-double.h>.
19320 (trunc): Define using libm_alias_double.
19321 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19322 <libm-alias-double.h>.
19323 (ceil): Define using libm_alias_double.
19324 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19325 <libm-alias-double.h>.
19326 (floor): Define using libm_alias_double.
19327 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19328 <libm-alias-double.h>.
19329 (round): Define using libm_alias_double.
19330 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19331 <libm-alias-double.h>.
19332 (trunc): Define using libm_alias_double.
19333 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19334 <libm-alias-double.h>.
19335 (ceil): Define using libm_alias_double.
19336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19337 <libm-alias-double.h>.
19338 (floor): Define using libm_alias_double.
19339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19340 <libm-alias-double.h>.
19341 (modf): Define using libm_alias_double.
19342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19343 <libm-alias-double.h>.
19344 (round): Define using libm_alias_double.
19345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19346 <libm-alias-double.h>.
19347 (trunc): Define using libm_alias_double.
19348 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19349 <libm-alias-double.h>.
19350 (ceil): Define using libm_alias_double.
19351 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19352 <libm-alias-double.h>.
19353 (floor): Define using libm_alias_double.
19354 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19355 <libm-alias-double.h>.
19356 (nearbyint): Define using libm_alias_double.
19357 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19358 <libm-alias-double.h>.
19359 (rint): Define using libm_alias_double.
19360 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19361 <libm-alias-double.h>.
19362 (round): Define using libm_alias_double.
19363 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19364 <libm-alias-double.h>.
19365 (trunc): Define using libm_alias_double.
19366 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19367 <libm-alias-double.h>.
19368 (ceil): Define using libm_alias_double.
19369 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19370 <libm-alias-double.h>.
19371 (floor): Define using libm_alias_double.
19372 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19373 <libm-alias-double.h>.
19374 (round): Define using libm_alias_double.
19375 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19376 <libm-alias-double.h>.
19377 (trunc): Define using libm_alias_double.
19378
19379 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19380 (fabs): Define using libm_alias_double.
19381 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19382 (fma): Define using libm_alias_double.
19383 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19384 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19385 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19386 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19387
19388 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19389
19390 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19391
19392 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19393 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19394 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19395
19396 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19397 due redirect macro.
19398
19399 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19400
19401 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19402
19403 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19404
19405 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19406 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19407 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19408 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19409
19410 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19411 (libm-sysdep_routines): Add s_nearbyintf-generic and
19412 s_nearbyint-generic.
19413 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19414 New file.
19415 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19416 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19417 Likewise.
19418 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19419 Likewise.
19420 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19421 file.
19422 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19423 Likewise.
19424
19425 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19426 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19427 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19428 file.
19429 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19430 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19431 Likewise.
19432 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19433 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19434 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19435
19436 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19437 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19438 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19439 file.
19440 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19441 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19442 Likewise.
19443 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19444 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19445 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19446
19447 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19448 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19449 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19450 file.
19451 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19452 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19453 Likewise.
19454 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19455 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19456 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19457
19458 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19459 (sysdep_calls): New rule.
19460 (sysdep_routines): Use sysdep_calls as base.
19461 (libm-sysdep_routines): Add generic rule for symbols shared with
19462 libc. Add s_copysign-generic and s_copysign-generic objects.
19463 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19464 New file.
19465 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19466 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19467 Likewise.
19468 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19469 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19470 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19471
19472 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19473
19474 [BZ #22519]
19475 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19476 the list of locales to be built for testing.
19477 * localedata/is_IS.UTF-8.in: New file.
19478 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19479 on iso14651_t1.
19480
19481 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19482
19483 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19484 <libm-alias-float.h>.
19485 (fabsf): Define using libm_alias_float.
19486
19487 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19488
19489 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19490
19491 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19492
19493 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19494 <libm-alias-float.h>.
19495 (fabsf): Define using libm_alias_float.
19496 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19497 <libm-alias-float.h>.
19498 (lrintf): Define using libm_alias_float.
19499 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19500 <libm-alias-float.h>.
19501 (rintf): Define using libm_alias_float.
19502
19503 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19504 <libm-alias-double.h>.
19505 (fabs): Define using libm_alias_double.
19506 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19507 <libm-alias-double.h>.
19508 (lrint): Define using libm_alias_double.
19509 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19510 <libm-alias-double.h>.
19511 (rint): Define using libm_alias_double.
19512
19513 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19514 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19515 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19516 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19517 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19518 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19519 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19520 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19521 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19522 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19523 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19524 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19525 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19526 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19527 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19528 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19529 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19530 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19531 s_atan_template.c.
19532 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19533 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19534 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19535 s_ceil_template.c.
19536 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19537 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19538 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19539 s_cos_template.c.
19540 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19541 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19542 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19543 s_expm1_template.c.
19544 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19545 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19546 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19547 s_fabs_template.c.
19548 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19549 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19550 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19551 s_floor_template.c.
19552 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19553 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19554 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19555 s_frexp_template.c.
19556 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19557 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19558 s_lrint_template.c.
19559 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19560 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19561 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19562 s_modf_template.c.
19563 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19564 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19565 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19566 s_nearbyint_template.c.
19567 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19568 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19569 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19570 s_remquo_template.c.
19571 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19572 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19573 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19574 s_rint_template.c.
19575 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19576 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19577 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19578 s_sin_template.c.
19579 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19580 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19581 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19582 s_sincos_template.c.
19583 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19584 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19585 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19586 s_tan_template.c.
19587 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19588 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19589 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19590 s_tanh_template.c.
19591 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19592 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19593 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19594 s_trunc_template.c.
19595 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19596 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19597 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19598 s_atan.c instead of including s_atan.c.
19599 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19600 s_atanf.c instead of including s_atanf.c.
19601 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19602 s_atanl.c instead of including s_atanl.c.
19603 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19604 instead of s_atan.c.
19605 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19606 instead of s_atanf.c.
19607 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19608 instead of s_atanl.c.
19609
19610 * scripts/update-copyrights: Do not handle intl/plural.c
19611 specially.
19612
19613 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19614
19615 [BZ #22432]
19616 * configure.ac (BISON): Require to be present.
19617 * configure: Regenerated.
19618 * intl/Makefile (generated): Add plural.c.
19619 [$(BISON) != no]: Make code unconditional.
19620 (plural.c): Change rule to $(objpfx)plural.c.
19621 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19622 * intl/plural.c: Remove.
19623 * manual/install.texi (Tools for Compilation): Document bison as
19624 required.
19625 * INSTALL: Regenerated.
19626
19627 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19628
19629 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19630 <libm-alias-double.h>.
19631 (llrint): Define using libm_alias_double.
19632 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19633 <libm-alias-float.h>.
19634 (llrintf): Define using libm_alias_float.
19635 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19636 <libm-alias-ldouble.h>.
19637 (llrintl): Define using libm_alias_ldouble.
19638
19639 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19640 declare_mgen_alias instead of weak_alias.
19641 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19642 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19643 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19644
19645 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19646
19647 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19648 Add add_n-generic.
19649 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
19650 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
19651 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
19652
19653 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19654 Add submul_1-generic.
19655 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
19656 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
19657 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
19658
19659 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19660 Add addmul_1-generic.
19661 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
19662 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
19663 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
19664
19665 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19666 Add sub_n-generic.
19667 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
19668 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
19669 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
19670
19671 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19672 Add mul_1-generic.
19673 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
19674 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
19675 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
19676
19677 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19678
19679 According to CLDR, collation rules for Serbian and Bosnian
19680 should be the same as for Croatian.
19681
19682 [BZ #22534]
19683 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
19684 and to the list of locales to be built for testing.
19685 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19686 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19687 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
19688 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
19689
19690 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19691
19692 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
19693 to make test case pass.
19694 * localedata/hr_HR.UTF-8.in: Add more test strings.
19695
19696 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19697
19698 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
19699
19700 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19701
19702 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
19703 the list of locales to built for testing.
19704 * localedata/hr_HR.UTF-8.in: New file.
19705
19706 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19707
19708 [BZ #10580]
19709 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
19710 iso14651_t1.
19711 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
19712 CLDR (except use ligatures for the digraphs, CLDR does not use
19713 the ligatures), add first_workday, some fixes in the date and time
19714 formats.
19715 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
19716 for Đ and đ.
19717 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
19718 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
19719 Add int_p_cs_precedes and int_n_cs_precedes.
19720 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
19721 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
19722 LC_MONETARY now).
19723 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
19724 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
19725 name_miss.
19726 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
19727 and lang_lib. Change postal_fmt.
19728
19729 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19730
19731 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
19732 <setjmp.h>.
19733 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
19734 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
19735 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
19736 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
19737 * sysdeps/generic/setjmpP.h: New file.
19738 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
19739 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
19740 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
19741 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
19742 Add jmp_buf-ssp.sym.
19743 (tests): Add tst-saved_mask-1.
19744
19745 2017-11-30 Arjun Shankar <arjun@redhat.com>
19746
19747 [BZ #22375]
19748 CVE-2017-17426
19749 * malloc/malloc.c (__libc_malloc): Use checked_request2size
19750 instead of request2size.
19751
19752 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19753
19754 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
19755 (__lllrint): Remove alias.
19756 (lllrint): Likewise.
19757 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
19758 (__lllrintf): Likewise.
19759 (lllrintf): Likewise.
19760
19761 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
19762 <libm-alias-float.h>.
19763 (copysignf): Define using libm_alias_float.
19764 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
19765 <libm-alias-float.h>.
19766 (fabsf): Define using libm_alias_float.
19767 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
19768 Include <libm-alias-float.h>.
19769 (copysignf): Define using libm_alias_float.
19770 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
19771 <libm-alias-float.h>.
19772 (fabsf): Define using libm_alias_float.
19773 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
19774 <libm-alias-float.h>.
19775 (fdimf): Define using libm_alias_float.
19776 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
19777 <libm-alias-float.h>.
19778 (fmaf): Define using libm_alias_float.
19779 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
19780 <libm-alias-float.h>.
19781 (llrintf): Define using libm_alias_float.
19782 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19783 Include <libm-alias-float.h>.
19784 (nearbyintf): Define using libm_alias_float.
19785 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
19786 <libm-alias-float.h>.
19787 (rintf): Define using libm_alias_float.
19788 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
19789 <libm-alias-float.h>.
19790 (llrintf): Define using libm_alias_float.
19791 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
19792 <libm-alias-float.h>.
19793 (lrintf): Define using libm_alias_float.
19794 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
19795 <libm-alias-float.h>.
19796 (nearbyintf): Define using libm_alias_float.
19797 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
19798 <libm-alias-float.h>.
19799 (rintf): Define using libm_alias_float.
19800 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
19801 <libm-alias-float.h>.
19802 (ceilf): Define using libm_alias_float.
19803 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
19804 <libm-alias-float.h>.
19805 (floorf): Define using libm_alias_float.
19806 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
19807 <libm-alias-float.h>.
19808 (fmaf): Define using libm_alias_float.
19809 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
19810 <libm-alias-float.h>.
19811 (lrintf): Define using libm_alias_float.
19812 (llrintf): Likewise.
19813 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
19814 <libm-alias-float.h>.
19815 (nearbyintf): Define using libm_alias_float.
19816 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
19817 <libm-alias-float.h>.
19818 (rintf): Define using libm_alias_float.
19819 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
19820 <libm-alias-float.h>.
19821 (truncf): Define using libm_alias_float.
19822 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
19823 <libm-alias-float.h>.
19824 (copysignf): Define using libm_alias_float.
19825 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
19826 <libm-alias-float.h>.
19827 (fabsf): Define using libm_alias_float.
19828 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
19829 <libm-alias-float.h>.
19830 (lrintf): Define using libm_alias_float.
19831 (llrintf): Likewise.
19832 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
19833 <libm-alias-float.h>.
19834 (nearbyintf): Define using libm_alias_float.
19835 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
19836 <libm-alias-float.h>.
19837 (rintf): Define using libm_alias_float.
19838
19839 2017-11-29 Joseph Myers <joseph@codesourcery.com>
19840
19841 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
19842 <libm-alias-double.h>.
19843 (copysign): Define using libm_alias_double.
19844 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
19845 <libm-alias-double.h>.
19846 (fabs): Define using libm_alias_double.
19847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
19848 Include <libm-alias-double.h>.
19849 (copysign): Define using libm_alias_double.
19850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
19851 <libm-alias-double.h>.
19852 (fabs): Define using libm_alias_double.
19853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
19854 <libm-alias-double.h>.
19855 (fdim): Define using libm_alias_double.
19856 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
19857 <libm-alias-double.h>.
19858 (fma): Define using libm_alias_double.
19859 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
19860 <libm-alias-double.h>.
19861 (llrint): Define using libm_alias_double.
19862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
19863 Include <libm-alias-double.h>.
19864 (nearbyint): Define using libm_alias_double.
19865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
19866 <libm-alias-double.h>.
19867 (rint): Define using libm_alias_double.
19868 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
19869 <libm-alias-double.h>.
19870 (fabs): Define using libm_alias_double.
19871 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
19872 <libm-alias-double.h>.
19873 (llrint): Define using libm_alias_double.
19874 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
19875 <libm-alias-double.h>.
19876 (nearbyint): Define using libm_alias_double.
19877 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
19878 <libm-alias-double.h>.
19879 (rint): Define using libm_alias_double.
19880 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
19881 <libm-alias-double.h>.
19882 (ceil): Define using libm_alias_double.
19883 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
19884 <libm-alias-double.h>.
19885 (floor): Define using libm_alias_double.
19886 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
19887 <libm-alias-double.h>.
19888 (fma): Define using libm_alias_double.
19889 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
19890 <libm-alias-double.h>.
19891 (lrint): Define using libm_alias_double.
19892 (llrint): Likewise.
19893 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
19894 <libm-alias-double.h>.
19895 (nearbyint): Define using libm_alias_double.
19896 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
19897 <libm-alias-double.h>.
19898 (rint): Define using libm_alias_double.
19899 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
19900 <libm-alias-double.h>.
19901 (trunc): Define using libm_alias_double.
19902 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
19903 <libm-alias-double.h>.
19904 (copysign): Define using libm_alias_double.
19905 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
19906 <libm-alias-double.h>.
19907 (fabs): Define using libm_alias_double.
19908 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
19909 <libm-alias-double.h>.
19910 (lrint): Define using libm_alias_double.
19911 (llrint): Likewise.
19912 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
19913 <libm-alias-double.h>.
19914 (nearbyint): Define using libm_alias_double.
19915 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
19916 <libm-alias-double.h>.
19917 (rint): Define using libm_alias_double.
19918
19919 [BZ #22229]
19920 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
19921 <math_ldbl_opt.h>.
19922 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
19923
19924 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19925 SPARC --disable-multi-arch glibc variants.
19926
19927 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
19928 <libm-alias-float.h>.
19929 (exp2f): Define using libm_alias_float, or libm_alias_float_other
19930 if [SHARED].
19931 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
19932 <libm-alias-float.h>.
19933 (exp2f): Define using libm_alias_float, or libm_alias_float_other
19934 if [SHARED].
19935 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
19936 <libm-alias-float.h>.
19937 (exp2f): Define using libm_alias_float, or libm_alias_float_other
19938 if [SHARED].
19939 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
19940 <libm-alias-float.h>.
19941 (exp2f): Define using libm_alias_float, or libm_alias_float_other
19942 if [SHARED].
19943 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
19944 <libm-alias-float.h>.
19945 (exp2f): Define using libm_alias_float, or libm_alias_float_other
19946 if [SHARED].
19947 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
19948 <libm-alias-float.h>.
19949 (ceilf): Define using libm_alias_float.
19950 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
19951 <libm-alias-float.h>.
19952 (floorf): Define using libm_alias_float.
19953 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
19954 <libm-alias-float.h>.
19955 (fmaf): Define using libm_alias_float.
19956 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
19957 <libm-alias-float.h>.
19958 (nearbyintf): Define using libm_alias_float.
19959 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
19960 <libm-alias-float.h>.
19961 (rintf): Define using libm_alias_float.
19962 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
19963 <libm-alias-float.h>.
19964 (truncf): Define using libm_alias_float.
19965 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
19966 (copysignf): Define using libm_alias_float.
19967 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
19968 (cosf): Define using libm_alias_float.
19969 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
19970 (fabsf): Define using libm_alias_float.
19971 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
19972 (fmaxf): Define using libm_alias_float.
19973 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
19974 (fminf): Define using libm_alias_float.
19975 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
19976 (llrintf): Define using libm_alias_float.
19977 [!__ILP32__] (lrintf): Likewise.
19978 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
19979 (sincosf): Define using libm_alias_float.
19980 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
19981 (sinf): Define using libm_alias_float.
19982 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
19983 (lrintf): Define using libm_alias_float.
19984
19985 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
19986 <libm-alias-double.h>.
19987 (atan): Define using libm_alias_double.
19988 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
19989 <libm-alias-double.h>.
19990 (ceil): Define using libm_alias_double.
19991 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
19992 <libm-alias-double.h>.
19993 (floor): Define using libm_alias_double.
19994 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
19995 <libm-alias-double.h>.
19996 (fma): Define using libm_alias_double.
19997 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
19998 <libm-alias-double.h>.
19999 (nearbyint): Define using libm_alias_double.
20000 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20001 <libm-alias-double.h>.
20002 (rint): Define using libm_alias_double.
20003 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20004 <libm-alias-double.h>.
20005 (sin): Define using libm_alias_double.
20006 (cos): Likewise.
20007 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20008 <libm-alias-double.h>.
20009 (tan): Define using libm_alias_double.
20010 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20011 <libm-alias-double.h>.
20012 (trunc): Define using libm_alias_double.
20013 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20014 (copysign): Define using libm_alias_double.
20015 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20016 (fabs): Define using libm_alias_double.
20017 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20018 (fmax): Define using libm_alias_double.
20019 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20020 (fmin): Define using libm_alias_double.
20021 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20022 (llrint): Define using libm_alias_double.
20023 [!__ILP32__] (lrint): Likewise.
20024 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20025 (lrint): Define using libm_alias_double.
20026
20027 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20028
20029 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20030 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20031 objects.
20032 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20033 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20034 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20035 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20036 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20037 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20038
20039 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20040 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20041 objects.
20042 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20043 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20044 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20045 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20046 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20047 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20048
20049 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20050 (libm-sysdep_routines): Add s_nearbyint-generic and
20051 s_nearbyintf-generic objects.
20052 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20053 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20054 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20055 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20056 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20057 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20058
20059 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20060 Add s_finitef-generic and s_finite-generic objects.
20061 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20062 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20063 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20064 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20065 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20066 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20067
20068 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20069 Add s_isinff-generic and s_isinf-generic objects.
20070 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20071 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20072 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20073 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20074 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20075 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20076
20077 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20078 Add s_isnanf-generic and s_isnan-generic objects.
20079 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20080 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20081 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20082 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20083 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20084 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20085
20086 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20087 macro.
20088 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20089 rule.
20090 (sysdep_routines): Use sysdep_calls as base.
20091 (libm-sysdep_routines): Add generic rule for symbols shared with
20092 libc. Add s_signbit-generic and s_signbitf-generic objects.
20093 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20094 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20095 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20096 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20097 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20098 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20099
20100 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20101
20102 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20103 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20104 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20105 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20106 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20107 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20108 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20109 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20110 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20111 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20112 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20113 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20114 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20115 libm_alias_float_r.
20116 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20117 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20118 (logf): Likewise.
20119 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20120 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20121 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20122 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20123 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20124 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20125 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20126 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20127 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20128 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20129 libm_alias_float.
20130 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20131 (cosf): Likewise.
20132 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20133 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20134 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20135 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20136 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20137 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20138 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20139 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20140 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20141 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20142 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20143 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20144 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20145 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20146 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20147 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20148 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20149 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20150 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20151 libm_alias_float.
20152 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20153 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20154 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20155 * sysdeps/ia64/fpu/w_lgammaf_main.c
20156 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20157 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20158
20159 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20160 Alexandre Oliva <aoliva@redhat.com>
20161
20162 [BZ #17750]
20163 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20164 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20165 accents sorting.
20166 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20167 sorting.
20168 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20169 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20170 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20171 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20172 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20173 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20174 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20175 instead of “ifdef DIACRIT_BACKWARD”.
20176
20177 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20178
20179 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20180 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20181 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20182 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20183 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20184 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20185 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20186 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20187 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20188 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20189 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20190 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20191 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20192 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20193 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20194 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20195 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20196 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20197 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20198 ($(have-as-vis3) == yes): Remove conditional.
20199 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20200 Likewise.
20201 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20202 file.
20203 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20204 file.
20205 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20206 file.
20207 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20208 file.
20209 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20210 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20211 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20212 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20213 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20214 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20215 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20216 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20217
20218 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20219
20220 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20221 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20222 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20223 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20224 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20225 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20226 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20227 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20228 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20229 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20230 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20231 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20232 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20233 libm_alias_double_r.
20234 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20235 (log): Likewise.
20236 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20237 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20238 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20239 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20240 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20241 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20242 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20243 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20244 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20245 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20246 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20247 libm_alias_double.
20248 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20249 (cos): Likewise.
20250 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20251 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20252 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20253 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20254 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20255 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20256 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20257 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20258 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20259 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20260 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20261 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20262 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20263 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20264 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20265 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20266 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20267 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20268 libm_alias_double.
20269 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20270 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20271 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20272 * sysdeps/ia64/fpu/w_lgamma_main.c
20273 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20274 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20275
20276 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20277
20278 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20279 address of $global$ into %dp register earlier. Use pc-relative
20280 instruction sequence for PIC case.
20281
20282 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20283
20284 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20285 (asinhf): Define using libm_alias_float.
20286 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20287 (atanf): Define using libm_alias_float.
20288 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20289 (cbrtf): Define using libm_alias_float.
20290 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20291 (ceilf): Define using libm_alias_float.
20292 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20293 (copysignf): Define using libm_alias_float.
20294 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20295 (expm1f): Define using libm_alias_float.
20296 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20297 (fabsf): Define using libm_alias_float.
20298 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20299 (floorf): Define using libm_alias_float.
20300 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20301 (fmaxf): Define using libm_alias_float.
20302 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20303 (fminf): Define using libm_alias_float.
20304 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20305 (frexpf): Define using libm_alias_float.
20306 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20307 (llrintf): Define using libm_alias_float.
20308 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20309 (logbf): Define using libm_alias_float.
20310 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20311 (lrintf): Define using libm_alias_float.
20312 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20313 (nearbyintf): Define using libm_alias_float.
20314 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20315 (remquof): Define using libm_alias_float.
20316 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20317 (rintf): Define using libm_alias_float.
20318 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20319 (truncf): Define using libm_alias_float.
20320 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20321 <libm-alias-float.h>.
20322 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20323 if [SHARED].
20324 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20325 <libm-alias-float.h>.
20326 (expf): Define using libm_alias_float, or libm_alias_float_other
20327 if [SHARED].
20328 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20329 <libm-alias-float.h>.
20330 (log2f): Define using libm_alias_float, or libm_alias_float_other
20331 if [SHARED].
20332 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20333 <libm-alias-float.h>.
20334 (logf): Define using libm_alias_float, or libm_alias_float_other
20335 if [SHARED].
20336 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20337 <libm-alias-float.h>.
20338 (powf): Define using libm_alias_float, or libm_alias_float_other
20339 if [SHARED].
20340 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20341 <libm-alias-float.h>.
20342 (cosf): Define using libm_alias_float.
20343 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20344 <libm-alias-float.h>.
20345 (sincosf): Define using libm_alias_float.
20346 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20347 <libm-alias-float.h>.
20348 (sinf): Define using libm_alias_float.
20349 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20350 (fmaxf): Define using libm_alias_float.
20351 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20352 (fminf): Define using libm_alias_float.
20353 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20354 <libm-alias-float.h>.
20355 (fmaf): Define using libm_alias_float.
20356
20357 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20358 (asinh): Define using libm_alias_double.
20359 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20360 (atan): Define using libm_alias_double.
20361 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20362 (cbrt): Define using libm_alias_double.
20363 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20364 (ceil): Define using libm_alias_double.
20365 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20366 (copysign): Define using libm_alias_double.
20367 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20368 (expm1): Define using libm_alias_double.
20369 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20370 (fabs): Define using libm_alias_double.
20371 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20372 (fdim): Define using libm_alias_double.
20373 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20374 (floor): Define using libm_alias_double.
20375 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20376 (fmax): Define using libm_alias_double.
20377 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20378 (fmin): Define using libm_alias_double.
20379 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20380 (frexp): Define using libm_alias_double.
20381 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20382 (llrint): Define using libm_alias_double.
20383 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20384 (logb): Define using libm_alias_double.
20385 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20386 (lrint): Define using libm_alias_double.
20387 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20388 (nearbyint): Define using libm_alias_double.
20389 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20390 (remquo): Define using libm_alias_double.
20391 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20392 (rint): Define using libm_alias_double.
20393 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20394 (trunc): Define using libm_alias_double.
20395 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20396 (fmax): Define using libm_alias_double.
20397 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20398 (fmin): Define using libm_alias_double.
20399 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20400 (fma): Define using libm_alias_double.
20401
20402 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20403
20404 [BZ #22370]
20405 * elf/dl-hwcaps.c (ROUND): Removed.
20406 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20407 and ELF_NOTE_NEXT_OFFSET.
20408 * elf/dl-load.c (ROUND): Removed.
20409 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20410 * elf/readelflib.c (ROUND): Removed.
20411 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20412 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20413 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20414 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20415
20416 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20417
20418 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20419 [!__fmaf] (fmaf): Define using libm_alias_float.
20420
20421 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20422 [!__fma] (fma): Define using libm_alias_double.
20423 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20424
20425 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20426
20427 [BZ #22336]
20428 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20429 and implement the collation rules for cs from CLDR on top of that.
20430 * Makefile: Add cs_CZ.UTF-8 to test-input.
20431 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20432
20433 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20434
20435 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20436
20437 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20438 Icarus Sparry <icarus.w.sparry@intel.com>
20439
20440 * benchtests/Makefile:Add BENCHSET to allow subsets of
20441 benchmarks to be run.
20442 * benchtests/README: Add documentation for: Running subsets of
20443 benchmarks.
20444
20445 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20446
20447 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20448 range of tests names.
20449
20450 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20451 result from property and remove "max", min" and "mean" from
20452 required properties based on benchtests/bench-skeleton.c.
20453
20454 2017-11-28 Florian Weimer <fweimer@redhat.com>
20455
20456 [BZ #20826]
20457 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20458 due to Internet requirement.
20459 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20460 tst-getaddrinfo5.
20461 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20462
20463 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20464
20465 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20466 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20467 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20468 (sysdep_routines): Add memset-ultra1.
20469 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20470 file.
20471 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20472 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20473 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20474 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20475 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20476 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20477 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20478 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20479
20480 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20481 file.
20482 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20483 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20484 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20485 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20486 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20487 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20488 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20489 macro.
20490 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20491 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20492 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20493 (sysdep_routines): Add memcpy-ultra1.
20494 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20495 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20496
20497 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20498
20499 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20500 (cfloat_versions): Take function argument without trailing 'f'.
20501 Call libm_alias_float_other.
20502 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20503 * sysdeps/alpha/fpu/cargf.c: Likewise.
20504 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20505 * sysdeps/alpha/fpu/conjf.c: Likewise.
20506 * sysdeps/alpha/fpu/crealf.c: Likewise.
20507 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20508 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20509 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20510 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20511 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20512 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20513 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20514 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20515 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20516 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20517 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20518 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20519 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20520 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20521 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20522 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20523 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20524 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20525 (clog10f): Use libm_alias_float_other.
20526 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20527 (ceilf): Define using libm_alias_float.
20528 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20529 (copysignf): Define using libm_alias_float.
20530 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20531 (fabsf): Define using libm_alias_float.
20532 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20533 (floorf): Define using libm_alias_float.
20534 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20535 (fmaxf): Define using libm_alias_float.
20536 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20537 (fminf): Define using libm_alias_float.
20538 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20539 (lrintf): Define using libm_alias_float.
20540 (llrintf): Likewise.
20541 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20542 (lroundf): Define using libm_alias_float.
20543 (llroundf): Likewise.
20544 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20545 (rintf): Define using libm_alias_float.
20546 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20547 (truncf): Define using libm_alias_float.
20548
20549 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20550 (ceilf): Define using libm_alias_float.
20551 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20552 (floorf): Define using libm_alias_float.
20553 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20554 (fmaf): Define using libm_alias_float.
20555 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20556 (fmaxf): Define using libm_alias_float.
20557 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20558 (fminf): Define using libm_alias_float.
20559 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20560 (llrintf): Define using libm_alias_float.
20561 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20562 (llroundf): Define using libm_alias_float.
20563 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20564 (lrintf): Define using libm_alias_float.
20565 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20566 (lroundf): Define using libm_alias_float.
20567 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20568 <libm-alias-float.h>.
20569 (nearbyintf): Define using libm_alias_float.
20570 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20571 (rintf): Define using libm_alias_float.
20572 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20573 (roundf): Define using libm_alias_float.
20574 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20575 (truncf): Define using libm_alias_float.
20576
20577 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20578 (ceil): Define using libm_alias_double.
20579 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20580 (copysign): Define using libm_alias_double.
20581 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20582 (fabs): Define using libm_alias_double.
20583 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20584 (floor): Define using libm_alias_double.
20585 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20586 (fmax): Define using libm_alias_double.
20587 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20588 (fmin): Define using libm_alias_double.
20589 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20590 (lrint): Define using libm_alias_double.
20591 (llrint): Likewise.
20592 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20593 (lround): Define using libm_alias_double.
20594 (llround): Likewise.
20595 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20596 (rint): Define using libm_alias_double.
20597 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20598 (trunc): Define using libm_alias_double.
20599
20600 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20601 (libm_alias_double_r): Add semicolon after weak_alias call.
20602
20603 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20604
20605 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20606 (ceil): Define using libm_alias_double.
20607 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20608 (floor): Define using libm_alias_double.
20609 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20610 (fma): Define using libm_alias_double.
20611 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20612 (fmax): Define using libm_alias_double.
20613 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20614 (fmin): Define using libm_alias_double.
20615 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20616 (llrint): Define using libm_alias_double.
20617 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20618 (llround): Define using libm_alias_double.
20619 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20620 (lrint): Define using libm_alias_double.
20621 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20622 (lround): Define using libm_alias_double.
20623 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20624 (nearbyint): Define using libm_alias_double.
20625 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20626 (rint): Define using libm_alias_double.
20627 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20628 (round): Define using libm_alias_double.
20629 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20630 (trunc): Define using libm_alias_double.
20631
20632 2017-11-27 Florian Weimer <fweimer@redhat.com>
20633
20634 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20635 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20636 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20637 (tests): Add tst-mlock2.
20638 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20639 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20640 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20641 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20642 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20643 for mlock. Document mlock2.
20644
20645 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20646
20647 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
20648 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
20649 Likewise.
20650 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
20651 Likewise.
20652 * sysdeps/x86/Makeconfig: New file.
20653 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
20654 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20655 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
20656 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20657 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20658 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20659 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
20660 Likewise.
20661 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20662 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20663 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20664 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20665 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20666 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20667 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20668 * manual/math.texi (Mathematics): Document support for _Float64x.
20669 * math/Versions (GLIBC_2.27): Add _Float64x functions.
20670 * stdlib/Versions (GLIBC_2.27): Likewise.
20671 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20672 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20673 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20674 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20675 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20676 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20677 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20678 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20679 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20680 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20681 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20682 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20684 Likewise.
20685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20686 Likewise.
20687 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20688 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20689 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20690 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20691 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20692 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20693 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20694 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20695 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20696 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20697 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20698 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20699 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20700 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20701
20702 2017-11-27 Andreas Schwab <schwab@suse.de>
20703
20704 * elf/Makefile (dl-routines): Add dl-sort-maps.
20705 * elf/dl-sort-maps.c: New file.
20706 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
20707 (_dl_sort_maps): Declare.
20708 * elf/dl-fini.c (_dl_sort_fini): Remove.
20709 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
20710 * elf/dl-close.c (_dl_close_worker): Likewise.
20711 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
20712 open-coding it.
20713 * elf/dl-open.c (dl_open_worker): Likewise.
20714
20715 2017-11-24 Joseph Myers <joseph@codesourcery.com>
20716
20717 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
20718 using libm_alias_float128.
20719 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
20720 Likewise.
20721 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
20722 Likewise.
20723 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
20724 (setpayloadsigf128): Likewise.
20725 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
20726 Likewise.
20727 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
20728 Likewise.
20729
20730 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
20731 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
20732 -mfloat128 to CFLAGS.
20733 ($(foreach
20734 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
20735 Likewise.
20736 (CFLAGS-libm-test-support-float64x.c): New variable.
20737 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
20738 $(f128-loader-link) to gnulib-tests.
20739
20740 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
20741 (libm_alias_float128_other_r): If
20742 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
20743 alias.
20744 (libm_alias_float128_r): Add semicolon after weak_alias call.
20745 * sysdeps/generic/libm-alias-ldouble.h
20746 (libm_alias_ldouble_other_r_f128): New macro.
20747 (libm_alias_ldouble_other_r_f64x): Likewise.
20748 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
20749 and libm_alias_ldouble_other_r_f64x.
20750 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
20751 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
20752 (libm_alias_ldouble_other_r_f128): New macro.
20753 (libm_alias_ldouble_other_r_f64x): Likewise.
20754 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
20755 and libm_alias_ldouble_other_r_f64x.
20756
20757 * stdlib/strfroml.c: Always include <stdlib.h>.
20758 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
20759 undefine as macro and define as weak alias.
20760 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
20761 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
20762 <stdlib.h>.
20763 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
20764 Define and later undefine as macro and define as weak alias.
20765
20766 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
20767 Define and later undefine as macro. Define as weak alias if
20768 [!USE_WIDE_CHAR].
20769 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
20770 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20771 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
20772 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
20773 Define and later undefine as macro. Define as weak alias if
20774 [!USE_WIDE_CHAR].
20775 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
20776 Define and later undefine as macro. Define as weak alias if
20777 [USE_WIDE_CHAR].
20778 * sysdeps/ieee754/float128/strtof128_l.c
20779 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
20780 Define and later undefine as macro. Define as weak alias if
20781 [!USE_WIDE_CHAR].
20782 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
20783 Define and later undefine as macro. Define as weak alias if
20784 [USE_WIDE_CHAR].
20785 * sysdeps/ieee754/ldbl-128/strtold_l.c
20786 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
20787 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
20788 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
20789 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20790 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
20791 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
20792 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
20793 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
20794 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20795 * sysdeps/ieee754/ldbl-96/strtold_l.c
20796 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
20797 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
20798 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
20799 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20800
20801 * math/test-float64x.h: New file.
20802 * math/Makefile (type-float64x-yes): New variable.
20803 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
20804
20805 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
20806 function-like macro.
20807 (min_of_type_): Likewise.
20808 (min_of_type_l): Likewise.
20809 (min_of_type_f128): Likewise.
20810 (min_of_type): Pass () as last argument of __MATH_TG.
20811
20812 * stdlib/tst-strtod-round-skeleton.c
20813 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
20814 headers.
20815
20816 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
20817 for combinations of long double with _Float64 and _Float64x.
20818
20819 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
20820 (__DECL_SIMD_cosf32): Likewise.
20821 (__DECL_SIMD_cosf64): Likewise.
20822 (__DECL_SIMD_cosf32x): Likewise.
20823 (__DECL_SIMD_cosf64x): Likewise.
20824 (__DECL_SIMD_cosf128x): Likewise.
20825 (__DECL_SIMD_sinf16): Likewise.
20826 (__DECL_SIMD_sinf32): Likewise.
20827 (__DECL_SIMD_sinf64): Likewise.
20828 (__DECL_SIMD_sinf32x): Likewise.
20829 (__DECL_SIMD_sinf64x): Likewise.
20830 (__DECL_SIMD_sinf128x): Likewise.
20831 (__DECL_SIMD_sincosf16): Likewise.
20832 (__DECL_SIMD_sincosf32): Likewise.
20833 (__DECL_SIMD_sincosf64): Likewise.
20834 (__DECL_SIMD_sincosf32x): Likewise.
20835 (__DECL_SIMD_sincosf64x): Likewise.
20836 (__DECL_SIMD_sincosf128x): Likewise.
20837 (__DECL_SIMD_logf16): Likewise.
20838 (__DECL_SIMD_logf32): Likewise.
20839 (__DECL_SIMD_logf64): Likewise.
20840 (__DECL_SIMD_logf32x): Likewise.
20841 (__DECL_SIMD_logf64x): Likewise.
20842 (__DECL_SIMD_logf128x): Likewise.
20843 (__DECL_SIMD_expf16): Likewise.
20844 (__DECL_SIMD_expf32): Likewise.
20845 (__DECL_SIMD_expf64): Likewise.
20846 (__DECL_SIMD_expf32x): Likewise.
20847 (__DECL_SIMD_expf64x): Likewise.
20848 (__DECL_SIMD_expf128x): Likewise.
20849 (__DECL_SIMD_powf16): Likewise.
20850 (__DECL_SIMD_powf32): Likewise.
20851 (__DECL_SIMD_powf64): Likewise.
20852 (__DECL_SIMD_powf32x): Likewise.
20853 (__DECL_SIMD_powf64x): Likewise.
20854 (__DECL_SIMD_powf128x): Likewise.
20855
20856 * stdlib/Versions (libc): Move entries for wcstof128 and
20857 wcstof128_l to ....
20858 * wcsmbs/Versions (libc): ... here.
20859 Include <float128-abi.h>.
20860
20861 2017-11-24 Florian Weimer <fweimer@redhat.com>
20862
20863 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20864 bits/mman-shared.h.
20865 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
20866 <bits/mman-shared.h>.
20867 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
20868 to ...
20869 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
20870 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
20871 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
20872 <bits/mman-shared.h>.
20873
20874 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20875
20876 [BZ #22457]
20877 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
20878 posix_memalign/free.
20879 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
20880
20881 2017-11-22 Mike FABIAN <mfabian@redhat.com>
20882
20883 [BZ #22469]
20884 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
20885 and implement the collation rules for pl from CLDR on top of that.
20886 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
20887 of locales to be built for testing.
20888 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
20889
20890 2017-11-23 Joseph Myers <joseph@codesourcery.com>
20891
20892 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
20893 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
20894 libm_alias_ldouble_other.
20895 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
20896 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
20897 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
20898 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
20899 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
20900 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
20901 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
20902 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
20903 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
20904 libm_alias_ldouble_r.
20905 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
20906 libm_alias_ldouble_other.
20907 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
20908 (log10l): Likewise.
20909 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
20910 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
20911 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
20912 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
20913 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
20914 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
20915 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
20916 (atan2l): Likewise.
20917 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
20918 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
20919 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
20920 libm_alias_ldouble.
20921 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
20922 (cosl): Likewise.
20923 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
20924 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
20925 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
20926 (expl): Likewise.
20927 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
20928 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
20929 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
20930 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
20931 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
20932 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
20933 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
20934 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
20935 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
20936 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
20937 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
20938 libm_alias_ldouble.
20939 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
20940 libm_alias_ldouble_other.
20941 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
20942 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
20943 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
20944 libm_alias_ldouble.
20945 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
20946 libm_alias_ldouble_other.
20947 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
20948 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
20949 * sysdeps/ia64/fpu/w_lgammal_main.c
20950 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
20951 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
20952
20953 2017-11-23 Florian Weimer <fweimer@redhat.com>
20954
20955 * malloc/malloc.c (tcache_thread_shutdown): Rename from
20956 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
20957 alike. Remove freeres marker.
20958 * malloc/arena.c (arena_thread_freeres): Call
20959 tcache_thread_shutdown.
20960
20961 2017-11-23 Florian Weimer <fweimer@redhat.com>
20962
20963 [BZ #22459]
20964 Export nscd hash function as __nss_hash.
20965 * include/nss.h (__nss_hash): Declare.
20966 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
20967 symbol.
20968 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
20969 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
20970 of __nscd_hash.
20971 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
20972 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
20973 * nss/Makefiles (routines): Add nss_hash.
20974 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
20975 * nss/nss_hash.c: Rename from nis/nis_hash.c.
20976 (__nss_hash): Rename from __nis_hash. Define hidden alias.
20977 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
20978
20979 2017-11-23 Florian Weimer <fweimer@redhat.com>
20980
20981 [BZ #22478]
20982 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
20983 Return error code, not -1.
20984 * signal/tst-sigwait-eintr.c: New file.
20985 * signal/Makefile (tests): Add tst-sigwait-eintr.
20986
20987 2017-11-23 Florian Weimer <fweimer@redhat.com>
20988
20989 Linux: Add memfd_create system call wrapper
20990 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
20991 tst-memfd_create.
20992 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
20993 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
20994 [__USE_GNU] (memfd_create): Declare.
20995 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
20996 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
20997 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
20998 * sysdeps/unix/sysv/linux/**.abilist: Update.
20999 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21000
21001 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21002
21003 * localedata/gen-locale.sh: Fix typo in variable name.
21004
21005 * resolv/res_debug.c (p_secstodate): Condition definition on
21006 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21007 directly as __p_secstodate, and as a compat symbol. Do not use
21008 libresolv_hidden_def.
21009 * resolv/resolv.h (p_secstodate): Remove macro and function
21010 declaration.
21011 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21012 using p_secstodate.
21013 * include/resolv.h (__p_secstodate): Do not use
21014 libresolv_hidden_proto.
21015 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21016 (tests-internal): ... here.
21017 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21018 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21019 and declare and use __p_secstodate and use compat_symbol_reference
21020 in that case.
21021 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21022 implementation returning 77.
21023
21024 [BZ #22463]
21025 * resolv/res_debug.c: Include <libc-diag.h>.
21026 (p_secstodate): Assert time_t at least as wide as u_long. On
21027 overflow, use integer seconds since the epoch as output, or use
21028 "<overflow>" as output and set errno to EOVERFLOW if integer
21029 seconds since the epoch would be 14 or more characters.
21030 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21031 for sprintf call.
21032 * resolv/tst-p_secstodate.c: New file.
21033 * resolv/Makefile (tests): Add tst-p_secstodate.
21034 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21035
21036 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21037 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21038 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21039
21040 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21041
21042 * posix/regcomp.c (init_word_char): Add comments.
21043
21044 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21045
21046 [BZ #22447]
21047 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21048 strlen to compute length of ut_user and set trailing NUL byte of
21049 result explicitly.
21050
21051 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21052
21053 [BZ #15537]
21054 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21055 using “copy "iso14651_t1"” and then implementing the
21056 collation rules for lv from CLDR on top of that.
21057 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21058 of locales to be built for testing.
21059 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21060 sorting.
21061
21062 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21063
21064 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21065 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21066 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21067 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21068 [__USE_MISC] (MADV_HWPOISON): New macro.
21069 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21070
21071 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21072
21073 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21074 -Wmissing-braces on GCC 4.9.
21075
21076 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21077
21078 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21079 * sysdeps/s390/s390-32/start.S (_start): Likewise
21080 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21081 (thread_start): Likewise.
21082 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21083 (thread_start): Likewise.
21084 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21085 (__makecontext_ret): Likewise.
21086 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21087 (__makecontext_ret): Likewise.
21088
21089 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21090
21091 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21092 __wcschrnul): Remove attribute_hidden.
21093
21094 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21095
21096 regex: don't assume uint64_t or uint32_t
21097 This avoids -Werror=overflow errors for 32-bit systems in
21098 the 64-bit case. Problem reported by Joseph Myers in:
21099 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21100 Also, when this code is used in Gnulib it ports to platforms
21101 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21102 them, and on some 32-bit compilers there is no uint64_t.
21103 Problem reported by Gianluigi Tiesi in:
21104 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21105 * posix/regcomp.c (init_word_char): Don't assume that the types
21106 uint64_t and uint32_t exist. Adapted from Gnulib patch
21107 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21108 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21109
21110 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21111
21112 * sysdeps/aarch64/memset-reg.h: New file.
21113 * sysdeps/aarch64/memset.S: Use it.
21114 (__memset): Rename to MEMSET macro.
21115 [ZVA_MACRO]: Use zva_macro.
21116 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21117 Add memset_generic and memset_falkor.
21118 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21119 (__libc_ifunc_impl_list): Add memset ifuncs.
21120 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21121 local variable zva_size.
21122 * sysdeps/aarch64/multiarch/memset.c: New file.
21123 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21124 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21125 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21126 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21127 (DCZID_DZP_MASK): New macro.
21128 (DCZID_BS_MASK): Likewise.
21129 (init_cpu_features): Read and set zva_size.
21130 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21131 (struct cpu_features): New member zva_size.
21132
21133 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21134 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21135 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21136
21137 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21138 backwards. Fix timing computation.
21139 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21140 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21141 on memset by N at a time. Fix timing computation.
21142
21143 2017-11-20 Florian Weimer <fweimer@redhat.com>
21144
21145 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21146 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21147
21148 2017-11-19 Florian Weimer <fweimer@redhat.com>
21149
21150 manual: Document mprotect
21151 * manual/memory.texi (Memory Protection): New section.
21152 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21153 documentation of PROT_* flags and reference the Memory Protection
21154 section instead.
21155
21156 2017-11-19 Florian Weimer <fweimer@redhat.com>
21157
21158 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21159 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21160 (Scatter-Gather): ... to here. Remove misleading comment.
21161
21162 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21163
21164 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21165 style.
21166
21167 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21168 when /proc/<pid>/setgroups does not exist.
21169
21170 2017-11-18 Florian Weimer <fweimer@redhat.com>
21171
21172 * sysdeps/unix/sysv/linux/tst-ttyname.c
21173 (become_root_in_mount_ns): Remove.
21174 (do_in_chroot_1): Call support_enter_mount_namespace.
21175 (do_in_chroot_2): Likewise.
21176 (do_test): Call support_become_root early.
21177
21178 2017-11-18 Florian Weimer <fweimer@redhat.com>
21179
21180 * support/namespace.h (support_enter_mount_namespace): Declare.
21181 * support/support_enter_mount_namespace.c: New file.
21182 * support/Makefile (libsupport-routines): Add
21183 support_enter_mount_namespace.
21184
21185 2017-11-18 Florian Weimer <fweimer@redhat.com>
21186
21187 * support/temp_file.c (support_create_temp_directory): Use
21188 test_dir and do not rely on the presence of the XXXXXX suffix.
21189 * support/temp_file.h (support_create_temp_directory): Update
21190 comment.
21191 * support/tst-xreadlink.c (do_test): Adjust.
21192 * support/support_chroot.c (support_chroot_create): Likewise.
21193
21194 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21195
21196 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21197 macro.
21198 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21199 htm-no-suspend.
21200
21201 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21202
21203 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21204 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21205 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21206 (ceill): Define using libm_alias_ldouble.
21207 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21208 <libm-alias-ldouble.h>.
21209 (copysignl): Define using libm_alias_ldouble.
21210 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21211 (fabsl): Define using libm_alias_ldouble.
21212 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21213 (floorl): Define using libm_alias_ldouble.
21214 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21215 (fmaxl): Define using libm_alias_ldouble.
21216 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21217 (fminl): Define using libm_alias_ldouble.
21218 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21219 (llrintl): Define using libm_alias_ldouble.
21220 (lrintl): Likewise.
21221 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21222 <libm-alias-ldouble.h>.
21223 (nearbyintl): Define using libm_alias_ldouble.
21224 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21225 (truncl): Define using libm_alias_ldouble.
21226 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21227 <libm-alias-ldouble.h>.
21228 (lrintl): Define using libm_alias_ldouble.
21229
21230 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21231 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21232 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21233 (asinhl): Define using libm_alias_ldouble.
21234 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21235 (atanl): Define using libm_alias_ldouble.
21236 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21237 (cbrtl): Define using libm_alias_ldouble.
21238 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21239 (ceill): Define using libm_alias_ldouble.
21240 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21241 (copysignl): Define using libm_alias_ldouble.
21242 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21243 (fabsl): Define using libm_alias_ldouble.
21244 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21245 (floorl): Define using libm_alias_ldouble.
21246 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21247 (fmaxl): Define using libm_alias_ldouble.
21248 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21249 (fminl): Define using libm_alias_ldouble.
21250 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21251 (frexpl): Define using libm_alias_ldouble.
21252 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21253 (llrintl): Define using libm_alias_ldouble.
21254 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21255 (logbl): Define using libm_alias_ldouble.
21256 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21257 (lrintl): Define using libm_alias_ldouble.
21258 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21259 (nearbyintl): Define using libm_alias_ldouble.
21260 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21261 (nextafterl): Define using libm_alias_ldouble.
21262 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21263 (remquol): Define using libm_alias_ldouble.
21264 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21265 (rintl): Define using libm_alias_ldouble.
21266 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21267 (truncl): Define using libm_alias_ldouble.
21268 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21269 (fmaxl): Define using libm_alias_ldouble.
21270 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21271 (fminl): Define using libm_alias_ldouble.
21272
21273 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21274 to C syntax instead of availability and properties of types.
21275 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21276 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21277 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21278 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21279 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21280 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21281
21282 2017-11-17 Florian Weimer <fweimer@redhat.com>
21283
21284 support_become_root: Enable file creation in namespaces.
21285 * support/support_become_root.c (setup_mapping): New function.
21286 (support_become_root): Call it.
21287
21288 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21289
21290 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21291 macro.
21292
21293 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21294
21295 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21296 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21297
21298 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21299
21300 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21301
21302 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21303 version to 4.14.
21304
21305 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21306
21307 * INSTALL: Fix botched up regeneration.
21308
21309 * NEWS: Update sourceare link to https.
21310 * configure.ac: Likewise.
21311 * crypt/md5test-giant.c: Likewise.
21312 * dlfcn/bug-atexit1.c: Likewise.
21313 * dlfcn/bug-atexit2.c: Likewise.
21314 * localedata/README: Likewise.
21315 * malloc/tst-mallocfork.c: Likewise.
21316 * manual/install.texi: Likewise.
21317 * nptl/tst-pthread-getattr.c: Likewise.
21318 * stdio-common/tst-fgets.c: Likewise.
21319 * stdio-common/tst-fwrite.c: Likewise.
21320 * sunrpc/Makefile: Likewise.
21321 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21322 * wcsmbs/tst-mbrtowc2.c: Likewise.
21323 * configure: Regenerate.
21324 * INSTALL: Regenerate.
21325
21326 2017-11-15 Martin Sebor <msebor@redhat.com>
21327
21328 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21329 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21330 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21331
21332 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21333
21334 [BZ #22145]
21335 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21336 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21337
21338 [BZ #22145]
21339 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21340 Defer is_pty check until end of the function.
21341 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21342
21343 [BZ #22145]
21344 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21345 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21346 (ttyname): Likewise.
21347 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21348 (__ttyname_r): Likewise.
21349
21350 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21351 int to bool.
21352
21353 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21354
21355 * manual/terminal.texi (Is It a Terminal):
21356 Mention ENODEV for ttyname and ttyname_r.
21357
21358 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21359
21360 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21361 constant and macro.
21362
21363 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21364 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21365 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21366 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21367 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21368 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21369
21370 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21371
21372 * signal/sigrelse.c (sigrelse): Optimize implementation.
21373
21374 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21375 (__sigpause): Rely on __sigsuspend to implement single thread
21376 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21377
21378 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21379
21380 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21381 kernel version to 4.14.
21382
21383 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21384
21385 [BZ #22442]
21386 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21387 Check if ifname is too long.
21388
21389 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21390
21391 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21392
21393 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21394
21395 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21396 was accidentally lost.
21397
21398 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21399
21400 * localedata/locales/az_IR: Add standard copyright header.
21401
21402 2017-11-15 Florian Weimer <fweimer@redhat.com>
21403
21404 [BZ #22439]
21405 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21406 not just the top one. Output a new "subheaps" statistic.
21407
21408 2017-11-15 Florian Weimer <fweimer@redhat.com>
21409
21410 [BZ #22408]
21411 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21412 under the per-arena lock.
21413 * malloc/Makefile (tests): Add tst-malloc_info.
21414 (tst-malloc_info): Link with libpthread.
21415 * malloc/tst-malloc_info.c: New file.
21416
21417 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21418
21419 [BZ #21660]
21420 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21421 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21422 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21423 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21424 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21425 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21426 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21427 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21428 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21429 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21430 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21431 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21432 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21433 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21434 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21435 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21436 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21437 (__floating_type): Likewise.
21438 (__real_integer_type): Likewise.
21439 (__complex_integer_type): Likewise.
21440 (__expr_is_real): Likewise.
21441 (__tgmath_real_type_sub): Likewise.
21442 (__tgmath_real_type): Likewise.
21443 (__tgmath_complex_type_sub): Likewise.
21444 (__tgmath_complex_type): Likewise.
21445 (__TGMATH_F128): Likewise.
21446 (__TGMATH_CF128): Likewise.
21447 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21448 new macros.
21449 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21450 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21451 Likewise.
21452 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21453 Likewise.
21454 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21455 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21456 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21457 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21458 Likewise.
21459 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21460 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21461 Likewise.
21462 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21463 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21464 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21465 Likewise.
21466 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21467 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21468 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21469 (cimag): Likewise.
21470 (creal): Likewise.
21471
21472 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21473
21474 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21475 for stpncpy calls for GCC 8.
21476 (test_strncat): Disable -Wstringop-truncation warning for strncat
21477 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21478 strncat call for GCC 7.
21479 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21480 calls for GCC 8.
21481 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21482 trailing NUL.
21483
21484 * string/bug-strncat1.c: Include <libc-diag.h>.
21485 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21486
21487 2017-11-13 Claude Paroz <claude@2xlibre.net>
21488
21489 [BZ #22387]
21490 * localedata/locales/aa_DJ: Improved readibility by replacing
21491 <Uxxxx> sequences in the ASCII printable range by their ASCII
21492 character equivalents.
21493 * localedata/locales/aa_ER: Likewise.
21494 * localedata/locales/aa_ER@saaho: Likewise.
21495 * localedata/locales/aa_ET: Likewise.
21496 * localedata/locales/af_ZA: Likewise.
21497 * localedata/locales/agr_PE: Likewise.
21498 * localedata/locales/ak_GH: Likewise.
21499 * localedata/locales/am_ET: Likewise.
21500 * localedata/locales/anp_IN: Likewise.
21501 * localedata/locales/ar_AE: Likewise.
21502 * localedata/locales/ar_BH: Likewise.
21503 * localedata/locales/ar_DZ: Likewise.
21504 * localedata/locales/ar_EG: Likewise.
21505 * localedata/locales/ar_IN: Likewise.
21506 * localedata/locales/ar_IQ: Likewise.
21507 * localedata/locales/ar_JO: Likewise.
21508 * localedata/locales/ar_KW: Likewise.
21509 * localedata/locales/ar_LB: Likewise.
21510 * localedata/locales/ar_LY: Likewise.
21511 * localedata/locales/ar_MA: Likewise.
21512 * localedata/locales/ar_OM: Likewise.
21513 * localedata/locales/ar_QA: Likewise.
21514 * localedata/locales/ar_SA: Likewise.
21515 * localedata/locales/ar_SD: Likewise.
21516 * localedata/locales/ar_SS: Likewise.
21517 * localedata/locales/ar_SY: Likewise.
21518 * localedata/locales/ar_TN: Likewise.
21519 * localedata/locales/ar_YE: Likewise.
21520 * localedata/locales/as_IN: Likewise.
21521 * localedata/locales/ast_ES: Likewise.
21522 * localedata/locales/ayc_PE: Likewise.
21523 * localedata/locales/az_AZ: Likewise.
21524 * localedata/locales/az_IR: Likewise.
21525 * localedata/locales/be_BY: Likewise.
21526 * localedata/locales/be_BY@latin: Likewise.
21527 * localedata/locales/bem_ZM: Likewise.
21528 * localedata/locales/ber_DZ: Likewise.
21529 * localedata/locales/ber_MA: Likewise.
21530 * localedata/locales/bg_BG: Likewise.
21531 * localedata/locales/bhb_IN: Likewise.
21532 * localedata/locales/bho_IN: Likewise.
21533 * localedata/locales/bi_VU: Likewise.
21534 * localedata/locales/bn_BD: Likewise.
21535 * localedata/locales/bn_IN: Likewise.
21536 * localedata/locales/bo_CN: Likewise.
21537 * localedata/locales/bo_IN: Likewise.
21538 * localedata/locales/br_FR: Likewise.
21539 * localedata/locales/brx_IN: Likewise.
21540 * localedata/locales/bs_BA: Likewise.
21541 * localedata/locales/byn_ER: Likewise.
21542 * localedata/locales/ca_AD: Likewise.
21543 * localedata/locales/ca_ES: Likewise.
21544 * localedata/locales/ca_FR: Likewise.
21545 * localedata/locales/ca_IT: Likewise.
21546 * localedata/locales/ce_RU: Likewise.
21547 * localedata/locales/chr_US: Likewise.
21548 * localedata/locales/cmn_TW: Likewise.
21549 * localedata/locales/crh_UA: Likewise.
21550 * localedata/locales/cs_CZ: Likewise.
21551 * localedata/locales/csb_PL: Likewise.
21552 * localedata/locales/cv_RU: Likewise.
21553 * localedata/locales/cy_GB: Likewise.
21554 * localedata/locales/da_DK: Likewise.
21555 * localedata/locales/de_AT: Likewise.
21556 * localedata/locales/de_BE: Likewise.
21557 * localedata/locales/de_CH: Likewise.
21558 * localedata/locales/de_DE: Likewise.
21559 * localedata/locales/de_IT: Likewise.
21560 * localedata/locales/de_LI: Likewise.
21561 * localedata/locales/de_LU: Likewise.
21562 * localedata/locales/doi_IN: Likewise.
21563 * localedata/locales/dv_MV: Likewise.
21564 * localedata/locales/dz_BT: Likewise.
21565 * localedata/locales/el_CY: Likewise.
21566 * localedata/locales/el_GR: Likewise.
21567 * localedata/locales/en_AG: Likewise.
21568 * localedata/locales/en_AU: Likewise.
21569 * localedata/locales/en_BW: Likewise.
21570 * localedata/locales/en_CA: Likewise.
21571 * localedata/locales/en_DK: Likewise.
21572 * localedata/locales/en_GB: Likewise.
21573 * localedata/locales/en_HK: Likewise.
21574 * localedata/locales/en_IE: Likewise.
21575 * localedata/locales/en_IL: Likewise.
21576 * localedata/locales/en_IN: Likewise.
21577 * localedata/locales/en_NG: Likewise.
21578 * localedata/locales/en_NZ: Likewise.
21579 * localedata/locales/en_PH: Likewise.
21580 * localedata/locales/en_SG: Likewise.
21581 * localedata/locales/en_US: Likewise.
21582 * localedata/locales/en_ZA: Likewise.
21583 * localedata/locales/en_ZM: Likewise.
21584 * localedata/locales/en_ZW: Likewise.
21585 * localedata/locales/eo: Likewise.
21586 * localedata/locales/es_AR: Likewise.
21587 * localedata/locales/es_BO: Likewise.
21588 * localedata/locales/es_CL: Likewise.
21589 * localedata/locales/es_CO: Likewise.
21590 * localedata/locales/es_CR: Likewise.
21591 * localedata/locales/es_CU: Likewise.
21592 * localedata/locales/es_DO: Likewise.
21593 * localedata/locales/es_EC: Likewise.
21594 * localedata/locales/es_ES: Likewise.
21595 * localedata/locales/es_GT: Likewise.
21596 * localedata/locales/es_HN: Likewise.
21597 * localedata/locales/es_MX: Likewise.
21598 * localedata/locales/es_NI: Likewise.
21599 * localedata/locales/es_PA: Likewise.
21600 * localedata/locales/es_PE: Likewise.
21601 * localedata/locales/es_PR: Likewise.
21602 * localedata/locales/es_PY: Likewise.
21603 * localedata/locales/es_SV: Likewise.
21604 * localedata/locales/es_US: Likewise.
21605 * localedata/locales/es_UY: Likewise.
21606 * localedata/locales/es_VE: Likewise.
21607 * localedata/locales/et_EE: Likewise.
21608 * localedata/locales/eu_ES: Likewise.
21609 * localedata/locales/eu_ES@euro: Likewise.
21610 * localedata/locales/fa_IR: Likewise.
21611 * localedata/locales/ff_SN: Likewise.
21612 * localedata/locales/fi_FI: Likewise.
21613 * localedata/locales/fil_PH: Likewise.
21614 * localedata/locales/fo_FO: Likewise.
21615 * localedata/locales/fr_BE: Likewise.
21616 * localedata/locales/fr_CA: Likewise.
21617 * localedata/locales/fr_CH: Likewise.
21618 * localedata/locales/fr_FR: Likewise.
21619 * localedata/locales/fr_LU: Likewise.
21620 * localedata/locales/fur_IT: Likewise.
21621 * localedata/locales/fy_DE: Likewise.
21622 * localedata/locales/fy_NL: Likewise.
21623 * localedata/locales/ga_IE: Likewise.
21624 * localedata/locales/gd_GB: Likewise.
21625 * localedata/locales/gez_ER: Likewise.
21626 * localedata/locales/gez_ET: Likewise.
21627 * localedata/locales/gl_ES: Likewise.
21628 * localedata/locales/gu_IN: Likewise.
21629 * localedata/locales/gv_GB: Likewise.
21630 * localedata/locales/ha_NG: Likewise.
21631 * localedata/locales/hak_TW: Likewise.
21632 * localedata/locales/he_IL: Likewise.
21633 * localedata/locales/hi_IN: Likewise.
21634 * localedata/locales/hif_FJ: Likewise.
21635 * localedata/locales/hne_IN: Likewise.
21636 * localedata/locales/hr_HR: Likewise.
21637 * localedata/locales/hsb_DE: Likewise.
21638 * localedata/locales/ht_HT: Likewise.
21639 * localedata/locales/hu_HU: Likewise.
21640 * localedata/locales/hy_AM: Likewise.
21641 * localedata/locales/i18n: Likewise.
21642 * localedata/locales/ia_FR: Likewise.
21643 * localedata/locales/id_ID: Likewise.
21644 * localedata/locales/ig_NG: Likewise.
21645 * localedata/locales/ik_CA: Likewise.
21646 * localedata/locales/is_IS: Likewise.
21647 * localedata/locales/it_CH: Likewise.
21648 * localedata/locales/it_IT: Likewise.
21649 * localedata/locales/iu_CA: Likewise.
21650 * localedata/locales/ja_JP: Likewise.
21651 * localedata/locales/ka_GE: Likewise.
21652 * localedata/locales/kk_KZ: Likewise.
21653 * localedata/locales/kl_GL: Likewise.
21654 * localedata/locales/kn_IN: Likewise.
21655 * localedata/locales/ko_KR: Likewise.
21656 * localedata/locales/kok_IN: Likewise.
21657 * localedata/locales/ks_IN: Likewise.
21658 * localedata/locales/ks_IN@devanagari: Likewise.
21659 * localedata/locales/ku_TR: Likewise.
21660 * localedata/locales/kw_GB: Likewise.
21661 * localedata/locales/ky_KG: Likewise.
21662 * localedata/locales/lb_LU: Likewise.
21663 * localedata/locales/lg_UG: Likewise.
21664 * localedata/locales/li_BE: Likewise.
21665 * localedata/locales/li_NL: Likewise.
21666 * localedata/locales/lij_IT: Likewise.
21667 * localedata/locales/ln_CD: Likewise.
21668 * localedata/locales/lo_LA: Likewise.
21669 * localedata/locales/lt_LT: Likewise.
21670 * localedata/locales/lv_LV: Likewise.
21671 * localedata/locales/lzh_TW: Likewise.
21672 * localedata/locales/mag_IN: Likewise.
21673 * localedata/locales/mai_IN: Likewise.
21674 * localedata/locales/mg_MG: Likewise.
21675 * localedata/locales/mhr_RU: Likewise.
21676 * localedata/locales/mi_NZ: Likewise.
21677 * localedata/locales/mk_MK: Likewise.
21678 * localedata/locales/ml_IN: Likewise.
21679 * localedata/locales/mn_MN: Likewise.
21680 * localedata/locales/mni_IN: Likewise.
21681 * localedata/locales/mr_IN: Likewise.
21682 * localedata/locales/ms_MY: Likewise.
21683 * localedata/locales/mt_MT: Likewise.
21684 * localedata/locales/my_MM: Likewise.
21685 * localedata/locales/nan_TW: Likewise.
21686 * localedata/locales/nan_TW@latin: Likewise.
21687 * localedata/locales/nb_NO: Likewise.
21688 * localedata/locales/nds_DE: Likewise.
21689 * localedata/locales/nds_NL: Likewise.
21690 * localedata/locales/ne_NP: Likewise.
21691 * localedata/locales/nhn_MX: Likewise.
21692 * localedata/locales/niu_NU: Likewise.
21693 * localedata/locales/niu_NZ: Likewise.
21694 * localedata/locales/nl_AW: Likewise.
21695 * localedata/locales/nl_BE: Likewise.
21696 * localedata/locales/nl_NL: Likewise.
21697 * localedata/locales/nn_NO: Likewise.
21698 * localedata/locales/nr_ZA: Likewise.
21699 * localedata/locales/nso_ZA: Likewise.
21700 * localedata/locales/oc_FR: Likewise.
21701 * localedata/locales/om_ET: Likewise.
21702 * localedata/locales/om_KE: Likewise.
21703 * localedata/locales/or_IN: Likewise.
21704 * localedata/locales/os_RU: Likewise.
21705 * localedata/locales/pa_IN: Likewise.
21706 * localedata/locales/pa_PK: Likewise.
21707 * localedata/locales/pap_AW: Likewise.
21708 * localedata/locales/pap_CW: Likewise.
21709 * localedata/locales/pl_PL: Likewise.
21710 * localedata/locales/ps_AF: Likewise.
21711 * localedata/locales/pt_BR: Likewise.
21712 * localedata/locales/pt_PT: Likewise.
21713 * localedata/locales/quz_PE: Likewise.
21714 * localedata/locales/raj_IN: Likewise.
21715 * localedata/locales/ro_RO: Likewise.
21716 * localedata/locales/ru_RU: Likewise.
21717 * localedata/locales/ru_UA: Likewise.
21718 * localedata/locales/rw_RW: Likewise.
21719 * localedata/locales/sa_IN: Likewise.
21720 * localedata/locales/sat_IN: Likewise.
21721 * localedata/locales/sc_IT: Likewise.
21722 * localedata/locales/sd_IN: Likewise.
21723 * localedata/locales/sd_IN@devanagari: Likewise.
21724 * localedata/locales/se_NO: Likewise.
21725 * localedata/locales/sgs_LT: Likewise.
21726 * localedata/locales/shs_CA: Likewise.
21727 * localedata/locales/si_LK: Likewise.
21728 * localedata/locales/sid_ET: Likewise.
21729 * localedata/locales/sk_SK: Likewise.
21730 * localedata/locales/sl_SI: Likewise.
21731 * localedata/locales/sm_WS: Likewise.
21732 * localedata/locales/so_DJ: Likewise.
21733 * localedata/locales/so_ET: Likewise.
21734 * localedata/locales/so_KE: Likewise.
21735 * localedata/locales/so_SO: Likewise.
21736 * localedata/locales/sq_AL: Likewise.
21737 * localedata/locales/sq_MK: Likewise.
21738 * localedata/locales/sr_ME: Likewise.
21739 * localedata/locales/sr_RS: Likewise.
21740 * localedata/locales/sr_RS@latin: Likewise.
21741 * localedata/locales/ss_ZA: Likewise.
21742 * localedata/locales/st_ZA: Likewise.
21743 * localedata/locales/sv_FI: Likewise.
21744 * localedata/locales/sv_SE: Likewise.
21745 * localedata/locales/sw_KE: Likewise.
21746 * localedata/locales/sw_TZ: Likewise.
21747 * localedata/locales/szl_PL: Likewise.
21748 * localedata/locales/ta_IN: Likewise.
21749 * localedata/locales/ta_LK: Likewise.
21750 * localedata/locales/tcy_IN: Likewise.
21751 * localedata/locales/te_IN: Likewise.
21752 * localedata/locales/tg_TJ: Likewise.
21753 * localedata/locales/th_TH: Likewise.
21754 * localedata/locales/the_NP: Likewise.
21755 * localedata/locales/ti_ER: Likewise.
21756 * localedata/locales/ti_ET: Likewise.
21757 * localedata/locales/tig_ER: Likewise.
21758 * localedata/locales/tk_TM: Likewise.
21759 * localedata/locales/tl_PH: Likewise.
21760 * localedata/locales/tn_ZA: Likewise.
21761 * localedata/locales/to_TO: Likewise.
21762 * localedata/locales/tpi_PG: Likewise.
21763 * localedata/locales/tr_CY: Likewise.
21764 * localedata/locales/tr_TR: Likewise.
21765 * localedata/locales/ts_ZA: Likewise.
21766 * localedata/locales/tt_RU: Likewise.
21767 * localedata/locales/tt_RU@iqtelif: Likewise.
21768 * localedata/locales/ug_CN: Likewise.
21769 * localedata/locales/uk_UA: Likewise.
21770 * localedata/locales/unm_US: Likewise.
21771 * localedata/locales/ur_IN: Likewise.
21772 * localedata/locales/ur_PK: Likewise.
21773 * localedata/locales/uz_UZ: Likewise.
21774 * localedata/locales/uz_UZ@cyrillic: Likewise.
21775 * localedata/locales/ve_ZA: Likewise.
21776 * localedata/locales/vi_VN: Likewise.
21777 * localedata/locales/wa_BE: Likewise.
21778 * localedata/locales/wae_CH: Likewise.
21779 * localedata/locales/wal_ET: Likewise.
21780 * localedata/locales/wo_SN: Likewise.
21781 * localedata/locales/xh_ZA: Likewise.
21782 * localedata/locales/yi_US: Likewise.
21783 * localedata/locales/yo_NG: Likewise.
21784 * localedata/locales/yue_HK: Likewise.
21785 * localedata/locales/yuw_PG: Likewise.
21786 * localedata/locales/zh_CN: Likewise.
21787 * localedata/locales/zh_HK: Likewise.
21788 * localedata/locales/zh_SG: Likewise.
21789 * localedata/locales/zh_TW: Likewise.
21790 * localedata/locales/zu_ZA: Likewise.
21791
21792 2017-11-13 Florian Weimer <fweimer@redhat.com>
21793
21794 * support/next_to_fault.h, support/next_to_fault.c: New files.
21795 * support/Makefile (libsupport-routines): Add next_to_fault.
21796 * resolv/tst-inet_pton.c (struct next_to_fault)
21797 (next_to_fault_allocate, next_to_fault_free): Remove.
21798 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
21799
21800 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
21801
21802 * elf/dl-support.c: Include <dl-procruntime.c>.
21803 * include/link.h: Include <link_map.h>.
21804 * sysdeps/generic/dl-procruntime.c: New file.
21805 * sysdeps/generic/link_map.h: Likewise.
21806 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
21807 the writable ld.so namespace.
21808
21809 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
21810
21811 timezone: pacify GCC -Wstringop-truncation
21812 Problem reported by Martin Sebor in:
21813 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
21814 * timezone/zic.c (writezone): Use memcpy, not strncpy.
21815
21816 2017-11-12 Florian Weimer <fweimer@redhat.com>
21817
21818 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
21819 tst-xreadlink.
21820 (tests): Add tst-xreadlink.
21821 * support/support.h (xstrndup): Declare.
21822 * support/xunistd.h (xunlink, xreadlink): Declare.
21823 * support/temp_file.h (support_create_temp_directory): Declare.
21824 * support/temp_file.c (support_create_temp_directory): New function.
21825 * support/support_chroot.c (support_chroot_create): Use it.
21826 * support/xreadlink.c: New file.
21827 * support/xstrndup.c: Likewise.
21828 * support/xunlink.c: Likewise.
21829 * support/tst-xreadlink.c: Likewise.
21830
21831 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
21832
21833 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
21834
21835 2017-11-11 Florian Weimer <fweimer@redhat.com>
21836
21837 [BZ #22409]
21838 [BZ #22412]
21839 * resolv/res_comp.c (printable_string, binary_hnok)
21840 (binary_leading_dash): New functions.
21841 (res_hnok): Reimplement using these functions and ns_name_pton.
21842 (res_ownok): Likewise.
21843 (res_mailok): Reimplement using printable_string, ns_name_pton and
21844 binary_hnok.
21845 (res_dnok): Reimplement using printable_string and ns_name_pton.
21846 * resolv/tst-res_hnok.c (tests): Add additional tests.
21847 (LETTERDIGITS, PRINTABLE): Define.
21848 (do_test): Adjust one_char results.
21849
21850 2017-11-11 Florian Weimer <fweimer@redhat.com>
21851
21852 [BZ #22413]
21853 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
21854 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
21855
21856 2017-11-11 Florian Weimer <fweimer@redhat.com>
21857
21858 * resolv/tst-ns_name_pton.c: New file.
21859 * resolv/Makefile (tests): Add tst-ns_name_pton.
21860 (tst-ns_name_pton): Link against libresolv.
21861
21862 2017-11-11 Florian Weimer <fweimer@redhat.com>
21863
21864 * resolv/tst-res_hnok.c: New file.
21865 * resolv/Makefile (tests): Add tst-res_hnok.
21866 (tst-res_hnok): Link against libresolv.
21867
21868 2017-11-11 Florian Weimer <fweimer@redhat.com>
21869
21870 * resolv/tst-resolv-network.c: Use test framework instead explicit
21871 main function.
21872
21873 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
21874
21875 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
21876 <jmp_buf-macros.h>.
21877 [!_ISOMAC] (STR_HELPER): New.
21878 [!_ISOMAC] (STR): Likewise.
21879 [!_ISOMAC] (TEST_SIZE): Likewise.
21880 [!_ISOMAC] (TEST_ALIGN): Likewise.
21881 [!_ISOMAC] (TEST_OFFSET): Likewise.
21882 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
21883 field offsets of jmp_buf as well as sigjmp_buf.
21884 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
21885 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
21886 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
21887 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
21888 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
21889 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
21890 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
21891 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
21892 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
21893 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
21894 Likewise.
21895 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
21896 Likewise.
21897 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
21898 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
21899 Likewise.
21900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
21901 Likewise.
21902 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
21903 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
21904 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
21905 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
21906 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
21907 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
21908 Likewise.
21909 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
21910 Likewise.
21911 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
21912 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
21913 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
21914
21915 2017-11-07 Joseph Myers <joseph@codesourcery.com>
21916
21917 * include/float.h
21918 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21919 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
21920 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21921 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
21922 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21923 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
21924 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21925 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
21926 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21927 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
21928 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21929 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
21930 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21931 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
21932 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21933 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
21934 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21935 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
21936 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21937 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
21938 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21939 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
21940 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21941 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
21942 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21943 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
21944 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21945 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
21946 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21947 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
21948 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21949 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
21950 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21951 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
21952 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21953 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
21954 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21955 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
21956 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21957 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
21958 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21959 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
21960 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21961 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
21962 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21963 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
21964 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21965 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
21966 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21967 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
21968 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21969 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
21970 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21971 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
21972 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21973 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
21974 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21975 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
21976 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21977 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
21978 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21979 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
21980 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21981 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
21982 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21983 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
21984 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21985 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
21986 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21987 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
21988 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21989 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
21990 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21991 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
21992 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21993 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
21994 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21995 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
21996 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21997 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
21998 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
21999 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22000 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22001 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22002 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22003 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22004 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22005 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22006
22007 * stdlib/tst-strtod.h (F16): New macro.
22008 (F32): Likewise.
22009 (F64): Likewise.
22010 (F32X): Likewise.
22011 (F64X): Likewise.
22012 (F128X): Likewise.
22013 (IF_FLOAT16): Likewise.
22014 (IF_FLOAT32): Likewise.
22015 (IF_FLOAT64): Likewise.
22016 (IF_FLOAT32X): Likewise.
22017 (IF_FLOAT64X): Likewise.
22018 (IF_FLOAT128X): Likewise.
22019 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22020 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22021 (STRTOD_TEST_FOREACH): Likewise.
22022 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22023 (CHOOSE_f64): Likewise.
22024 (CHOOSE_f32x): Likewise.
22025 (CHOOSE_f64x): Likewise.
22026
22027 2017-11-07 Andreas Schwab <schwab@suse.de>
22028
22029 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22030
22031 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22032
22033 [BZ #22403]
22034 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22035 to be escaped.
22036 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22037 to be escaped.
22038
22039 2017-11-07 Claude Paroz <claude@2xlibre.net>
22040
22041 [BZ #22403]
22042 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22043 to be escaped.
22044 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22045 to be escaped.
22046 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22047 to be escaped.
22048
22049 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22050
22051 [BZ #22298]
22052 * nptl/allocatestack.c (allocate_stack): Check if
22053 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22054 __PTHREAD_MUTEX_HAVE_PREV is defined.
22055 * nptl/descr.h (pthread): Likewise.
22056 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22057 Likewise.
22058 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22059 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22060 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22061 * sysdeps/nptl/bits/thread-shared-types.h
22062 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22063 defines.
22064 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22065 of __WORDSIZE for internal layout.
22066 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22067 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22068 instead of __WORDSIZE whether to use an union for __spins and __list
22069 fields.
22070 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22071 case.
22072 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22073 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22074 defines.
22075 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22076 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22077 Likewise.
22078 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22079 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22080 Likewise.
22081 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22082 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22083 Likewise.
22084 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22085 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22086 Likewise.
22087 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22088 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22089 Likewise.
22090 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22091 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22092 Likewise.
22093 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22094 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22095 Likewise.
22096 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22097 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22098 Likewise.
22099 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22100 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22101 Likewise.
22102 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22103 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22104 Likewise.
22105 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22106 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22107 Likewise.
22108 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22109 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22110 Likewise.
22111 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22112 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22113 Likewise.
22114 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22115 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22116 Likewise.
22117
22118 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22119 New macros.
22120 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22121 checks for expected input type size.
22122 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22123 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22124 Likewise.
22125 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22126 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22127 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22128 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22129 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22130 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22131 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22132 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22133 superflous runtime assert check.
22134 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22135 Likewise.
22136 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22137 Likewise.
22138 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22139 Likewise.
22140 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22141 Likewise.
22142 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22143 Likewise.
22144 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22145 Likewise.
22146 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22147 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22148 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22149 Likewise.
22150 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22151 Likewise.
22152 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22153 Likewise.
22154 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22155 Likewise.
22156 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22157 Likewise.
22158 * nptl/pthread_attr_setinheritsched.c
22159 (__pthread_attr_setinheritsched): Likewise.
22160 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22161 Likewise.
22162 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22163 Likewise.
22164 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22165 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22166 __old_pthread_attr_setstack): Likewise.
22167 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22168 Likewise.
22169 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22170 Likewise.
22171 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22172 Likewise.
22173 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22174 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22175 Likewise.
22176 * nptl/tst-typesizes.c: Remove file.
22177
22178 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22179 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22180 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22181 checks for internal pthread_mutex_t offsets.
22182 * sysdeps/aarch64/nptl/pthread-offsets.h
22183 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22184 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22185 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22186 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22187 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22188 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22189 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22190 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22191 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22192 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22193 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22194 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22195 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22196 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22197 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22198 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22199 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22200 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22201
22202 2017-11-07 Florian Weimer <fweimer@redhat.com>
22203
22204 * bits/mman-linux.h: Move ...
22205 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22206 comment.
22207 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22208 outdated comment.
22209
22210 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22211
22212 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22213 Redefine STRNLEN as __strnlen_power8.
22214
22215 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22216
22217 * signal/sighold.c (sighold): Optimize implementation.
22218
22219 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22220 __NR_rt_sigqueueinfo.
22221
22222 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22223 __sigtimedwait.
22224 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22225 assume __NR_rt_sigtimedwait.
22226 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22227 and add LIBC_CANCEL_HANDLED for cancellation marking.
22228 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22229
22230 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22231 (sysdeps_routines): Add memchr_noneon.
22232 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22233 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22234 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22235 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22236 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22237 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22238 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22239
22240 * sysdeps/arm/arm-ifunc.h: New file.
22241 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22242 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22243 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22244 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22245 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22246 (__memcpy_neon): Avoid create hidden alias.
22247 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22248 (__memcpy_vfp): Likewise.
22249 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22250 (sysdep_routines): Add memcpy_arm.
22251 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22252
22253 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22254
22255 [BZ #22362]
22256 * Makerules (make-link-multidir): New.
22257 * config.make.in (multidir): New.
22258 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22259 * configure: Regenerated.
22260 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22261 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22262 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22263 New target.
22264
22265 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22266
22267 [BZ #22402]
22268 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22269 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22270
22271 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22272
22273 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22274 to be escaped.
22275
22276 2017-11-04 Florian Weimer <fweimer@redhat.com>
22277
22278 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22279
22280 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22281
22282 * math/math.h [__HAVE_DISTINCT_FLOAT16
22283 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22284 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22285 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22286 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22287 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22288 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22289 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22290 (__MATH_TG_F32): New macro.
22291 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22292 (__MATH_TG_F64X): Likewise.
22293 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22294 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22295
22296 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22297
22298 * po/de.po: Update translations.
22299 * po/ru.po: Likewise.
22300
22301 2017-11-03 Florian Weimer <fweimer@redhat.com>
22302
22303 * manual/filesys.texi (Hard Links): Document linkat.
22304
22305 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22306
22307 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22308 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22309 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22310 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22311 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22312 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22313 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22314 the same as _Float128.
22315 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22316 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22317 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22318
22319 * stdlib/stdlib.h
22320 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22321 Declare.
22322 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22323 Likewise.
22324 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22325 Likewise.
22326 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22327 (strtof32x): Likewise.
22328 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22329 (strtof64x): Likewise.
22330 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22331 (strtof128x): Likewise.
22332 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22333 (strfromf16): Likewise.
22334 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22335 (strfromf32): Likewise.
22336 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22337 (strfromf64): Likewise.
22338 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22339 (strfromf32x): Likewise.
22340 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22341 (strfromf64x): Likewise.
22342 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22343 (strfromf128x): Likewise.
22344 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22345 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22346 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22347 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22348 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22349 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22350
22351 2017-11-03 Richard Henderson <rth@twiddle.net>
22352
22353 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22354
22355 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22356
22357 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22358
22359 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22360
22361 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22362 DT_TLSDESC_GOT initialization.
22363 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22364 (_dl_tlsdesc_resolve_hold): Likewise.
22365 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22366 (_dl_tlsdesc_resolve_hold): Likewise.
22367 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22368 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22369
22370 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22371
22372 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22373
22374 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22375
22376 [BZ #18572]
22377 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22378 non-lazily for R_ARM_TLS_DESC.
22379
22380 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22381
22382 [BZ #17078]
22383 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22384 R_ARM_TLS_DESC case.
22385 (elf_machine_lazy_rel): Remove the prelink check.
22386
22387 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22388
22389 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22390 DT_TLSDESC_GOT initialization.
22391 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22392 (_dl_tlsdesc_resolve_rela): Likewise.
22393 (_dl_tlsdesc_resolve_hold): Likewise.
22394 (_dl_tlsdesc_undefweak): Remove ldar.
22395 (_dl_tlsdesc_dynamic): Likewise.
22396 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22397 (_dl_tlsdesc_resolve_rela): Likewise.
22398 (_dl_tlsdesc_resolve_hold): Likewise.
22399 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22400 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22401 (_dl_tlsdesc_resolve_rela): Likewise.
22402 (_dl_tlsdesc_resolve_hold): Likewise.
22403
22404 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22405
22406 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22407 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22408
22409 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22410
22411 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22412 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22413
22414 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22415
22416 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22417 Declare.
22418 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22419 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22420 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22421 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22422 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22423 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22424 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22425 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22426 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22427 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22428 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22429
22430 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22431
22432 [BZ #22382]
22433 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22434 * localedata/locales/tpi_PG: Add standard header.
22435
22436 2017-11-02 Florian Weimer <fweimer@redhat.com>
22437
22438 test-errno-linux: quotactl can fail with EPERM in containers.
22439 * sysdeps/unix/sysv/linux/test-errno-linux.c
22440 (LIST, LIST_FORWARD): New macros.
22441 (check_error_in_list): New function.
22442 (test_wrp_rv): Accept list of permitted error codes.
22443 (test_wrp_rv2): Remove.
22444 (test_wrp): Call test_wrp_rv with list of error codes.
22445 (test_wrp2): Accept list of error codes.
22446 (do_test): Adjust. Allow EPERM for quotactl.
22447
22448 2017-11-02 Florian Weimer <fweimer@redhat.com>
22449
22450 * stdio-common/bug16.c (do_test): Use array_length.
22451 * stdio-common/errlist.c (_sys_nerr): Likewise.
22452 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22453 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22454 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22455 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22456 (do_test): Use array_length.
22457 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22458 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22459 * stdio-common/tst-printf-round.c (do_test): Likewise.
22460 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22461 (CHECK): Use array_length.
22462 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22463 * stdio-common/tstscanf.c (main): Likewise.
22464 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22465
22466 2017-11-02 Florian Weimer <fweimer@redhat.com>
22467
22468 Add array_length and array_end macros.
22469 * include/array_length.h: New file.
22470
22471 2017-11-02 Florian Weimer <fweimer@redhat.com>
22472
22473 [BZ #22332]
22474 * posix/tst-glob-tilde.c (do_noescape): New variable.
22475 (one_test): Process it.
22476 (do_test): Set do_noescape. Add unescaping test case.
22477
22478 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22479
22480 * math/complex.h
22481 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22482 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22483 with appropriate macros defined and undefined.
22484 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22485 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22486 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22487 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22488 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22489 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22490 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22491 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22492 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22493 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22494
22495 * math/complex.h
22496 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22497 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22498 that for long double. Do not condition define and undefine of
22499 _Mdouble_complex_ on [__CFLOAT128].
22500
22501 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22502
22503 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22504 of <sysdeps/generic/sysdep.h>.
22505 (ALIGNARG): Removed.
22506 (ASM_SIZE_DIRECTIVE): Likewise.
22507 (ENTRY): Likewise.
22508 (END): Likewise.
22509 (ENTRY_CHK): Likewise.
22510 (END_CHK): Likewise.
22511 (syscall_error): Likewise.
22512 (mcount): Likewise.
22513 (PSEUDO_END): Likewise.
22514 (L): Likewise.
22515 (atom_text_section): Likewise.
22516 * sysdeps/x86/sysdep.h: New file.
22517 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22518 of <sysdeps/generic/sysdep.h>.
22519 (ALIGNARG): Removed.
22520 (ASM_SIZE_DIRECTIVE): Likewise.
22521 (ENTRY): Likewise.
22522 (END): Likewise.
22523 (ENTRY_CHK): Likewise.
22524 (END_CHK): Likewise.
22525 (syscall_error): Likewise.
22526 (mcount): Likewise.
22527 (PSEUDO_END): Likewise.
22528 (L): Likewise.
22529 (atom_text_section): Likewise.
22530
22531 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22532
22533 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22534 category of LC_CTYPE set to "i18n:2012".
22535 * localedata/locales/i18n_ctype: Regenerate.
22536
22537 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22538
22539 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22540 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22541 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22542 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22543
22544 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22545 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22546 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22547 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22548
22549 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22550
22551 * math/complex.h
22552 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22553 New macro.
22554 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22555 Likewise.
22556 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22557 Likewise.
22558 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22559 (CMPLXF32X): Likewise.
22560 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22561 (CMPLXF64X): Likewise.
22562 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22563 (CMPLXF128X): Likewise.
22564
22565 * math/math.h
22566 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22567 (__MATH_EVAL_FMT2): Define to add 0.0f.
22568
22569 2017-10-31 Alan Modra <amodra@gmail.com>
22570
22571 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22572 include sysdep.h.
22573 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22574 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22575 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22576 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22577 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22578 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22579 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22580 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22581 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22582 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22583 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22584 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22585 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22586 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22587 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22588 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22589 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22590 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22591 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22592 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22593 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22594 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22595 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22596 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22597 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22598 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22599 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22600 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22601 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22602 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22603 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22604 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22605 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22606 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22607 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22608 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22609 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22610 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22611 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22612 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22613 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22614 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22615 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22616 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22617 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22618 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22619 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22620 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22621 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22622 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22623 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22624 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22625 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22626 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22627 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22628 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22629 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22630 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22631 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22632 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22633 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22634 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22635 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22636 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22637 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22638 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22639 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22640 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22641 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22642
22643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22644 include sysdep.h and math_ldbl_opt.h.
22645
22646 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
22647 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
22648 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
22649 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
22650 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
22651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
22652 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
22653 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
22654 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
22655 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
22656 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
22657 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
22658 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
22659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
22660 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
22661 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
22662 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
22663 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
22664 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
22665 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
22666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
22667 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
22668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
22669 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
22670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
22671 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
22672
22673 2017-10-31 Alan Modra <amodra@gmail.com>
22674
22675 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
22676 string/strncase_l.c, not string/strncase.c.
22677 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
22678 (libc_hidden_def): Redefine.
22679
22680 2017-10-31 Alan Modra <amodra@gmail.com>
22681
22682 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
22683 (__STRCMP, STRCMP, __strcasecmp_l): Define.
22684 (__strcasecmp): Don't define.
22685
22686 2017-10-31 Alan Modra <amodra@gmail.com>
22687
22688 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
22689 IS_IN (libc).
22690 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22691 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22692 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22693
22694 2017-10-31 Alan Modra <amodra@gmail.com>
22695
22696 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
22697 USE_AS_STPNCPY.
22698
22699 2017-10-31 Alan Modra <amodra@gmail.com>
22700
22701 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
22702 Redefine only when SHARED.
22703
22704 2017-10-30 Joseph Myers <joseph@codesourcery.com>
22705
22706 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
22707 Include <bits/math-finite.h> with appropriate macros defined and
22708 undefined.
22709 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
22710 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
22711 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
22712 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
22713 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
22714
22715 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
22716 [!_Mlong_double_] (_Mlong_double_): Likewise.
22717 [!_Mfloat16_] (_Mfloat16_): Likewise.
22718 [!_Mfloat32_] (_Mfloat32_): Likewise.
22719 [!_Mfloat64_] (_Mfloat64_): Likewise.
22720 [!_Mfloat128_] (_Mfloat128_): Likewise.
22721 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
22722 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
22723 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
22724 (_Mdouble_): Define without indirection through those macros.
22725 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
22726 [!_Mfloat128_] (_Mfloat128_): Likewise.
22727 [_Mlong_double_] (_Mlong_double_): Likewise.
22728 (_Mdouble_): Define without indirection through those macros.
22729 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
22730 not add -D_Mlong_double_=double.
22731 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
22732 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
22733
22734 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22735
22736 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
22737
22738 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22739
22740 * sysdeps/x86/libc-start.c: Reformat.
22741
22742 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22743
22744 [BZ #22353]
22745 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
22746 (1): Renamed to ...
22747 (L(Src0)): This.
22748 (L(Src1)): New.
22749 (L(Src2)): Likewise.
22750 (L(1)): Renamed to ...
22751 (L(Src3)): This.
22752
22753 2017-10-30 Joseph Myers <joseph@codesourcery.com>
22754
22755 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
22756 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
22757 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
22758 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
22759 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
22760 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
22761 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
22762 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
22763 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
22764 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
22765 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
22766 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
22767 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
22768 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
22769 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
22770 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
22771 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
22772 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
22773 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
22774 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
22775 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
22776 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
22777 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
22778 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
22779 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
22780 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
22781 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
22782 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
22783 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
22784 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
22785 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
22786 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
22787 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
22788 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
22789 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
22790 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
22791 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
22792 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
22793 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
22794 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
22795 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
22796 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
22797 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
22798 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
22799 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
22800 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
22801 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
22802 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
22803 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
22804 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
22805 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
22806 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
22807 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
22808 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
22809 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
22810 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
22811 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
22812 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
22813 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
22814 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
22815 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
22816 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
22817 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
22818 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
22819 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
22820 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
22821
22822 2017-10-30 Florian Weimer <fweimer@redhat.com>
22823
22824 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
22825 always defined.
22826 * io/tst-mkdirat.c (do_test): Likewise.
22827 * io/tst-mkfifoat.c (do_test): Likewise.
22828 * io/tst-mknodat.c (do_test): Likewise.
22829 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
22830 * locale/programs/locale.c (select_dirs): Likewise.
22831 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
22832 * posix/bug-glob2.c (my_readdir): Likewise.
22833 * posix/tst-dir.c (main): Likewise.
22834 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
22835 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
22836
22837 2017-10-30 Florian Weimer <fweimer@redhat.com>
22838
22839 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
22840 just __USE_GNU.
22841
22842 2017-10-30 Florian Weimer <fweimer@redhat.com>
22843
22844 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
22845 Convert to support/test-driver.c.
22846 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
22847 New macro parameters.
22848 (PRINTF): Remove macro. Use test_verbose conditionals instead.
22849 * posix/tst-gnuglob.c: New file.
22850 * posix/tst-gnuglob64.c: Likewise.
22851 * posix/Makefile (tests): Add tst-gnuglob64.
22852
22853 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
22854
22855 [BZ #19485]
22856 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
22857 and use a better translation for March in “mon”.
22858 * localedata/locales/csb_PL: Use more ASCII to improve the
22859 readability of the source.
22860
22861 2017-10-30 Mike FABIAN <mfabian@redhat.com>
22862
22863 [BZ #13953]
22864 * localedata/locales/km_KH: Use ASCII as much
22865 as possible for better readability of the source and
22866 remove useless comments.
22867 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
22868 was commented out and apparently wrong anyway because it was
22869 using Lao characters. If Buddhist era should be used
22870 for km_KH, a native speaker should write the correct formaat
22871 for Khmer.
22872 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
22873 (According to CLDR, the first weekday for Cambodia is Sunday).
22874 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
22875 (These were using Lao characters which must be wrong. If we get
22876 the correct data from a native speaker, we could add it back, until
22877 then it is better not to have name_mr and name_mrs at all than
22878 having it wrong).
22879
22880 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
22881
22882 * locale/loadlocale.c: Correct size of
22883 _nl_value_type_LC_<category> arrays.
22884
22885 2017-10-27 Joseph Myers <joseph@codesourcery.com>
22886
22887 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
22888 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
22889 with appropriate macros defined and undefined.
22890 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
22891 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
22892 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
22893 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
22894 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
22895
22896 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
22897
22898 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
22899 "-O2 -march=i586".
22900
22901 2017-10-27 Mike FABIAN <mfabian@redhat.com>
22902
22903 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
22904 with lowercase letters to make it agree with CLDR.
22905
22906 2017-10-27 Mike FABIAN <mfabian@redhat.com>
22907
22908 [BZ #15260]
22909 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
22910 first letters of yesstr and nostr in yesexpr and noexpr,
22911 not for the full words.
22912 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
22913 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
22914 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
22915 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
22916 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
22917 first letters of yesstr and nostr in yesexpr and noexpr,
22918 until now only English was matched in yesexpr and noexpr.
22919 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
22920 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
22921 fil but not for tl. As tl and fil are very similar, using fil
22922 is probably better than using English.
22923
22924 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
22925
22926 [BZ #21706]
22927 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
22928 in yesstr and nostr.
22929
22930 2017-10-26 Joseph Myers <joseph@codesourcery.com>
22931
22932 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
22933 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
22934 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
22935 Likewise.
22936 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
22937 Likewise.
22938 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
22939 Likewise.
22940 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
22941 Likewise.
22942 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22943 (SNANF128X): Likewise.
22944
22945 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
22946 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
22947 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22948 (HUGE_VAL_F32): Likewise.
22949 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22950 (HUGE_VAL_F64): Likewise.
22951 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22952 (HUGE_VAL_F32X): Likewise.
22953 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22954 (HUGE_VAL_F64X): Likewise.
22955 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22956 (HUGE_VAL_F128X): Likewise.
22957
22958 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
22959
22960 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
22961 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
22962 for the br_FR locale.
22963
22964 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
22965
22966 [BZ #21706]
22967 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
22968
22969 2017-10-25 Carlos O'Donell <carlos@redhat.com>
22970
22971 * locale/programs/record-status.h: Define globals, and function
22972 prototypes. Move function bodies...
22973 * locale/programs/record-status.c: ... to here. New file.
22974 * iconv/Makefile (iconv_prog-modules): Add record-status.
22975 * locale/Makefile (lib-modules): Likewise.
22976 * iconv/iconv_prog.c: Remove verbose.
22977 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
22978 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
22979 record a warning about ASCII compatibility.
22980 * locale/programs/ld-monetary.c (monetary_finish): If
22981 warn_int_curr_symbol is true then record a warning about the symbol
22982 not being in our ISO 4217 list.
22983 * locale/programs/locale.c: Include record-status.h. Remove verbose.
22984 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
22985 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
22986 (OPT_NO_WARN): Define.
22987 (OPT_WARN): Define.
22988 (options): Add entry for --no-warnings, and --warnings.
22989 (set_warnings): New function to enable/disable warnings.
22990 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
22991 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
22992 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
22993 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
22994 Pass flags to generate_locale.
22995 (generate_locale): Accept new flag argument and pass it to localedef
22996 invocation.
22997 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
22998 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
22999
23000 * localedata/Makefile (test-input-data): Use full file name.
23001 * localedata/da_DK.in: Rename to...
23002 * localedata/da_DK.ISO-8859-1.in: ...this.
23003 * localedata/de_DE.in: Rename to...
23004 * localedata/de_DE.ISO-8859-1.in: ...this.
23005 * localedata/en_US.in: Rename to...
23006 * localedata/en_US.ISO-8859-1.in: ...this.
23007 * localedata/fr_FR.in: Rename to...
23008 * localedata/fr_FR.UTF-8.in: ... this.
23009 * localedata/hr_HR.in: Rename to...
23010 * localedata/hr_HR.ISO-8859-2.in: ...this.
23011 * localedata/hu_HU.in: Rename to...
23012 * localedata/hu_HU.UTF-8.in: ...this.
23013 * localedata/si_LK.in: Rename to...
23014 * localedata/si_LK.UTF-8.in: ...this.
23015 * localedata/sv_SE.in: Rename to...
23016 * localedata/sv_SE.ISO-8859-1.in: ...this.
23017 * localedata/tr_TR.in: Rename to...
23018 * localedata/tr_TR.UTF-8.in: ...this.
23019 * localedata/uk_UA.in: Rename to...
23020 * localedata/uk_UA.UTF-8.in: ...this.
23021 * localedata/sort-test.sh: Test file is locale name with the
23022 suffix.
23023
23024 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23025 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23026 file.
23027 * localedata/locales/i18n_ctype: Regenerate.
23028 * localedata/locales/tr_TR: Likewise.
23029 * localedata/locales/translit_circle: Likewise.
23030 * localedata/locales/translit_cjk_compat: Likewise.
23031 * localedata/locales/translit_combining: Likewise.
23032 * localedata/locales/translit_compat: Likewise.
23033 * localedata/locales/translit_font: Likewise.
23034 * localedata/locales/translit_fraction: Likewise.
23035
23036 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23037
23038 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23039 lxvd2x/stxvd2x with lvx/stvx.
23040 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23041
23042 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23043
23044 * include/alloc_buffer.h: Replace "if if " with "if " in
23045 comments.
23046 * sysdeps/mips/memcpy.S: Likkewise.
23047 * sysdeps/mips/memset.S: Likewise.
23048 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23049 Likewise.
23050 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23051 Likewise.
23052 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23053 Likewise.
23054
23055 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23056
23057 [BZ #15261]
23058 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23059 yesexpr and noexpr.
23060 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23061 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23062 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23063 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23064 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23065 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23066 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23067
23068 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23069
23070 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23071 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23072 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23073 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23074 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23075 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23076 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23077 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23078 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23079 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23080 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23081 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23082
23083 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23084
23085 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23086 as possible for better readability of the source.
23087 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23088 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23089 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23090 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23091 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23092 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23093 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23094 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23095 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23096 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23097 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23098 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23099 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23100 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23101 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23102 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23103 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23104 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23105 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23106 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23107 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23108 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23109 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23110 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23111 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23112 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23113 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23114 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23115 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23116 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23117 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23118 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23119 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23120 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23121 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23122 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23123 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23124 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23125 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23126 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23127 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23128 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23129 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23130 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23131 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23132 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23133 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23134 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23135 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23136 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23137 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23138 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23139 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23140 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23141 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23142 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23143 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23144 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23145 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23146 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23147 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23148 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23149 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23150 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23151 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23152 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23153 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23154 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23155 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23156 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23157 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23158 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23159 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23160 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23161 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23162 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23163 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23164 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23165 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23166 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23167 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23168 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23169 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23170 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23171 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23172 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23173 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23174 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23175 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23176 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23177 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23178 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23179 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23180 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23181 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23182 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23183 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23184 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23185 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23186 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23187 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23188 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23189 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23190 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23191 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23192 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23193 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23194 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23195 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23196 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23197 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23198 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23199 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23200 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23201 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23202 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23203 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23204 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23205 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23206 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23207 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23208 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23209 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23210 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23211 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23212 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23213 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23214 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23215 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23216 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23217 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23218 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23219 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23220 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23221 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23222 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23223 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23224 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23225 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23226 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23227 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23228 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23229 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23230 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23231 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23232 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23233 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23234 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23235 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23236 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23237 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23238 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23239 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23240 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23241 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23242 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23243 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23244 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23245 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23246 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23247 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23248 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23249 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23250 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23251 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23252 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23253 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23254 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23255 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23256 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23257 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23258 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23259 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23260 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23261
23262 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23263
23264 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23265 (Use first letters of yesstr and nostr correctly instead of using
23266 full words).
23267
23268 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23269
23270 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23271 (Use first letters of yesstr and nostr correctly).
23272
23273 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23274
23275 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23276 also check for the first characters of yesstr and nostr.
23277 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23278 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23279
23280 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23281
23282 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23283 also check for Chinese characters.
23284
23285 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23286
23287 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23288 match also for the contents of yesstr and nostr. As the first letter
23289 of yesstr and nostr is equal, checking only for the first letter
23290 is not enough.
23291
23292 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23293
23294 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23295 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23296
23297 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23298
23299 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23300 of main contributor.
23301
23302 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23303
23304 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23305 instead of using English.
23306
23307 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23308
23309 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23310 by including the first letters of nostr and yesexpr in the regexp.
23311 Also make it more readable by using ASCII where possible.
23312
23313 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23314
23315 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23316 the first letter of nostr in the regexp. It agrees with CLDR now.
23317 Also make it more readable by using ASCII where possible.
23318
23319 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23320
23321 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23322 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23323 these strings contain a U+17D6 (which somewhat looks like a colon)
23324 instead of a real colon to separate the full words for “yes”
23325 and “no” from the single letter responses.
23326
23327 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23328
23329 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23330 it agree with CLDR (include the first letter of yesstr).
23331 Also make it more readable by using ASCII where possible.
23332
23333 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23334
23335 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23336 and improve yesexpr and noexpr. The yesstr and nostr apparently
23337 came from CLDR. And CLDR has a bug there: these strings contain
23338 a U+0903 (which looks like a colon) instead of a real colon
23339 to separate the full words for “yes” and “no” from the single
23340 letter responses.
23341
23342 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23343
23344 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23345 letters of the full yesstr and nostr in yesexpr and noexpr.
23346
23347 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23348
23349 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23350 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23351 * localedata/locales/an_ES: Make source more readable by using ASCII
23352 where possible.
23353
23354 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23355
23356 [BZ #20952]
23357 * localedata/locales/yuw_PG: New file.
23358 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23359 * locale/iso-639.def: Add Yau (Uruwa).
23360
23361 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23362
23363 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23364
23365 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23366
23367 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23368 (__libc_realloc): Likewise.
23369 (_mid_memalign): Likewise.
23370 (__libc_calloc): Likewise.
23371
23372 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23373
23374 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23375 by adding the generic +1 and -0 as in all other locales.
23376 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23377 day names and make it more readable by using ASCII where possible.
23378
23379 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23380
23381 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23382 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23383
23384 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23385
23386 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23387 WNOHANG in waitpid call.
23388
23389 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23390
23391 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23392 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23393
23394 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23395 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23396 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23397 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23398 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23399 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23400 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23401 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23402 variables.
23403
23404 2017-10-23 Michael Collison <michael.collison@arm.com>
23405
23406 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23407 with __builtin_sqrt.
23408 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23409 with __builtin_sqrtf.
23410 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23411 with __builtin_ceil.
23412 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23413 with __builtin_ceilf.
23414 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23415 with __builtin_floor.
23416 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23417 with __builtin_floorf.
23418 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23419 with __builtin_fma.
23420 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23421 with __builtin_fmaf.
23422 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23423 with __builtin_fmax.
23424 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23425 with __builtin_fmaxf.
23426 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23427 with __builtin_fmin.
23428 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23429 with __builtin_fminf.
23430 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23431 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23432 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23433 with builtin_rint and conversion to int.
23434 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23435 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23436 with builtin_llround.
23437 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23438 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23439 with builtin_rint and conversion to long int.
23440 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23441 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23442 with builtin_lround.
23443 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23444 with builtin_lroundf.
23445 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23446 statements with __builtin_nearbyint.
23447 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23448 statements with __builtin_nearbyintf.
23449 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23450 with __builtin_rint.
23451 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23452 with __builtin_rintf.
23453 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23454 with __builtin_round.
23455 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23456 with __builtin_roundf.
23457 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23458 with __builtin_trunc.
23459 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23460 with __builtin_truncf.
23461 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23462 and s_l[l]round[f].c too.
23463
23464 2017-10-23 Alan Modra <amodra@gmail.com>
23465
23466 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23467 Adjust stack after restoring regs. Add missing LR cfi_restore.
23468
23469 2017-10-23 Alan Modra <amodra@gmail.com>
23470
23471 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23472 Move LR save and frame setup/teardown and LR restore to
23473 immediately around memset call. Provide cfi.
23474
23475 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23476
23477 * sysdeps/i386/fpu/e_powf.S: Removed.
23478 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23479 * sysdeps/i386/fpu/w_powf.c: Likewise.
23480 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23481 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23482 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23483 Add e_powf-sse2.
23484 (CFLAGS-e_powf-sse2.c): New.
23485 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23486 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23487
23488 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23489
23490 * sysdeps/i386/fpu/e_log2f.S: Removed.
23491 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23492 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23493 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23494 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23495 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23496 Add e_log2f-sse2.
23497 (CFLAGS-e_log2f-sse2.c): New.
23498 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23499 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23500
23501 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23502
23503 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23504 Add e_powf-fma.
23505 (CFLAGS-e_powf-fma.c): New.
23506 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23507 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23508
23509 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23510
23511 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23512 Add e_log2f-fma.
23513 (CFLAGS-e_log2f-fma.c): New.
23514 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23515 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23516
23517 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23518
23519 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23520 Add e_logf-fma.
23521 (CFLAGS-e_logf-fma.c): New.
23522 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23523 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23524
23525 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23526
23527 * sysdeps/i386/fpu/e_logf.S: Removed.
23528 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23529 * sysdeps/i386/fpu/w_logf.c: Likewise.
23530 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23531 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23532 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23533 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23534 Add e_logf-sse2.
23535 (CFLAGS-e_logf-sse2.c): New.
23536 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23537 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23538
23539 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23540
23541 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23542 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23543 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23544 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23545 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23546 Add e_exp2f-sse2.
23547 (CFLAGS-e_exp2f-sse2.c): New.
23548 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23549 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23550
23551 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23552
23553 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23554 Add e_exp2f-fma.
23555 (CFLAGS-e_exp2f-fma.c): New.
23556 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23557 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23558
23559 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23560
23561 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23562 * sysdeps/i386/fpu/e_expf.S: Likewise.
23563 * sysdeps/i386/fpu/math_errf.c: Likewise.
23564 * sysdeps/i386/fpu/w_expf.c: Likewise.
23565 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23566 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23567 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23568 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23569 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23570 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23571 Remove e_expf-ia32.
23572 (CFLAGS-e_expf-sse2.c): New.
23573 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23574 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23575
23576 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23577
23578 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23579 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23580 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23581 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23582 e_expf.c.
23583 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23584 New.
23585 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23586 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23587 Renamed to ...
23588 (__redirect_expf): This.
23589 (SYMBOL_NAME): Changed to expf.
23590 (__ieee754_expf): Renamed to ...
23591 (__expf): This.
23592 (__GI___expf): This.
23593 (__ieee754_expf): Add strong_alias.
23594 (__expf_finite): Likewise.
23595 (__expf): New.
23596 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23597
23598 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23599
23600 [BZ #22332]
23601 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23602 unescaping.
23603
23604 2017-10-21 Florian Weimer <fweimer@redhat.com>
23605
23606 * posix/Makefile (tests): Add tst-glob-tilde.
23607 (tests-special): Add tst-glob-tilde-mem.out
23608 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23609 (tst-glob-tilde-mem.out): Add mtrace check.
23610 * posix/tst-glob-tilde.c: New file.
23611
23612 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23613
23614 * bits/floatn-common.h: New file.
23615 * math/Makefile (headers): Add bits/floatn-common.h.
23616 * bits/floatn.h: Include <bits/floatn-common.h>.
23617 * sysdeps/ia64/bits/floatn.h: Likewise.
23618 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23619 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23620 * sysdeps/powerpc/bits/floatn.h: Likewise.
23621 * sysdeps/x86/bits/floatn.h: Likewise.
23622
23623 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23624
23625 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23626 indicates whether compiler emits an warning for alias for
23627 functions with incompatible types.
23628
23629 [BZ #22273]
23630 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23631 the auxiliary process is terminated by a signal before calling _exit
23632 or execve.
23633
23634 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23635
23636 [BZ #21265]
23637 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23638 New.
23639 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23640 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23641 and bit_arch_XSAVEC_Usable if needed.
23642 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23643 and bit_arch_Use_dl_runtime_resolve_opt.
23644 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23645 Removed.
23646 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
23647 (bit_arch_Prefer_No_AVX512): Updated.
23648 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
23649 (bit_arch_XSAVEC_Usable): New.
23650 (STATE_SAVE_OFFSET): Likewise.
23651 (STATE_SAVE_MASK): Likewise.
23652 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
23653 (cpu_features): Add xsave_state_size and xsave_state_full_size.
23654 (index_arch_Use_dl_runtime_resolve_opt): Removed.
23655 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
23656 (index_arch_XSAVEC_Usable): New.
23657 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23658 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
23659 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
23660 is enabled.
23661 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
23662 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
23663 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
23664 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
23665 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
23666 _dl_runtime_resolve_xsavec.
23667 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
23668 Removed.
23669 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
23670 instead of VEC_SIZE.
23671 (REGISTER_SAVE_BND0): Removed.
23672 (REGISTER_SAVE_BND1): Likewise.
23673 (REGISTER_SAVE_BND3): Likewise.
23674 (REGISTER_SAVE_RAX): Always defined to 0.
23675 (VMOV): Removed.
23676 (_dl_runtime_resolve_avx): Likewise.
23677 (_dl_runtime_resolve_avx_slow): Likewise.
23678 (_dl_runtime_resolve_avx_opt): Likewise.
23679 (_dl_runtime_resolve_avx512): Likewise.
23680 (_dl_runtime_resolve_avx512_opt): Likewise.
23681 (_dl_runtime_resolve_sse): Likewise.
23682 (_dl_runtime_resolve_sse_vex): Likewise.
23683 (USE_FXSAVE): New.
23684 (_dl_runtime_resolve_fxsave): Likewise.
23685 (USE_XSAVE): Likewise.
23686 (_dl_runtime_resolve_xsave): Likewise.
23687 (USE_XSAVEC): Likewise.
23688 (_dl_runtime_resolve_xsavec): Likewise.
23689 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
23690 Removed.
23691 (_dl_runtime_resolve_avx512_opt): Likewise.
23692 (_dl_runtime_resolve_avx): Likewise.
23693 (_dl_runtime_resolve_avx_opt): Likewise.
23694 (_dl_runtime_resolve_sse): Likewise.
23695 (_dl_runtime_resolve_sse_vex): Likewise.
23696 (_dl_runtime_resolve_fxsave): New.
23697 (_dl_runtime_resolve_xsave): Likewise.
23698 (_dl_runtime_resolve_xsavec): Likewise.
23699
23700 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
23701
23702 [BZ #22320]
23703 CVE-2017-15670
23704 * posix/glob.c (__glob): Fix one-byte overflow.
23705
23706 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23707
23708 * malloc/malloc.c (sysdep-cancel.h): Add include.
23709
23710 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23711
23712 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
23713
23714 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
23715
23716 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
23717 (tests): Remove $(objpfx)ga_test depdendency.
23718 * resolv/ga_test.c: Remove file.
23719
23720 2017-10-20 Mike FABIAN <mfabian@redhat.com>
23721
23722 [BZ #18812]
23723 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
23724 * localedata/locales/kab_DZ: New file.
23725
23726 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23727
23728 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
23729 _dl_relocate_static_pie instead of _dl_start to compute load
23730 address in static PIE.
23731
23732 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23733
23734 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
23735
23736 2017-10-20 Mike FABIAN <mfabian@redhat.com>
23737
23738 [BZ #13605]
23739 * localedata/SUPPORTED: Add shn_MM/UTF-8.
23740 * localedata/locales/shn_MM: New file.
23741
23742 2017-10-20 Florian Weimer <fweimer@redhat.com>
23743
23744 [BZ #22321]
23745 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
23746 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
23747 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
23748 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
23749 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
23750 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
23751
23752 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
23753
23754 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
23755
23756 2017-10-19 Joseph Myers <joseph@codesourcery.com>
23757
23758 * sysdeps/mips/ieee754/bits/floatn.h: New file.
23759
23760 [BZ #22322]
23761 * sysdeps/mips/bits/long-double.h: Move to ....
23762 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
23763
23764 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
23765
23766 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
23767
23768 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
23769 H.J. Lu <hongjiu.lu@intel.com>
23770
23771 [BZ #22299]
23772 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
23773 GLRO(dl_platform) to NULL.
23774 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
23775 (modules-names): Add tst-platformmod-1 and
23776 x86_64/tst-platformmod-2.
23777 (CFLAGS-tst-platform-1.c): New.
23778 (CFLAGS-tst-platformmod-1.c): Likewise.
23779 (CFLAGS-tst-platformmod-2.c): Likewise.
23780 (LDFLAGS-tst-platformmod-2.so): Likewise.
23781 ($(objpfx)tst-platform-1): Likewise.
23782 ($(objpfx)tst-platform-1.out): Likewise.
23783 (tst-platform-1-ENV): Likewise.
23784 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
23785 * sysdeps/x86_64/tst-platform-1.c: New file.
23786 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
23787 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
23788
23789 2017-10-19 Mike FABIAN <mfabian@redhat.com>
23790
23791 [BZ #13994]
23792 * locale/iso-639.def: Add Karbi.
23793 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
23794 * localedata/locales/mjw_IN: New file.
23795
23796 2017-10-18 Joseph Myers <joseph@codesourcery.com>
23797
23798 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
23799 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23800 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
23801 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
23802 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
23803 (libm_alias_ldouble_other_r): Also create _Float128 alias.
23804 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
23805 <bits/floatn.h>.
23806 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
23807 (libm_alias_ldouble_other_r): Also create _Float128 alias.
23808 * manual/math.texi (Mathematics): Document additional architecture
23809 support for _Float128.
23810 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23811 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23812 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23813 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23814 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23815 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23816 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23817 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23818 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23819 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23820 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23821 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23822 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23823 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23824 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23825
23826 2017-10-18 Renlin Li <renlin.li@arm.com>
23827
23828 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
23829 _DYNAMIC symbol to calculate load address.
23830
23831 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
23832
23833 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
23834 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
23835 summary bits.
23836 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
23837 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
23838
23839 2017-10-18 Mike FABIAN <mfabian@redhat.com>
23840
23841 [BZ #16777]
23842 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
23843 and improve readability by using more ASCII.
23844 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
23845 and improve readability by using more ASCII.
23846
23847 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
23848
23849 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
23850 not all targets support atomics on bool.
23851
23852 2017-10-17 Joseph Myers <joseph@codesourcery.com>
23853
23854 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
23855 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
23856 __f128.
23857 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
23858 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
23859 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
23860 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
23861 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
23862 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
23863
23864 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23865
23866 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
23867 defines.
23868
23869 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
23870
23871 [BZ #22159]
23872 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
23873 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
23874 (do_check_remalloced_chunk): Fix build bug.
23875 (do_check_malloc_state): Add assert that checks arena->top.
23876 (malloc_consolidate): Remove initialization.
23877 (int_mallinfo): Remove call to malloc_consolidate.
23878 (__libc_mallopt): Clarify why malloc_consolidate is needed.
23879
23880 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
23881
23882 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
23883 (have_fastchunks): Remove.
23884 (clear_fastchunks): Remove.
23885 (set_fastchunks): Remove.
23886 (malloc_state): Add have_fastchunks.
23887 (malloc_init_state): Use have_fastchunks.
23888 (do_check_malloc_state): Remove incorrect invariant checks.
23889 (_int_malloc): Use have_fastchunks.
23890 (_int_free): Likewise.
23891 (malloc_consolidate): Likewise.
23892
23893 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
23894
23895 * malloc/malloc.c (tcache_put): Inline.
23896 (tcache_get): Inline.
23897
23898 2017-10-17 Jordi Mallach <jordi@gnu.org>
23899
23900 Aurelien Jarno <aurelien@aurel32.net>
23901 [BZ #2522]
23902 * localedata/locales/ca_ES@valencia: New file.
23903 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
23904
23905 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
23906
23907 [BZ #22296]
23908 * math/math.h: Let signbit use the builtin in C++ mode with gcc
23909 < 6.x
23910
23911 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23912
23913 * scripts/build-many-glibcs.py (Context.add_all_configs):
23914 Add arm-linux-gnueabihf multiarch extra_glibcs.
23915
23916 * sysdeps/generic/ifunc-init.h: New file.
23917 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
23918
23919 2017-10-17 Mike FABIAN <mfabian@redhat.com>
23920
23921 [BZ #22019]
23922 * localedata/locales/el_GR: Set n_cs_precedes to 0.
23923 * localedata/locales/el_CY: copy "el_GR" because it is identical.
23924 * stdlib/tst-strfmon_l.c: adapt test case.
23925
23926 2017-10-16 Joseph Myers <joseph@codesourcery.com>
23927
23928 * sysdeps/generic/float128-abi.h: New file.
23929 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
23930 non-__prefixed symbols to ....
23931 * math/Versions: ... here. Include <float128-abi.h>.
23932 * stdlib/Versions ... and here. Include <float128-abi.h>
23933
23934 2017-10-16 Florian Weimer <fweimer@redhat.com>
23935
23936 * version.h (VERSION): Switch to ".9000" as the development
23937 version suffix.
23938
23939 2017-10-16 Florian Weimer <fweimer@redhat.com>
23940
23941 [BZ #22050]
23942 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
23943 compat_symbol_reference to access non-default version.
23944
23945 2017-10-16 Florian Weimer <fweimer@redhat.com>
23946
23947 * malloc/Makefile (others-extras): Set to mcheck-init.o.
23948
23949 2017-10-16 Carlos O'Donell <carlos@redhat.com>
23950
23951 * include/shlib-compat.h (compat_symbol_reference): Update
23952 comment.
23953
23954 2017-10-16 Joseph Myers <joseph@codesourcery.com>
23955
23956 * math/Makefile (test-types): Add
23957 $(type-float128-$(float128-alias-fcts)).
23958 * math/test-float128.h (TYPE_STR): Define conditional on
23959 [FLT128_MANT_DIG == LDBL_MANT_DIG].
23960 (ULP_IDX): Likewise.
23961 (ULP_I_IDX): Likewise.
23962
23963 * stdlib/strtold.c: Include <bits/floatn.h>
23964 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
23965 and later undefine as macro. Define as weak alias if
23966 [!USE_WIDE_CHAR].
23967 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
23968 and later undefine as macro. Define as weak alias if
23969 [USE_WIDE_CHAR].
23970 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
23971 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
23972 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23973 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
23974 Define and later undefine as macro. Define as weak alias if
23975 [USE_WIDE_CHAR].
23976 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
23977 <bits/floatn.h>.
23978 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
23979 Define and later undefine as macro. Define as weak alias if
23980 [!USE_WIDE_CHAR].
23981 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
23982 Define and later undefine as macro. Define as weak alias if
23983 [USE_WIDE_CHAR].
23984
23985 2017-10-15 Carlos O'Donell <carlos@redhat.com>
23986
23987 * localedata/collate-test.c (allocate_arrays): Don't use \n in
23988 record_verbose messages.
23989
23990 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
23991
23992 [BZ #22052]
23993 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
23994 to silence -O3 -Wall warning with GCC 7.
23995
23996 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
23997
23998 * Makeconfig (+link-static-before-libc): Use the first of
23999 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24000 * gmon/Makefile (tests): Add tst-gmon-static.
24001 (tests-static): Likewise.
24002 (CFLAGS-tst-gmon-static.c): New.
24003 (CRT-tst-gmon-static): Likewise.
24004 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24005 (tst-gmon-static-ENV): Likewise.
24006 (tests-special): Likewise.
24007 ($(objpfx)tst-gmon-static.out): Likewise.
24008 (clean-tst-gmon-static-data): Likewise.
24009 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24010 * gmon/tst-gmon-static-gprof.sh: New file.
24011 * gmon/tst-gmon-static.c: Likewise.
24012
24013 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24014
24015 [BZ #22295]
24016 * locale/programs/linereader.c (get_string): Don't warn on
24017 non-symbolic character.
24018
24019 [BZ #22294]
24020 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24021 int_curr_symbol.
24022
24023 [BZ #22292]
24024 * locale/programs/record-status.h: New file
24025 * locale/programs/locale.c: Add comment.
24026 * locale/programs/charmap-dir.c: Don't include error.h.
24027 (charmap_opendir): Use record_error.
24028 * locale/programs/charmap.c: Don't include error.h.
24029 (charmap_read): Use record_error, and record_warning.
24030 (parse_charmap): Likewise.
24031 * locale/programs/ld-address.c: Don't include error.h.
24032 (address_finish): Use record_error, and record_warning.
24033 * locale/programs/ld-collate.c: Don't include error.h.
24034 (collate_finish): Use record_error, and record_error_at_line.
24035 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24036 (ctype_class_new): Likewise.
24037 (ctype_map_new): Likewise.
24038 (set_one_default): Likewise.
24039 (set_class_defaults): Likewise.
24040 (translit_flatten): Likewise.
24041 (allocate_arrays): Use record_error, and record_verbose.
24042 * locale/programs/ld-identification.c: Don't include error.h.
24043 (indentation_finish): Use record_error and record_warning.
24044 * locale/programs/ld-measurement.c: Don't include error.h.
24045 (measurement_finish): Use record_error.
24046 * locale/programs/ld-messages.c
24047 (message_finish): Likewise.
24048 * locale/programs/ld-monetary.c
24049 (monetary_finish): Likewise.
24050 * locale/programs/ld-name.c (name_finish): Use record_error
24051 and record_warning.
24052 * locale/programs/ld-numeric.c
24053 (numeric_finish): Use record_error.
24054 * locale/programs/ld-paper.c: Don't include error.h.
24055 (paper_finish): Use record_error.
24056 * locale/programs/ld-telephone.c: Don't include error.h.
24057 (telephone_finish): Use record_error.
24058 * locale/programs/ld-time.c (time_finish): Likewise.
24059 * locale/programs/linereader.h (lr_error): Make inline func.
24060 * locale/programs/localedef.c: Define recorded_warning_count,
24061 and recorded_error_count.
24062 (main): Use record_error. Use recorded_error_count and
24063 recorded_warning_count to issue correct error returns.
24064 (add_to_readlist): Use record_error.
24065 (find_locale): Likewise.
24066 (load_locale): Likewise.
24067 * locale/programs/localedef.h: Remove be_quiet
24068 and WITH_CUR_LOCALE.
24069 * locale/programs/locarchive.c (compare_from_file): Use
24070 record_error.
24071 * locale/programs/locfile.c (write_locale_data): Use
24072 record_error.
24073 * locale/programs/repertoire.c: Dont include error.h.
24074 (repertoire_complain): Use record_error.
24075 * localedata/tst-fmon.sh: Expect failures from localedef.
24076 * localedata/tst-locale.sh: Likewise.
24077 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24078
24079 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24080 (REPORTS): Likewise.
24081 (check): Likewise.
24082 (i18n): Rename to...
24083 (i18n_ctype): ...this.
24084 (i18n-report): Rename to...
24085 (i18n_ctype-report): ...this.
24086 * localedata/locales/i18n_ctype: Regenerate.
24087 * localedata/locales/i18n: copy i18n_ctype.
24088
24089 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24090
24091 * stdlib/strfroml.c: Include <bits/floatn.h>.
24092 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24093 Define before include of <stdlib.h> and undefine afterwards, then
24094 define as weak alias.
24095
24096 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24097 Undefine and restore default definition. Use
24098 libm_alias_ldouble_other.
24099
24100 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24101
24102 [BZ #22153]
24103 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24104 in coredumps.
24105
24106 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24107
24108 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24109 Assign sym_map to be map for local symbols, as TLS relocations
24110 use sym_map to determine whether the symbol is defined and to
24111 extract the TLS information.
24112 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24113 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24114
24115 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24116
24117 [BZ #22189]
24118 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24119 (math_force_eval): Add powerpc version.
24120
24121 [BZ #22142]
24122 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24123 -DBL_MAX.
24124 (do_test): Likewise.
24125 * stdio-common/tst-printf.sh: Likewise.
24126 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24127 ifdef clause in order to set the carry bit right. Replace r0 by
24128 0 without changing the behavior.
24129
24130 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24131
24132 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24133 <libm-alias-ldouble.h>.
24134 (fabsl): Define using libm_alias_ldouble.
24135 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24136 <libm-alias-ldouble.h>.
24137 (fabsl): Define using libm_alias_ldouble.
24138
24139 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24140 Remove conditional code.
24141
24142 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24143 Rename to __clog10_internal_l.
24144 (__clog10_internal_l): Define aliases using
24145 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24146 with __clog10.
24147
24148 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24149
24150 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24151 * benchtests/sincosf-inputs: New file.
24152 * benchtests/cosf-inputs: New file.
24153 * benchtests/sinf-inputs: New file.
24154
24155 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24156
24157 * posix/tst-spawn.c (do_test): Wait for both children.
24158
24159 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24160
24161 [BZ #22284]
24162 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24163 tests-pie): Add tst-gmon-pie.
24164 (CFLAGS-tst-gmon-pie.c): New.
24165 (CRT-tst-gmon-pie): Likewise.
24166 (tst-gmon-pie-ENV): Likewise.
24167 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24168 ($(objpfx)tst-gmon-pie.out): Likewise.
24169 (clean-tst-gmon-pie-data): Likewise.
24170 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24171 * gmon/gmon.c [PIC]: Include <link.h>.
24172 [PIC] (callback): New function.
24173 (write_hist): Add an argument for load address. Subtract load
24174 address from PCs.
24175 (write_call_graph): Likewise.
24176 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24177 it to write_hist and write_call_graph.
24178 * gmon/tst-gmon-pie.c: New file.
24179
24180 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24181
24182 * math/Makefile (test-types-basic): New variable.
24183 (test-types): Likewise.
24184 (libm-test-support): Use $(test-types) instead of $(types).
24185 (libm-tests-base-normal): Likewise.
24186 (libm-tests-base-finite): Likewise.
24187 (libm-tests-base-inline): Likewise.
24188 (generated): Likewise.
24189 ($(objpfx)libm-test-support-$(t).c): Likewise.
24190 (libm-tests-for-type iterator): Likewise.
24191 (libm-test-support iterator): Likewise.
24192 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24193 (ulp_idx): Use ULP_IDX.
24194 * math/test-ldouble.h: Include <float.h>.
24195 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24196 (ULP_IDX): New macro.
24197 (ULP_I_IDX): Likewise.
24198 * math/test-double.h (ULP_IDX): Likewise.
24199 (ULP_I_IDX): Likewise.
24200 * math/test-float.h (ULP_IDX): Likewise.
24201 (ULP_I_IDX): Likewise.
24202 * math/test-float128.h (ULP_IDX): Likewise.
24203 (ULP_I_IDX): Likewise.
24204
24205 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24206
24207 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24208 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24209 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24210 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24211 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24212 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24213 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24214 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24215 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24216 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24217 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24218 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24219 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24220 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24221 (SINGLE_THREAD_BY_GLOBAL): Define.
24222 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24223 Likewise.
24224 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24225 Likewise.
24226 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24227 Likewise.
24228 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24229 Likewise.
24230 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24231 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24232 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24233 Likewise.
24234
24235 2017-10-11 Andreas Schwab <schwab@suse.de>
24236
24237 * nis/Makefile (aux): Remove.
24238 * nscd/Makefile (aux): Add nscd_hash.
24239 (nscd-modules): Likewise.
24240 ($(objpfx)nscd): Don't depend on libnsl.
24241 * nscd/nscd_hash.c: New file.
24242 * nscd/nscd_hash.h: Likewise.
24243 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24244 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24245 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24246 instead of <nis/rpcsvc/nis.h>.
24247 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24248
24249 2017-10-11 Florian Weimer <fweimer@redhat.com>
24250
24251 [BZ #22078]
24252 Avoid large NSS buffers with many addresses, aliases.
24253 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24254 using dynarrays and struct alloc_buffer.
24255 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24256 (tst-nss-files-hosts-multi): Link with -ldl.
24257 * nss/tst-nss-files-hosts-multi.c: New file.
24258
24259 2017-10-11 Florian Weimer <fweimer@redhat.com>
24260
24261 [BZ #18023]
24262 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24263 scratch_buffer. Eliminate gotos.
24264
24265 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24266
24267 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24268 libm_alias_ldouble_other.
24269 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24270 undefine and redefine.
24271 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24272 (exp10l): Do not define here.
24273 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24274 (weak_alias): Undefine and redefine.
24275 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24276 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24277 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24278 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24279
24280 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24281 [!__fma] (fma): Define using libm_alias_double.
24282 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24283 [!__fmaf] (fmaf): Define using libm_alias_float.
24284 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24285 (fmal): Define using libm_alias_ldouble.
24286
24287 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24288
24289 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24290 New macro.
24291 (libm_alias_double_other): Likewise.
24292 (libm_alias_double_r): Use libm_alias_double_other_r.
24293 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24294 New macro.
24295 (libm_alias_float_other): Likewise.
24296 (libm_alias_float_r): Use libm_alias_float_other_r.
24297 * sysdeps/generic/libm-alias-float128.h
24298 (libm_alias_float128_other_r): New macro.
24299 (libm_alias_float128_other): Likewise.
24300 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24301 * sysdeps/generic/libm-alias-ldouble.h
24302 (libm_alias_ldouble_other_r): New macro.
24303 (libm_alias_ldouble_other): Likewise.
24304 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24305 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24306 (libm_alias_double_other_r): New macro.
24307 (libm_alias_double_other): Likewise.
24308 (libm_alias_double_r): Use libm_alias_double_other_r.
24309 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24310 (libm_alias_ldouble_other_r): New macro.
24311 (libm_alias_ldouble_other): Likewise.
24312 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24313 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24314 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24315 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24316 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24317 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24318 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24319 * math/w_exp2f.c: Use libm_alias_float_other.
24320 * math/w_expf.c: Likewise.
24321 * math/w_log2f.c: Likewise.
24322 * math/w_logf.c: Likewise.
24323 * math/w_powf.c: Likewise.
24324 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24325 [!__exp2f]: Use libm_alias_float_other.
24326 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24327 [!__expf]: Use libm_alias_float_other.
24328 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24329 [!__log2f]: Use libm_alias_float_other.
24330 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24331 [!__logf]: Use libm_alias_float_other.
24332 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24333 [!__powf]: Use libm_alias_float_other.
24334
24335 2017-10-10 Florian Weimer <fweimer@redhat.com>
24336
24337 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24338 function.
24339 (_nss_files_gethostbyname3_r): Call it.
24340
24341 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24342
24343 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24344 error. Remove default definition of declare_mgen_alias.
24345 [!declare_mgen_alias_r]: Likewise.
24346 * sysdeps/generic/math-type-macros-double.h
24347 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24348 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24349 (declare_mgen_alias_r): Likewise.
24350 * sysdeps/generic/math-type-macros-float128.h
24351 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24352 * sysdeps/generic/math-type-macros-ldouble.h
24353 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24354 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24355 macro.
24356 (declare_mgen_alias_r_s): Likewise.
24357 (declare_mgen_alias_r): Likewise.
24358 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24359 (lgamma_r): Define using libm_alias_double_r.
24360 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24361 (lgammaf_r): Define using libm_alias_float_r.
24362 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24363 (lgammal_r): Define using libm_alias_ldouble_r.
24364 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24365 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24366
24367 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24368
24369 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24370 extern declaration.
24371
24372 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24373
24374 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24375
24376 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24377
24378 [BZ #21326]
24379 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24380 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24381 * math/Makefile (test-math-cxx11): New test.
24382 * math/test-math-cxx11.cc: New file.
24383
24384 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24385
24386 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24387
24388 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24389 call to allocate the slave pty file descriptor.
24390
24391 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24392
24393 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24394 [!__fma] (fma): Define using libm_alias_double.
24395 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24396 [!__fma] (fma): Define using libm_alias_double.
24397
24398 * sysdeps/ieee754/float128/float128_private.h: Include
24399 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24400 (libm_alias_ldouble_r): Undefine and redefine.
24401 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24402 <libm-alias-ldouble.h>.
24403 (asinhl): Define using libm_alias_ldouble.
24404 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24405 <libm-alias-ldouble.h>.
24406 (atanl): Define using libm_alias_ldouble.
24407 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24408 <libm-alias-ldouble.h>.
24409 (cbrtl): Define using libm_alias_ldouble.
24410 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24411 <libm-alias-ldouble.h>.
24412 (ceill): Define using libm_alias_ldouble.
24413 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24414 <libm-alias-ldouble.h>.
24415 (copysignl): Define using libm_alias_ldouble.
24416 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24417 <libm-alias-ldouble.h>.
24418 (cosl): Define using libm_alias_ldouble.
24419 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24420 <libm-alias-ldouble.h>.
24421 (erfl): Define using libm_alias_ldouble.
24422 (erfcl): Likewise.
24423 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24424 <libm-alias-ldouble.h>.
24425 (expm1l): Define using libm_alias_ldouble.
24426 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24427 <libm-alias-ldouble.h>.
24428 (fabsl): Define using libm_alias_ldouble.
24429 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24430 <libm-alias-ldouble.h>.
24431 (floorl): Define using libm_alias_ldouble.
24432 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24433 <libm-alias-ldouble.h>.
24434 (fmal): Define using libm_alias_ldouble.
24435 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24436 <libm-alias-ldouble.h>.
24437 (frexpl): Define using libm_alias_ldouble.
24438 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24439 libm_alias_ldouble.
24440 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24441 <libm-alias-ldouble.h>.
24442 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24443 libm_alias_ldouble.
24444 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24445 <libm-alias-ldouble.h>.
24446 (getpayloadl): Define using libm_alias_ldouble.
24447 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24448 <libm-alias-ldouble.h>.
24449 (llrintl): Define using libm_alias_ldouble.
24450 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24451 <libm-alias-ldouble.h>.
24452 (llroundl): Define using libm_alias_ldouble.
24453 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24454 <libm-alias-ldouble.h>.
24455 (logbl): Define using libm_alias_ldouble.
24456 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24457 <libm-alias-ldouble.h>.
24458 (lrintl): Define using libm_alias_ldouble.
24459 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24460 <libm-alias-ldouble.h>.
24461 (lroundl): Define using libm_alias_ldouble.
24462 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24463 <libm-alias-ldouble.h>.
24464 (modfl): Define using libm_alias_ldouble.
24465 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24466 <libm-alias-ldouble.h>.
24467 (nearbyintl): Define using libm_alias_ldouble.
24468 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24469 <libm-alias-ldouble.h>.
24470 (nextafterl): Define using libm_alias_ldouble.
24471 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24472 <libm-alias-ldouble.h>.
24473 (nextupl): Define using libm_alias_ldouble.
24474 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24475 <libm-alias-ldouble.h>.
24476 (remquol): Define using libm_alias_ldouble.
24477 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24478 <libm-alias-ldouble.h>.
24479 (rintl): Define using libm_alias_ldouble.
24480 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24481 <libm-alias-ldouble.h>.
24482 (roundevenl): Define using libm_alias_ldouble.
24483 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24484 <libm-alias-ldouble.h>.
24485 (roundl): Define using libm_alias_ldouble.
24486 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24487 using libm_alias_ldouble.
24488 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24489 <libm-alias-ldouble.h>.
24490 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24491 Define using libm_alias_ldouble.
24492 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24493 <libm-alias-ldouble.h>.
24494 (sincosl): Define using libm_alias_ldouble.
24495 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24496 <libm-alias-ldouble.h>.
24497 (sinl): Define using libm_alias_ldouble.
24498 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24499 <libm-alias-ldouble.h>.
24500 (tanhl): Define using libm_alias_ldouble.
24501 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24502 <libm-alias-ldouble.h>.
24503 (tanl): Define using libm_alias_ldouble.
24504 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24505 <libm-alias-ldouble.h>.
24506 (totalorderl): Define using libm_alias_ldouble.
24507 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24508 <libm-alias-ldouble.h>.
24509 (totalordermagl): Define using libm_alias_ldouble.
24510 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24511 <libm-alias-ldouble.h>.
24512 (truncl): Define using libm_alias_ldouble.
24513 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24514 libm_alias_ldouble.
24515 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24516 libm_alias_ldouble.
24517 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24518 <libm-alias-ldouble.h>.
24519 (weak_alias): Do not undefine and redefine.
24520 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24521 (copysignl): Define with long_double_symbol only if [IS_IN
24522 (libc)].
24523 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24524 <libm-alias-ldouble.h>.
24525 (weak_alias): Do not undefine and redefine.
24526 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24527 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24528 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24529 <libm-alias-ldouble.h>.
24530 (weak_alias): Do not undefine and redefine.
24531 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24532 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24533 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24534 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24535 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24536 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24537 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24538 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24539 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24540 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24541 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24542 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24543 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24544 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24545 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24546 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24547 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24548 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24549 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24550 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24551 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24552 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24553 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24554 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24555 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24556 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24557
24558 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24559
24560 [BZ #22111]
24561 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24562 (tcache_thread_freeres): Set tcache_shutting_down before
24563 freeing the tcache.
24564 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24565 * malloc/tst-malloc-tcache-leak.c: New file.
24566
24567 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24568
24569 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24570 back to powerpc32 file.
24571 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24572 (memrchr): Add __memrchr_power8 to ifunc list.
24573 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24574 extra bytes for unaligned inputs.
24575
24576 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24577
24578 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24579 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24580 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24581 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24582 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24583
24584 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24585
24586 * sysdeps/arm/libm-test-ulps: Update.
24587
24588 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24589 <libm-alias-ldouble.h>.
24590 (asinhl): Define using libm_alias_ldouble.
24591 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24592 <libm-alias-ldouble.h>.
24593 (cbrtl): Define using libm_alias_ldouble.
24594 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24595 <libm-alias-ldouble.h>.
24596 (copysignl): Define using libm_alias_ldouble.
24597 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24598 <libm-alias-ldouble.h>.
24599 (cosl): Define using libm_alias_ldouble.
24600 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24601 <libm-alias-ldouble.h>.
24602 (erfl): Define using libm_alias_ldouble.
24603 (erfcl): Likewise.
24604 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24605 <libm-alias-ldouble.h>.
24606 (fmal): Define using libm_alias_ldouble.
24607 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24608 <libm-alias-ldouble.h>.
24609 (frexpl): Define using libm_alias_ldouble.
24610 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24611 libm_alias_ldouble.
24612 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24613 <libm-alias-ldouble.h>.
24614 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24615 libm_alias_ldouble.
24616 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24617 <libm-alias-ldouble.h>.
24618 (getpayloadl): Define using libm_alias_ldouble.
24619 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24620 <libm-alias-ldouble.h>.
24621 (llrintl): Define using libm_alias_ldouble.
24622 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24623 <libm-alias-ldouble.h>.
24624 (llroundl): Define using libm_alias_ldouble.
24625 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24626 <libm-alias-ldouble.h>.
24627 (lrintl): Define using libm_alias_ldouble.
24628 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24629 <libm-alias-ldouble.h>.
24630 (lroundl): Define using libm_alias_ldouble.
24631 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24632 <libm-alias-ldouble.h>.
24633 (modfl): Define using libm_alias_ldouble.
24634 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24635 <libm-alias-ldouble.h>.
24636 (nextupl): Define using libm_alias_ldouble.
24637 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24638 <libm-alias-ldouble.h>.
24639 (remquol): Define using libm_alias_ldouble.
24640 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24641 <libm-alias-ldouble.h>.
24642 (roundevenl): Define using libm_alias_ldouble.
24643 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24644 <libm-alias-ldouble.h>.
24645 (roundl): Define using libm_alias_ldouble.
24646 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
24647 using libm_alias_ldouble.
24648 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
24649 <libm-alias-ldouble.h>.
24650 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
24651 <libm-alias-ldouble.h>.
24652 (setpayloadsigl): Define using libm_alias_ldouble.
24653 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
24654 <libm-alias-ldouble.h>.
24655 (sincosl): Define using libm_alias_ldouble.
24656 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
24657 <libm-alias-ldouble.h>.
24658 (sinl): Define using libm_alias_ldouble.
24659 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
24660 <libm-alias-ldouble.h>.
24661 (tanhl): Define using libm_alias_ldouble.
24662 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
24663 <libm-alias-ldouble.h>.
24664 (tanl): Define using libm_alias_ldouble.
24665 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
24666 <libm-alias-ldouble.h>.
24667 (totalorderl): Define using libm_alias_ldouble.
24668 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
24669 <libm-alias-ldouble.h>.
24670 (totalordermagl): Define using libm_alias_ldouble.
24671 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
24672 libm_alias_ldouble.
24673 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
24674 libm_alias_ldouble.
24675
24676 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
24677
24678 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24679 memmove_falkor.
24680 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24681 (__libc_ifunc_impl_list): Likewise.
24682 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
24683 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
24684
24685 * benchtests/bench-memmove-walk.c: New file.
24686 * benchtests/Makefile (string-benchset): Add it.
24687
24688 * benchtests/bench-memset-walk.c: New file.
24689 * benchtests/Makefile (string-benchset): Add it.
24690
24691 * benchtests/bench-memcpy-walk.c: New file.
24692 * benchtests/Makefile (string-benchset): Add it.
24693
24694 2017-10-05 Florian Weimer <fweimer@redhat.com>
24695
24696 nscd: Eliminate compilation time dependency in the build output.
24697 * nscd/nscd_stat.c (STATDATA_VERSION)
24698 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
24699 (STATDATA_VERSION_FULL): New macro definitions.
24700 (compilation): Remove.
24701 (struct statdata): Adjust version member.
24702 (send_stats): Set version from STATDATA_VERSION_FULL.
24703 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
24704
24705 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24706
24707 * configure.ac (--enable-add-ons): Remove option.
24708 (machine): Do not mention add-ons in comment.
24709 (LIBC_PRECONFIGURE): Likewise.
24710 (add_ons): Remove variable and sanity checks and logic to locate
24711 add-ons.
24712 (add_ons_automatic): Remove variable.
24713 (configured_add_ons): Likewise.
24714 (add_ons_sfx): Likewise.
24715 (add_ons_pfx): Likewise.
24716 (add_on_subdirs): Likewise.
24717 (sysnames_add_ons): Likewise. Remove loop over add-ons and
24718 consideration of add-ons in Implies handling.
24719 (sysdeps_add_ons): Likewise.
24720 * configure: Regenerated.
24721 * libidn/configure.ac: Remove.
24722 * libidn/configure: Likewise.
24723 * sysdeps/unix/inet/configure.ac: New file.
24724 * sysdeps/unix/inet/configure: New generated file.
24725 * sysdeps/unix/inet/Subdirs: Add libidn.
24726 * Makeconfig (sysdeps-srcdirs): Remove variable.
24727 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
24728 ($(common-objpfx)config.status): Do not depend on add-on files.
24729 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
24730 comment.
24731 (all-subdirs): Do not include $(add-on-subdirs).
24732 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
24733 * config.make.in (add-ons): Remove variable.
24734 (add-on-subdirs): Likewise.
24735 (sysdeps-add-ons): Likewise.
24736 * manual/Makefile (add-chapters): Remove.
24737 ($(objpfx)texis): Do not depend on $(add-chapters).
24738 (nonexamples): Do not handle $(add-chapters).
24739 (examples): Do not handle $(add-ons).
24740 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
24741 libc-texinfo.sh.
24742 * manual/install.texi (Installation): Do not mention add-ons.
24743 (--enable-add-ons): Do not document configure option.
24744 * INSTALL: Regenerated.
24745 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
24746 * manual/maint.texi (Hierarchy Conventions): Do not mention
24747 add-ons.
24748 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
24749 --enable-add-ons.
24750 * scripts/gen-sorted.awk: Do not handle Subdirs files from
24751 add-ons.
24752 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
24753 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
24754
24755 2017-10-05 Andreas Schwab <schwab@suse.de>
24756
24757 [BZ #15142]
24758 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
24759 (_IO_flush_all_lockp): Always lock list_all_lock.
24760 (_IO_flush_all_linebuffered): Likewise.
24761 (_IO_unbuffer_all): Likewise.
24762
24763 2017-10-05 Florian Weimer <fweimer@redhat.com>
24764
24765 [BZ #15436]
24766 Do not flush stdio streams on abort.
24767 * stdlib/abort.c (fflush): Remove macro definition.
24768 (abort): Remove stages related to stdio flushing.
24769
24770 2017-10-05 Florian Weimer <fweimer@redhat.com>
24771
24772 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
24773
24774 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
24775
24776 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
24777
24778 2017-10-05 Florian Weimer <fweimer@redhat.com>
24779
24780 * support/support_format_hostent.c (support_format_hostent): Add
24781 more error information for NETDB_INTERNAL.
24782
24783 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
24784
24785 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
24786 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
24787 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
24788 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
24789 AC_DEFINE if multi-arch is enabled.
24790 * sysdeps/i386/configure: Regenerated.
24791
24792 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
24793
24794 * Makeconfig (+link-static-before-libc): Use
24795 $(DEFAULT-LDFLAGS-$(@F)).
24796 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
24797 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
24798 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
24799
24800 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
24801
24802 * elf/Makefile (tests): Add tst-main1.
24803 (modules-names): Add tst-main1mod.
24804 ($(objpfx)tst-main1): New.
24805 (CRT-tst-main1): Likewise.
24806 (LDFLAGS-tst-main1): Likewise.
24807 (LDLIBS-tst-main1): Likewise.
24808 (tst-main1mod.so-no-z-defs): Likewise.
24809 * elf/tst-main1.c: New file.
24810 * elf/tst-main1mod.c: Likewise.
24811
24812 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
24813
24814 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
24815
24816 2017-10-04 Joseph Myers <joseph@codesourcery.com>
24817
24818 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
24819 (fma): Define using libm_alias_double.
24820 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
24821 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
24822 <math_ldbl_opt.h>.
24823 (fmal): Do not define as compat symbol here.
24824 * sysdeps/alpha/fpu/s_fma.c: New file.
24825
24826 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24827
24828 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
24829
24830 2017-10-04 Joseph Myers <joseph@codesourcery.com>
24831
24832 [BZ #22229]
24833 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
24834 <math_ldbl_opt.h>
24835 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
24836 and libc.
24837 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
24838 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
24839 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
24840 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
24841 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
24842 Include <math_ldbl_opt.h>
24843 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
24844 and libc.
24845 (compat_symbol): Undefine and redefine.
24846 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
24847 <math_ldbl_opt.h>
24848 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
24849 (compat_symbol): Undefine and redefine.
24850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
24851 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
24852 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
24853 GLIBC_2_1 for libm.
24854 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
24855 GLIBC_2.0 copysignl symbol.
24856 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
24857 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
24858
24859 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
24860
24861 2017-10-04 Florian Weimer <fweimer@redhat.com>
24862
24863 * scripts/check-local-headers.sh: Ignore nspr4 header file
24864 directory in addition to nspr.
24865
24866 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
24867
24868 [BZ #17956]
24869 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
24870 * configure: Regenerate.
24871 * crypt/Makefile (nss-cpp-flags): New variable.
24872 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
24873 (CPPFLAGS-md5-crypt.c): Use it.
24874 * scripts/check-local-headers.sh: Ignore nspr header file
24875 directory.
24876
24877 2017-10-04 Andreas Schwab <schwab@suse.de>
24878
24879 * nis/Makefile (services): Remove compat.
24880 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
24881 ($(objpfx)libnss_compat.so): Remove rule.
24882 * nis/Versions (libnss_compat): Remove.
24883 * nss/Makefile (services): Add compat.
24884 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
24885 * nss/Versions (libnss_compat): Define.
24886 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
24887 Don't include <rpc/types.h>. Replace bool_t by bool.
24888 * nss/nss_compat/compat-initgroups.c: Likewise.
24889 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
24890 instead of <rpcsrv/ypclnt.h>.
24891 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
24892 yp_get_default_domain.
24893 * nss/nss_compat/compat-pwd.c: Likewise.
24894 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
24895 yp_get_default_domain.
24896 * nss/nss_compat/nisdomain.c: New file.
24897 * nss/nss_compat/nisdomain.h: Likewise.
24898
24899 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24900
24901 [BZ #22244]
24902 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
24903 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
24904
24905 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24906
24907 [BZ #22243]
24908 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
24909 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
24910
24911 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
24912
24913 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
24914 "movl main@GOTOFF(%ebx), %eax".
24915
24916 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
24917
24918 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
24919 allow undefined _DYNAMIC in PIE libc.a.
24920 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
24921 Likewse.
24922
24923 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
24924
24925 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
24926 check _DYNAMIC.
24927
24928 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
24929
24930 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
24931 check _DYNAMIC.
24932
24933 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
24934
24935 * math/test-math-iscanonical.cc (error): Replace bool with int.
24936
24937 2017-10-03 Joseph Myers <joseph@codesourcery.com>
24938
24939 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
24940 (modf): Define using libm_alias_double, only if [!__modf].
24941 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
24942 <libm-alias-double.h>.
24943 (modf): Define using libm_alias_double, only if [!__modf].
24944 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
24945 compat symbol here.
24946 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
24947 (weak_alias): Do not undefine and redefine.
24948 (strong_alias): Likewise.
24949 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
24950 (weak_alias): Likewise.
24951 (strong_alias): Likewise.
24952
24953 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
24954 (logb): Define using libm_alias_double, only if [!__logb].
24955 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
24956 <libm-alias-double.h>.
24957 (logb): Define using libm_alias_double, only if [!__logb].
24958 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
24959 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
24960 (weak_alias): Do not undefine and redefine.
24961 (strong_alias): Likewise.
24962 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
24963 (weak_alias): Likewise.
24964 (strong_alias): Likewise.
24965
24966 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
24967
24968 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
24969 Check SHARED instead PIC.
24970
24971 2017-10-03 Joseph Myers <joseph@codesourcery.com>
24972
24973 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
24974 [!__fmaf] (fmaf): Define using libm_alias_float.
24975
24976 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
24977 (frexp): Define using libm_alias_double.
24978 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
24979 <libm-alias-double.h>.
24980 (frexp): Define using libm_alias_double.
24981 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
24982 compat symbol here.
24983
24984 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24985
24986 [BZ #22235]
24987 * math/math.h: Trivial fix for unbalanced parentheses in comment.
24988 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
24989 (CFLAGS-test-math-iscanonical.cc): New variable.
24990 * math/test-math-iscanonical.cc: New file.
24991 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
24992 Provide a C++ implementation based on function overloading,
24993 rather than using __MATH_TG, which uses C-only builtins.
24994 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
24995 Likewise.
24996 * sysdeps/powerpc/powerpc64le/Makefile
24997 (CFLAGS-test-math-iscanonical.cc): New variable.
24998
24999 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25000
25001 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25002 (ceil): Define using libm_alias_double.
25003 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25004 (floor): Define using libm_alias_double.
25005 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25006 <libm-alias-double.h>.
25007 (llround): Define using libm_alias_double.
25008 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25009 <libm-alias-double.h>.
25010 (lround): Define using libm_alias_double.
25011 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25012 <libm-alias-double.h>.
25013 (nearbyint): Define using libm_alias_double.
25014 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25015 <libm-alias-double.h>.
25016 (remquo): Define using libm_alias_double.
25017 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25018 (rint): Define using libm_alias_double.
25019 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25020 (round): Define using libm_alias_double.
25021 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25022 (trunc): Define using libm_alias_double.
25023 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25024 <libm-alias-double.h>.
25025 (ceil): Define using libm_alias_double.
25026 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25027 <libm-alias-double.h>.
25028 (floor): Define using libm_alias_double.
25029 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25030 <libm-alias-double.h>.
25031 (llround): Define using libm_alias_double.
25032 [_LP64] (lround): Likewise.
25033 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25034 <libm-alias-double.h>.
25035 [!_LP64] (lround): Define using libm_alias_double.
25036 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25037 <libm-alias-double.h>.
25038 (nearbyint): Define using libm_alias_double.
25039 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25040 <libm-alias-double.h>.
25041 (remquo): Define using libm_alias_double.
25042 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25043 <libm-alias-double.h>.
25044 (rint): Define using libm_alias_double.
25045 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25046 <libm-alias-double.h>.
25047 (round): Define using libm_alias_double.
25048 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25049 <libm-alias-double.h>.
25050 (trunc): Define using libm_alias_double.
25051 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25052 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25053 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25054 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25055 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25056 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25057 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25058 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25059 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25060
25061 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25062
25063 * math/w_remainder.c: New file.
25064 * math/w_remainderf.c: New file.
25065 * math/w_remainderl.c: New file.
25066
25067 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25068
25069 * elf/rtld.c (BOOTSTRAP_MAP): New.
25070 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25071 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25072 Likewise.
25073 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25074 Likewise.
25075 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25076 Likewise.
25077
25078 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25079
25080 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25081 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25082 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25083 rtld_hidden_data_ver): Define to empty.
25084 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25085 __assert_perror_fail): Likewise.
25086 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25087 (__rewinddir): Likewise.
25088 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25089 (__profile_frequency): Likewise.
25090 * include/setjmp.h (__sigsetjmp): Likewise.
25091 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25092 __libc_sigaction): Likewise.
25093 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25094 not set hidden attribute.
25095 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25096 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25097 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25098 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25099 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25100 __fxstatat64): Likewise.
25101 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25102 (__uname): Likewise.
25103 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25104 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25105 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25106 (NO_RTLD_HIDDEN): Set.
25107 * sysdeps/mach/hurd/configure: Refresh.
25108 * config.h.in: Refresh.
25109
25110 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25111
25112 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25113 (atan): Define using libm_alias_double.
25114 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25115 (tan): Define using libm_alias_double.
25116 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25117 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25118
25119 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25120 define as weak alias of __atan. Do not define any aliases if
25121 [__atan].
25122 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25123 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25124 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25125 as weak alias of __tan. Do not define any aliases if [__tan].
25126 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25127 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25128 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25129 __atan.
25130 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25131 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25132 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25133 and define as weak alias of __atan.
25134 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25135 __atan.
25136 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25137 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25138 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25139 define as weak alias of __tan.
25140
25141 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25142
25143 * math/w_lgamma.c: New file.
25144 * math/w_lgammaf.c: New file.
25145 * math/w_lgammal.c: New file.
25146
25147 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25148
25149 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25150 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25151 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25152 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25153 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25154 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25155 * sysdeps/i386/fpu/w_log2f.c: New file.
25156 * sysdeps/i386/fpu/w_logf.c: New file.
25157 * sysdeps/i386/fpu/w_powf.c: New file.
25158 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25159 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25160 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25161
25162 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25163 H.J. Lu <hongjiu.lu@intel.com>
25164
25165 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25166 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25167 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25168 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25169 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25170 the new expf code.
25171 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25172 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25173 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25174 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25175 * sysdeps/i386/fpu/w_exp2f.c: New file.
25176 * sysdeps/i386/fpu/w_expf.c: New file.
25177 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25178 * sysdeps/x86_64/fpu/w_expf.c: New file.
25179
25180 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25181
25182 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25183 (log2f): Likewise.
25184 (powf): Likewise.
25185 * math/w_log2f.c: New file.
25186 * math/w_logf.c: New file.
25187 * math/w_powf.c: New file.
25188 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25189 * math/w_logf_compat.c (__logf_compat): Likewise.
25190 * math/w_powf_compat.c (__powf_compat): Likewise.
25191 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25192 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25193 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25194 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25195 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25196 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25197 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25198 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25199 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25200 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25201 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25202 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25203 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25204 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25205 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25207 Likewise.
25208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25209 Likewise.
25210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25211 Likewise.
25212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25213 Likewise.
25214 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25215 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25216 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25217 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25218 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25219 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25220 Likewise.
25221 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25222 Likewise.
25223 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25224 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25225 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25226
25227 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25228
25229 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25230 (sysdep_routines): Add memrchr_power8.
25231 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25232 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25233 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25234 New file.
25235 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25236 (memrchr): Add __memrchr_power8 to ifunc list.
25237 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25238
25239 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25240
25241 [BZ #18822]
25242 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25243 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25244 libc_hidden_def.
25245 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25246 (__posix_fallocate64_l64): Likewise.
25247
25248 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25249
25250 [BZ #18822]
25251 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25252 (__sched_setaffinity_new): Add libc_hidden_proto and
25253 libc_hidden_def.
25254
25255 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25256
25257 [BZ #18822]
25258 * include/glob.h (__glob64): Add libc_hidden_proto.
25259 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25260 libc_hidden_def.
25261
25262 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25263
25264 [BZ #18822]
25265 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25266 attribute_hidden.
25267
25268 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25269
25270 [BZ #18822]
25271 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25272
25273 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25274
25275 [BZ #18822]
25276 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25277 libc_hidden_def.
25278
25279 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25280
25281 [BZ #18822]
25282 * csu/version.c (__libc_print_version): Add attribute_hidden.
25283
25284 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25285
25286 [BZ #18822]
25287 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25288
25289 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25290
25291 [BZ #18822]
25292 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25293
25294 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25295
25296 [BZ #18822]
25297 * nscd/nscd_helper.c (__nis_hash): New prototype.
25298
25299 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25300
25301 [BZ #18822]
25302 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25303 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25304 libc_hidden_def.
25305 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25306 * termios/tcgetattr.c (__tcgetattr): Likewise.
25307
25308 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25309
25310 [BZ #18822]
25311 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25312 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25313 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25314 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25315 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25316
25317 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25318
25319 [BZ #18822]
25320 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25321
25322 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25323
25324 [BZ #18822]
25325 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25326 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25327
25328 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25329
25330 [BZ #18822]
25331 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25332
25333 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25334
25335 [BZ #18822]
25336 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25337 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25338
25339 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25340
25341 [BZ #18822]
25342 * include/ifreq.h: New file.
25343 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25344 (__ifreq): Likewise.
25345 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25346 (__ifreq): Likewise.
25347
25348 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25349
25350 [BZ #18822]
25351 * include/idna.h: New file.
25352 * inet/getnameinfo.c: Include <idna.h> instead of
25353 <libidn/idna.h>.
25354 (__idna_to_unicode_lzlz): Removed.
25355 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25356 <libidn/idna.h>.
25357 (__idna_to_ascii_lz): Removed.
25358 (__idna_to_unicode_lzlz): Likewise.
25359
25360 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25361
25362 [BZ #18822]
25363 * include/plural-exp.h: New file.
25364 * intl/plural-exp.c: Include <plural-exp.h> instead of
25365 "plural-exp.h".
25366
25367 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25368
25369 [BZ #18822]
25370 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25371 "getsourcefilter.h".
25372 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25373 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25374 "getsourcefilter.h".
25375 (__get_sol): Removed.
25376
25377 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25378
25379 [BZ #18822]
25380 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25381 to ...
25382 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25383
25384 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25385
25386 [BZ #18822]
25387 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25388 attribute_hidden.
25389
25390 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25391
25392 [BZ #18822]
25393 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25394
25395 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25396
25397 [BZ #18822]
25398 * include/search.h (__tdestroy): Add libc_hidden_proto.
25399 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25400
25401 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25402
25403 [BZ #18822]
25404 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25405
25406 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25407
25408 [BZ #18822]
25409 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25410 attribute_hidden.
25411
25412 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25413
25414 [BZ #18822]
25415 * include/signal.h (__kill): Add libc_hidden_proto.
25416 (__sigblock): Likewise.
25417 (__sigprocmask): Likewise.
25418 (__sigaltstack): Likewise.
25419 * signal/kill.c (__kill): Add libc_hidden_def.
25420 * signal/sigblock.c (__sigblock): Likewise.
25421 * signal/sigprocmask.c (__sigprocmask): Likewise.
25422 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25423 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25424 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25425 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25426 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25427 Likewise.
25428 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25429 Likewise.
25430 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25431 (__sigprocmask): Likewise.
25432 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25433 Likewise.
25434 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25435 (__sigprocmask): Likewise.
25436 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25437 Likewise.
25438
25439 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25440
25441 [BZ #18822]
25442 * include/string.h (__strsep): Add libc_hidden_proto.
25443 * string/strsep.c (__strsep): Add libc_hidden_def.
25444
25445 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25446
25447 [BZ #18822]
25448 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25449 attribute_hidden.
25450 (__spawni): Likewise.
25451
25452 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25453
25454 [BZ #18822]
25455 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25456 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25457 libc_hidden_def.
25458
25459 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25460
25461 [BZ #18822]
25462 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25463
25464 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25465
25466 [BZ #18822]
25467 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25468 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25469 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25470 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25471 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25472 Likewise.
25473 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25474 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25475
25476 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25477
25478 [BZ #18822]
25479 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25480 (__dcigettext): Likewise.
25481
25482 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25483
25484 [BZ #18822]
25485 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25486 libc_hidden_proto.
25487 (__get_nprocs): Likewise.
25488 (__get_phys_pages): Likewise.
25489 (__get_avphys_pages): Likewise.
25490 (__get_child_max): Add attribute_hidden.
25491 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25492 (__get_nprocs): Likewise.
25493 (__get_phys_pages): Likewise.
25494 (__get_avphys_pages): Likewise.
25495 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25496 libc_hidden_def.
25497 (__get_nprocs): Likewise.
25498 (__get_phys_pages): Likewise.
25499 (__get_avphys_pages): Likewise.
25500 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25501 libc_hidden_def.
25502 (__get_nprocs_conf): Likewise.
25503 (__get_phys_pages): Likewise.
25504 (__get_avphys_pages): Likewise.
25505
25506 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25507
25508 [BZ #18822]
25509 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25510 attribute_hidden.
25511 (__netlink_close): Likewise.
25512 (__netlink_free_handle): Likewise.
25513 (__netlink_request): Likewise.
25514
25515 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25516
25517 [BZ #18822]
25518 * include/rpc/rpc.h (__rpc_thread_variables): Add
25519 attribute_hidden.
25520 (__rpc_thread_svc_cleanup): Likewise.
25521 (__rpc_thread_clnt_cleanup): Likewise.
25522 (__rpc_thread_key_cleanup): Likewise.
25523
25524 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25525
25526 [BZ #18822]
25527 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25528 (__writev): Likewise.
25529 * misc/readv.c (__readv): Add libc_hidden_def.
25530 * misc/writev.c (__writev): Likewise.
25531 * sysdeps/posix/readv.c (__readv): Likewise.
25532 * sysdeps/posix/writev.c (__writev): Likewise.
25533 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25534 (__readv): Likewise.
25535 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25536 (__writev): Likewise.
25537
25538 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25539
25540 [BZ #18822]
25541 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25542 (__regcomp): Add libc_hidden_proto.
25543 (__regexec): Likewise.
25544 (__regfree): Likewise.
25545 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25546 (__regfree): Likewise.
25547 * posix/regexec.c (__regexec): Likewise.
25548
25549 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25550
25551 [BZ #18822]
25552 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25553 (__getutent): Likewise.
25554 (__getutid): Likewise.
25555 (__getutline): Likewise.
25556 (__pututline): Likewise.
25557 (__getutent_r): Likewise.
25558 (__getutid_r): Likewise.
25559 (__getutline_r): Likewise.
25560 (__utmpname): Add attribute_hidden.
25561 (__setutent): Likewise.
25562 (__endutent): Likewise.
25563 * login/getutent.c (__getutent): Add libc_hidden_def.
25564 * login/getutent_r.c (__getutent_r): Likewise.
25565 (__pututline): Likewise.
25566 * login/getutid.c (__getutid): Likewise.
25567 * login/getutid_r.c (__getutid_r): Likewise.
25568 * login/getutline.c (__getutline): Likewise.
25569 * login/getutline_r.c (__getutline_r): Likewise.
25570 * login/updwtmp.c (__updwtmp): Likewise.
25571
25572 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25573
25574 [BZ #18822]
25575 * include/dirent.h (__opendir): Always add attribute_hidden.
25576 (__fdopendir): Likewise.
25577 (__closedir): Likewise.
25578 (__readdir): Likewise.
25579 (__readdir64): Add libc_hidden_proto.
25580 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25581 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25582 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25583 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25584 New alias.
25585
25586 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25587
25588 [BZ #18822]
25589 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25590 * include/netdb.h (__gethostbyaddr_r): Likewise.
25591 (__gethostbyname_r): Likewise.
25592 (__gethostbyname2_r): Likewise.
25593 (__getnetbyaddr_r): Likewise.
25594 (__getnetbyname_r): Likewise.
25595 (__getservbyname_r): Likewise.
25596 (__getservbyport_r): Likewise.
25597 (__getprotobyname_r): Likewise.
25598 (__getprotobynumber_r): Likewise.
25599 (__getnetgrent_r): Likewise.
25600 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25601 (__getrpcbynumber_r): Likewise.
25602 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25603
25604 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25605
25606 [BZ #18822]
25607 * include/stdio.h (__fcloseall): Add attribute_hidden.
25608 (__getline): Likewise.
25609 (__path_search): Likewise.
25610 (__gen_tempname): Likewise.
25611 (__libc_message): Likewise.
25612 (__flockfile): Likewise.
25613 (__funlockfile): Likewise.
25614 (__fxprintf): Likewise.
25615 (__fxprintf_nocancel): Likewise.
25616
25617 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25618
25619 [BZ #18822]
25620 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25621 (__sgetsgent_r): Likewise.
25622
25623 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25624
25625 [BZ #18822]
25626 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25627 (__statfs64): Likewise.
25628 (__fstatfs64): Likewise.
25629 * include/sys/statvfs.h (__statvfs64): Likewise.
25630 (__fstatvfs64): Likewise.
25631 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25632 (__statfs_filesize_max): Likewise.
25633 (__statfs_symlinks): Likewise.
25634 (__statfs_chown_restricted): Likewise.
25635
25636 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25637
25638 [BZ #18822]
25639 * include/time.h (__tzstring): Add attribute_hidden.
25640 (__tzfile_read): Likewise.
25641 (__tzfile_compute): Likewise.
25642 (__tzfile_default): Likewise.
25643 (__tzset_parse_tz): Likewise.
25644 (__offtime): Likewise.
25645 (__asctime_r): Likewise.
25646 (__tzset): Likewise.
25647 (__tz_convert): Likewise.
25648 (__getdate_r): Likewise.
25649 (__getclktck): Likewise.
25650
25651 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25652
25653 [BZ #18822]
25654 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
25655 (__nscd_unmap): Likewise.
25656 (__nscd_cache_search): Likewise.
25657 (__nscd_get_nl_timestamp): Likewise.
25658 (__nscd_getpwnam_r): Likewise.
25659 (__nscd_getpwuid_r): Likewise.
25660 (__nscd_getgrnam_r): Likewise.
25661 (__nscd_getgrgid_r): Likewise.
25662 (__nscd_gethostbyname_r): Likewise.
25663 (__nscd_gethostbyname2_r): Likewise.
25664 (__nscd_gethostbyaddr_r): Likewise.
25665 (__nscd_getai): Likewise.
25666 (__nscd_getgrouplist): Likewise.
25667 (__nscd_getservbyname_r): Likewise.
25668 (__nscd_getservbyport_r): Likewise.
25669 (__nscd_innetgr): Likewise.
25670 (__nscd_setnetgrent): Likewise.
25671
25672 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25673
25674 [BZ #18822]
25675 * include/gmp.h: Declare internal functions only if _ISOMAC is
25676 undefined.
25677 (__mpn_extract_double): Add attribute_hidden.
25678 (__mpn_extract_long_double): Likewise.
25679 (__mpn_extract_float128): Likewise.
25680 (__mpn_construct_float): Likewise.
25681 (__mpn_construct_double): Likewise.
25682 (__mpn_construct_long_double): Likewise.
25683 (__mpn_construct_float128): Likewise.
25684 (mpn_add_1): Likewise.
25685 (mpn_addmul_1): Likewise.
25686 (mpn_add_n): Likewise.
25687 (mpn_cmp): Likewise.
25688 (mpn_divrem): Likewise.
25689 (mpn_lshift): Likewise.
25690 (mpn_mul): Likewise.
25691 (mpn_mul_1): Likewise.
25692 (mpn_rshift): Likewise.
25693 (mpn_sub_1): Likewise.
25694 (mpn_submul_1): Likewise.
25695 (mpn_sub_n): Likewise.
25696
25697 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25698
25699 [BZ #18822]
25700 * include/wchar.h (__wcsnlen): Add attribute_hidden.
25701 (__wcscat): Likewise.
25702 (__btowc): Likewise.
25703 (__wcrtomb): Likewise.
25704 (__mbsrtowcs): Likewise.
25705 (__wcsrtombs): Likewise.
25706 (__mbsnrtowcs): Likewise.
25707 (__wcsnrtombs): Likewise.
25708 (__wcsncpy): Likewise.
25709 (__wcpncpy): Likewise.
25710 (__wmemcpy): Likewise.
25711 (__wmempcpy): Likewise.
25712 (__wmemmove): Likewise.
25713 (__wcschrnul): Likewise.
25714 (__vfwscanf): Likewise.
25715 (__vswprintf): Likewise.
25716 (__fwprintf): Likewise.
25717 (__vfwprintf): Likewise.
25718
25719 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25720
25721 [BZ #18822]
25722 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
25723 (__getgrgid_r): Likewise.
25724 (__getgrnam_r): Likewise.
25725 * include/pwd.h (__getpwuid_r): Likewise.
25726 (__getpwnam_r): Likewise.
25727 (__fgetpwent_r): Likewise.
25728 * include/shadow.h (__getspnam_r): Likewise.
25729 (__sgetspent_r): Likewise.
25730 (__fgetspent_r): Likewise.
25731
25732 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25733
25734 [BZ #18822]
25735 * include/unistd.h (__access): Add attribute_hidden.
25736 (__lseek64): Likewise.
25737 (__libc_pread64): Likewise.
25738 (__pipe2): Likewise.
25739 (__sleep): Likewise.
25740 (__chdir): Likewise.
25741 (__fchdir): Likewise.
25742 (__getcwd): Likewise.
25743 (__rmdir): Likewise.
25744 (__execvpe): Likewise.
25745 (__execve): Likewise.
25746 (__setsid): Likewise.
25747 (__getuid): Likewise.
25748 (__geteuid): Likewise.
25749 (__getgid): Likewise.
25750 (__getegid): Likewise.
25751 (__getgroups): Likewise.
25752 (__group_member): Likewise.
25753 (__ttyname_r): Likewise.
25754 (__isatty): Likewise.
25755 (__readlink): Likewise.
25756 (__unlink): Likewise.
25757 (__gethostname): Likewise.
25758 (__profil): Likewise.
25759 (__getdtablesize): Likewise.
25760 (__brk): Likewise.
25761 (__ftruncate): Likewise.
25762 (__ftruncate64): Likewise.
25763
25764 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25765
25766 [BZ #18822]
25767 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
25768 * argp/argp-fs-xinl.c: Likewise.
25769 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
25770 * argp/argp-parse.c: Include <argp.h>.
25771 * argp/argp-xinl.c: Likewise.
25772 * include/argp-fmtstream.h: New file.
25773 * include/argp.h (__argp_error): Add attribute_hidden.
25774 (__argp_failure): Likewise.
25775 (__argp_input): Likewise.
25776 (__argp_state_help): Likewise.
25777
25778 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25779
25780 [BZ #18822]
25781 * include/wchar.h (____wcstof_l_internal): New prototype.
25782 (____wcstod_l_internal): Likewise.
25783 (____wcstold_l_internal): Likewise.
25784 (____wcstol_l_internal): Likewise.
25785 (____wcstoul_l_internal): Likewise.
25786 (____wcstoll_l_internal): Likewise.
25787 (____wcstoull_l_internal): Likewise.
25788 (____wcstof128_l_internal): Likewise.
25789 * sysdeps/ieee754/float128/wcstof128.c
25790 (____wcstof128_l_internal): Removed.
25791 * sysdeps/ieee754/float128/wcstof128_l.c
25792 (____wcstof128_l_internal): Likewise.
25793 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
25794 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
25795 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
25796 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
25797 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
25798 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
25799 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
25800 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
25801 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
25802 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
25803
25804 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25805
25806 [BZ #18822]
25807 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
25808 instead of <sys/statvfs.h>.
25809 (__internal_statvfs): Removed.
25810 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
25811 instead of <sys/statvfs.h>.
25812 (__internal_statvfs64): Removed.
25813 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
25814 "internal_statvfs.h" instead of <sys/statvfs.h>.
25815 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
25816 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
25817 instead of <sys/statvfs.h>.
25818 (__internal_statvfs): Removed.
25819 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
25820 instead of <sys/statvfs.h>.
25821 (__internal_statvfs64): Removed.
25822
25823 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25824
25825 [BZ #18822]
25826 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
25827 (__gconv_close): Likewise.
25828 (__gconv): Likewise.
25829 (__gconv_find_transform): Likewise.
25830 (__gconv_lookup_cache): Likewise.
25831 (__gconv_compare_alias_cache): Likewise.
25832 (__gconv_load_cache): Likewise.
25833 (__gconv_get_path): Likewise.
25834 (__gconv_close_transform): Likewise.
25835 (__gconv_release_cache): Likewise.
25836 (__gconv_find_shlib): Likewise.
25837 (__gconv_release_shlib): Likewise.
25838 (__gconv_get_builtin_trans): Likewise.
25839 (__gconv_compare_alias): Likewise.
25840 * include/dlfcn.h (_dlerror_run): Likewise.
25841 * include/stdio.h (__fortify_fail_abort): Likewise.
25842 * include/time.h (__tz_compute): Likewise.
25843 (__strptime_internal): Likewise.
25844 * intl/gettextP.h (_nl_find_domain): Likewise.
25845 (_nl_load_domain): Likewise.
25846 (_nl_find_msg): Likewise.
25847 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
25848 (EXTRACT_PLURAL_EXPRESSION): Likewise.
25849 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
25850 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
25851 (__gai_find_request): Likewise.
25852 (__gai_remove_request): Likewise.
25853 (__gai_notify): Likewise.
25854 (__gai_notify_only): Likewise.
25855 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
25856 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
25857 (_dl_non_dynamic_init): Likewise.
25858 (_dl_aux_init): Likewise.
25859 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
25860 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
25861 Likewise.
25862 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
25863 (__wcsmbs_clone_conv): Likewise.
25864 (__wcsmbs_named_conv): Likewise.
25865
25866 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25867
25868 [BZ #18822]
25869 * include/stdlib.h (__random): Add attribute_hidden.
25870 (__random_r): Likewise.
25871 (__srandom_r): Likewise.
25872 (__initstate_r): Likewise.
25873 (__setstate_r): Likewise.
25874 (__erand48_r): Likewise.
25875 (__nrand48_r): Likewise.
25876 (__jrand48_r): Likewise.
25877 (__srand48_r): Likewise.
25878 (__seed48_r): Likewise.
25879 (__lcong48_r): Likewise.
25880 (__drand48_iterate): Likewise.
25881 (__setenv): Likewise.
25882 (__unsetenv): Likewise.
25883 (__clearenv): Likewise.
25884 (__ptsname_r): Likewise.
25885 (__posix_openpt): Likewise.
25886 (__add_to_environ): Likewise.
25887 (__realpath): Add libc_hidden_proto.
25888 (__ecvt_r): Likewise.
25889 (__fcvt_r): Likewise.
25890 (__qecvt_r): Likewise.
25891 (__qfcvt_r): Likewise.
25892 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
25893 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
25894
25895 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25896
25897 [BZ #18822]
25898 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
25899 * include/time.h (__mktime_internal): Likewise.
25900 * libio/iolibio.h (__fopen_internal): Likewise.
25901
25902 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
25903
25904 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
25905 pointer in frame.
25906 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
25907 Correct offset used to restore PIC register.
25908
25909 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
25910
25911 [BZ libc/22165]
25912 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
25913 code to load address of __getcontext_ret when generating PIC code.
25914
25915 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
25916
25917 * elf/Makefile (tests-static-internal): Add
25918 tst-tls1-static-non-pie.
25919 (LDFLAGS-tst-tls1-static-non-pie): New.
25920 * elf/tst-tls1-static-non-pie.c: New file.
25921
25922 2017-09-29 Joseph Myers <joseph@codesourcery.com>
25923
25924 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
25925 (asinh): Define using libm_alias_double.
25926 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
25927 (cbrt): Define using libm_alias_double.
25928 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
25929 <libm-alias-double.h>.
25930 (copysign): Define using libm_alias_double.
25931 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
25932 (erf): Define using libm_alias_double.
25933 (erfc): Likewise.
25934 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
25935 (expm1): Define using libm_alias_double.
25936 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
25937 (fabs): Define using libm_alias_double.
25938 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
25939 libm_alias_double.
25940 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
25941 <libm-alias-double.h>.
25942 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
25943 libm_alias_double.
25944 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
25945 <libm-alias-double.h>.
25946 (getpayload): Define using libm_alias_double.
25947 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
25948 <libm-alias-double.h>.
25949 (llrint): Define using libm_alias_double.
25950 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
25951 (lrint): Define using libm_alias_double.
25952 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
25953 <libm-alias-double.h>.
25954 (nextup): Define using libm_alias_double.
25955 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
25956 <libm-alias-double.h>.
25957 (roundeven): Define using libm_alias_double.
25958 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
25959 libm_alias_double.
25960 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
25961 <libm-alias-double.h>.
25962 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
25963 using libm_alias_double.
25964 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
25965 (cos): Define using libm_alias_double.
25966 (sin): Likewise.
25967 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
25968 <libm-alias-double.h>.
25969 (sincos): Define using libm_alias_double.
25970 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
25971 (tanh): Define using libm_alias_double.
25972 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
25973 <libm-alias-double.h>.
25974 (totalorder): Define using libm_alias_double.
25975 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
25976 <libm-alias-double.h>.
25977 (totalordermag): Define using libm_alias_double.
25978 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
25979 libm_alias_double.
25980 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
25981 libm_alias_double.
25982 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
25983 <libm-alias-double.h>.
25984 (getpayload): Define using libm_alias_double.
25985 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
25986 <libm-alias-double.h>.
25987 (roundeven): Define using libm_alias_double.
25988 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
25989 <libm-alias-double.h>.
25990 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
25991 <libm-alias-double.h>.
25992 (totalorder): Define using libm_alias_double.
25993 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
25994 <libm-alias-double.h>.
25995 (totalordermag): Define using libm_alias_double.
25996 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
25997 libc compat symbol here.
25998 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
25999 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26000 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26001 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26002 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26003 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26004 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26005 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26006 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26007 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26008
26009 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26010
26011 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26012 _dl_relocate_static_pie instead of _dl_start to compute load
26013 address in static PIE. Return 0 if _DYNAMIC is undefined for
26014 static executable.
26015
26016 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26017
26018 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26019 _DYNAMIC is undefined for static executable.
26020
26021 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26022
26023 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26024
26025 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26026
26027 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26028
26029 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26030
26031 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26032 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26033 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26034 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26035 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26036 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26037 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26038 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26039 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26040 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26041 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26042 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26043 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26044 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26045 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26046 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26047 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26048
26049 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26050
26051 * math/bits/cmathcalls.h (cimag): Remove inline.
26052 (creal): Remove inline.
26053 (conj): Remove inline.
26054
26055 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26056
26057 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26058 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26059 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26060 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26061 (issignalingf_inline): Likewise.
26062 (POWF_LOG2_TABLE_BITS): Likewise.
26063 (POWF_LOG2_POLY_ORDER): Likewise.
26064 (POWF_SCALE_BITS): Likewise.
26065 (POWF_SCALE): Likewise.
26066 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26067 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26068 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26069
26070 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26071
26072 * math/Makefile (type-float-routines): Add e_log2f_data.
26073 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26074 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26075 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26076 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26077 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26078 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26079 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26080
26081 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26082
26083 * math/Makefile (type-float-routines): Add e_logf_data.
26084 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26085 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26086 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26087 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26088 * sysdeps/i386/fpu/e_logf_data.c: New file.
26089 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26090 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26091
26092 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26093
26094 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26095 undefined _DYNAMIC in PIE libc.a.
26096 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26097 Likewse.
26098
26099 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26100
26101 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26102 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26103 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26104 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26105 (__signbit): Remove.
26106 (__signbitl): Remove.
26107 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26108 (__signbit): Remove.
26109 (__signbitl): Remove.
26110 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26111 (__signbit): Remove.
26112 (__signbitl): Remove.
26113 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26114 (__signbit): Remove.
26115 (__signbitl): Remove.
26116 * sysdeps/tile/bits/mathinline.h: Delete file.
26117 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26118 (__signbit): Remove.
26119 (__signbitl): Remove.
26120
26121 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26122
26123 * math/math.h: Improve handling of C99 isgreater macros.
26124 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26125 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26126 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26127 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26128 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26129
26130 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26131
26132 * sysdeps/aarch64/libm-test-ulps: Update.
26133
26134 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26135
26136 [BZ #22225]
26137 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26138 math_opt_barrier on argument when doing arithmetic on it.
26139 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26140 Likewise. Use math_force_eval not math_opt_barrier after
26141 arithmetic.
26142 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26143 math_opt_barrier on argument when doing arithmetic on it.
26144 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26145 Likewise.
26146
26147 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26148
26149 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26150 libc_hidden_def.
26151 (__freeifaddrs): Likewise.
26152
26153 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26154
26155 * include/dirent.h (__dirfd): New declaration.
26156 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26157 alias.
26158 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26159 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26160 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26161 * include/unistd.h (__revoke): New declaration.
26162 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26163 alias.
26164 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26165 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26166 revoke.
26167 * include/dirent.h (__seekdir): New declaration.
26168 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26169 redefine as weak alias.
26170 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26171 of seekdir.
26172 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26173 and use libc_hidden_def on them.
26174 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26175 them.
26176 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26177 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26178 instead of getifaddrs and freeifaddrs.
26179
26180 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26181
26182 [BZ #18822]
26183 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26184 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26185 (__dso_handle): Remove declaration.
26186 * dlfcn/tstatexit.c (__dso_handle): Removed.
26187 (main): Don't check __dso_handle.
26188 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26189 (main): Don't check __dso_handle.
26190 * include/dso_handle.h: New file.
26191 * malloc/mtrace.c: Include <dso_handle.h>.
26192 (mtrace): Pass __dso_handle directly.
26193 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26194 (__dso_handle): Remove declaration.
26195 (__pthread_atfork): Pass __dso_handle directly.
26196 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26197 (__dso_handle): Removed.
26198 * posix/wordexp-test.c: Include <dso_handle.h>.
26199 (__dso_handle): Remove declaration.
26200 (__app_register_atfork): Pass __dso_handle directly.
26201 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26202 (__dso_handle): Remove declaration.
26203 (at_quick_exit): Pass __dso_handle directly.
26204 * stdlib/atexit.c: Include <dso_handle.h>.
26205 (__dso_handle): Remove declaration.
26206 (atexit): Pass __dso_handle directly.
26207 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26208 (__dso_handle): Removed.
26209
26210 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26211
26212 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26213 using VDSO.
26214
26215 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26216
26217 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26218 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26219 values to correct default value for given type.
26220
26221 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26222
26223 [BZ #22101]
26224 * elf/Makefile (tests): Add tst-debug1.
26225 ($(objpfx)tst-debug1): New.
26226 ($(objpfx)tst-debug1.out): Likewise.
26227 ($(objpfx)tst-debug1mod1.so): Likewise.
26228 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26229 with p_filesz == 0.
26230 * elf/tst-debug1.c: New file.
26231
26232 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26233
26234 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26235 Define using __ifunc.
26236
26237 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26238
26239 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26240 exp2f() values.
26241
26242 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26243
26244 [BZ #22156]
26245 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26246
26247 2017-09-26 Florian Weimer <fweimer@redhat.com>
26248
26249 * resolv/Makefile (tests-internal): Fix typo in comment.
26250
26251 2017-09-26 Florian Weimer <fweimer@redhat.com>
26252
26253 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26254
26255 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26256
26257 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26258 Use an union instead of a max_align_t array for __space,
26259 so that __space is the same size on all platforms.
26260 * malloc/scratch_buffer_grow_preserve.c
26261 (__libc_scratch_buffer_grow_preserve): Likewise.
26262
26263 [BZ #22183]
26264 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26265 version to 2.
26266 * posix/Makefile (routines): Add glob-lstat-compat and
26267 glob64-lstat-compat.
26268 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26269 * posix/glob-lstat-compat.c: New file.
26270 * posix/glob64-lstat-compat.c: Likewise.
26271 * posix/tst-glob_lstat_compat.c: Likewise.
26272 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26273 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26274 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26275 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26276 Likewise.
26277 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26278 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26279 * posix/glob.c (glob_lstat): New function.
26280 (glob): Rename to __glob and add versioned symbol to 2.27.
26281 (glob_in_dir): Use glob_lstat.
26282 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26283 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26284 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26285 2.27.
26286 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26287 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26288 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26289 gl_lstat on glob call.
26290 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26291 and glob64 symbols.
26292 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26293 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26294 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26295 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26296 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26297 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26298 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26299 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26300 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26301 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26302 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26303 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26305 Likewise.
26306 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26308 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26309 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26310 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26311 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26312 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26313 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26314 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26315 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26316 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26317 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26318
26319 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26320
26321 * configure.ac (AS): Require binutils 2.25 or later.
26322 * configure: Regenerated.
26323
26324 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26325
26326 [BZ #22207]
26327 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26328 VM size.
26329
26330 2017-09-25 DJ Delorie <dj@redhat.com>
26331
26332 [BZ #22161]
26333 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26334 resetting timeout.
26335
26336 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26337
26338 * sysdeps/ieee754/dbl-64/sincos32.h
26339 [SINCCOS32_H]: Remove define.
26340 [SINCOS32_H]: Define.
26341
26342 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26343
26344 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26345 (exp2f): Likewise.
26346 * math/w_exp2f.c: New file.
26347 * math/w_expf.c: New file.
26348 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26349 * math/w_expf_compat.c (__expf_compat): Likewise.
26350 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26351 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26352 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26353 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26354 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26355 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26356 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26357 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26358 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26359 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26360 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26361 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26362 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26363 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26365 Likewise.
26366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26367 Likewise.
26368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26369 Likewise.
26370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26371 Likewise.
26372 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26373 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26374 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26375 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26376 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26377 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26378 Likewise.
26379 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26380 Likewise.
26381 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26382 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26383 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26384
26385 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26386
26387 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26388 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26389 (roundtoint, converttoint): Likewise.
26390 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26391 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26392 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26393 * sysdeps/ieee754/flt-32/math_config.h: New file.
26394 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26395 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26396 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26397 * sysdeps/i386/fpu/math_errf.c: New file.
26398 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26399 * sysdeps/ia64/fpu/math_errf.c: New file.
26400 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26401 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26402
26403 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26404
26405 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26406 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26407 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26408 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26409 to make sure that these symbols are defined.
26410 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26411 of <limits.h>
26412 (__need_NULL): Do not define.
26413 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26414 alignment.
26415 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26416 CMGROUP_MAX, cmsgcred): Do not define.
26417 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26418 NULL.
26419 * bits/socket.h: Likewise.
26420 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26421 __gettimeofday instead of gettimeofday.
26422 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26423 instead of settimeofday.
26424
26425 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26426
26427 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26428 (asinhf): Define using libm_alias_float.
26429 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26430 (atanf): Define using libm_alias_float.
26431 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26432 (cbrtf): Define using libm_alias_float.
26433 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26434 (ceilf): Define using libm_alias_float.
26435 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26436 <libm-alias-float.h>.
26437 (copysignf): Define using libm_alias_float.
26438 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26439 (cosf): Define using libm_alias_float.
26440 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26441 (erff): Define using libm_alias_float.
26442 (erfcf): Likewise.
26443 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26444 (expm1f): Define using libm_alias_float.
26445 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26446 (fabsf): Define using libm_alias_float.
26447 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26448 (floorf): Define using libm_alias_float.
26449 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26450 (frexpf): Define using libm_alias_float.
26451 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26452 libm_alias_float.
26453 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26454 <libm-alias-float.h>.
26455 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26456 libm_alias_float.
26457 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26458 <libm-alias-float.h>.
26459 (getpayloadf): Define using libm_alias_float.
26460 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26461 <libm-alias-float.h>.
26462 (llrintf): Define using libm_alias_float.
26463 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26464 <libm-alias-float.h>.
26465 (llroundf): Define using libm_alias_float.
26466 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26467 (logbf): Define using libm_alias_float.
26468 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26469 (lrintf): Define using libm_alias_float.
26470 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26471 (lroundf): Define using libm_alias_float.
26472 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26473 (modff): Define using libm_alias_float.
26474 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26475 <libm-alias-float.h>.
26476 (nearbyintf): Define using libm_alias_float.
26477 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26478 <libm-alias-float.h>.
26479 (nextafterf): Define using libm_alias_float.
26480 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26481 <libm-alias-float.h>.
26482 (nextupf): Define using libm_alias_float.
26483 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26484 <libm-alias-float.h>.
26485 (remquof): Define using libm_alias_float.
26486 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26487 (rintf): Define using libm_alias_float.
26488 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26489 <libm-alias-float.h>.
26490 (roundevenf): Define using libm_alias_float.
26491 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26492 (roundf): Define using libm_alias_float.
26493 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26494 using libm_alias_float.
26495 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26496 <libm-alias-float.h>.
26497 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26498 Define using libm_alias_float.
26499 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26500 <libm-alias-float.h>.
26501 (sincosf): Define using libm_alias_float.
26502 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26503 (sinf): Define using libm_alias_float.
26504 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26505 (tanf): Define using libm_alias_float.
26506 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26507 (tanhf): Define using libm_alias_float.
26508 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26509 <libm-alias-float.h>.
26510 (totalorderf): Define using libm_alias_float.
26511 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26512 <libm-alias-float.h>.
26513 (totalordermagf): Define using libm_alias_float.
26514 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26515 (truncf): Define using libm_alias_float.
26516 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26517 libm_alias_float.
26518 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26519 libm_alias_float.
26520
26521 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26522
26523 [BZ #22146]
26524 math/math.h: Let fpclassify use the builtin in C++ mode, even
26525 when optimazing for size.
26526
26527 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26528
26529 * csu/Makefile (generated): Do not add version-info.h.
26530 (before-compile): Likewise.
26531 (all-Banner-files): Remove variable.
26532 ($(objpfx)version-info.h): Remove rule.
26533 * csu/version.c (banner): Do not include "version-info.h".
26534 * libidn/Banner: Remove.
26535 * manual/contrib.texi (Simon Josefsson): New entry.
26536
26537 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26538
26539 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26540 Remove conditionals on LDBL_MANT_DIG.
26541 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26542 (__ieee754_lgammal_r): Likewise.
26543
26544 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26545
26546 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26547 _Float128 and L().
26548 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26549 _Float128 and L(). Replace _Float128 with long double and L(x)
26550 with xL, throughout the file.
26551 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26552 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26553 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26554 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26555
26556 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26557
26558 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26559 sysdeps/ieee754/ldbl-128ibm.
26560 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26561 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26562 of including it. Keep _Float128 and L() intact. These will be
26563 reviewed by a separate patch.
26564 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26565 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26566 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26567 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26568
26569 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26570
26571 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26572 (__finitef128): Define to __redirect___finitef128.
26573 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26574 (__isinff128): Define to __redirect___isinff128.
26575 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26576 (__isnanf128): Define to __redirect___isnanf128.
26577
26578 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26579
26580 * sysdeps/powerpc/powerpc64le/Makefile
26581 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26582 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26583
26584 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26585 Carlos O'Donell <carlos@redhat.com>
26586
26587 [BZ #22180]
26588 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26589 * stdlib/test-dlclose-exit-race.c: New file.
26590 * stdlib/test-dlclose-exit-race-helper.c: New file.
26591 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26592
26593 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26594
26595 * crypt/Banner: Remove file.
26596 * nptl/Banner: Likewise.
26597 * resolv/Banner: Likewise.
26598 * soft-fp/Banner: Likewise.
26599 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26600 ($(objpfx)version.d): Remove dependency on banner.h.
26601 ($(objpfx)version.os): Likewise.
26602 * nptl/version.c (banner): Do not include banner.h.
26603 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26604 Jelinek and BIND code.
26605
26606 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26607 Carlos O'Donell <carlos@redhat.com>
26608
26609 * support/xdlfcn.h: New file.
26610 * support/xdlfcn.c: New file.
26611 * support/Makefile (libsupport-routines): Add xdlfcn.
26612 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26613
26614 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26615
26616 [BZ #20142]
26617 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26618 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26619 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26620 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26621 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26622 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26623 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26624 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26625
26626 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26627 Ricky Zhou <rickyz@google.com>
26628 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26629
26630 [BZ #14333]
26631 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26632 Remove atomics.
26633 (__new_exitfn): Fail registration when we finished at_exit processing.
26634 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26635 * stdlib/on_exit.c (__on_exit): Likewise.
26636 * stdlib/exit.c (__exit_funcs_done): New variable.
26637 (__run_exit_handlers): Use __exit_funcs_lock.
26638 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26639 declarations.
26640 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26641 (test-cxa_atexit-race, test-on_exit-race): New tests.
26642 * stdlib/test-atexit-race-common.c: New file.
26643 * stdlib/test-atexit-race.c: New file.
26644 * stdlib/test-at_quick_exit-race.c: New file.
26645 * stdlib/test-cxa_atexit-race.c: New file.
26646 * stdlib/test-on_exit-race.c: New file.
26647
26648 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
26649
26650 * benchtests/Makefile: Add exp2f and log2f benchmarks.
26651 * benchtests/exp2f-inputs: Copy of expf-inputs.
26652 * benchtests/log2f-inputs: Copy of logf-inputs.
26653
26654 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26655
26656 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
26657 Explicitly take address of first element of array arguments in
26658 call to INLINE_SYSCALL.
26659
26660 2017-09-19 Andreas Schwab <schwab@suse.de>
26661
26662 [BZ #22134]
26663 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
26664 execveat first.
26665 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
26666 unimplemented.
26667 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
26668 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
26669 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
26670 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
26671 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26672 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26673 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26674 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26675 * posix/Makefile (tests): Add tst-fexecve.
26676 * posix/tst-fexecve.c: New file.
26677
26678 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26679
26680 * benchtests/Makefile: Add logf benchmark.
26681 * benchtests/logf-inputs: Add reduced trace from wrf_r.
26682
26683 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26684
26685 * benchtests/Makefile: Add expf benchmark.
26686 * benchtests/expf-inputs: Add reduced trace from wrf_r.
26687
26688 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26689
26690 * csu/Makefile: Add -funwind-tables to libc-start.c.
26691 * debug/Makefile: Add -funwind-tables to backtrace.c.
26692 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
26693 * sysdeps/arm/Makefile: Likewise.
26694 * sysdeps/i386/Makefile: Likewise.
26695 * sysdeps/m68k/Makefile: Likewise.
26696 * sysdeps/mips/Makefile: Likewise.
26697 * sysdeps/nios2/Makefile: Likewise.
26698 * sysdeps/sh/Makefile: Likewise.
26699 * sysdeps/sparc/Makefile: Likewise.
26700
26701 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26702
26703 * benchtests/Makefile (bench-math): Add trunc and truncf.
26704 (CFLAGS-bench-trunc.c): New variable.
26705 (CFLAGS-bench-truncf.c): Likewise.
26706 * benchtests/trunc-inputs: New file.
26707 * benchtests/truncf-inputs: Likewise.
26708
26709 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26710
26711 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
26712
26713 2017-09-18 Joseph Myers <joseph@codesourcery.com>
26714
26715 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
26716 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
26717 redefine.
26718 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
26719 (exp10l): Define as weak alias.
26720 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
26721 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
26722 and redefine.
26723 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
26724 (remainderl): Define as weak alias.
26725
26726 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
26727 (fmal): Define using libm_alias_ldouble.
26728 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
26729 (acoshl): Define using libm_alias_ldouble.
26730 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
26731 (acosl): Define using libm_alias_ldouble.
26732 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
26733 (asinl): Define using libm_alias_ldouble.
26734 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
26735 (atan2l): Define using libm_alias_ldouble.
26736 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
26737 (atanhl): Define using libm_alias_ldouble.
26738 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
26739 (coshl): Define using libm_alias_ldouble.
26740 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
26741 (exp10l): Define using libm_alias_ldouble.
26742 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
26743 (exp2l): Define using libm_alias_ldouble.
26744 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
26745 (expl): Define using libm_alias_ldouble.
26746 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
26747 (fmodl): Define using libm_alias_ldouble.
26748 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
26749 (hypotl): Define using libm_alias_ldouble.
26750 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
26751 (j0l): Define using libm_alias_ldouble.
26752 (y0l): Likewise.
26753 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
26754 (j1l): Define using libm_alias_ldouble.
26755 (y1l): Likewise.
26756 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
26757 (jnl): Define using libm_alias_ldouble.
26758 (ynl): Likewise.
26759 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
26760 (log10l): Define using libm_alias_ldouble.
26761 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
26762 (log2l): Define using libm_alias_ldouble.
26763 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
26764 (logl): Define using libm_alias_ldouble.
26765 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
26766 (powl): Define using libm_alias_ldouble.
26767 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
26768 (remainderl): Define using libm_alias_ldouble.
26769 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
26770 (sinhl): Define using libm_alias_ldouble.
26771 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
26772 (sqrtl): Define using libm_alias_ldouble.
26773 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
26774 (tgammal): Define using libm_alias_ldouble.
26775 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
26776 (exp10l): Do not use long_double_symbol here.
26777 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
26778 [LIBM_SVID_COMPAT] (remainderl): Likewise.
26779 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
26780 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
26781 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
26782 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
26783 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
26784 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
26785 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
26786 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
26787 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
26788 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
26789 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
26790 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
26791 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
26792 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
26793 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
26794 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
26795 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
26796 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
26797 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
26798 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
26799
26800 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
26801
26802 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
26803 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
26804
26805 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
26806
26807 * io/read.c (read): Add libc_hidden_weak.
26808 * sysdeps/mach/hurd/read.c (read): Likewise.
26809 * io/write.c (write): Likewise.
26810 * sysdeps/mach/hurd/write.c (write): Likewise.
26811 * io/pread64.c (__pread64): Likewise.
26812 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
26813 * posix/pread64.c (__pread64): Add libc_hidden_def.
26814
26815 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
26816
26817 * benchtests/scripts/compare_strings.py: New option -g.
26818 (draw_graph): Print a message that a graph is being generated.
26819 (process_results): Generate graph only if -g is passed.
26820 (main): Process option -g.
26821
26822 * benchtests/scripts/compare_strings.py (process_results):
26823 Better spacing for output.
26824
26825 * benchtests/scripts/compare_strings.py: Use argparse.
26826 * benchtests/README: Document existence of compare_strings.py.
26827
26828 2017-09-15 Joseph Myers <joseph@codesourcery.com>
26829
26830 * math/s_fma.c: Include <libm-alias-double.h>.
26831 (fma): Define using libm_alias_double.
26832 * math/s_nextafter.c: Include <libm-alias-double.h>.
26833 (nextafter): Define using libm_alias_double.
26834 * math/w_acos_compat.c: Include <libm-alias-double.h>.
26835 (acos): Define using libm_alias_double.
26836 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
26837 (aocsh): Define using libm_alias_double.
26838 * math/w_asin_compat.c: Include <libm-alias-double.h>.
26839 (asin): Define using libm_alias_double.
26840 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
26841 (atan2): Define using libm_alias_double.
26842 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
26843 (atanh): Define using libm_alias_double.
26844 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
26845 (cosh): Define using libm_alias_double.
26846 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
26847 (exp10): Define using libm_alias_double.
26848 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
26849 (exp2): Define using libm_alias_double.
26850 * math/w_exp_compat.c: Include <libm-alias-double.h>.
26851 (exp): Define using libm_alias_double.
26852 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
26853 (fmod): Define using libm_alias_double.
26854 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
26855 (hypot): Define using libm_alias_double.
26856 * math/w_j0_compat.c: Include <libm-alias-double.h>.
26857 (j0): Define using libm_alias_double.
26858 (y0): Likewise.
26859 * math/w_j1_compat.c: Include <libm-alias-double.h>.
26860 (j1): Define using libm_alias_double.
26861 (y1): Likewise.
26862 * math/w_jn_compat.c: Include <libm-alias-double.h>.
26863 (jn): Define using libm_alias_double.
26864 (yn): Likewise.
26865 * math/w_log10_compat.c: Include <libm-alias-double.h>.
26866 (log10): Define using libm_alias_double.
26867 * math/w_log2_compat.c: Include <libm-alias-double.h>.
26868 (log2): Define using libm_alias_double.
26869 * math/w_log_compat.c: Include <libm-alias-double.h>.
26870 (log): Define using libm_alias_double.
26871 * math/w_pow_compat.c: Include <libm-alias-double.h>.
26872 (pow): Define using libm_alias_double.
26873 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
26874 (remainder): Define using libm_alias_double.
26875 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
26876 (sinh): Define using libm_alias_double.
26877 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
26878 (sqrt): Define using libm_alias_double.
26879 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
26880 (tgamma): Define using libm_alias_double.
26881 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
26882 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
26883 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
26884 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
26885 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
26886 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
26887 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
26888 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
26889 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
26890 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
26891 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
26892 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
26893 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
26894 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
26895 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
26896 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
26897 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
26898 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
26899 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
26900 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
26901 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
26902 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
26903 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
26904 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
26905 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
26906
26907 * math/e_acoshl.c: Remove.
26908 * math/e_acosl.c: Likewise.
26909 * math/e_asinl.c: Likewise.
26910 * math/e_atan2l.c: Likewise.
26911 * math/e_atanhl.c: Likewise.
26912 * math/e_coshl.c: Likewise.
26913 * math/e_expl.c: Likewise.
26914 * math/e_fmodl.c: Likewise.
26915 * math/e_gammal_r.c: Likewise.
26916 * math/e_hypotl.c: Likewise.
26917 * math/e_j0l.c: Likewise.
26918 * math/e_j1l.c: Likewise.
26919 * math/e_jnl.c: Likewise.
26920 * math/e_lgammal_r.c: Likewise.
26921 * math/e_log10l.c: Likewise.
26922 * math/e_log2l.c: Likewise.
26923 * math/e_logl.c: Likewise.
26924 * math/e_powl.c: Likewise.
26925 * math/e_rem_pio2l.c: Likewise.
26926 * math/e_sinhl.c: Likewise.
26927 * math/e_sqrtf128.c: Likewise.
26928 * math/e_sqrtl.c: Likewise.
26929 * math/k_cosl.c: Likewise.
26930 * math/k_sinl.c: Likewise.
26931 * math/k_tanl.c: Likewise.
26932 * math/s_asinhl.c: Likewise.
26933 * math/s_atanl.c: Likewise.
26934 * math/s_cbrtl.c: Likewise.
26935 * math/s_erfl.c: Likewise.
26936 * math/s_expm1l.c: Likewise.
26937 * math/s_log1pl.c: Likewise.
26938 * math/s_tanhl.c: Likewise.
26939
26940 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26941
26942 [BZ #21745]
26943 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
26944 [$(subdir) = math] (sysdep_calls): New variable. Has the
26945 previous contents of sysdep_routines, but re-sorted..
26946 [$(subdir) = math] (sysdep_routines): Re-use the contents from
26947 sysdep_calls.
26948 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
26949 defined in sysdep_calls and replace by the respective m_* names.
26950 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
26951 (compat_symbol): Undefine to avoid duplicated compat symbols in
26952 libc.
26953
26954 2017-09-15 Joseph Myers <joseph@codesourcery.com>
26955
26956 * math/s_fmaf.c: Include <libm-alias-float.h>.
26957 (fmaf): Define using libm_alias_float.
26958 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
26959 (acosf): Define using libm_alias_float.
26960 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
26961 (acoshf): Define using libm_alias_float.
26962 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
26963 (asinf): Define using libm_alias_float.
26964 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
26965 (atan2f): Define using libm_alias_float.
26966 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
26967 (atanhf): Define using libm_alias_float.
26968 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
26969 (coshf): Define using libm_alias_float.
26970 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
26971 (exp10f): Define using libm_alias_float.
26972 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
26973 (fmodf): Define using libm_alias_float.
26974 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
26975 (hypotf): Define using libm_alias_float.
26976 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
26977 (j0f): Define using libm_alias_float.
26978 (y0f): Likewise.
26979 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
26980 (j1f): Define using libm_alias_float.
26981 (y1f): Likewise.
26982 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
26983 (jnf): Define using libm_alias_float.
26984 (ynf): Likewise.
26985 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
26986 (log10f): Define using libm_alias_float.
26987 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
26988 (log2f): Define using libm_alias_float.
26989 * math/w_logf_compat.c: Include <libm-alias-float.h>.
26990 (logf): Define using libm_alias_float.
26991 * math/w_powf_compat.c: Include <libm-alias-float.h>.
26992 (powf): Define using libm_alias_float.
26993 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
26994 (remainderf): Define using libm_alias_float.
26995 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
26996 (sinhf): Define using libm_alias_float.
26997 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
26998 (sqrtf): Define using libm_alias_float.
26999 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27000 (tgammaf): Define using libm_alias_float.
27001
27002 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27003
27004 * include/math.h (roundeven): Change hidden_proto call to
27005 __roundeven.
27006 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27007 alias.
27008 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27009 (y0): Rename to __y0 and define as weak alias.
27010 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27011 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27012 alias.
27013 (y0f): Rename to __y0f and define as weak alias.
27014 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27015 alias.
27016 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27017 (y1): Rename to __y1 and define as weak alias.
27018 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27019 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27020 alias.
27021 (y1f): Rename to __y1f and define as weak alias.
27022 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27023 alias.
27024 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27025 (yn): Rename to __yn and define as weak alias.
27026 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27027 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27028 alias.
27029 (ynf): Rename to __ynf and define as weak alias.
27030 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27031 (fromfp): Define as weak alias.
27032 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27033 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27034 (fromfpx): Define as weak alias.
27035 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27036 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27037 __getpayload and define as weak alias.
27038 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27039 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27040 __roundeven and define as weak alias.
27041 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27042 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27043 __setpayload.
27044 (setpayload): Define as weak alias.
27045 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27046 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27047 __setpayloadsig.
27048 (setpayloadsig): Define as weak alias.
27049 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27050 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27051 __totalorder and define as weak alias.
27052 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27053 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27054 to __totalordermag and define as weak alias.
27055 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27056 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27057 (ufromfp): Define as weak alias.
27058 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27059 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27060 __ufromfpx.
27061 (ufromfpx): Define as weak alias.
27062 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27063 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27064 Rename to __getpayload and define as weak alias.
27065 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27066 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27067 Rename to __roundeven and define as weak alias.
27068 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27069 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27070 Rename to __totalorder and define as weak alias.
27071 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27072 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27073 (totalordermag): Rename to __totalordermag and define as weak
27074 alias.
27075 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27076 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27077 macro.
27078 (__roundevenl): Likewise.
27079 (__totalorderl): Likewise.
27080 (__totalordermagl): Likewise
27081 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27082 __fromfpf128.
27083 (fromfpf128): Define as weak alias.
27084 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27085 __fromfpxf128.
27086 (fromfpxf128): Define as weak alias.
27087 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27088 __setpayloadf128.
27089 (setpayloadf128): Define as weak alias.
27090 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27091 __setpayloadsigf128.
27092 (setpayloadsigf128): Define as weak alias.
27093 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27094 __ufromfpf128.
27095 (ufromfpf128): Define as weak alias.
27096 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27097 __ufromfpxf128.
27098 (ufromfpxf128): Define as weak alias.
27099 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27100 (fromfpf): Define as weak alias.
27101 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27102 __fromfpxf.
27103 (fromfpxf): Define as weak alias.
27104 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27105 __getpayloadf and define as weak alias.
27106 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27107 __roundevenf and define as weak alias.
27108 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27109 __setpayloadf.
27110 (setpayloadf): Define as weak alias.
27111 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27112 __setpayloadsigf.
27113 (setpayloadsigf): Define as weak alias.
27114 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27115 __totalorderf and define as weak alias.
27116 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27117 Rename to __totalordermagf and define as weak alias.
27118 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27119 __ufromfpf.
27120 (ufromfpf): Define as weak alias.
27121 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27122 __ufromfpxf.
27123 (ufromfpxf): Define as weak alias.
27124 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27125 __fromfpl.
27126 (fromfpl): Define as weak alias.
27127 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27128 __fromfpxl.
27129 (fromfpxl): Define as weak alias.
27130 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27131 to __getpayloadl and define as weak alias.
27132 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27133 __roundevenl and define as weak alias.
27134 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27135 __setpayloadl.
27136 (setpayloadl): Define as weak alias.
27137 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27138 __setpayloadsigl.
27139 (setpayloadsigl): Define as weak alias.
27140 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27141 to __totalorderl and define as weak alias.
27142 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27143 Rename to __totalordermagl and define as weak alias.
27144 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27145 __ufromfpl.
27146 (ufromfpl): Define as weak alias.
27147 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27148 __ufromfpxl.
27149 (ufromfpxl): Define as weak alias.
27150 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27151 __fromfpl.
27152 (fromfpl): Define as weak alias.
27153 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27154 __fromfpxl.
27155 (fromfpxl): Define as weak alias.
27156 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27157 Rename to __getpayloadl and define as weak alias.
27158 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27159 to __roundevenl and define as weak alias. Call __roundeven
27160 instead of roundeven.
27161 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27162 __setpayloadl.
27163 (setpayloadl): Define as weak alias.
27164 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27165 __setpayloadsigl.
27166 (setpayloadsigl): Define as weak alias.
27167 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27168 Rename to __totalorderl and define as weak alias.
27169 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27170 Rename to __totalordermagl and define as weak alias.
27171 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27172 __ufromfpl.
27173 (ufromfpl): Define as weak alias.
27174 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27175 __ufromfpxl.
27176 (ufromfpxl): Define as weak alias.
27177 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27178 __fromfpl.
27179 (fromfpl): Define as weak alias.
27180 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27181 __fromfpxl.
27182 (fromfpxl): Define as weak alias.
27183 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27184 __getpayloadl and define as weak alias.
27185 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27186 __roundevenl and define as weak alias.
27187 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27188 __setpayloadl.
27189 (setpayloadl): Define as weak alias.
27190 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27191 __setpayloadsigl.
27192 (setpayloadsigl): Define as weak alias.
27193 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27194 __totalorderl and define as weak alias.
27195 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27196 Rename to __totalordermagl and define as weak alias.
27197 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27198 __ufromfpl.
27199 (ufromfpl): Define as weak alias.
27200 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27201 __ufromfpxl.
27202 (ufromfpxl): Define as weak alias.
27203
27204 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27205
27206 * benchtests/bench-string.h (realloc_bufs): New function.
27207 (test_init): Call it.
27208 * benchtests/bench-memset-large.c (do_test): Likewise.
27209 * benchtests/bench-memset.c (do_test): Likewise.
27210
27211 * benchtests/bench-memset-large.c: Print output in JSON
27212 format.
27213 * benchtests/bench-memset.c: Likewise.
27214
27215 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27216
27217 [BZ #21084]
27218 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27219 * iconvdata/Makefile: Add IBM858.
27220 * iconvdata/gconv-modules: Likewise.
27221 * iconvdata/tst-tables.sh: Likewise.
27222 * iconvdata/ibm858.c: New file.
27223 * localedata/charmaps/IBM858: Likewise.
27224
27225 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27226
27227 [BZ #22023]
27228 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27229 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27230
27231 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27232
27233 [BZ #22112]
27234 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27235 and add tel_int_fmt.
27236
27237 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27238
27239 * sysdeps/generic/libm-alias-float128.h: New file.
27240 * sysdeps/generic/math-type-macros-float128.h: Include
27241 <libm-alias-float128.h>.
27242 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27243
27244 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27245
27246 * sysdeps/generic/libm-alias-ldouble.h: New file.
27247 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27248 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27249 * sysdeps/generic/math-type-macros-ldouble.h: Include
27250 <libm-alias-ldouble.h>.
27251 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27252 libm_alias_ldouble.
27253
27254 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27255
27256 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27257 * math/w_exp_compat.c: ... here.
27258 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27259 * math/w_expf_compat.c: ... here.
27260 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27261 * math/w_expl_compat.c: ... here.
27262 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27263 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27264 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27265 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27266
27267 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27268
27269 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27270 redefine.
27271 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27272 macro.
27273 (ldexpl): Only define as compat symbol for libc, not libm.
27274 (scalbnl): Define as compat symbol for libc here.
27275 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27276 define for [IS_IN (libc)].
27277 (__ldexpl_2): Remove alias.
27278 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27279 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27280 name in long_double_symbol call.
27281 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27282 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27283 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27284 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27285 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27286 Remove macro.
27287 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27288 Define as compat symbol.
27289
27290 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27291
27292 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27293 * sysdeps/unix/sysv/linux/alpha/Makefile
27294 [$(subdir) = csu] (sysdep_routines): Remove rule.
27295
27296 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27297
27298 * sysdeps/generic/libm-alias-double.h: New file.
27299 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27300 * sysdeps/generic/math-type-macros-double.h: Include
27301 <libm-alias-double.h>.
27302 [declare_mgen_alias] (declare_mgen_alias): Define to use
27303 libm_alias_double.
27304 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27305 (M_LIBM_NEED_COMPAT): Remove macro.
27306 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27307 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27308 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27309 code.
27310 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27311 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27312 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27313 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27314 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27315 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27316 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27317 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27318 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27319 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27320 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27321 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27322 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27323 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27324 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27325 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27326 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27327 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27328 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27329 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27330 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27331 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27332 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27333 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27334 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27335 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27336 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27337 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27338 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27339 macro.
27340 (declare_mgen_alias): New macro.
27341 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27342 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27343 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27344 (M_LIBM_NEED_COMPAT): Remove macro.
27345 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27346 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27347 <first-versions.h>.
27348 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27349 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27350
27351 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27352
27353 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27354 (declare_mgen_alias_2): Remove.
27355 * sysdeps/generic/math-type-macros-double.h
27356 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27357 Likewise.
27358 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27359 alias.
27360 (ldexp): Define with declare_mgen_alias.
27361 (scalbn): Likewise.
27362
27363 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27364
27365 * grp/initgroups.c: Include config.h.
27366 (DEFAULT_CONFIG): New macro.
27367 (internal_getgrouplist): Use DEFAULT_CONFIG.
27368 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27369 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27370 (DEFAULT_DEFCONFIG): New macro.
27371 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27372 * nss/grp-lookup.c: Include config.h
27373 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27374 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27375 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27376 * manual/nss.texi: Update default values section.
27377
27378 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27379
27380 [BZ #21967]
27381 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27382 New.
27383 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27384 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27385 Handle MathVec_Prefer_No_AVX512.
27386 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27387 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27388 is set.
27389
27390 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27391
27392 * posix/sched_primax.c (__sched_get_priority_max): Add
27393 libc_hidden_def.
27394 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27395 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27396 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27397 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27398 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27399 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27400 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27401 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27402 Add aliases.
27403
27404 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27405
27406 * sysdeps/generic/libm-alias-float.h: New file.
27407 * sysdeps/generic/math-type-macros-float.h: Include
27408 <libm-alias-float.h>.
27409 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27410
27411 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27412
27413 [BZ #22093]
27414 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27415 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27416 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27417 (HWCAP_IMPORTANT): Likewise.
27418 (HWCAP_X86_64): New enum.
27419 (HWCAP_X86_AVX512_1): Updated.
27420 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27421 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27422 (modules-names): Add x86_64/tst-x86_64mod-1.
27423 (LDFLAGS-tst-x86_64mod-1.so): New.
27424 ($(objpfx)tst-x86_64-1): Likewise.
27425 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27426 (tst-x86_64-1-clean): Likewise.
27427 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27428 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27429
27430 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27431
27432 * po/sv.po: Update translations.
27433 * po/fr.po: Likewise.
27434
27435 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27436
27437 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27438 seconds.
27439 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27440 seconds.
27441 * elf/rtld-Rules: Fix $(error) use.
27442
27443 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27444
27445 [BZ #14925]
27446 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27447 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27448 * localedata/locales/bn_BD: “Bengali” was still used in some
27449 comments. Change it to “Bangla”.
27450
27451 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27452
27453 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27454
27455 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27456
27457 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27458 thunderx2t99p1 to list of cpu names.
27459 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27460 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27461
27462 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27463
27464 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27465 Use strcmp instead of tunable_is_name.
27466
27467 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27468
27469 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27470 (F_GET_RW_HINT): New macro.
27471 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27472 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27473 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27474 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27475 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27476 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27477 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27478 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27479 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27480
27481 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27482 (F_ADD_SEALS): New macro.
27483 [__USE_GNU] (F_GET_SEALS): Likewise.
27484 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27485 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27486 [__USE_GNU] (F_SEAL_GROW): Likewise.
27487 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27488
27489 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27490
27491 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27492 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27493 * posix/glob_internal.h (__glob_pattern_type):
27494 * posix/glob.c (glob):
27495 * posix/glob_pattern_p.c (__glob_pattern_p):
27496 Use them.
27497
27498 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27499 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27500 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27501 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27502 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27504 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27505 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27506 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27507 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27508 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27509 * sysdeps/wordsize-64/glob.c: Likewise.
27510 * sysdeps/wordsize-64/glob64.c: Likewise.
27511 * sysdeps/wordsize-64/globfree.c: Likewise.
27512 * sysdeps/wordsize-64/globfree64.c: Likewise.
27513 * sysdeps/unix/sysv/linux/glob.c: New file.
27514 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27515 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27516 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27517 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27518 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27519 adds !GLOB_NO_OLD_VERSION as an extra condition.
27520 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27521 using relative path instead of absolute one.
27522 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27523 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27524 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27525 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27526 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27527 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27528
27529 [BZ #1062]
27530 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27531 (glob): Use the same scratch buffer for both getlogin_r and
27532 getpwnam_r. Don’t require preallocation of the login name. This
27533 simplifies storage allocation, and corrects the handling of
27534 long login names.
27535
27536 [BZ #1062]
27537 * posix/glob.c (glob): Port recent patches to platforms
27538 lacking getpwnam_r.
27539 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27540 returns an error number rather than setting errno.
27541
27542 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27543 instead of GCC extension.
27544 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27545 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27546 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27547
27548 [BZ #866]
27549 [BZ #1062]
27550 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27551 * posix/bug-glob1.c: Remove file.
27552 * posix/tst-glob_symlinks.c: New file.
27553 * posix/glob.c (__lstat64): New macro.
27554 (is_dir): New function.
27555 (glob, glob_in_dir): Match symlinks even if they are dangling.
27556 (link_stat, link_exists_p): Remove. All uses removed.
27557
27558 [BZ #1062]
27559 [BZ #19971]
27560 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27561 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27562 All uses removed.
27563
27564 [BZ #1062]
27565 CVE-2017-15671
27566 * posix/Makefile (routines): Add globfree, globfree64, and
27567 glob_pattern_p.
27568 * posix/flexmember.h: New file.
27569 * posix/glob_internal.h: Likewise.
27570 * posix/glob_pattern_p.c: Likewise.
27571 * posix/globfree.c: Likewise.
27572 * posix/globfree64.c: Likewise.
27573 * sysdeps/gnu/globfree64.c: Likewise.
27574 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27575 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27576 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27577 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27578 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27579 * sysdeps/wordsize-64/globfree.c: Likewise.
27580 * sysdeps/wordsize-64/globfree64.c: Likewise.
27581 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27582 [NDEBUG): Remove comments.
27583 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27584 (dirent_type): New type. Use uint_fast8_t not
27585 uint8_t, as C99 does not require uint8_t.
27586 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27587 (struct readdir_result): Use dirent_type. Do not define skip_entry
27588 unless it is needed; this saves a byte on platforms lacking d_ino.
27589 (readdir_result_type, readdir_result_skip_entry):
27590 New functions, replacing ...
27591 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27592 these functions, which were removed. This makes the callers
27593 easier to read. All callers changed.
27594 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27595 (size_add_wrapv, glob_use_alloca): New static functions.
27596 (glob, glob_in_dir): Check for size_t overflow in several places,
27597 and fix some size_t checks that were not quite right.
27598 Remove old code using SHELL since Bash no longer
27599 uses this.
27600 (glob, prefix_array): Separate MS code better.
27601 (glob_in_dir): Remove old Amiga and VMS code.
27602 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27603 separate files.
27604 (glob_in_dir): Do not rely on undefined behavior in accessing
27605 struct members beyond their bounds. Use a flexible array member
27606 instead
27607 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27608 0/1. Caller changed.
27609 (glob): Fix memory leaks.
27610 * posix/glob64 (globfree64): Move to separate file.
27611 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27612 (globfree64): Remove hidden alias.
27613 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27614 oldglob.
27615 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27616 separate file.
27617 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27618 define.
27619 Move compat code to separate file.
27620 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27621 separate file.
27622
27623 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27624
27625 * resolv/tst-resolv-qtypes.c (domain): Changed to
27626 "const char domain[] =".
27627
27628 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27629
27630 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27631 version to 3.1.6.
27632
27633 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27634 (TCP_MD5SIG_EXT): Likewise.
27635 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27636 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27637 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27638
27639 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27640
27641 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27642
27643 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27644
27645 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
27646
27647 [BZ #22100]
27648 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
27649
27650 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27651
27652 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
27653 before assuming that the file is empty. Avoid testing buffer content
27654 when nread == 0.
27655
27656 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27657
27658 [BZ #18858]
27659 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27660 Remove define.
27661 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
27662 Likewise.
27663 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
27664 Likewise.
27665 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
27666 Likewise.
27667 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27668 Likewise.
27669 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
27670 Likewise.
27671 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
27672 Likewise.
27673
27674 2017-09-06 Florian Weimer <fweimer@redhat.com>
27675
27676 * malloc/dynarray_emplace_enlarge.c
27677 (__libc_dynarray_emplace_enlarge): Add missing else.
27678
27679 2017-09-06 Florian Weimer <fweimer@redhat.com>
27680
27681 [BZ #22096]
27682 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
27683 case of failure to obtain the global conf object.
27684
27685 2017-09-06 Florian Weimer <fweimer@redhat.com>
27686
27687 [BZ #22095]
27688 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
27689 dynarray allocation failure.
27690
27691 2017-09-06 Florian Weimer <fweimer@redhat.com>
27692
27693 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
27694 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
27695 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
27696 New functions.
27697 (response): Call them. Add 'p', '6' flag processing.
27698 (test_reverse): New function.
27699 (test_get2_any): Call it.
27700 (test_no_inet6): Add 'p' test.
27701 (test_inet6): Likewise.
27702
27703 2017-09-06 Florian Weimer <fweimer@redhat.com>
27704
27705 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
27706 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
27707 the QNAME.
27708 (test_gai): Adjust query names. Add additional tests.
27709 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
27710 test_get2. Adjust query names. Add additional tests.
27711 (test_no_inet6): New function, extracted from threadfunc.
27712 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
27713 Add additional tests.
27714
27715 2017-09-06 Mike FABIAN <mfabian@redhat.com>
27716
27717 [BZ #22070]
27718 * localedata/unicode-gen/utf8_gen.py: Set the width for
27719 characters with Prepended_Concatenation_Mark property to 1
27720 * localedata/charmaps/UTF-8: Updated using the improved script.
27721
27722 2017-09-06 Mike FABIAN <mfabian@redhat.com>
27723
27724 [BZ #21750]
27725 * localedata/unicode-gen/utf8_gen.py: Improve the script to
27726 use the range notation for all ranges of neighbouring characters
27727 with the same width.
27728
27729 2017-09-05 Joseph Myers <joseph@codesourcery.com>
27730
27731 * sysdeps/generic/math-type-macros-double.h: Include
27732 <math-svid-compat.h>.
27733 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27734 * sysdeps/generic/math-type-macros-float.h: Include
27735 <math-svid-compat.h>.
27736 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27737 * sysdeps/generic/math-type-macros-ldouble.h: Include
27738 <math-svid-compat.h>.
27739 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27740 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
27741 condition.
27742 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
27743 * math/w_acosf_compat.c: Likewise.
27744 * math/w_acosh_compat.c: Likewise.
27745 * math/w_acoshf_compat.c: Likewise.
27746 * math/w_acoshl_compat.c: Likewise.
27747 * math/w_acosl_compat.c: Likewise.
27748 * math/w_asin_compat.c: Likewise.
27749 * math/w_asinf_compat.c: Likewise.
27750 * math/w_asinl_compat.c: Likewise.
27751 * math/w_atan2_compat.c: Likewise.
27752 * math/w_atan2f_compat.c: Likewise.
27753 * math/w_atan2l_compat.c: Likewise.
27754 * math/w_atanh_compat.c: Likewise.
27755 * math/w_atanhf_compat.c: Likewise.
27756 * math/w_atanhl_compat.c: Likewise.
27757 * math/w_cosh_compat.c: Likewise.
27758 * math/w_coshf_compat.c: Likewise.
27759 * math/w_coshl_compat.c: Likewise.
27760 * math/w_exp10_compat.c: Likewise.
27761 * math/w_exp10f_compat.c: Likewise.
27762 * math/w_exp10l_compat.c: Likewise.
27763 * math/w_exp2_compat.c: Likewise.
27764 * math/w_exp2f_compat.c: Likewise.
27765 * math/w_exp2l_compat.c: Likewise.
27766 * math/w_fmod_compat.c: Likewise.
27767 * math/w_fmodf_compat.c: Likewise.
27768 * math/w_fmodl_compat.c: Likewise.
27769 * math/w_hypot_compat.c: Likewise.
27770 * math/w_hypotf_compat.c: Likewise.
27771 * math/w_hypotl_compat.c: Likewise.
27772 * math/w_j0_compat.c: Likewise.
27773 * math/w_j0f_compat.c: Likewise.
27774 * math/w_j0l_compat.c: Likewise.
27775 * math/w_j1_compat.c: Likewise.
27776 * math/w_j1f_compat.c: Likewise.
27777 * math/w_j1l_compat.c: Likewise.
27778 * math/w_jn_compat.c: Likewise.
27779 * math/w_jnf_compat.c: Likewise.
27780 * math/w_jnl_compat.c: Likewise.
27781 * math/w_lgamma_r_compat.c: Likewise.
27782 * math/w_lgammaf_r_compat.c: Likewise.
27783 * math/w_lgammal_r_compat.c: Likewise.
27784 * math/w_log10_compat.c: Likewise.
27785 * math/w_log10f_compat.c: Likewise.
27786 * math/w_log10l_compat.c: Likewise.
27787 * math/w_log2_compat.c: Likewise.
27788 * math/w_log2f_compat.c: Likewise.
27789 * math/w_log2l_compat.c: Likewise.
27790 * math/w_log_compat.c: Likewise.
27791 * math/w_logf_compat.c: Likewise.
27792 * math/w_logl_compat.c: Likewise.
27793 * math/w_pow_compat.c: Likewise.
27794 * math/w_powf_compat.c: Likewise.
27795 * math/w_powl_compat.c: Likewise.
27796 * math/w_remainder_compat.c: Likewise.
27797 * math/w_remainderf_compat.c: Likewise.
27798 * math/w_remainderl_compat.c: Likewise.
27799 * math/w_sinh_compat.c: Likewise.
27800 * math/w_sinhf_compat.c: Likewise.
27801 * math/w_sinhl_compat.c: Likewise.
27802 * math/w_sqrt_compat.c: Likewise.
27803 * math/w_sqrtf_compat.c: Likewise.
27804 * math/w_sqrtl_compat.c: Likewise.
27805 * math/w_tgamma_compat.c: Likewise.
27806 * math/w_tgammaf_compat.c: Likewise.
27807 * math/w_tgammal_compat.c: Likewise.
27808 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
27809 [LIBM_SVID_COMPAT].
27810 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
27811 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
27812 [LIBM_SVID_COMPAT].
27813 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
27814 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
27815 [LIBM_SVID_COMPAT].
27816 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
27817 * sysdeps/i386/fpu/w_sqrt.c: New file.
27818 * sysdeps/ia64/fpu/w_acos.c: Likewise.
27819 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
27820 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
27821 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
27822 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
27823 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
27824 * sysdeps/ia64/fpu/w_asin.c: Likewise.
27825 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
27826 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
27827 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
27828 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
27829 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
27830 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
27831 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
27832 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
27833 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
27834 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
27835 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
27836 * sysdeps/ia64/fpu/w_exp.c: Likewise.
27837 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
27838 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
27839 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
27840 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
27841 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
27842 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
27843 * sysdeps/ia64/fpu/w_expf.c: Likewise.
27844 * sysdeps/ia64/fpu/w_expl.c: Likewise.
27845 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
27846 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
27847 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
27848 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
27849 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
27850 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
27851 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
27852 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
27853 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
27854 * sysdeps/ia64/fpu/w_log.c: Likewise.
27855 * sysdeps/ia64/fpu/w_log10.c: Likewise.
27856 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
27857 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
27858 * sysdeps/ia64/fpu/w_log2.c: Likewise.
27859 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
27860 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
27861 * sysdeps/ia64/fpu/w_logf.c: Likewise.
27862 * sysdeps/ia64/fpu/w_logl.c: Likewise.
27863 * sysdeps/ia64/fpu/w_pow.c: Likewise.
27864 * sysdeps/ia64/fpu/w_powf.c: Likewise.
27865 * sysdeps/ia64/fpu/w_powl.c: Likewise.
27866 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
27867 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
27868 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
27869 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
27870 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
27871 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
27872 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
27873 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
27874 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
27875 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
27876 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
27877 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
27878 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
27879 [LIBM_SVID_COMPAT].
27880 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
27881 * sysdeps/ieee754/k_standard.c: Likewise.
27882 * sysdeps/ieee754/k_standardf.c: Likewise.
27883 * sysdeps/ieee754/k_standardl.c: Likewise.
27884 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
27885 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
27886 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
27887 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
27888 long_double_symbol call on [LIBM_SVID_COMPAT].
27889 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27890 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27891 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27892 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27893 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27894 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27895 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27896 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27897 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27898 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27899 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27900 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27901 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27902 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27903 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27904 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27905 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
27906 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27907 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27908 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27909 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
27910 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
27911
27912 2017-09-05 Steve Ellcey <sellcey@cavium.com>
27913
27914 * include/shlib-compat.h (TEST_COMPAT): New Macro.
27915 * malloc/tst-mallocstate.c: Convert from test-skeleton
27916 to test-driver. Ifdef code using TEST_COMPAT macro.
27917 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
27918 * math/test-matherr.c: Likewise.
27919
27920 2017-09-05 Joseph Myers <joseph@codesourcery.com>
27921
27922 [BZ #22086]
27923 * debug/pcprofiledump.c (main): Use byte-swapped mask when
27924 comparing word with byte-swapped constant.
27925
27926 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
27927
27928 [BZ #20498]
27929 * locale/iso-639.def: add Miskito.
27930 * localedata/SUPPORTED: Add miq_NI/UTF-8.
27931 * localedata/locales/miq_NI: New file.
27932
27933 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
27934
27935 [BZ #18822]
27936 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
27937 (__mkdir): Likewise.
27938 * io/chmod.c (__chmod): Add libc_hidden_def.
27939 * io/mkdir.c (__mkdir): Likewise.
27940 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
27941 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
27942 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
27943 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
27944
27945 2017-09-04 Joseph Myers <joseph@codesourcery.com>
27946
27947 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27948 version to 4.13.
27949
27950 [BZ #22082]
27951 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
27952 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
27953
27954 2017-09-04 Florian Weimer <fweimer@redhat.com>
27955
27956 * math/math.h: Issue warning if log is defined.
27957
27958 2017-09-04 Joseph Myers <joseph@codesourcery.com>
27959
27960 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27961 kernel version to 4.13.
27962
27963 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27964
27965 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
27966 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
27967 parameter.
27968 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
27969 just <bits/types.h>.
27970 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
27971 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
27972 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
27973 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
27974 * misc/preadv2.c: Include <errno.h>.
27975 * misc/preadv64v2.c: Include <errno.h>.
27976 * misc/pwritev2.c: Include <errno.h>.
27977 * misc/pwritev64v2.c: Include <errno.h>.
27978 * sysdeps/posix/preadv2.c: Include <errno.h>.
27979 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
27980 Fix <unistd.h> inclusion.
27981 * sysdeps/posix/pwritev2.c: Include <errno.h>.
27982 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
27983 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
27984 __strtoul_internal): New functions.
27985 * sysdeps/posix/pause.c: Include <sigsetops.h>.
27986 * sysdeps/posix/system.c: Include <sigsetops.h>.
27987 * sysdeps/mach/hurd/i386/Makefile
27988 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
27989 [$(subdir) = csu] (sysdep-only-routines): Likewise.
27990 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
27991 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
27992 __feraiseexcept_renamed to feraiseexcept instead of
27993 __GI_feraiseexcept.
27994 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
27995 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
27996 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
27997 RWF_NOWAIT): Define to 0 if undefined already.
27998 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
27999 boils down to 0.
28000 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28001 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28002
28003 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28004
28005 * manual/math.texi (pow10): Do not document.
28006 (pow10f): Likewise.
28007 (pow10l): Likewise.
28008 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28009 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28010 * math/libm-test-exp10.inc (pow10_test): Remove.
28011 (do_test): Do not call pow10.
28012 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28013 [NO_LONG_DOUBLE] (pow10l): Likewise.
28014 * math/w_exp10f_compat.c (pow10f): Likewise.
28015 * math/w_exp10l_compat.c (pow10l): Likewise.
28016 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28017 (pow10): Make into compat symbol.
28018 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28019 (pow10f): Make into compat symbol.
28020 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28021 (pow10l): Make into compat symbol.
28022 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28023 pow10.
28024 (CFLAGS-nldbl-pow10.c): Remove variable..
28025 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28026 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28027 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28028 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28029 Undefine and redefine.
28030 (pow10l): Make into compat symbol.
28031 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28032 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28033 * sysdeps/arm/libm-test-ulps: Likewise.
28034 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28035 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28036 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28037 * sysdeps/microblaze/libm-test-ulps: Likewise.
28038 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28039 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28040 * sysdeps/nios2/libm-test-ulps: Likewise.
28041 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28042 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28043 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28044 * sysdeps/sh/libm-test-ulps: Likewise.
28045 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28046 * sysdeps/tile/libm-test-ulps: Likewise.
28047 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28048
28049 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28050
28051 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28052
28053 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28054
28055 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28056 "../ChangeLog.old/ChangeLog.8".
28057 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28058 "../ChangeLog.old/ChangeLog.14".
28059
28060 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28061
28062 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28063 Threads Library.
28064
28065 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28066
28067 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28068
28069 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28070
28071 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28072 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28073
28074 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28075
28076 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28077 32 atexit handlers.
28078
28079 2017-09-01 Zack Weinberg <zackw@panix.com>
28080
28081 * math/math.h (HUGE_VAL): Improve commentary.
28082
28083 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28084 Andreas Schwab <schwab@suse.de>
28085
28086 [BZ #21530]
28087 * include/stdio.h (__gen_tempfd): New function.
28088 * stdio-common/Makefile (routines): Add gentempfd.
28089 * stdio-common/gentempfd.c: New file.
28090 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28091 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28092 unnamed file first.
28093
28094 2017-09-01 Florian Weimer <fweimer@redhat.com>
28095
28096 [BZ #21915]
28097 [BZ #21922]
28098 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28099 result to determine success or failure, not the errno value.
28100 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28101 (tst-nss-files-hosts-erange): Link with -ldl.
28102 * nss/tst-nss-files-hosts-erange.c: New file.
28103 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28104 (do_test): Add NO_DATA tests.
28105 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28106 (do_test): Call it.
28107
28108 2017-09-01 Florian Weimer <fweimer@redhat.com>
28109
28110 [BZ #21922]
28111 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28112 coming from gethostbyname2_r.
28113
28114 2017-09-01 Florian Weimer <fweimer@redhat.com>
28115
28116 * support/namespace.h (struct support_chroot_configuration): Add
28117 hosts, host_conf.
28118 (struct support_chroot): Add path_hosts, path_host_conf.
28119 * support/support_chroot.c (write_file): New function.
28120 (support_chroot_create): Call it to process /etc/resolv.conf,
28121 /etc/hosts, /etc/host.conf.
28122 (support_chroot_free): Update.
28123
28124 2017-09-01 Florian Weimer <fweimer@redhat.com>
28125
28126 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28127 status indicates it is set.
28128
28129 2017-09-01 Florian Weimer <fweimer@redhat.com>
28130
28131 [BZ #20532]
28132 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28133 function lookup failures more reliable.
28134
28135 2017-09-01 Florian Weimer <fweimer@redhat.com>
28136
28137 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28138 (getcanonname): Likewise.
28139 (gaih_inet): Likewise.
28140
28141 2017-09-01 Florian Weimer <fweimer@redhat.com>
28142
28143 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28144 (getcanonname): Likewise.
28145 (gaih_inet): Likewise.
28146
28147 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28148 Richard Henderson <rth@twiddle.net>
28149
28150 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28151 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28152 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28153 (IREG_SIZE, OREG_SIZE): New macros.
28154 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28155 (IREG_SIZE, OREG_SIZE): New macros.
28156 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28157 (IREG_SIZE): New macro.
28158 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28159 (IREG_SIZE): New macro.
28160 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28161 New includes.
28162 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28163 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28164 (__CONCATX): Handle exceptions correctly on large values that may
28165 set FE_INVALID.
28166 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28167 Initialize if not already set.
28168 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28169
28170 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28171
28172 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28173 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28174 Likewise.
28175 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28176 Likewise.
28177 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28178 Likewise.
28179 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28180 Likewise.
28181 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28182 Likewise.
28183 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28184 Likewise.
28185 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28186 Likewise.
28187 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28188 (NO_CANCELLATION): Likewise.
28189 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28190 Likewise.
28191 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28192 Likewise.
28193 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28194 Likewise.
28195 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28196 (NO_CANCELLATION): Likewise.
28197 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28198 (NO_CANCELLATION): Likewise.
28199 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28200 Likewise
28201 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28202 Likewise.
28203 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28204 Likewise.
28205 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28206 Likewise.
28207 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28208 hidden prototype.
28209 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28210 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28211
28212 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28213
28214 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28215 in resolver call.
28216
28217 2017-08-31 Florian Weimer <fweimer@redhat.com>
28218
28219 * include/libc-symbols.h (internal_function): Remove.
28220
28221 2017-08-31 Florian Weimer <fweimer@redhat.com>
28222
28223 * stdlib/fmtmsg.c (internal_addseverity): Remove
28224 internal_function.
28225
28226 2017-08-31 Florian Weimer <fweimer@redhat.com>
28227
28228 * stdio-common/printf_fp.c (group_number): Remove
28229 internal_function.
28230 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28231
28232 2017-08-31 Florian Weimer <fweimer@redhat.com>
28233
28234 * posix/fnmatch.c (internal_function): Remove definition.
28235 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28236 * posix/regcomp.c (peek_token, init_word_char)
28237 (duplicate_node_closure, fetch_token, peek_token)
28238 (peek_token_bracket, build_range_exp, build_collating_symbol):
28239 Likewise.
28240 * posix/regex_internal.c (re_string_construct_common)
28241 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28242 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28243 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28244 (re_string_translate_buffer, re_string_reconstruct)
28245 (re_string_peek_byte_case, re_string_fetch_byte_case)
28246 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28247 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28248 (re_node_set_add_intersect, re_node_set_init_union)
28249 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28250 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28251 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28252 (re_acquire_state_context): Likewise.
28253 * posix/regex_internal.h (internal_function): Remove definition.
28254 (re_string_realloc_buffers, build_wcs_buffer)
28255 (build_wcs_upper_buffer, build_upper_buffer)
28256 (re_string_translate_buffer, re_string_context_at)
28257 (re_string_char_size_at, re_string_wchar_at)
28258 (re_string_elem_size_at): Likewise.
28259 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28260 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28261 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28262 (re_search_internal, re_search_2_stub, re_search_stub)
28263 (re_copy_regs, prune_impossible_nodes, check_matching)
28264 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28265 (free_fail_stack_return, sift_states_iter_mb)
28266 (sift_states_backward, build_sifted_states)
28267 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28268 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28269 (check_subexp_limits, sift_states_bkref, merge_state_array)
28270 (find_recover_state, transit_state, merge_state_with_log)
28271 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28272 (transit_state_mb, transit_state_bkref, get_subexp)
28273 (get_subexp_sub, find_subexp_node, check_arrival)
28274 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28275 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28276 (check_node_accept_bytes, find_collation_sequence_value)
28277 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28278 (acquire_init_state_context, check_halt_node_context)
28279 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28280 (sub_epsilon_src_nodes): Likewise.
28281 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28282 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28283 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28284 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28285 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28286 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28287 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28288 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28289 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28290 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28291 (PREADV): Likewise.
28292 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28293 (PREADV): Likewise.
28294 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28295 (PWRITEV): Likewise.
28296 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28297 (PWRITEV): Likewise.
28298 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28299 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28300
28301 2017-08-31 Florian Weimer <fweimer@redhat.com>
28302
28303 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28304 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28305 Remove internal_function.
28306 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28307 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28308 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28309 (__deallocate_stack, __libc_pthread_init)
28310 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28311 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28312 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28313 Likewise.
28314 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28315 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28316 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28317 Likewise.
28318 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28319 (__pthread_mutex_unlock_usercnt): Likewise.
28320
28321 2017-08-31 Florian Weimer <fweimer@redhat.com>
28322
28323 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28324 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28325 (fts_safe_changedir): Remove internal_function.
28326 * io/ftw.c (internal_function): Remove definition.
28327 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28328
28329 2017-08-31 Florian Weimer <fweimer@redhat.com>
28330
28331 * inet/deadline.c (__deadline_current_time)
28332 (__deadline_from_timeval, __deadline_to_ms): Remove
28333 internal_function.
28334 * inet/getnameinfo.c (nrl_domainname): Likewise.
28335 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28336 * inet/inet6_option.c (add_pad): Likewise.
28337 * inet/net-internal.h (__deadline_current_time)
28338 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28339 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28340 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28341 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28342
28343 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28344
28345 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28346 include <bits/nan.h>.
28347 * math/Makefile (headers): Remove bits/nan.h.
28348 * bits/nan.h: Remove.
28349 * sysdeps/ieee754/bits/nan.h: Likewise.
28350 * sysdeps/mips/bits/nan.h: Likewise.
28351
28352 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28353 not include <bits/inf.h>.
28354 * math/Makefile (headers): Remove bits/inf.h.
28355 * bits/inf.h: Remove.
28356 * sysdeps/ieee754/bits/inf.h: Likewise.
28357
28358 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28359 bits/huge_vall.h or bits/huge_val_flt128.h.
28360 (HUGE_VAL): Define directly here.
28361 [__USE_ISOC99] (HUGE_VALF): Likewise.
28362 [__USE_ISOC99] (HUGE_VALL): Likewise.
28363 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28364 (HUGE_VAL_F128): Likewise.
28365 * math/Makefile (headers): Remove bits/huge_val.h,
28366 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28367 * bits/huge_val.h: Remove.
28368 * bits/huge_val_flt128.h: Likewise.
28369 * bits/huge_valf.h: Likewise.
28370 * bits/huge_vall.h: Likewise.
28371 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28372 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28373 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28374 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28375 * sysdeps/sh/bits/huge_val.h: Likewise.
28376 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28377 * sysdeps/x86/bits/huge_vall.h: Likewise.
28378
28379 2017-08-31 Florian Weimer <fweimer@redhat.com>
28380
28381 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28382 internal_function.
28383 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28384 Likewise.
28385 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28386 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28387 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28388 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28389 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28390 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28391 * elf/dl-libc.c (dlerror_run): Likewise.
28392 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28393 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28394 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28395 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28396 Likewise.
28397 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28398 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28399 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28400 * elf/dl-profile.c (_dl_start_profile): Likewise.
28401 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28402 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28403 Likewise.
28404 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28405 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28406 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28407 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28408 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28409 (_dl_allocate_tls_storage): Likewise.
28410 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28411 (_dl_check_all_versions): Likewise.
28412 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28413 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28414 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28415 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28416 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28417 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28418 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28419 internal_function from __dl_start.
28420 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28421 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28422 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28423 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28424 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28425 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28426 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28427 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28428 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28429 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28430 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28431 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28432 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28433 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28434 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28435 Likewise.
28436 (struct rtld_global_ro): Remove internal_function from the
28437 _dl_lookup_symbol_x member.
28438 (_dl_symbol_value): Remove. No longer defined anywhere.
28439 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28440 internal_function.
28441 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28442 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28443 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28444 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28445 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28446 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28447 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28448 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28449 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28450 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28451 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28452 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28453
28454 2017-08-31 Florian Weimer <fweimer@redhat.com>
28455
28456 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28457 Remove internal_function.
28458 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28459 Likewise.
28460 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28461 Likewise.
28462
28463 2017-08-31 Florian Weimer <fweimer@redhat.com>
28464
28465 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28466 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28467 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28468
28469 2017-08-31 Florian Weimer <fweimer@redhat.com>
28470
28471 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28472 (__gai_enqueue_request): Remove internal_function.
28473 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28474 (__gai_remove_request, __gai_notify, __gai_notify_only)
28475 (__gai_sigqueue): Likewise.
28476 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28477 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28478 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28479 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28480 Likewise.
28481
28482 2017-08-31 Florian Weimer <fweimer@redhat.com>
28483
28484 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28485 * include/dirent.h (__opendirat, __getdents, __getdents64)
28486 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28487 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28488 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28489 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28490 Likewise.
28491 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28492
28493 2017-08-31 Florian Weimer <fweimer@redhat.com>
28494
28495 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28496 internal_function.
28497 (GETCWD_RETURN_TYPE): Likewise.
28498
28499 2017-08-31 Florian Weimer <fweimer@redhat.com>
28500
28501 * include/time.h (__tz_compute, __strptime_internal): Remove
28502 internal_function.
28503 * time/strptime_l.c (__strptime_internal): Likewise.
28504 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28505
28506 2017-08-31 Florian Weimer <fweimer@redhat.com>
28507
28508 * iconv/gconv.c (__gconv): Remove internal_function.
28509 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28510 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28511 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28512 (__gconv_release_cache): Likewise.
28513 * iconv/gconv_close.c (__gconv_close): Likewise.
28514 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28515 (read_conf_file, __gconv_get_path): Likewise.
28516 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28517 (__gconv_release_step, gen_steps, increment_counter)
28518 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28519 (__gconv_close_transform, free_modules_db): Likewise.
28520 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28521 Likewise.
28522 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28523 (__gconv_find_transform, __gconv_lookup_cache)
28524 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28525 (__gconv_close_transform, __gconv_release_cache)
28526 (__gconv_loaded_object, __gconv_release_shlib)
28527 (__gconv_compare_alias): Likewise.
28528 * iconv/gconv_open.c (__gconv_open): Likewise.
28529 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28530 * iconv/iconvconfig.c (add_module): Likewise.
28531 * intl/dcigettext.c (plural_lookup, guess_category_value)
28532 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28533 * intl/eval-plural.h (plural_eval): Likewise.
28534 * intl/finddomain.c (_nl_find_domain): Likewise.
28535 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28536 (_nl_load_domain, _nl_find_msg): Likewise.
28537 (internal_function): Remove definition.
28538 * intl/loadinfo.h (internal_function): Likewise.
28539 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28540 internal_function.
28541 * intl/localealias.c (internal_function): Remove definition.
28542 (read_alias_file): Remove internal_function.
28543 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28544 * intl/plural-exp.h (internal_function): Remove definition.
28545 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28546 internal_function.
28547 * intl/plural.c: Regenerate.
28548 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28549 * locale/coll-lookup.c (__collidx_table_lookup)
28550 (__collseq_table_lookup): Likewise.
28551 * locale/coll-lookup.h (__collidx_table_lookup)
28552 (__collseq_table_lookup): Likewise.
28553 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28554 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28555 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28556 (_nl_unload_locale): Likewise.
28557 * locale/localeinfo.h (struct __locale_data): Remove
28558 internal_function from cleanup member.
28559 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28560 (_nl_remove_locale, _nl_load_locale_from_archive)
28561 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28562 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28563 (_nl_cleanup_time): Remove internal_function.
28564 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28565 (_nl_parse_alt_digit): Likewise.
28566 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28567 (_nl_select_era_entry): Likewise.
28568 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28569 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28570 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28571 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28572 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28573
28574 2017-08-31 Florian Weimer <fweimer@redhat.com>
28575
28576 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28577 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28578 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28579 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28580 Likewise.
28581 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28582 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28583 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28584 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28585 Likewise.
28586 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28587
28588 2017-08-31 Florian Weimer <fweimer@redhat.com>
28589
28590 * misc/getttyent.c (skip, value): Remove internal_function.
28591 * misc/syslog.c (openlog_internal): Likewise.
28592 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28593
28594 2017-08-31 Florian Weimer <fweimer@redhat.com>
28595
28596 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28597 (__nss_rewrite_field): Remove internal_function.
28598 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28599 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28600 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28601 * nss/nsswitch.c (nss_parse_file, nss_getline)
28602 (nss_parse_service_list, nss_new_service): Likewise.
28603 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28604 * nss/valid_field.c (__nss_valid_field): Likewise.
28605 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28606
28607 2017-08-31 Florian Weimer <fweimer@redhat.com>
28608
28609 * malloc/arena.c (__malloc_fork_lock_parent)
28610 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28611 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28612 internal_function from defintions.
28613 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28614 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28615 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28616 internal_function from declarations.
28617 * malloc/malloc.c (internal_function): Do not define.
28618 (mem2mem_check): Remove internal_function from declaration.
28619 (munmap_chunk, mremap_chunk): Remove internal_function.
28620 * malloc/mtrace.c (tr_where): Likewise.
28621
28622 2017-08-31 Florian Weimer <fweimer@redhat.com>
28623
28624 * include/rpc/pmap_clnt.h (__get_socket): Remove
28625 internal_function.
28626 * sunrpc/auth_des.c (synchronize): Likewise.
28627 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28628 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28629 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28630 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28631 (key_call): Likewise.
28632 * sunrpc/pm_getport.c (__get_socket): Likewise.
28633 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28634 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28635 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28636 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28637 (invalidate): Likewise.
28638 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28639 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28640 (set_input_fragment, get_input_bytes): Likewise.
28641
28642 2017-08-31 Florian Weimer <fweimer@redhat.com>
28643
28644 * malloc/malloc.c (_int_free): Remove locked variable and related
28645 asserts.
28646
28647 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
28648
28649 [BZ #22051]
28650 * Makerules (build-module-helper-objlist): Filter out
28651 $(elf-objpfx)sofini.os.
28652 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
28653 needed.
28654
28655 2017-08-31 Florian Weimer <fweimer@redhat.com>
28656
28657 * libio/fcloseall.c: Assume weak_alias is defined.
28658 * libio/feof.c: Likewise.
28659 * libio/fileno.c: Likewise.
28660 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
28661 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28662 definitions.
28663 (_IO_file_open): Call __open directly.
28664 (_IO_new_file_sync): Assume ESPIPE is defined.
28665 (_IO_file_seekoff_maybe_mmap): Call __read directly.
28666 (_IO_new_file_write): Call __write directly.
28667 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
28668 * libio/ftello64.c (__ftello64): Assume EIO is defined.
28669 * libio/genops.c: Assume _LIBC is defined.
28670 (save_for_backup): Remove internal_function.
28671 * libio/getc.c: Assume weak_alias is defined.
28672 * libio/getwc.c: Likewise.
28673 * libio/iofclose.c: Assume _LIBC is defined.
28674 * libio/iofdopen.c: Likewise.
28675 (_IO_fcntl): Remove macro definition.
28676 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
28677 Call __fcntl directly.
28678 * libio/iofflush.c: Assume weak_alias is defined.
28679 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
28680 defined.
28681 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
28682 * libio/iofgets.c: Likewise.
28683 * libio/iofopen.c: Assume _LIBC is defined.
28684 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
28685 * libio/iofputs.c: Assume weak_alias is defined.
28686 * libio/iofread.c: Likewise.
28687 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
28688 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
28689 * libio/ioftell.c: Assume weak_alias is defined.
28690 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
28691 * libio/iofwide.c: Assume _LIBC is defined.
28692 (_IO_fwide): Drop SHARED conditional because it is implied by
28693 SHLIB_COMPAT.
28694 * libio/iofwrite.c: Assume weak_alias is defined.
28695 * libio/iogetdelim.c: Likewise.
28696 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
28697 * libio/iogetwline.c (wmemcpy): Remove macro definition.
28698 (_IO_getwline): Call __wmemcpy directly.
28699 * libio/iopopen.c: Assume _LIBC is defined.
28700 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28701 (_IO_close): Remove macro definitions.
28702 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
28703 _exit directly.
28704 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
28705 directly.
28706 * libio/ioputs.c: Assume weak_alias is defined.
28707 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
28708 * libio/iosetbuffer.c: Assume weak_alias is defined.
28709 * libio/iosetvbuf.c: Likewise.
28710 * libio/ioungetc.c: Likewise.
28711 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
28712 libc_hidden_def, libc_hidden_weak, NULL are defined.
28713 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
28714 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
28715 defined.
28716 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28717 definitions.
28718 (_IO_old_file_init_internal): Drop SHARED conditional because it
28719 is implied by SHLIB_COMPAT.
28720 (_IO_old_file_fopen): Call __open directly.
28721 (_IO_old_file_sync): Assume ESPIPE is defined.
28722 (_IO_old_file_write): Call __write directly.
28723 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
28724 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
28725 Call __fcntl directly.
28726 * libio/oldiofgetpos.c: Assume weak_alias is defined.
28727 (_IO_old_fgetpos): Assume EIO is defined.
28728 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
28729 (_IO_old_fgetpos64): Assume EIO is defined.
28730 * libio/oldiofsetpos.c: Assume weak_alias is defined.
28731 (_IO_old_fsetpos): Assume EIO is defined.
28732 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
28733 (_IO_old_fsetpos64): Assume EIO is defined.
28734 * libio/oldiopopen.c: Assume _LIBC is defined.
28735 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28736 (_IO_close): Remove macro definitions.
28737 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
28738 directly.
28739 (_IO_old_proc_close): Call __close, __waitpid directly.
28740 * libio/put.c: Assume weak_alias is defined.
28741 * libio/stdfiles.c: Assume _LIBC is defined.
28742 * libio/stdio.c: Likewise.
28743 * libio/wfileops.c: Likewise.
28744 (_IO_wfile_sync): Assume ESPIPE is defined.
28745 * libio/wgenops.c: Assume _LIBC is defined.
28746 (save_for_wbackup): Remove internal_function.
28747
28748 2017-08-31 Florian Weimer <fweimer@redhat.com>
28749
28750 * malloc/malloc.c (top_check): Change return type to void. Remove
28751 internal_function.
28752 * malloc/hooks.c (top_check): Likewise.
28753 (malloc_check, realloc_check, memalign_check): Adjust.
28754
28755 2017-08-30 Joseph Myers <joseph@codesourcery.com>
28756
28757 [BZ #21457]
28758 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
28759 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
28760 sigcontext and namespace requirements.
28761 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
28762 * sysdeps/m68k/sys/ucontext.h: Likewise.
28763 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
28764 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
28765 <bits/sigcontext.h>.
28766 (__ctx): Define earlier.
28767 (mcontext_t): Define structure contents rather than using struct
28768 sigcontext.
28769 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
28770 __glibc_reserved1 instead of __reserved.
28771 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
28772 <bits/sigcontext.h>.
28773 (__ctx): Define earlier.
28774 (mcontext_t): Define structure contents rather than using struct
28775 sigcontext.
28776 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
28777 mcontext_t instead of struct sigcontext.
28778 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
28779 <bits/sigcontext.h>.
28780 (__ctx): Define earlier.
28781 (mcontext_t): Define structure contents rather than using struct
28782 sigcontext.
28783 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
28784 <bits/sigcontext.h>.
28785 (__ctx): Define earlier.
28786 (mcontext_t): Define structure contents rather than using struct
28787 sigcontext.
28788 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
28789 mcontext_t instead of struct sigcontext.
28790 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
28791 mcontext_t instead of struct sigcontext.
28792 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
28793 <bits/sigcontext.h>.
28794 (__ctx): New macro.
28795 (struct __ia64_fpreg_mcontext): New type.
28796 (mcontext_t): Define structure contents rather than using struct
28797 sigcontext.
28798 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
28799 (uc_sigmask): Define using __ctx.
28800 (uc_stack): Likewise.
28801 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
28802 <bits/sigcontext.h>.
28803 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
28804 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
28805 <bits/sigcontext.h>.
28806 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
28807 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
28808 <bits/sigcontext.h>.
28809 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
28810 <bits/sigcontext.h>.
28811 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
28812 <bits/sigcontext.h>.
28813 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
28814 <bits/sigcontext.h>.
28815 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
28816 <bits/sigcontext.h>.
28817 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
28818 <bits/sigcontext.h>.
28819 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
28820 <bits/sigcontext.h>.
28821 (__ctx): Define earlier.
28822 (mcontext_t): Define structure contents rather than using struct
28823 sigcontext.
28824 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
28825 <bits/sigcontext.h>. Include <bits/types.h>.
28826 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
28827 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
28828 (test-xfail-XPG42/ucontext.h/conform): Likewise.
28829 (test-xfail-UNIX98/signal.h/conform): Likewise.
28830 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
28831 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
28832 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
28833 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
28834 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
28835 (test-xfail-POSIX2008/signal.h/conform): Likewise.
28836 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
28837 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
28838 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
28839
28840 2017-08-30 Florian Weimer <fweimer@redhat.com>
28841
28842 * malloc/dynarray_emplace_enlarge.c
28843 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
28844 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
28845 * malloc/tst-dynarray.c (test_long_overflow): New function.
28846 (do_test): Call it.
28847
28848 2017-08-30 Florian Weimer <fweimer@redhat.com>
28849
28850 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
28851 (set_arena_corrupt): Remove definitions.
28852 (mtrim): Do not check for corrupt arena.
28853 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
28854 Likewise.
28855
28856 2017-08-30 Florian Weimer <fweimer@redhat.com>
28857
28858 [BZ #21754]
28859 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
28860 check_action.
28861 (ptmalloc_init): Do not set or use check_action.
28862 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
28863 call to malloc_printerr. Remove return statement.
28864 (free_check): Likewise. Remove arena unlock.
28865 (top_check): Update comment. Adjust call to malloc_printerr.
28866 Remove heap repair code.
28867 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
28868 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
28869 (sysmalloc): Adjust call to malloc_printerr.
28870 (munmap_chunk, __libc_realloc): Likewise. Remove return
28871 statement.
28872 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
28873 Remove errout label and corresponding gotos.
28874 (_int_free): Likewise. Remove arena unlock.
28875 (do_set_mallopt_check): Do not set check_action.
28876 (malloc_printerr): Adjust parameter list. Do not mark arena as
28877 corrupt.
28878 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
28879 comment.
28880 * manual/probes.texi (Memory Allocation Probes): Remove
28881 memory_mallopt_check_action.
28882
28883 2017-08-30 Steve Ellcey <sellcey@cavium.com>
28884
28885 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
28886 Use pointer to uint64_t instead of long int for sp.
28887
28888 2017-08-30 Florian Weimer <fweimer@redhat.com>
28889
28890 [BZ #21754]
28891 * malloc/malloc.c (malloc_printerr): Always terminate the process,
28892 without printing a backtrace. Do not leak any information in the
28893 error message.
28894 * manual/memory.texi (Heap Consistency Checking): Update.
28895 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
28896
28897 2017-08-30 Florian Weimer <fweimer@redhat.com>
28898
28899 Do not scale NPTL tests with available number of CPUs.
28900 * nptl/tst-cond16.c (count): Set to constant value of 8.
28901 * nptl/tst-cond18.c (count): Likewise.
28902
28903 2017-08-29 Joseph Myers <joseph@codesourcery.com>
28904
28905 [BZ #22035]
28906 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
28907 Define to take a second argument that is a macro that
28908 concatentates a suffix, not the suffix itself.
28909 (__CONCAT_d): New macro.
28910 (__CONCAT_f): Likewise.
28911 (__CONCAT_l): Likewise.
28912
28913 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
28914
28915 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
28916 by child.
28917
28918 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28919 Aurelien Jarno <aurelien@aurel32.net>
28920 Maciej W. Rozycki <macro@imgtec.com>
28921
28922 [BZ #21956]
28923 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
28924 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
28925 `mips16-syscall6' and `mips16-syscall7'.
28926 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
28927 (CFLAGS-mips16-syscall7.c): Remove.
28928 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
28929 Remove `__mips16_syscall5', `__mips16_syscall6' and
28930 `__mips16_syscall7'.
28931 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
28932 (__mips16_syscall0): Rename `__mips16_syscall_return' to
28933 `__mips_syscall_return'.
28934 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
28935 (__mips16_syscall1): Likewise.
28936 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
28937 (__mips16_syscall2): Likewise.
28938 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
28939 (__mips16_syscall3): Likewise.
28940 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
28941 (__mips16_syscall4): Likewise.
28942 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
28943 Remove.
28944 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
28945 Remove.
28946 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
28947 Remove.
28948 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
28949 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
28950 `__mips16_syscall5'. Remove prototype.
28951 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
28952 `__mips16_syscall6'. Remove prototype.
28953 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
28954 `__mips16_syscall7'. Remove prototype.
28955 (__nomips16, __mips16_syscall_return): Move to...
28956 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
28957 (__nomips16, __mips_syscall_return): ... here.
28958 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
28959 `__mips16_syscall_return' to `__mips_syscall_return'.
28960 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
28961 `internal_syscall##nr'.
28962 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
28963 `internal_syscall##nr'.
28964 (FORCE_FRAME_POINTER): Remove.
28965 (__mips_syscall5): New prototype.
28966 (internal_syscall5): Rewrite to call `__mips_syscall5'.
28967 (__mips_syscall6): New prototype.
28968 (internal_syscall6): Rewrite to call `__mips_syscall6'.
28969 (__mips_syscall7): New prototype.
28970 (internal_syscall7): Rewrite to call `__mips_syscall7'.
28971 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
28972 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
28973 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
28974 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
28975 (sysdep_routines): Add libc-do-syscall.
28976 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
28977 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
28978
28979 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28980
28981 [BZ #21672]
28982 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
28983 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
28984 (advise_stack_range): New function.
28985 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
28986 stack non required to advise_stack_range at allocatestack.c
28987
28988 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28989
28990 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
28991
28992 2017-08-29 Florian Weimer <fweimer@redhat.com>
28993
28994 [BZ #22026]
28995 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
28996 __end_fct. Mangle __end_fct after setting it to NULL.
28997 * iconv/Makefile (tests): Add tst-gconv-init-failure.
28998 (modules-names, modules-names-tests): Add
28999 tst-gconv-init-failure-mod.
29000 (gconv-modules): New target.
29001 (tst-gconv-init-failure-mod.so): Link against libsupport.
29002 (tst-gconv-init-failure): Depend on gconv-modules,
29003 tst-gconv-init-failure-mod.so.
29004 * iconv/tst-gconv-init-failure-mod.c: New file.
29005 * iconv/tst-gconv-init-failure.c: Likewise.
29006 * iconv/test-gconv-modules: Likewise.
29007
29008 2017-08-29 Florian Weimer <fweimer@redhat.com>
29009
29010 [BZ #22025]
29011 * iconv/gconv_db.c (free_derivation): Remove redundant
29012 parentheses.
29013 (gen_steps): Unconditionally mangle __btowc_fct after
29014 initialization.
29015 (increment_counter): Likewise. Do not call init_fct for internal
29016 modules.
29017
29018 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29019
29020 [BZ #22028]
29021 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29022 (_MSUF_): Remove macro.
29023 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29024 Likewise.
29025 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29026 (__REDIRFROM_X): New macro.
29027 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29028 Likewise.
29029 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29030 (__REDIRTO_X): Likewise.
29031 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29032 arguments.
29033 (__MATH_REDIRCALL_2): Likewise.
29034 (__MATH_REDIRCALL_INTERNAL): Likewise.
29035 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29036 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29037 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29038 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29039 * math/test-finite-macros.c: New file.
29040 * math/Makefile (tests): Add test-finite-macros.
29041 (CFLAGS-test-finite-macros.c): New variable.
29042
29043 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29044 Jeff Law <law@redhat.com>
29045
29046 [BZ #22025]
29047 Mangle NULL pointers in iconv/gconv.
29048 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29049 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29050 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29051 is non-NULL before demangling the end_fct. Check for NULL
29052 end_fct after demangling.
29053 (__gconv_release_step): Demangle the end_fct before checking
29054 it for NULL. Remove assert on __shlibc_handle != NULL.
29055 (gen_steps): Don't check btowc_fct for NULL before mangling.
29056 Demangle init_fct before checking for NULL.
29057 (increment_counter): Likewise.
29058 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29059 end_fct for NULL before mangling.
29060 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29061 for NULL.
29062
29063 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29064
29065 [BZ #21971]
29066 * locale/iso-639.def: add Morisyen.
29067
29068 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29069
29070 [BZ #21930]
29071 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29072 (iszero): New C++ implementation that does not use
29073 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29074 signaling nans are enabled, since __builtin_types_compatible_p
29075 is a C-only feature.
29076 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29077 defined, include ieee754_float128.h for access to the union and
29078 member ieee854_float128.ieee.
29079 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29080 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29081 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29082 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29083 options of test-math-zero on powerpc64le.
29084
29085 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29086
29087 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29088 Change double to float.
29089
29090 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29091
29092 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29093 unconditional.
29094 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29095 conditional code; define contents only for [LIBM_SVID_COMPAT].
29096
29097 2017-08-28 Florian Weimer <fweimer@redhat.com>
29098
29099 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29100 (abi-lp64_be-options): Remove.
29101 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29102 (abi-hard-options): Likewise.
29103 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29104 (abi-o32_hard-options, abi-o32_soft_2008-options)
29105 (abi-o32_hard_2008-options, abi-n32_soft-options)
29106 (abi-n32_hard-options, abi-n32_soft_2008-options)
29107 (abi-n32_hard_2008-options, abi-n64_soft-options)
29108 (abi-n64_hard-options, abi-n64_soft_2008-options)
29109 (abi-n64_hard_2008-options): Likewise.
29110 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29111 (abi-64-v1-options, abi-64-v2-options): Likewise.
29112 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29113 (abi-64-options): Likewise.
29114 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29115 (abi-64-options): Likewise.
29116 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29117 (abi-64-options): Likewise.
29118 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29119 (abi-64-options, abi-x32-options): Likewise.
29120
29121 2017-08-28 Florian Weimer <fweimer@redhat.com>
29122
29123 Store supported list of SYS_* system calls in the source tree.
29124 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29125 (bits/syscall.h): Generate from list file.
29126 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29127 [$(subdir) = misc] (tests): Add tst-syscall-list.
29128 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29129 [$(subdir) = misc] (tst-syscall-list-macros.list)
29130 [$(subdir) = misc] (tst-syscall-list-nr.list)
29131 (tst-syscall-list-sys.list): Helper targets for new
29132 tst-syscall-list test.
29133 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29134 tst-syscall-list.sh.
29135 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29136 target. Do not include bits/syscall.d.
29137 [$(subdir) = misc] (generated): Do not update.
29138 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29139 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29140 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29141 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29142
29143 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29144
29145 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29146 (tst-cxa_atexit, tst-on_exit): Likewise.
29147 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29148 tst-cxa_atexit, and tst-on_exit.
29149 * stdlib/tst-atexit-common.c: New file.
29150 * stdlib/tst-atexit.c: New file.
29151 * stdlib/tst-at_quick_exit.c: New file.
29152 * stdlib/tst-cxa_atexit.c: New file.
29153 * stdlib/tst-on_exit.c: New file.
29154
29155 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29156
29157 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29158 * mach/stack_chk_fail_local.c: New file.
29159 * hurd/stack_chk_fail_local.c: New file.
29160 * mach/Machrules ($(interface-library)-routines): Add
29161 stack_chk_fail_local.
29162 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29163 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29164 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29165 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29166 * hurd/Makefile (CFLAGS-hurdstartup.o,
29167 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29168
29169 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29170
29171 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29172 (index_cpu_*, index_arch_*): Removed.
29173
29174 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29175
29176 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29177 Use uint64_t instead of unsigned long.
29178
29179 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29180
29181 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29182 [__HAVE_DISTINCT_FLOAT128].
29183
29184 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29185 of <bits/math-finite.h>.
29186 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29187 inclusion of <bits/math-finite.h>.
29188 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29189 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29190 __NO_LONG_DOUBLE_MATH].
29191 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29192 (__MATH_REDIRCALL_2): Likewise.
29193 (__MATH_REDIRCALL_INTERNAL): Likewise.
29194 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29195 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29196 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29197
29198 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29199 Remove file.
29200 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29201 Likewise.
29202 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29203 Likewise.
29204 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29205 Likewise.
29206 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29207 Likewise.
29208 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29209 Likewise.
29210 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29211 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29212 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29213 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29214 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29215 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29216 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29217 w_sqrtf_compat-ppc32.
29218
29219 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29220
29221 * math/math.h [defined __cplusplus] (issignaling): In the long
29222 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29223 is not defined. Call __issignaling, otherwise.
29224
29225 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29226
29227 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29228 syscall definitions and replace __builtin_expect with __glibc_likely.
29229 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29230 syscall.
29231 (SYSCALL_CANCELLABLE): Removedefinition
29232 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29233 definition.
29234 (PSEUDO_END): Likewise.
29235 [IS_IN (libpthread)] (CENABLE): Likewise.
29236 [IS_IN (libpthread)] (CDISABLE): Likewise.
29237 [IS_IN (libc)] (CENABLE): Likewise.
29238 [IS_IN (libc)] (CENABLE): Likewise.
29239 [IS_IN (librt)] (CDISABLE): Likewise.
29240 [IS_IN (librt)] (CDISABLE): Likewise.
29241 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29242 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29243 definition.
29244 (PSEUDO_END): Likewise.
29245 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29246 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29247 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29248 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29249 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29250 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29251 (CENABLE): Likewise.
29252 (CDISABLE): Likewise.
29253 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29254 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29255 defintion.
29256 (PSEUDO_END): Likewise.
29257 [IS_IN (libpthread)] (CENABLE): Likewise.
29258 [IS_IN (libpthread)] (CDISABLE): Likewise.
29259 [IS_IN (libc)] (CENABLE): Likewise.
29260 [IS_IN (libc)] (CENABLE): Likewise.
29261 [IS_IN (librt)] (CDISABLE): Likewise.
29262 [IS_IN (librt)] (CDISABLE): Likewise.
29263 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29264 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29265 definition.
29266 (PSEUDO_END): Likewise.
29267 [IS_IN (libpthread)] (CENABLE): Likewise.
29268 [IS_IN (libpthread)] (CDISABLE): Likewise.
29269 [IS_IN (libc)] (CENABLE): Likewise.
29270 [IS_IN (libc)] (CENABLE): Likewise.
29271 [IS_IN (librt)] (CDISABLE): Likewise.
29272 [IS_IN (librt)] (CDISABLE): Likewise.
29273 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29274 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29275 definition.
29276 (PSEUDO_END): Likewise.
29277 [IS_IN (libpthread)] (CENABLE): Likewise.
29278 [IS_IN (libpthread)] (CDISABLE): Likewise.
29279 [IS_IN (libc)] (CENABLE): Likewise.
29280 [IS_IN (libc)] (CENABLE): Likewise.
29281 [IS_IN (librt)] (CDISABLE): Likewise.
29282 [IS_IN (librt)] (CDISABLE): Likewise.
29283 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29284 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29285 definition.
29286 (PSEUDO_END): Likewise.
29287 [IS_IN (libpthread)] (CENABLE): Likewise.
29288 [IS_IN (libpthread)] (CDISABLE): Likewise.
29289 [IS_IN (libc)] (CENABLE): Likewise.
29290 [IS_IN (libc)] (CENABLE): Likewise.
29291 [IS_IN (librt)] (CDISABLE): Likewise.
29292 [IS_IN (librt)] (CDISABLE): Likewise.
29293 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29294 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29295 definition.
29296 (PSEUDO_END): Likewise.
29297 [IS_IN (libpthread)] (CENABLE): Likewise.
29298 [IS_IN (libpthread)] (CDISABLE): Likewise.
29299 [IS_IN (libc)] (CENABLE): Likewise.
29300 [IS_IN (libc)] (CENABLE): Likewise.
29301 [IS_IN (librt)] (CDISABLE): Likewise.
29302 [IS_IN (librt)] (CDISABLE): Likewise.
29303 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29304 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29305 definition.
29306 (PSEUDO_END): Likewise.
29307 [IS_IN (libpthread)] (CENABLE): Likewise.
29308 [IS_IN (libpthread)] (CDISABLE): Likewise.
29309 [IS_IN (libc)] (CENABLE): Likewise.
29310 [IS_IN (libc)] (CENABLE): Likewise.
29311 [IS_IN (librt)] (CDISABLE): Likewise.
29312 [IS_IN (librt)] (CDISABLE): Likewise.
29313 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29314 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29315 Remove definition.
29316 (PSEUDO_END): Likewise.
29317 [IS_IN (libpthread)] (CENABLE): Likewise.
29318 [IS_IN (libpthread)] (CDISABLE): Likewise.
29319 [IS_IN (libc)] (CENABLE): Likewise.
29320 [IS_IN (libc)] (CENABLE): Likewise.
29321 [IS_IN (librt)] (CDISABLE): Likewise.
29322 [IS_IN (librt)] (CDISABLE): Likewise.
29323 (SINGLE_THREAD_P): Likewise.
29324 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29325 definition.
29326 (PSEUDO_END): Likewise.
29327 [IS_IN (libpthread)] (CENABLE): Likewise.
29328 [IS_IN (libpthread)] (CDISABLE): Likewise.
29329 [IS_IN (libc)] (CENABLE): Likewise.
29330 [IS_IN (libc)] (CENABLE): Likewise.
29331 [IS_IN (librt)] (CDISABLE): Likewise.
29332 [IS_IN (librt)] (CDISABLE): Likewise.
29333 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29334 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29335 definition.
29336 (PSEUDO_END): Likewise.
29337 [IS_IN (libpthread)] (CENABLE): Likewise.
29338 [IS_IN (libpthread)] (CDISABLE): Likewise.
29339 [IS_IN (libc)] (CENABLE): Likewise.
29340 [IS_IN (libc)] (CENABLE): Likewise.
29341 [IS_IN (librt)] (CDISABLE): Likewise.
29342 [IS_IN (librt)] (CDISABLE): Likewise.
29343 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29344 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29345 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29346 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29347 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29348 definition.
29349 (PSEUDO_END): Likewise.
29350 [IS_IN (libpthread)] (CENABLE): Likewise.
29351 [IS_IN (libpthread)] (CDISABLE): Likewise.
29352 [IS_IN (libc)] (CENABLE): Likewise.
29353 [IS_IN (libc)] (CENABLE): Likewise.
29354 [IS_IN (librt)] (CDISABLE): Likewise.
29355 [IS_IN (librt)] (CDISABLE): Likewise.
29356 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29357 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29358 definition.
29359 (PSEUDO_END): Likewise.
29360 [IS_IN (libpthread)] (CENABLE): Likewise.
29361 [IS_IN (libpthread)] (CDISABLE): Likewise.
29362 [IS_IN (libc)] (CENABLE): Likewise.
29363 [IS_IN (libc)] (CENABLE): Likewise.
29364 [IS_IN (librt)] (CDISABLE): Likewise.
29365 [IS_IN (librt)] (CDISABLE): Likewise.
29366 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29367 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29368 definition.
29369 (PSEUDO_END): Likewise.
29370 [IS_IN (libpthread)] (CENABLE): Likewise.
29371 [IS_IN (libpthread)] (CDISABLE): Likewise.
29372 [IS_IN (libc)] (CENABLE): Likewise.
29373 [IS_IN (libc)] (CENABLE): Likewise.
29374 [IS_IN (librt)] (CDISABLE): Likewise.
29375 [IS_IN (librt)] (CDISABLE): Likewise.
29376 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29377 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29378 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29379 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29380 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29381 definition.
29382 (PSEUDO_END): Likewise.
29383 [IS_IN (libpthread)] (CENABLE): Likewise.
29384 [IS_IN (libpthread)] (CDISABLE): Likewise.
29385 [IS_IN (libc)] (CENABLE): Likewise.
29386 [IS_IN (libc)] (CENABLE): Likewise.
29387 [IS_IN (librt)] (CDISABLE): Likewise.
29388 [IS_IN (librt)] (CDISABLE): Likewise.
29389 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29390 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29391 definition.
29392 (PSEUDO_END): Likewise.
29393 [IS_IN (libpthread)] (CENABLE): Likewise.
29394 [IS_IN (libpthread)] (CDISABLE): Likewise.
29395 [IS_IN (libc)] (CENABLE): Likewise.
29396 [IS_IN (libc)] (CENABLE): Likewise.
29397 [IS_IN (librt)] (CDISABLE): Likewise.
29398 [IS_IN (librt)] (CDISABLE): Likewise.
29399 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29400
29401 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29402
29403 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29404
29405 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29406
29407 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29408
29409 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29410
29411 [BZ #21982]
29412 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29413 middle and outer with size_t instead of int. Repleace %d and
29414 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29415 "MAX (outer, nchars - 64)" to support unsigned outer and
29416 nchars. Also exit loop when outer == 0.
29417
29418 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29419
29420 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29421 * include/signal.h (__sigsuspend_nocancel): Likewise.
29422 * include/time.h (__nanosleep_nocancel): Likewise.
29423 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29424 * login/utmp_file.c: Include non cancellable syscall header.
29425 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29426 prototype.
29427
29428 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29429
29430 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29431 .byte sequences with AVX512F instructions.
29432 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29433 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29434 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29435 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29436 Likewise.
29437 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29438 Likewise.
29439
29440 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29441 Steve Ellcey <sellcey@cavium.com>
29442
29443 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29444 Use PTR_REG macro in cmp instruction.
29445
29446 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29447
29448 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29449 Change the return type of the ifunc resolver to match the return
29450 type of the target function.
29451
29452 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29453
29454 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29455 (preadv64): Likewise.
29456 (pwrite64(: Likewise.
29457 (pwritev64): Likewise.
29458
29459 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29460 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29461 (LOAD_ARGS_0): Likewise.
29462 (LOAD_ARGS_1): Likewise.
29463 (LOAD_ARGS_2): Likewise.
29464 (LOAD_ARGS_3): Likewise.
29465 (LOAD_ARGS_4): Likewise.
29466 (LOAD_ARGS_5): Likewise.
29467 (LOAD_ARGS_6): Likewise.
29468 (LOAD_REGS_0): Likewise.
29469 (LOAD_REGS_1): Likewise.
29470 (LOAD_REGS_2): Likewise.
29471 (LOAD_REGS_3): Likewise.
29472 (LOAD_REGS_4): Likewise.
29473 (LOAD_REGS_5): Likewise.
29474 (LOAD_REGS_6): Likewise.
29475 (ASM_ARGS_0): Likewise.
29476 (ASM_ARGS_1): Likewise.
29477 (ASM_ARGS_2): Likewise.
29478 (ASM_ARGS_3): Likewise.
29479 (ASM_ARGS_4): Likewise.
29480 (ASM_ARGS_5): Likewise.
29481 (ASM_ARGS_6): Likewise.
29482 (LOAD_ARGS_TYPES_1): Likewise.
29483 (LOAD_ARGS_TYPES_2): Likewise.
29484 (LOAD_ARGS_TYPES_3): Likewise.
29485 (LOAD_ARGS_TYPES_4): Likewise.
29486 (LOAD_ARGS_TYPES_5): Likewise.
29487 (LOAD_ARGS_TYPES_6): Likewise.
29488 (LOAD_REGS_TYPES_1): Likewise.
29489 (LOAD_REGS_TYPES_2): Likewise.
29490 (LOAD_REGS_TYPES_3): Likewise.
29491 (LOAD_REGS_TYPES_4): Likewise.
29492 (LOAD_REGS_TYPES_5): Likewise.
29493 (LOAD_REGS_TYPES_6): Likewise.
29494 (TYPEFY): New define.
29495 (ARGIFY): Likewise.
29496 (internal_syscall0): Likewise.
29497 (internal_syscall1): Likewise.
29498 (internal_syscall2): Likewise.
29499 (internal_syscall3): Likewise.
29500 (internal_syscall4): Likewise.
29501 (internal_syscall5): Likewise.
29502 (internal_syscall6): Likewise.
29503 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29504 (INTERNAL_SYSCALL_NCS): Remove define.
29505 (internal_syscall1): Add define.
29506
29507 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29508
29509 * math/w_remainder_compat.c: Remove duplicate inclusion of
29510 math-svid-compat.h.
29511 * math/w_remainderf_compat.c: Likewise.
29512 * math/w_remainderl_compat.c: Likewise.
29513
29514 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29515
29516 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29517
29518 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29519
29520 [BZ #21684]
29521 * math/tgmath.h (__floating_type): Simplify definitions.
29522 (__real_integer_type): New macro.
29523 (__complex_integer_type): Likewise.
29524 (__expr_is_real): Likewise.
29525 (__tgmath_real_type_sub): Update comment to describe handling of
29526 complex types.
29527 (__tgmath_complex_type_sub): New macro.
29528 (__tgmath_complex_type): Likewise.
29529 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29530 (__TGMATH_CF128): Use __expr_is_real.
29531 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29532 __expr_is_real.
29533 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29534 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29535 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29536 integer types.
29537
29538 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29539
29540 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29541 macro.
29542 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29543 alias.
29544 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29545 Likewise.
29546
29547 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29548 nanosleep_not_cancel with __nanosleep_nocancel.
29549 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29550 (__nanosleep_nocancel): New macro.
29551 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29552 function.
29553 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29554 macro.
29555 (__nanosleep_nocancel): New prototype.
29556
29557 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29558 pause_not_cancel with __pause_nocancel.
29559 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29560 (__pause_nocancel): New macro.
29561 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29562 macro.
29563 (__pause_nocancel): New prototype.
29564 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29565
29566 2017-08-22 Martin Sebor <msebor@redhat.com>
29567
29568 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29569 to return a pointer to the same type as the target function.
29570
29571 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29572
29573 [BZ #18822]
29574 [BZ #21986]
29575 * include/printf.h (__printf_fphex): Add attribute_hidden.
29576 (__guess_grouping): New prototype.
29577 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29578 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29579 libc_hidden_proto and libc_hidden_def.
29580 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29581 (__vstrfmon_l): Remove the third argument passed to
29582 __guess_grouping.
29583
29584 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29585
29586 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29587 definition for issignaling that does not rely on __MATH_TG,
29588 since __MATH_TG uses __builtin_types_compatible_p, which is only
29589 available in C mode.
29590 (CFLAGS-test-math-issignaling.cc): New variable.
29591 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29592 * math/test-math-issignaling.cc: New test for C++ implementation
29593 of type-generic issignaling.
29594 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29595 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29596 options of test-math-issignaling on powerpc64le.
29597
29598 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29599
29600 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29601 building libc.a.
29602 (hidden_proto): Likewise.
29603 (hidden_tls_proto): Likewise.
29604 (__hidden_proto): Likewise.
29605
29606 2017-08-22 Florian Weimer <fweimer@redhat.com>
29607
29608 math: Statically link tests of internal functionality.
29609 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29610 atest-exp2.
29611 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29612 (gmp-objs): Remove assignment.
29613 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29614
29615 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29616
29617 [BZ #21987]
29618 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29619 and copy to ...
29620 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29621 ... here.
29622 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29623 ... and here.
29624
29625 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29626 variable definitions above inclusion of ../Rules.
29627
29628 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29629
29630 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29631 case calling __builtin_unreachable.
29632
29633 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29634
29635 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29636 __waitpid_nocancel.
29637 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29638 (__waitpid_nocancel): New macro.
29639 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29640 macro.
29641 (__waitpid_nocancel): Replace macro with a function.
29642 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29643 function.
29644
29645 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
29646 __fcntl_nocancel.
29647 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
29648 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
29649
29650 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
29651 __writev_nocancel_nostatus.
29652 (write_call_graph): Likewise.
29653 (write_bb_counts): Likewise.
29654 * resolv/herror.c (herror): Likewise.
29655 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
29656 macro.
29657 (__writev_nocancel_nostatus): New macro.
29658 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
29659 Remove macro.
29660 (__writev_nocancel_nostatus): New function.
29661
29662 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29663
29664 Revert:
29665 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29666
29667 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29668 building libc.a.
29669 (hidden_proto): Likewise.
29670 (hidden_tls_proto): Likewise.
29671 (__hidden_proto): Likewise.
29672
29673 [BZ #21973]
29674 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
29675 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
29676 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
29677 Likewise.
29678 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
29679 Likewise.
29680 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
29681 Likewise.
29682 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
29683 Likewise.
29684 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
29685 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
29686 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
29687 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
29688 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
29689 GLIBC_2.0 sqrtl symbol.
29690
29691 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
29692 [__USE_MISC] (_LIB_VERSION): Likewise.
29693 [__USE_MISC] (struct exception): Likewise.
29694 [__USE_MISC] (matherr): Likewise.
29695 [__USE_MISC] (DOMAIN): Likewise.
29696 [__USE_MISC] (SING): Likewise.
29697 [__USE_MISC] (OVERFLOW): Likewise.
29698 [__USE_MISC] (UNDERFLOW): Likewise.
29699 [__USE_MISC] (TLOSS): Likewise.
29700 [__USE_MISC] (PLOSS): Likewise.
29701 [__USE_MISC] (HUGE): Likewise.
29702 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
29703 * math/math-svid-compat.h: New file.
29704 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
29705 and matherrl.
29706 * include/math.h [!_ISOMAC] (__matherr): Remove.
29707 * manual/arith.texi (FP Exceptions): Do not document matherr.
29708 * math/Makefile (tests): Change test-matherr to test-matherr-3.
29709 (tests-internal): New variable.
29710 (install-lib): Do not add libieee.a.
29711 (non-lib.a): Likewise.
29712 (extra-objs): Do not add libieee.a and ieee-math.o.
29713 (CPPFLAGS-s_lib_version.c): Remove variable.
29714 ($(objpfx)libieee.a): Remove rule.
29715 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
29716 * math/ieee-math.c: Remove.
29717 * math/libm-test-support.c (matherr): Remove.
29718 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
29719 and license notices. Include <math-svid-compat.h> and
29720 <shlib-compat.h>.
29721 (matherr): Undefine as macro. Use compat_symbol_reference.
29722 (_LIB_VERSION): Likewise.
29723 * math/test-matherr-2.c: New file.
29724 * math/test-matherr-3.c: Likewise.
29725 * sysdeps/generic/math_private.h (__kernel_standard): Remove
29726 declaration.
29727 (__kernel_standard_f): Likewise.
29728 (__kernel_standard_l): Likewise.
29729 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
29730 <math_private.h>. Include <math-svid-compat.h>.
29731 (_LIB_VERSION): Undefine as macro.
29732 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
29733 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
29734 [LIBM_SVID_COMPAT], use compat_symbol.
29735 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
29736 <math_private.h>. Include <math-svid-compat.h>.
29737 (matherr): Undefine as macro.
29738 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
29739 compat_symbol.
29740 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
29741 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
29742 compat_symbol_reference.
29743 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
29744 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
29745 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
29746 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
29747 (MATHERR_D): Remove declaration.
29748 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
29749 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
29750 [LIBM_BUILD] (pmatherrf): Likewise.
29751 [LIBM_BUILD] (pmatherr): Likewise.
29752 [LIBM_BUILD] (pmatherrl): Likewise.
29753 (DOMAIN): Likewise.
29754 (SING): Likewise.
29755 (OVERFLOW): Likewise.
29756 (UNDERFLOW): Likewise.
29757 (TLOSS): Likewise.
29758 (PLOSS): Likewise.
29759 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
29760 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
29761 compat_symbol.
29762 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
29763 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
29764 compat_symbol.
29765 * math/lgamma-compat.h: Include <math-svid-compat.h>.
29766 * math/w_acos_compat.c: Likewise.
29767 * math/w_acosf_compat.c: Likewise.
29768 * math/w_acosh_compat.c: Likewise.
29769 * math/w_acoshf_compat.c: Likewise.
29770 * math/w_acoshl_compat.c: Likewise.
29771 * math/w_acosl_compat.c: Likewise.
29772 * math/w_asin_compat.c: Likewise.
29773 * math/w_asinf_compat.c: Likewise.
29774 * math/w_asinl_compat.c: Likewise.
29775 * math/w_atan2_compat.c: Likewise.
29776 * math/w_atan2f_compat.c: Likewise.
29777 * math/w_atan2l_compat.c: Likewise.
29778 * math/w_atanh_compat.c: Likewise.
29779 * math/w_atanhf_compat.c: Likewise.
29780 * math/w_atanhl_compat.c: Likewise.
29781 * math/w_cosh_compat.c: Likewise.
29782 * math/w_coshf_compat.c: Likewise.
29783 * math/w_coshl_compat.c: Likewise.
29784 * math/w_exp10_compat.c: Likewise.
29785 * math/w_exp10f_compat.c: Likewise.
29786 * math/w_exp10l_compat.c: Likewise.
29787 * math/w_exp2_compat.c: Likewise.
29788 * math/w_exp2f_compat.c: Likewise.
29789 * math/w_exp2l_compat.c: Likewise.
29790 * math/w_fmod_compat.c: Likewise.
29791 * math/w_fmodf_compat.c: Likewise.
29792 * math/w_fmodl_compat.c: Likewise.
29793 * math/w_hypot_compat.c: Likewise.
29794 * math/w_hypotf_compat.c: Likewise.
29795 * math/w_hypotl_compat.c: Likewise.
29796 * math/w_j0_compat.c: Likewise.
29797 * math/w_j0f_compat.c: Likewise.
29798 * math/w_j0l_compat.c: Likewise.
29799 * math/w_j1_compat.c: Likewise.
29800 * math/w_j1f_compat.c: Likewise.
29801 * math/w_j1l_compat.c: Likewise.
29802 * math/w_jn_compat.c: Likewise.
29803 * math/w_jnf_compat.c: Likewise.
29804 * math/w_jnl_compat.c: Likewise.
29805 * math/w_lgamma_main.c: Likewise.
29806 * math/w_lgamma_r_compat.c: Likewise.
29807 * math/w_lgammaf_main.c: Likewise.
29808 * math/w_lgammaf_r_compat.c: Likewise.
29809 * math/w_lgammal_main.c: Likewise.
29810 * math/w_lgammal_r_compat.c: Likewise.
29811 * math/w_log10_compat.c: Likewise.
29812 * math/w_log10f_compat.c: Likewise.
29813 * math/w_log10l_compat.c: Likewise.
29814 * math/w_log2_compat.c: Likewise.
29815 * math/w_log2f_compat.c: Likewise.
29816 * math/w_log2l_compat.c: Likewise.
29817 * math/w_log_compat.c: Likewise.
29818 * math/w_logf_compat.c: Likewise.
29819 * math/w_logl_compat.c: Likewise.
29820 * math/w_pow_compat.c: Likewise.
29821 * math/w_powf_compat.c: Likewise.
29822 * math/w_powl_compat.c: Likewise.
29823 * math/w_remainder_compat.c: Likewise.
29824 * math/w_remainderf_compat.c: Likewise.
29825 * math/w_remainderl_compat.c: Likewise.
29826 * math/w_scalb_compat.c: Likewise.
29827 * math/w_scalbf_compat.c: Likewise.
29828 * math/w_scalbl_compat.c: Likewise.
29829 * math/w_sinh_compat.c: Likewise.
29830 * math/w_sinhf_compat.c: Likewise.
29831 * math/w_sinhl_compat.c: Likewise.
29832 * math/w_sqrt_compat.c: Likewise.
29833 * math/w_sqrtf_compat.c: Likewise.
29834 * math/w_sqrtl_compat.c: Likewise.
29835 * math/w_tgamma_compat.c: Likewise.
29836 * math/w_tgammaf_compat.c: Likewise.
29837 * math/w_tgammal_compat.c: Likewise.
29838 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
29839 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29840 * sysdeps/ieee754/k_standard.c: Likewise.
29841 * sysdeps/ieee754/k_standardf.c: Likewise.
29842 * sysdeps/ieee754/k_standardl.c: Likewise.
29843 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29844 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29845 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29846 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29847 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29848 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29849 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29850 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
29851 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
29852 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
29853 Likewise.
29854 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
29855 Likewise.
29856 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
29857 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
29858 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
29859 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
29860
29861 2017-08-21 Florian Weimer <fweimer@redhat.com>
29862
29863 [BZ #21864]
29864 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
29865 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
29866 Move before inclusion of ../Rules.
29867
29868 2017-08-21 Florian Weimer <fweimer@redhat.com>
29869
29870 [BZ #21972]
29871 * assert/assert.h (assert): Use static_cast (bool) for C++.
29872 Use the ternary operator in the warning branch for GNU C.
29873 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
29874 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
29875 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
29876 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
29877 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
29878
29879 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29880
29881 [BZ #18822]
29882 * sysdeps/unix/sysv/linux/x86_64/init-first.c
29883 (__syscall_clock_gettime): Add attribute_hidden.
29884 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
29885 (__start_context): Likewise.
29886
29887 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29888
29889 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29890 building libc.a.
29891 (hidden_proto): Likewise.
29892 (hidden_tls_proto): Likewise.
29893 (__hidden_proto): Likewise.
29894
29895 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29896
29897 * include/libc-symbols.h (attribute_hidden): Enable hidden
29898 visibility in libc.a compiled with PIE.
29899
29900 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29901
29902 [BZ #18822]
29903 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
29904 Add attribute_hidden.
29905
29906 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29907
29908 [BZ #21864]
29909 * Makerules (all-nonlib): Add $(others-extras).
29910 * catgets/Makefile (others-extras): New.
29911 * elf/Makefile (others-extras): Likewise.
29912 * nss/Makefile (others-extras): Likewise.
29913
29914 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29915
29916 [BZ #18822]
29917 * csu/libc-start.c (__libc_multiple_libcs): Removed.
29918 * elf/dl-open.c: Include <libc-internal.h>.
29919 (__libc_multiple_libcs): Removed.
29920 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
29921 <hp-timing.h>.
29922 * include/libc-internal.h (__libc_multiple_libcs): New.
29923 * misc/sbrk.c: Include <libc-internal.h>.
29924 (__libc_multiple_libcs): Removed.
29925
29926 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29927
29928 [BZ #18822]
29929 * grp/initgroups.c (__nss_group_database): Removed.
29930 (__nss_initgroups_database): Likewise.
29931 * nscd/gai.c (__nss_hosts_database): Likewise.
29932 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
29933 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
29934 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
29935 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
29936 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
29937 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
29938 attribute_hidden.
29939 * nss/nsswitch.c (__nss_database_custom): Define only if
29940 USE_NSCD is defined.
29941 (__nss_configure_lookup): Use __nss_database_custom only if
29942 USE_NSCD is defined.
29943 * nss/nsswitch.h (__nss_database_custom): Declare only if
29944 USE_NSCD is defined. Add attribute_hidden.
29945 (__nss_setent): Add attribute_hidden.
29946 (__nss_endent): Likewise.
29947 (__nss_getent_r): Likewise.
29948 (__nss_getent): Likewise.
29949 (DEFINE_DATABASE): Declare __nss_##arg##_database.
29950
29951 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
29952
29953 [BZ #18822]
29954 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
29955 libc_hidden_proto and libc_hidden_def.
29956
29957 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
29958
29959 [BZ #18822]
29960 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
29961 Add libc_hidden_proto.
29962 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
29963 Add libc_hidden_def.
29964
29965 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
29966
29967 [BZ #21974]
29968 * gmon/Makefile (routines): Remove bb_init_func and
29969 bb_exit_func.
29970 (elide-routines.os): Removed.
29971 * gmon/bb_exit_func.c: Likewise.
29972 * gmon/bb_init_func.c: Likewise.
29973 * include/sys/gmon.h (__bb): Likewise.
29974 (__bb_init_func): Likewise.
29975 (__bb_exit_func): Likewise.
29976 * sysdeps/alpha/bb_init_func.S: Likewise.
29977
29978 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
29979
29980 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
29981 * include/setjmp.h (____longjmp_chk): Here. Add
29982 attribute_hidden.
29983
29984 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
29985
29986 [BZ #18822]
29987 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
29988 attribute_hidden.
29989 (__strspn_sse2): Likewise.
29990
29991 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29992
29993 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
29994 (close_not_cancel_no_status): Likewise.
29995 (__close_nocancel): New macro.
29996 (__close_nocancel_nostatus): Likewise.
29997 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
29998 macro.
29999 (close_not_cancel): Likewise.
30000 (close_not_cancel_no_status): Likewise.
30001 (__close_nocancel): New prototype.
30002 (__close_nocancel_nostatus): New function.
30003 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30004 * catgets/open_catalog.c (__open_catalog): Replace
30005 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30006 * gmon/gmon.c (write_gmon): Likewise.
30007 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30008 * intl/loadmsgcat.c (close): Likewise.
30009 * io/ftw.c (open_dir_stream): Likewise.
30010 (ftw_startup): Likewise.
30011 * libio/fileops.c (_IO_file_open): Likewise.
30012 (_IO_file_close_mmap): Likewise.
30013 (_IO_file_close): Likewise.
30014 * libio/iopopen.c (_IO_dup2): Likewise.
30015 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30016 * locale/loadlocale.c (_nl_load_locale): Likewise.
30017 * login/utmp_file.c (pututline_file): Likewise.
30018 (endutent_file): Likewise.
30019 * misc/daemon.c (daemon): Likewise.
30020 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30021 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30022 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30023 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30024 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30025 * nscd/nscd_helper.c (open_socket): Likewise.
30026 (__nscd_open_socket): Likewise.
30027 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30028 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30029 (__nscd_innetgr): Likewise.
30030 * nss/nss_db/db-open.c (internal_setent): Likewise.
30031 * resolv/res-close.c (__res_iclose): Likewise.
30032 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30033 * sysdeps/posix/closedir.c (__closedir): Likewise.
30034 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30035 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30036 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30037 (opendir_tail): Likewise.
30038 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30039 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30040 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30041 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30042 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30043 (gethostid): Likewise.
30044 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30045 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30046 Likewise.
30047 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30048 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30049 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30050 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30051 Likewise.
30052 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30053 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30054 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30055 Likewise.
30056 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30057 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30058 Likewise.
30059 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30060 Likewise.
30061 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30062 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30063 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30064 __close_nocancel.
30065
30066 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30067 (openat_not_cancel_3): Likewise.
30068 (openat64_not_cancel_3): Likewise).
30069 (openat_not_cancel_3): Likewise).
30070 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30071 macro.
30072 (openat_not_cancel_3): Likewise.
30073 (openat64_not_cancel): Likewise.
30074 (openat64_not_cancel_3): Likewise.
30075 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30076 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30077 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30078 __open{64}_nocancel.
30079 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30080 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30081 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30082
30083 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30084
30085 [BZ #18822]
30086 * include/argz.h (__argz_create_sep): New function prototype.
30087 (__argz_append): Likewise.
30088 (__argz_add): Likewise.
30089 (__argz_add_sep): Likewise.
30090 (__argz_delete): Likewise.
30091 (__argz_insert): Likewise.
30092 (__argz_replace): Likewise.
30093 * string/argz.h (__argz_create_sep): Removed.
30094 (__argz_append): Likewise.
30095 (__argz_add): Likewise.
30096 (__argz_add_sep): Likewise.
30097 (__argz_delete): Likewise.
30098 (__argz_insert): Likewise.
30099 (__argz_replace): Likewise.
30100
30101 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30102
30103 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30104 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30105 (GNU_PROPERTY_STACK_SIZE): Likewie.
30106 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30107 (GNU_PROPERTY_LOPROC): Likewise.
30108 (GNU_PROPERTY_HIPROC): Likewise.
30109 (GNU_PROPERTY_LOUSER): Likewise.
30110 (GNU_PROPERTY_HIUSER): Likewise.
30111 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30112 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30113 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30114 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30115 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30116 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30117 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30118 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30119 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30120 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30121 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30122 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30123 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30124 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30125 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30126 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30127 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30128 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30129 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30130 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30131 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30132 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30133 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30134
30135 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30136
30137 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30138 in C++ mode.
30139
30140 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30141
30142 [BZ #21930]
30143 * math/math.h (isinf): Check if in C or C++ mode before using
30144 __builtin_types_compatible_p, since this is a C mode feature.
30145
30146 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30147
30148 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30149 (__write_nocancel): New macro.
30150 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30151 Rewrite as a function prototype.
30152 (write_not_cancel): Remove macro.
30153 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30154 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30155 (write_gmon): Likewise.
30156 * libio/fileops.c (_IO_new_file_write): Likewise.
30157 * login/utmp_file.c (pututline_file): Likewise.
30158 (updwtmp_file): Likewise.
30159 * stdio-common/psiginfo.c (psiginfo): Likewise.
30160 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30161 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30162 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30163 Likewise.
30164 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30165 Likewise.
30166
30167 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30168 (__read_nocancel): New macro.
30169 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30170 __read_nocancel.
30171 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30172 macro.
30173 (__read_nocancel): New prototype.
30174 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30175 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30176 with __read_nocancel.
30177 * intl/loadmsgcat.c (read): Likewise.
30178 * libio/fileops.c (_IO_file_read): Likewise.
30179 * locale/loadlocale.c (_nl_load_locale): Likewise.
30180 * login/utmp_file.c (getutent_r_file): Likewise.
30181 (internal_getut_r): Likewise.
30182 (getutline_r_file): Likewise.
30183 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30184 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30185 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30186 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30187 Likewise.
30188 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30189 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30190 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30191 Likewise.
30192 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30193 Likewise.
30194 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30195 Likewise.
30196 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30197 Likewise.
30198 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30199
30200 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30201
30202 [BZ #21966]
30203 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30204 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30205 usable.
30206
30207 2017-08-17 DJ Delorie <dj@redhat.com>
30208
30209 * bug17079.c: Update to new test harness.
30210 * test-digits-dots.c: Likewise.
30211 * test-netdb.c: Likewise.
30212 * tst-field.c: Likewise.
30213 * tst-nss-getpwent.c: Likewise.
30214 * tst-nss-static.c: Likewise.
30215 * tst-nss-test1.c: Likewise.
30216 * tst-nss-test2.c: Likewise.
30217 * tst-nss-test3.c: Likewise.
30218 * tst-nss-test4.c: Likewise.
30219 * tst-nss-test5.c: Likewise.
30220
30221 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30222
30223 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30224 (open_not_cancel_2): Likewise.
30225 (open_nocancel): New macro.
30226 (open64_nocancel): Likewise.
30227 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30228 (open_not_cancel_2): Likewise.
30229 (__open_nocancel): New prototype.
30230 (__open64_nocancel): Likewise.
30231 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30232 __open_nocancel.
30233 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30234 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30235 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30236 with __open_nocancel.
30237 * csu/check_fds.c (check_one_fd): Likewise.
30238 * gmon/gmon.c (write_gmon): Likewise.
30239 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30240 * intl/loadmsgcat.c (open): Likewise.
30241 * libio/fileops.c (_IO_file_open): Likewise.
30242 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30243 * locale/loadlocale.c (_nl_load_locale): Likewise.
30244 * login/utmp_file.c (setutent_file): Likewise.
30245 * misc/daemon.c (daemon): Likewise.
30246 * nss/nss_db/db-open.c (internal_setent): Likewise.
30247 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30248 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30249 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30250 (__opendir): Likewise.
30251 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30252 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30253 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30254 (gethostid): Likewise.
30255 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30256 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30257 Likewise.
30258 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30259 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30260 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30261 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30262 Likewise.
30263 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30264 Likewise.
30265 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30266 Likewise.
30267 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30268 Likewise.
30269 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30270 Likewise.
30271 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30272 Likewise.
30273 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30274 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30275
30276 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30277
30278 * benchtests/bench-skeleton.c (main): Add support for
30279 latency benchmarking.
30280 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30281
30282 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30283
30284 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30285 the startup object.
30286
30287 2017-08-17 Florian Weimer <fweimer@redhat.com>
30288
30289 * include/sys/socket.h (__opensock): Remove internal_function.
30290 * socket/opensock.c (__opensock): Likewise.
30291 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30292
30293 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30294
30295 [BZ #21944]
30296 * signal/bits/types/__sigval_t.h: New file.
30297 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30298 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30299 and define sigval_t using __sigval_t.
30300 * include/bits/types/__sigval_t.h: New file.
30301 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30302 instead of <bits/types/__sigval_t.h>.
30303 (struct sigevent): Use __sigval_t instead of sigval_t.
30304 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30305 instead of <bits/types/__sigval_t.h>.
30306 (siginfo_t): Use __sigval_t instead of sigval_t.
30307 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30308 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30309 (struct sigevent): Use __sigval_t instead of sigval_t.
30310 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30311 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30312 (siginfo_t): Use __sigval_t instead of sigval_t.
30313 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30314
30315 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30316
30317 * NEWS: Remove "[Add new features here]" for 2.27.
30318
30319 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30320
30321 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30322 libc.so.
30323
30324 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30325
30326 * NEWS: Mention x86-64 FMA optimization.
30327
30328 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30329
30330 [BZ #21912]
30331 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30332 Add e_expf-fma.
30333 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30334 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30335 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30336
30337 2017-08-16 Andreas Schwab <schwab@suse.de>
30338
30339 [BZ #16750]
30340 CVE-2009-5064
30341 * elf/ldd.bash.in: Never run file directly.
30342
30343 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30344
30345 [BZ #21955]
30346 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30347 (L(SP_INF_0)): Likewise.
30348
30349 2017-08-15 Florian Weimer <fweimer@redhat.com>
30350
30351 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30352 run-built-tests.
30353
30354 2017-08-15 Florian Weimer <fweimer@redhat.com>
30355
30356 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30357 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30358 BROKEN_THREAD_SIGNALS code.
30359 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30360 request_list): Remove caller_pid member used for
30361 BROKEN_THREAD_SIGNALS.
30362 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30363 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30364 Remove BROKEN_THREAD_SIGNALS support.
30365 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30366 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30367
30368 2017-08-15 Florian Weimer <fweimer@redhat.com>
30369
30370 * gmon/Makefile (tests): Add tst-gmon.
30371 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30372 Set.
30373 (tests-special): Add tst-gmon-prof.out.
30374 (tst-gmon.out): Depend on clean-tst-gmon-data.
30375 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30376 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30377 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30378 startup object.
30379 * aclocal.m4 (GPROF): Set and substitute.
30380 * config.amke.in (GPROF): Set.
30381 * configure: Regenerate.
30382
30383 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30384
30385 * elf/elf.h A (NT_PPC_TAR): New macro.
30386 (NT_PPC_PPR): Likewise.
30387 (NT_PPC_DSCR): Likewise.
30388 (NT_PPC_EBB): Likewise.
30389 (NT_PPC_PMU): Likewise.
30390 (NT_PPC_TM_CGPR): Likewise.
30391 (NT_PPC_TM_CFPR): Likewise.
30392 (NT_PPC_TM_CVMX): Likewise.
30393 (NT_PPC_TM_CVSX): Likewise.
30394 (NT_PPC_TM_SPR): Likewise.
30395 (NT_PPC_TM_CTAR): Likewise.
30396 (NT_PPC_TM_CPPR): Likewise.
30397 (NT_PPC_TM_CDSCR): Likewise.
30398
30399 2017-08-15 Florian Weimer <fweimer@redhat.com>
30400
30401 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30402 regparm (2) instead of internal_function.
30403 (_MCOUNT_DECL): Adjust.
30404
30405 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30406
30407 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30408 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30409
30410 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30411
30412 * conform/data/sys/wait.h-data (si_value): Do not expect for
30413 XPG42.
30414
30415 2017-08-14 Florian Weimer <fweimer@redhat.com>
30416
30417 [BZ #21962]
30418 NSS: Create stubs for accidentally exported lookup functions.
30419 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30420 Remove declaration.
30421 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30422 (ether_hostton): Call __nss_ethers_lookup2 instead.
30423 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30424 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30425 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30426 (setup): Call __nss_netgroup_lookup2 instead.
30427 * nss/Makefile (routines): Add compat-lookup.
30428 * nss/Versions (GLIBC_2.27): Add symbol version.
30429 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30430 (DB_COMPAT_FCT): Remove.
30431 * nss/compat-lookup.c: New file.
30432 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30433 from databases.def.
30434 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30435 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30436 (netname2user): Call __nss_publickey_lookup2 instead.
30437 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30438 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30439 instead.
30440
30441 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30442 Sergei Trofimovich <slyfox@inbox.ru>
30443
30444 [BZ #21908]
30445 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30446 Rename to MMAP2_PAGE_UNIT.
30447 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30448 __OFF_T_MATCHES_OFF64_T is not defined.
30449 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30450 uint64_t.
30451 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30452 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30453
30454 2017-08-14 Florian Weimer <fweimer@redhat.com>
30455
30456 i386: Do not set internal_function.
30457 * config.h.in (USE_REGPARMS, internal_function): Remove.
30458 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30459 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30460
30461 2017-08-14 Florian Weimer <fweimer@redhat.com>
30462
30463 * elf/dl-init.c (_dl_init): Remove internal_function.
30464 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30465 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30466
30467 2017-08-14 Florian Weimer <fweimer@redhat.com>
30468
30469 * elf/rtld.c (_dl_start): Remove internal_function.
30470 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30471 _dl_start.
30472
30473 2017-08-14 Florian Weimer <fweimer@redhat.com>
30474
30475 * elf/dl-fini.c (_dl_fini): Remove internal_function
30476 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30477
30478 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30479
30480 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30481 (bit_cpu_SHSTK): Likewise.
30482 (index_cpu_IBT): Likewise.
30483 (index_cpu_SHSTK): Likewise.
30484 (reg_IBT): Likewise.
30485 (reg_SHSTK): Likewise.
30486 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30487 Handle index_cpu_IBT and index_cpu_SHSTK.
30488
30489 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30490
30491 [BZ #19982]
30492 * po/fr.po: Fix spelling mistake.
30493
30494 2017-08-13 Florian Weimer <fweimer@redhat.com>
30495
30496 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30497 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30498 (_dl_catch_error, _dl_receive_error): Likewise.
30499 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30500 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30501 (_dl_deallocate_tls): Likewise.
30502 * include/dlfcn.h (_dl_addr): Likewise.
30503 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30504 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30505 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30506 Likewise.
30507
30508 2017-08-13 Florian Weimer <fweimer@redhat.com>
30509
30510 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30511 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30512 internal_function.
30513 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30514
30515 2017-08-13 Florian Weimer <fweimer@redhat.com>
30516
30517 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30518 internal_function.
30519 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30520 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30521 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30522 internal_function from _dl_make_stack_executable_hook member.
30523 (_dl_make_stack_executable): Remove internal_function.
30524 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30525 Likewise.
30526 * sysdeps/unix/sysv/linux/dl-execstack.c
30527 (_dl_make_stack_executable): Likewise.
30528
30529 2017-08-13 Florian Weimer <fweimer@redhat.com>
30530
30531 * sysdeps/unix/sysv/linux/netlinkaccess.h
30532 (__netlink_assert_response): Remove internal_function.
30533 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30534 (__netlink_assert_response): Likewise.
30535
30536 2017-08-13 Florian Weimer <fweimer@redhat.com>
30537
30538 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30539 internal_function.
30540 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30541
30542 2017-08-13 Florian Weimer <fweimer@redhat.com>
30543
30544 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30545 internal_function.
30546 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30547 * inet/netgroup.h (__internal_setnetgrent)
30548 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30549 * inet/getnetgrent_r.c (__internal_setnetgrent)
30550 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30551 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30552 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30553 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30554 * nss/nsswitch.h (db_lookup_function): Likewise.
30555
30556 2017-08-13 Florian Weimer <fweimer@redhat.com>
30557
30558 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30559 Remove internal_function.
30560 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30561 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30562 message argument on the stack.
30563 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30564 Likeweise.
30565
30566 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30567
30568 Adapt test case data to the changes in the thousands
30569 separators.
30570
30571 [BZ #20756]
30572 * localedata/tst-langinfo.sh: Adapt test case data.
30573 * stdlib/tst-strfmon_l.c: Likewise.
30574 * stdlib/tst-strtod4.c: Likewise.
30575 * stdlib/tst-strtod5i.c: Likewise.
30576
30577 2017-08-11 Florian Weimer <fweimer@redhat.com>
30578
30579 [BZ #21242]
30580 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30581 Suppress pedantic warning resulting from statement expression.
30582 (__ASSERT_FUNCTION): Add missing __extension__.
30583
30584 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30585
30586 * benchtests/bench-memmove-large.c: Print output in JSON
30587 format.
30588 * benchtests/bench-memmove.c: Likewise.
30589
30590 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30591 * benchtests/bench-memchr.c (do_one_test): Likewise.
30592 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30593 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30594 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30595 * benchtests/bench-memmove.c (do_one_test): Likewise.
30596 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30597 * benchtests/bench-memset.c (do_one_test): Likewise.
30598 * benchtests/bench-string.h (test_init): Remove memsets.
30599
30600 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30601
30602 * manual/lang.texi
30603 (Computing the Width of an Integer Data Type): Rename section to
30604 "Width of an Integer Type". Remove inaccurate statement regarding
30605 lack of C language facilities for determining width of integer
30606 types, and reorder content to improve flow and context of
30607 discussion.
30608
30609 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30610
30611 * lang.texi (va_copy): Change standard from ISO to C99.
30612 (__va_copy): Add standard and header annotation.
30613 Update description for clarity of origins and current use.
30614
30615 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30616
30617 [BZ #21941]
30618 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30619 xssqrtqp requires operands to be in Vector Registers
30620 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30621 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30622 (__ieee754_sqrtf128): Likewise.
30623
30624 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30625
30626 * sysdeps/aarch64/memcmp.S (memcmp):
30627 Rewrite of optimized memcmp.
30628
30629 2017-08-10 Florian Weimer <fweimer@redhat.com>
30630
30631 Introduce ld.so exceptions.
30632 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30633 (_dl_exception_create, _dl_exception_create_format)
30634 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30635 (_dl_catch_exception): Declare.
30636 (_dl_catch_error): Update comment.
30637 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30638 errstring, malloced members with exception member.
30639 (_dl_out_of_memory): Remove.
30640 (fatal_error): New function, extracted from _dl_signal_error.
30641 (_dl_signal_exception, _dl_signal_cexception): New functions.
30642 (_dl_signal_error): Call _dl_exception_create to allocate an
30643 exception object.
30644 (_dl_catch_exception): New function, based on _dl_catch_error.
30645 (_dl_catch_error): Implement using _dl_catch_exception.
30646 * elf/dl-exception.c: New file.
30647 * elf/Makefile (dl-routines): Add dl-exception.
30648 (elide-routines.os): Likewise.
30649 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
30650 _dl_exception_create_format, _dl_exception_free.
30651 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
30652 _dl_signal_exception.
30653 * elf/dl-lookup.c (make_string): Remove.
30654 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
30655 _dl_signal_cexception, _dl_exception_free.
30656 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
30657 _dl_signal_exception.
30658 * elf/dl-sym.c (do_sym): Likewise.
30659 * elf/dl-version.c (make_string): Remove.
30660 (match_symbol): Use _dl_exception_create_format,
30661 _dl_signal_cexception, _dl_exception_free.
30662 (_dl_check_map_versions): Likewise.
30663 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
30664 _dl_catch_exception.
30665 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
30666 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
30667 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
30668 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
30669 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
30670 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
30671 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
30672 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
30673 Likewise.
30674 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
30675 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
30676 (ld.so): Likewise.
30677 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
30678 (ld.so): Likewise.
30679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
30680 Likewise.
30681 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
30682 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
30683 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
30684 Likewise.
30685 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
30686 Likewise.
30687 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
30688
30689 2017-08-10 Florian Weimer <fweimer@redhat.com>
30690
30691 * inet/net-internal.h (__inet6_scopeid_pton): Remove
30692 attribute_hidden, internal_function.
30693 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
30694 internal_function.
30695
30696 2017-08-10 Florian Weimer <fweimer@redhat.com>
30697
30698 * malloc/malloc.c (get_max_fast): Reimplement as an inline
30699 function which calls __builtin_unreachable.
30700
30701 2017-08-10 Mike FABIAN <mfabian@redhat.com>
30702
30703 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
30704 Indian monetary formatting
30705 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
30706 test cases.
30707
30708 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
30709
30710 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
30711 Fix typo in comment.
30712
30713 [BZ #21928]
30714 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
30715 PTRACE_SEIZE_DEVEL): Remove.
30716 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
30717 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30718 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30719 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30720 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30721
30722 2017-08-09 Joseph Myers <joseph@codesourcery.com>
30723
30724 * posix/bits/types.h (__qaddr_t): Remove.
30725
30726 [BZ #21457]
30727 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
30728 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30729 __glibc_reserved1.
30730 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
30731 (ucontext_t): Use __ctx with uc_flags.
30732 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
30733 (__ctxt): Likewise.
30734 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30735 __glibc_reserved1.
30736 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
30737 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30738 __glibc_reserved1.
30739 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
30740 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30741 __glibc_reserved1.
30742 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
30743 macro.
30744 (ucontext_t): Use __ctx with uc_flags.
30745 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
30746 (ucontext_t): Use __ctx with uc_flags.
30747 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
30748 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
30749 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
30750 (ucontext_t): Use __ctx with uc_flags.
30751 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
30752 undefine further down.
30753 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30754 __glibc_reserved1.
30755 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
30756 undefine further down.
30757 (ucontext_t): Use __ctx with uc_flags.
30758 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
30759 undefine further down.
30760 (ucontext_t): Use __ctx with uc_flags.
30761 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
30762 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
30763 Rename uc_pad to __glibc_reserved1.
30764 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
30765 undefine further down.
30766 (ucontext_t): Use __ctx with uc_flags.
30767 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
30768 further down.
30769 (ucontext_t): Use __ctx with uc_flags.
30770 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
30771 __ctx with uc_flags.
30772 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
30773 (ucontext_t): Use __ctx with uc_flags.
30774 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
30775 __ctx with uc_flags.
30776
30777 2017-08-09 Florian Weimer <fweimer@redhat.com>
30778
30779 [BZ #21932]
30780 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
30781 before early return.
30782
30783 2017-08-09 Andreas Schwab <schwab@suse.de>
30784
30785 [BZ #21041]
30786 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
30787 renamed alias.
30788
30789 [BZ #21041]
30790 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
30791 tst-compat-forwarder.
30792 (modules-names): Add tst-compat-forwarder-mod.
30793 ($(objpfx)tst-compat-forwarder): Depend on
30794 $(objpfx)tst-compat-forwarder-mod.so.
30795 * nptl/tst-compat-forwarder.c: New file.
30796 * nptl/tst-compat-forwarder-mod.c: New file.
30797
30798 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
30799
30800 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
30801 comments.
30802
30803 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
30804 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
30805 memcpy_falkor.
30806 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
30807 Bump.
30808 (__libc_ifunc_impl_list): Add __memcpy_falkor.
30809 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
30810 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
30811 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30812 Add falkor.
30813 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
30814 New macro.
30815
30816 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30817
30818 [BZ #759]
30819 * manual/setjmp.texi (getcontex): Document uc_stack value
30820 compatibility differences.
30821
30822 2017-08-08 Joseph Myers <joseph@codesourcery.com>
30823
30824 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
30825 (old_malloc_hook): Likewise.
30826 (old_memalign_hook): Likewise.
30827 (old_realloc_hook): Likewise.
30828 (struct hdr): Likewise.
30829 (flood): Likewise.
30830 (freehook): Likewise.
30831 (mallochook): Likewise.
30832 (memalignhook): Likewise.
30833 (reallochook): Likewise.
30834 (mprobe): Likewise.
30835 * malloc/mtrace.c (mallwatch): Likewise.
30836 (tr_old_free_hook): Likewise.
30837 (tr_old_malloc_hook): Likewise.
30838 (tr_old_realloc_hook): Likewise.
30839 (tr_old_memalign_hook): Likewise.
30840 (tr_where): Likewise.
30841 (lock_and_info): Likewise.
30842 (tr_freehook): Likewise.
30843 (tr_mallochook): Likewise.
30844 (tr_reallochook): Likewise.
30845 (tr_memalignhook): Likewise.
30846 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
30847 * misc/mmap.c (__mmap): Likewise.
30848 * misc/mmap64.c (__mmap64): Likewise.
30849 * misc/mprotect.c (__mprotect): Likewise.
30850 * misc/msync.c (msync): Likewise.
30851 * misc/munmap.c (__munmap): Likewise.
30852 * posix/posix_madvise.c (posix_madvise): Likewise.
30853 * socket/send.c (__send): Likewise.
30854 * socket/sendto.c (__sendto): Likewise.
30855 * socket/setsockopt.c (__setsockopt): Likewise.
30856 * string/memcmp.c (__ptr_t): Remove macro.
30857 (MEMCMP): Use void * instead of ptr_t.
30858 * string/memrchr.c (__ptr_t): Remove macro.
30859 (__memrchr): Use void * instead of ptr_t.
30860 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
30861 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30862 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30863 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
30864 * sysdeps/mach/msync.c (msync): Likewise.
30865 * sysdeps/mach/munmap.c (__munmap): Likewise.
30866 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
30867 Likewise.
30868 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30869 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
30870 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
30871 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
30872 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
30873 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
30874 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
30875 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
30876 Likewise.
30877 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
30878 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
30879 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
30880 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
30881 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
30882 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
30883 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
30884 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
30885 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
30886 Likewise.
30887 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
30888 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
30889 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
30890 (MEMCMP): Use void * instead of ptr_t.
30891 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
30892 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
30893
30894 2017-08-08 Florian Weimer <fweimer@redhat.com>
30895
30896 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
30897 return statement.
30898
30899 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
30900
30901 [BZ #21913]
30902 * csu/libc-tls.c: Include <startup.h> first.
30903 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
30904 * elf/dl-tunables.c: Include <startup.h> first.
30905 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
30906 * sysdeps/generic/startup.h: New file.
30907 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
30908 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
30909 (I386_USE_SYSENTER): New. Defined to 0.
30910
30911 2017-08-08 Andreas Schwab <schwab@suse.de>
30912
30913 [BZ #21041]
30914 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
30915 * nptl/pt-system.c (system): Likewise.
30916
30917 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30918
30919 [BZ #21780]
30920 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
30921 EOPNOTSUPP.
30922 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
30923 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
30924 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
30925 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
30926 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
30927 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
30928 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
30929
30930 2017-08-07 Joseph Myers <joseph@codesourcery.com>
30931
30932 [BZ #21899]
30933 * bits/sigaction.h (struct sigaction): Define sa_handler and
30934 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
30935 (SA_ONSTACK): Change [__USE_UNIX98] condition to
30936 [__USE_XOPEN_EXTENDED].
30937 (SA_RESTART): Likewise.
30938 (SA_NODEFER): Likewise.
30939 (SA_RESETHAND): Likewise.
30940 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
30941 (struct sigaction): Define sa_handler and sa_sigaction using union
30942 also for [__USE_XOPEN_EXTENDED].
30943 (SA_ONSTACK): Change [__USE_UNIX98] condition to
30944 [__USE_XOPEN_EXTENDED].
30945 (SA_RESTART): Likewise.
30946 (SA_NODEFER): Likewise.
30947 (SA_RESETHAND): Likewise.
30948 * sysdeps/unix/sysv/linux/bits/sigaction.h
30949 (struct sigaction): Define sa_handler and sa_sigaction using union
30950 also for [__USE_XOPEN_EXTENDED].
30951 (SA_ONSTACK): Change [__USE_UNIX98] condition to
30952 [__USE_XOPEN_EXTENDED].
30953 (SA_RESTART): Likewise.
30954 (SA_NODEFER): Likewise.
30955 (SA_RESETHAND): Likewise.
30956 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
30957 (struct sigaction): Define sa_handler and sa_sigaction using union
30958 also for [__USE_XOPEN_EXTENDED].
30959 (SA_ONSTACK): Change [__USE_UNIX98] condition to
30960 [__USE_XOPEN_EXTENDED].
30961 (SA_RESTART): Likewise.
30962 (SA_NODEFER): Likewise.
30963 (SA_RESETHAND): Likewise.
30964 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
30965 (struct sigaction): Define sa_handler and sa_sigaction using union
30966 also for [__USE_XOPEN_EXTENDED].
30967 (SA_ONSTACK): Change [__USE_UNIX98] condition to
30968 [__USE_XOPEN_EXTENDED].
30969 (SA_RESTART): Likewise.
30970 (SA_NODEFER): Likewise.
30971 (SA_RESETHAND): Likewise.
30972 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
30973 (struct sigaction): Define sa_handler and sa_sigaction using union
30974 also for [__USE_XOPEN_EXTENDED].
30975 (SA_ONSTACK): Change [__USE_UNIX98] condition to
30976 [__USE_XOPEN_EXTENDED].
30977 (SA_RESTART): Likewise.
30978 (SA_NODEFER): Likewise.
30979 (SA_RESETHAND): Likewise.
30980 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
30981 (struct sigaction): Define sa_handler and sa_sigaction using union
30982 also for [__USE_XOPEN_EXTENDED].
30983 (SA_ONSTACK): Change [__USE_UNIX98] condition to
30984 [__USE_XOPEN_EXTENDED].
30985 (SA_RESTART): Likewise.
30986 (SA_NODEFER): Likewise.
30987 (SA_RESETHAND): Likewise.
30988 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
30989 (struct sigaction): Define sa_handler and sa_sigaction using union
30990 also for [__USE_XOPEN_EXTENDED].
30991 (SA_ONSTACK): Change [__USE_UNIX98] condition to
30992 [__USE_XOPEN_EXTENDED].
30993 (SA_RESTART): Likewise.
30994 (SA_NODEFER): Likewise. Define directly rather than as alias.
30995 (SA_RESETHAND): Likewise.
30996 (SA_INTERRUPT): Define only for [__USE_MISC].
30997 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
30998 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
30999 [__USE_MISC].
31000 (SA_STACK): Define only for [__USE_MISC].
31001 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31002 (struct sigaction): Define sa_handler and sa_sigaction using union
31003 also for [__USE_XOPEN_EXTENDED].
31004 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31005 [__USE_XOPEN_EXTENDED].
31006 (SA_RESTART): Likewise.
31007 (SA_NODEFER): Likewise.
31008 (SA_RESETHAND): Likewise.
31009 (SA_NOPTRACE): Define only for [__USE_MISC].
31010
31011 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31012 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31013 (struct catalog_info): Likewise.
31014 * inet/htontest.c (lo): Likewise.
31015 (foo): Likewise.
31016 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31017 * inet/inet_net.c (inet_network): Likewise.
31018 * inet/inet_netof.c (inet_netof): Likewise.
31019 * inet/rcmd.c (__ivaliduser): Likewise.
31020 (iruserok): Likewise.
31021 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31022 * locale/programs/locale-spec.c (locale_special): Likewise.
31023 * nis/nis_findserv.c (struct findserv_req): Likewise.
31024 (__nis_findfastest_with_timeout): Likewise.
31025 * nss/test-netdb.c (test_network): Likewise.
31026 * resolv/inet_neta.c (inet_neta): Likewise.
31027 * resolv/ns_date.c (ns_datetosecs): Likewise.
31028 (SECS_PER_DAY): Likewise.
31029 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31030 Likewise.
31031 * resolv/res_comp.c (__putlong): Likewise.
31032 (__putshort): Likewise.
31033 (_getlong): Likewise.
31034 (_getshort): Likewise.
31035 * resolv/res_debug.c (p_time): Likewise.
31036 (precsize_ntoa): Likewise.
31037 (precsize_aton): Likewise.
31038 (latlon2ul): Likewise.
31039 (loc_aton): Likewise.
31040 (loc_ntoa): Likewise.
31041 * resolv/res_hconf.c (struct netaddr): Likewise.
31042 (_res_hconf_reorder_addrs): Likewise.
31043 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31044 (clnttcp_control): Likewise.
31045 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31046 (clntudp_control): Likewise.
31047 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31048 (clntunix_control): Likewise.
31049 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31050 * sunrpc/rpc/auth.h (union des_block): Likewise.
31051 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31052 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31053 (xdrrec_create): Likewise.
31054 (xdrrec_endofrecord): Likewise.
31055 (flush_out): Likewise.
31056 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31057 (xdrstdio_putlong): Likewise.
31058 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31059 Likewise.
31060
31061 * misc/sys/cdefs.h (__long_double_t): Remove.
31062 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31063 instead of __long_double_t,
31064 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31065
31066 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31067
31068 * benchtests/scripts/compare_strings.py: Avoid display error when
31069 running on a text terminal.
31070
31071 * benchtests/scripts/compare_strings.py (main): Add an
31072 optional -base option.
31073 (process_results): New argument base_func.
31074
31075 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31076 hardcoding memcpy.
31077 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31078 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31079
31080 2017-08-07 Andreas Schwab <schwab@suse.de>
31081
31082 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31083 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31084 * intl/Makefile ($(objpfx)tst-gettext.out)
31085 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31086 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31087 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31088 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31089 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31090 * posix/Makefile ($(objpfx)globtest.out)
31091 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31092 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31093 ($(objpfx)tst-printf.out): Likewise.
31094 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31095 ($(objpfx)tst-setcontext3.out): Likewise.
31096
31097 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31098
31099 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31100 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31101 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31102 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31103 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31104 and mptan-fma.
31105 (CFLAGS-doasin-fma.c): New.
31106 (CFLAGS-dosincos-fma.c): Likewise.
31107 (CFLAGS-e_asin-fma.c): Likewise.
31108 (CFLAGS-e_atan2-fma.c): Likewise.
31109 (CFLAGS-e_exp-fma.c): Likewise.
31110 (CFLAGS-e_log-fma.c): Likewise.
31111 (CFLAGS-e_pow-fma.c): Likewise.
31112 (CFLAGS-halfulp-fma.c): Likewise.
31113 (CFLAGS-mpa-fma.c): Likewise.
31114 (CFLAGS-mpatan-fma.c): Likewise.
31115 (CFLAGS-mpatan2-fma.c): Likewise.
31116 (CFLAGS-mpexp-fma.c): Likewise.
31117 (CFLAGS-mplog-fma.c): Likewise.
31118 (CFLAGS-mpsqrt-fma.c): Likewise.
31119 (CFLAGS-mptan-fma.c): Likewise.
31120 (CFLAGS-s_atan-fma.c): Likewise.
31121 (CFLAGS-sincos32-fma.c): Likewise.
31122 (CFLAGS-slowexp-fma.c): Likewise.
31123 (CFLAGS-slowpow-fma.c): Likewise.
31124 (CFLAGS-s_sin-fma.c): Likewise.
31125 (CFLAGS-s_tan-fma.c): Likewise.
31126 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31127 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31128 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31129 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31130 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31131 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31132 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31133 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31134 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31135 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31136 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31137 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31138 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31139 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31140 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31141 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31142 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31143 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31144 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31145 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31146 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31147 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31148 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31149 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31150 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31151 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31152 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31153 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31154 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31155 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31156 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31157
31158 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31159
31160 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31161 (min_of_type_f): New macro.
31162 (min_of_type_): Likewise.
31163 (min_of_type_l): Likewise.
31164 (min_of_type_f128): Likewise.
31165 (min_of_type): Define using __MATH_TG and taking an expression
31166 argument.
31167 (math_check_force_underflow): Pass expression instead of type to
31168 min_of_type.
31169 (math_check_force_underflow_nonneg): Likewise.
31170
31171 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31172
31173 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31174 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31175 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31176
31177 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31178
31179 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31180 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31181 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31182 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31183 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31184 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31185 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31186 memmove_chk-nonshared and memset_chk-nonshared
31187 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31188 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31189 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31190 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31191 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31192 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31193 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31194 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31195 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31196 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31197 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31198 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31199 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31200 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31201 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31202 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31203 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31204 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31205 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31206 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31207 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31208 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31209 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31210 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31211 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31212 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31213 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31214 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31215 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31216 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31217 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31218 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31219 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31220 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31221 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31222 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31223 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31224 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31225 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31226 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31227 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31228 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31229 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31230 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31231 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31232 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31233 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31234 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31235 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31236 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31237 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31238 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31239 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31240 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31241 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31242 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31243 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31244 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31245 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31246 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31247 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31248 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31249 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31250 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31251 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31252 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31253 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31254 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31255 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31256 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31257 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31258 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31259 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31260 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31261 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31262 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31263 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31264 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31265 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31266 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31267 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31268 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31269 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31270 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31271 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31272 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31273 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31274 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31275 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31276 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31277 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31278 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31279 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31280 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31281 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31282 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31283 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31284 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31285 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31286 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31287 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31288 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31289 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31290 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31291 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31292 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31293 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31294 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31295
31296 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31297
31298 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31299 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31300 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31301 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31302 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31303 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31304 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31305 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31306 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31307 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31308 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31309 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31310 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31311 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31312 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31313 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31314 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31315 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31316 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31317 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31318 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31319 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31320 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31321 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31322 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31323 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31324 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31325 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31326 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31327 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31328 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31329 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31330 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31331 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31332 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31333 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31334 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31335 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31336 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31337 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31338 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31339 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31340 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31341 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31342 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31343 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31344 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31345 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31346 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31347 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31348 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31349 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31350 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31351 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31352 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31353 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31354 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31355 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31356 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31357 ...
31358 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31359 Don't include <sysdep.h> nor <init-arch.h>.
31360 (_ZGVbN2v_cos): Removed.
31361 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31362 ...
31363 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31364 Don't include <sysdep.h> nor <init-arch.h>.
31365 (_ZGVdN4v_cos): Removed.
31366 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31367 ...
31368 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31369 Don't include <sysdep.h> nor <init-arch.h>.
31370 (_ZGVeN8v_cos): Removed.
31371 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31372 ...
31373 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31374 Don't include <sysdep.h> nor <init-arch.h>.
31375 (_ZGVbN2v_exp): Removed.
31376 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31377 ...
31378 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31379 Don't include <sysdep.h> nor <init-arch.h>.
31380 (_ZGVdN4v_exp): Removed.
31381 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31382 ...
31383 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31384 Don't include <sysdep.h> nor <init-arch.h>.
31385 (_ZGVeN8v_exp): Removed.
31386 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31387 ...
31388 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31389 Don't include <sysdep.h> nor <init-arch.h>.
31390 (_ZGVbN2v_log): Removed.
31391 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31392 ...
31393 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31394 Don't include <sysdep.h> nor <init-arch.h>.
31395 (_ZGVdN4v_log): Removed.
31396 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31397 ...
31398 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31399 Don't include <sysdep.h> nor <init-arch.h>.
31400 (_ZGVeN8v_log): Removed.
31401 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31402 ...
31403 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31404 Don't include <sysdep.h> nor <init-arch.h>.
31405 (_ZGVbN2vv_pow): Removed.
31406 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31407 ...
31408 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31409 Don't include <sysdep.h> nor <init-arch.h>.
31410 (_ZGVdN4vv_pow): Removed.
31411 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31412 ...
31413 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31414 Don't include <sysdep.h> nor <init-arch.h>.
31415 (_ZGVeN8vv_pow): Removed.
31416 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31417 ...
31418 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31419 Don't include <sysdep.h> nor <init-arch.h>.
31420 (_ZGVbN2v_sin): Removed.
31421 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31422 ...
31423 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31424 Don't include <sysdep.h> nor <init-arch.h>.
31425 (_ZGVbN4v_sin): Removed.
31426 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31427 ...
31428 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31429 Don't include <sysdep.h> nor <init-arch.h>.
31430 (_ZGVbN8v_sin): Removed.
31431 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31432 ...
31433 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31434 Don't include <sysdep.h> nor <init-arch.h>.
31435 (_ZGVbN2vvv_sincos): Removed.
31436 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31437 ...
31438 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31439 Don't include <sysdep.h> nor <init-arch.h>.
31440 (_ZGVdN4vvv_sincos): Removed.
31441 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31442 ...
31443 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31444 Don't include <sysdep.h> nor <init-arch.h>.
31445 (_ZGVeN8vvv_sincos): Removed.
31446 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31447 ...
31448 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31449 Don't include <sysdep.h> nor <init-arch.h>.
31450 (_ZGVeN16v_cosf): Removed.
31451 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31452 ...
31453 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31454 Don't include <sysdep.h> nor <init-arch.h>.
31455 (_ZGVbN4v_cosf): Removed.
31456 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31457 ...
31458 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31459 Don't include <sysdep.h> nor <init-arch.h>.
31460 (_ZGVdN8v_cosf): Removed.
31461 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31462 ...
31463 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31464 Don't include <sysdep.h> nor <init-arch.h>.
31465 (_ZGVeN16v_expf): Removed.
31466 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31467 ...
31468 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31469 Don't include <sysdep.h> nor <init-arch.h>.
31470 (_ZGVbN4v_expf): Removed.
31471 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31472 ...
31473 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31474 Don't include <sysdep.h> nor <init-arch.h>.
31475 (_ZGVdN8v_expf): Removed.
31476 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31477 ...
31478 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31479 Don't include <sysdep.h> nor <init-arch.h>.
31480 (_ZGVeN16v_logf): Removed.
31481 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31482 ...
31483 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31484 Don't include <sysdep.h> nor <init-arch.h>.
31485 (_ZGVbN4v_logf): Removed.
31486 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31487 ...
31488 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31489 Don't include <sysdep.h> nor <init-arch.h>.
31490 (_ZGVdN8v_logf): Removed.
31491 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31492 ...
31493 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31494 Don't include <sysdep.h> nor <init-arch.h>.
31495 (_ZGVeN16vv_powf): Removed.
31496 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31497 ...
31498 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31499 Don't include <sysdep.h> nor <init-arch.h>.
31500 (_ZGVbN4vv_powf): Removed.
31501 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31502 ...
31503 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31504 Don't include <sysdep.h> nor <init-arch.h>.
31505 (_ZGVdN8vv_powf): Removed.
31506 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31507 ...
31508 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31509 Don't include <sysdep.h> nor <init-arch.h>.
31510 (_ZGVeN16vvv_sincosf): Removed.
31511 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31512 ...
31513 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31514 Don't include <sysdep.h> nor <init-arch.h>.
31515 (_ZGVbN4vvv_sincosf): Removed.
31516 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31517 ...
31518 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31519 Don't include <sysdep.h> nor <init-arch.h>.
31520 (_ZGVdN8vvv_sincosf): Removed.
31521 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31522 ...
31523 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31524 Don't include <sysdep.h> nor <init-arch.h>.
31525 (_ZGVeN16v_sinf): Removed.
31526 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31527 ...
31528 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31529 Don't include <sysdep.h> nor <init-arch.h>.
31530 (_ZGVbN4v_sinf): Removed.
31531 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31532 ...
31533 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31534 Don't include <sysdep.h> nor <init-arch.h>.
31535 (_ZGVdN8v_sinf): Removed.
31536
31537 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31538
31539 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31540 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31541 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31542 s_rint-sse4_1 and s_rintf-sse4_1.
31543 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31544 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31545 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31546 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31547 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31548 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31549 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31550 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31551 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31552 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31553 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31554 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31555 (__ceil): Removed.
31556 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31557 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31558 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31559 (__ceilf): Removed.
31560 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31561 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31562 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31563 (__floor): Removed.
31564 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31565 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31566 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31567 (__floorf): Removed.
31568 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31569 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31570 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31571 (__nearbyint): Removed.
31572 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31573 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31574 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31575 (__nearbyintf): Removed.
31576 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31577 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31578 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31579 (__rint): Removed.
31580 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31581 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31582 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31583 (__rintf): Removed.
31584
31585 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31586
31587 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31588 SHARED. Avoid dynamic relocation against main in static PIE.
31589
31590 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31591
31592 [BZ #21815]
31593 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31594 (LDFLAGS-tst-prelink): Likewise.
31595
31596 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31597
31598 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31599 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31600 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31601 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31602 (INTERNAL_SYSCALL_NCS): Likewise.
31603 (LOADARGS_1): Likewise.
31604 (LOADARGS_5): Likewise.
31605 (RESTOREARGS_1): Likewise.
31606 (RESTOREARGS_5): Likewise.
31607
31608 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31609
31610 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31611 (MEMPCPY_SYMBOL): Likewise.
31612 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31613 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31614 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31615 in libc.a.
31616 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31617 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31618 Likewise.
31619 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31620 (__hidden_ver1): Don't use in libc.a.
31621 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31622 (__mempcpy): Don't create a weak alias in libc.a.
31623 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31624 libc.a.
31625 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31626 (__hidden_ver1): Don't use in libc.a.
31627
31628 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31629
31630 * config.make.in (have-insert): New.
31631 * configure.ac (libc_cv_insert): New. Set to yes if linker
31632 supports INSERT in linker script.
31633 (AC_SUBST(libc_cv_insert): New.
31634 * configure: Regenerated.
31635 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31636 if $(have-insert) == yes.
31637
31638 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31639
31640 * elf/Makefile (tests): Add vismain only if
31641 $(have-protected-data) == yes.
31642 (tests-pie): Likewise.
31643
31644 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31645
31646 [BZ #21871]
31647 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
31648 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
31649
31650 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31651
31652 [BZ #21790]
31653 * sysdeps/i386/i586/memset.S
31654 (__memset_zero_constant_len_parameter): Removed.
31655 * sysdeps/i386/i686/memset.S
31656 (__memset_zero_constant_len_parameter): Likewise.
31657 * sysdeps/i386/i686/multiarch/memset_chk.S
31658 (__memset_zero_constant_len_parameter): Likewise.
31659 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
31660 Likewise.
31661
31662 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31663
31664 * stdlib/getentropy.c (getentropy): Change return type to int.
31665
31666 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31667
31668 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
31669
31670 2017-08-03 Joseph Myers <joseph@codesourcery.com>
31671
31672 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
31673 u_intN_t.
31674 * math/s_nexttowardf.c (__nexttowardf): Likewise.
31675 * sysdeps/generic/math_private.h (ieee_double_shape_type):
31676 Likewise.
31677 (ieee_float_shape_type): Likewise.
31678 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
31679 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
31680 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
31681 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
31682 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
31683 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
31684 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
31685 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
31686 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
31687 Likewise.
31688 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
31689 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
31690 (__ieee754_yn): Likewise.
31691 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
31692 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
31693 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
31694 Likewise.
31695 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
31696 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
31697 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
31698 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
31699 (__erfc): Likewise.
31700 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
31701 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
31702 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
31703 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
31704 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
31705 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
31706 Likewise.
31707 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
31708 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
31709 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
31710 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
31711 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
31712 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
31713 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
31714 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
31715 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
31716 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
31717 (__issignaling): Likewise.
31718 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
31719 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
31720 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
31721 Likewise.
31722 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31723 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
31724 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
31725 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
31726 Likewise.
31727 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
31728 Likewise.
31729 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
31730 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
31731 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
31732 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
31733 (__erfcf): Likewise.
31734 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
31735 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
31736 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
31737 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
31738 Likewise.
31739 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
31740 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
31741 Likewise.
31742 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
31743 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
31744 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
31745 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
31746 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
31747 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
31748 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
31749 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
31750 Likewise.
31751 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
31752 Likewise.
31753 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
31754 Likewise.
31755 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
31756 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
31757 Likewise.
31758 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
31759 Likewise.
31760 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
31761 (__ieee754_ynl): Likewise.
31762 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
31763 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
31764 Likewise.
31765 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
31766 Likewise.
31767 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
31768 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
31769 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
31770 Likewise.
31771 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
31772 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
31773 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
31774 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
31775 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
31776 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
31777 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
31778 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
31779 Likewise.
31780 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
31781 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
31782 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
31783 Likewise.
31784 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
31785 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
31786 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
31787 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
31788 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
31789 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
31790 Likewise.
31791 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
31792 Likewise.
31793 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
31794 Likewise.
31795 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
31796 Likewise.
31797 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
31798 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
31799 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
31800 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
31801 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
31802 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
31803 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
31804 Likewise.
31805 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
31806 Likewise.
31807 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
31808 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
31809 Likewise.
31810 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
31811 (__ieee754_remainderl): Likewise.
31812 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
31813 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
31814 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
31815 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
31816 Likewise.
31817 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
31818 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
31819 Likewise.
31820 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
31821 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
31822 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
31823 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
31824 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
31825 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
31826 Likewise.
31827 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
31828 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
31829 (__ieee754_y0l): Likewise.
31830 (pzero): Likewise.
31831 (qzero): Likewise.
31832 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
31833 (__ieee754_y1l): Likewise.
31834 (pone): Likewise.
31835 (qone): Likewise.
31836 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
31837 (__ieee754_ynl): Likewise.
31838 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
31839 (__ieee754_lgammal_r): Likewise.
31840 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
31841 Likewise.
31842 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
31843 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
31844 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
31845 (__erfcl): Likewise.
31846 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
31847 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
31848 Likewise.
31849 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
31850 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
31851 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
31852 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
31853 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
31854 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
31855 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
31856 Likewise.
31857 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
31858 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
31859 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
31860 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
31861 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
31862 Likewise.
31863 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
31864 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
31865 Likewise.
31866 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
31867 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
31868 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
31869 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
31870 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
31871
31872 2017-08-03 Florian Weimer <fweimer@redhat.com>
31873
31874 [BZ #21885]
31875 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
31876 on memory allocation failure.
31877
31878 2017-08-03 Alan Modra <amodra@gmail.com>
31879
31880 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
31881 tst-tlsopt-powerpc.c with function name change and no test harness.
31882 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
31883 Call tls_get_addr_opt_test.
31884 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
31885 (modules-names): Add mod-tlsopt-powerpc.
31886 (mod-tlsopt-powerpc.so-no-z-defs): Define.
31887 (tst-tlsopt-powerpc): Depend on .so.
31888 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
31889 define. Expand use in TLS_GD and TLS_LD.
31890
31891 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31892
31893 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
31894 function.
31895 * sysdeps/posix/shm_open.c: Include <pthread.h>.
31896
31897 2017-08-02 Joseph Myers <joseph@codesourcery.com>
31898
31899 [BZ #21686]
31900 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
31901 comparing size with that of double.
31902 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
31903 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
31904 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
31905 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
31906 (__TGMATH_BINARY_REAL_IMAG): Likewise.
31907 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
31908 unsigned __int128 types.
31909
31910 2017-08-02 Steve Ellcey <sellcey@cavium.com>
31911
31912 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
31913 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
31914 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
31915 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
31916 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
31917
31918 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
31919
31920 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
31921
31922 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
31923
31924 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
31925 of SHARED.
31926 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
31927 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
31928 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
31929 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
31930 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
31931 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
31932 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
31933
31934 2017-08-02 Joseph Myers <joseph@codesourcery.com>
31935
31936 [BZ #21685]
31937 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
31938 bit-field expressions passed to sizeof or typeof.
31939 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31940 (__TGMATH_F128): Likewise.
31941 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31942 (__TGMATH_CF128): Likewise.
31943 (__TGMATH_UNARY_REAL_ONLY): Likewise.
31944 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
31945 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
31946 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
31947 (__TGMATH_BINARY_REAL_ONLY): Likewise.
31948 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
31949 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
31950 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
31951 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
31952 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
31953 (__TGMATH_UNARY_REAL_IMAG): Likewise.
31954 (__TGMATH_UNARY_IMAG): Likewise.
31955 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
31956 (__TGMATH_BINARY_REAL_IMAG): Likewise.
31957 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
31958 type.
31959 (define_vars_for_type): Handle bit_field type specially.
31960 (Tests.__init__): Declare structure with bit-field element.
31961
31962 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
31963
31964 [BZ #21791]
31965 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
31966 (MEMCPY_CHK): Define only if SHARED is defined.
31967 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
31968 Likewise.
31969 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
31970 Likewise.
31971
31972 See ChangeLog.18 for earlier changes.