]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Adjust wording of two fall-through comments.
[thirdparty/glibc.git] / ChangeLog
1 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2
3 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
4 comment wording.
5 * nis/nis_call.c (__do_niscall3): Likewise.
6
7 * catgets/gencat.c (normalize_line): Use braces around empty
8 'else' body.
9 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
10 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
11 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
12 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
13 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
14 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
15 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
16 definition.
17
18 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
19 execlp returns.
20
21 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
22
23 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
24 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
25 * benchtests/bench-strchr.c (stupid_strchr): Remove.
26 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
27 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
28 * benchtests/bench-strlen.c (builtin_strlen): Remove.
29 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
30 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
31 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
32 * benchtests/bench-strspn.c (stupid_strspn): Remove.
33 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
34 * benchtests/bench-bcopy.c: Delete file.
35 * benchtests/bench-bzero.c: Likewise.
36 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
37 (simple_memccpy): Remove.
38 (generic_memccpy): Add function.
39 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
40 * benchtests/bench-memmove.c (simple_bcopy): Remove.
41 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
42 (generic_mempcpy): Add new function.
43 * benchtests/bench-memset.c (simple_bzero): Remove.
44 (builtin_bzero): Remove.
45 (builtin_memset): Remove.
46 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
47 (generic_rawmemchr): Add new function.
48
49 2019-02-12 Florian Weimer <fweimer@redhat.com>
50
51 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
52
53 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
54
55 [BZ #24122]
56 * elf/Makefile (tests): Add tst-audit13.
57 (modules-names): Add tst-audit13mod1.
58 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
59 rule.
60 * elf/tst-audit13.c: New file.
61 * elf/tst-audit13mod1.c: Likewise.
62
63 2019-02-12 Florian Weimer <fweimer@redhat.com>
64
65 [BZ #24122]
66 * elf/rtld.c (unload_audit_module): New function.
67 (report_audit_module_load_error): Likewise.
68 (load_audit_module): Likewise. Extracted from dl_main. Call
69 _dl_close if the laversion symbol cannot be found. Use early
70 returns for error handling. Add malloc error check. Check for a
71 zero return value from la_version. Remove spurious comment about
72 static TLS initialization. Remove useless casts.
73 (notify_audit_modules_of_loaded_object): New function. Extracted
74 from dl_main.
75 (load_audit_module): Likewise.
76 (dl_main): Call load_audit_modules.
77
78 2019-02-12 Joseph Myers <joseph@codesourcery.com>
79
80 * elf/dl-exception.c (_dl_exception_create_format): Add
81 fall-through comments.
82 * elf/ldconfig.c (parse_conf_include): Likewise.
83 * elf/rtld.c (print_statistics): Likewise.
84 * locale/programs/charmap.c (parse_charmap): Likewise.
85 * misc/mntent_r.c (__getmntent_r): Likewise.
86 * posix/wordexp.c (parse_arith): Likewise.
87 (parse_backtick): Likewise.
88 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
89 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
90 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
91
92 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
93
94 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
95 Use float instead of double.
96
97 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
98
99 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
100
101 2019-02-08 Joseph Myers <joseph@codesourcery.com>
102
103 * sysdeps/powerpc/bits/mathinline.h: Remove.
104
105 2019-02-08 Florian Weimer <fweimer@redhat.com>
106
107 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
108 * math/bits/math-finite.h: Move to ...
109 * bits/math-finite.h: ... here.
110
111 2019-02-08 Florian Weimer <fweimer@redhat.com>
112
113 * sysdeps/generic/bits/unistd_ext.h: Move to ...
114 * bits/unistd_ext.h: here.
115
116 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
117
118 [BZ #21915]
119 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
120 * nss/tst-nss-files-hosts-long.c: New file.
121 * nss/tst-nss-files-hosts-long.root: New directory.
122 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
123 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
124
125 2019-02-08 Florian Weimer <fweimer@redhat.com>
126
127 * include/bits/unistd_ext.h: Remove file.
128 * posix/bits/unistd_ext.h: Move to ...
129 * sysdeps/generic/bits/unistd_ext.h: ... here.
130
131 2019-02-08 Florian Weimer <fweimer@redhat.com>
132
133 * include/bits/unistd_ext.h: New file.
134
135 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
136
137 * time/tst-strftime2.c: Use array_length macros instead of magic
138 numbers.
139
140 2019-02-08 Florian Weimer <fweimer@redhat.com>
141
142 [BZ #24161]
143 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
144 argument.
145 * nptl/register-atfork.c (__run_fork_handlers): Only perform
146 locking if the new do_locking argument is true.
147 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
148 __run_fork_handlers.
149
150 2019-02-08 Florian Weimer <fweimer@redhat.com>
151
152 [BZ #6399]
153 Linux: Add gettid system call wrapper.
154 * posix/Makefile (headers): Add bits/unistd_ext.h.
155 * posix/bits/unistd_ext.h: New file.
156 * posix/unistd.h: Include it.
157 * manual/process.texi (Process Identification): Document gettid.
158 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
159 tst-gettid, tst-gettid-kill.
160 (tst-gettid): Link with $(shared-thread-library).
161 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
162 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
163 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
164 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
165 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
166 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
167 Add gettid.
168 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
169 Likewise.
170 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
171 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
172 Likewise.
173 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
174 Likewise.
175 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
176 Likewise.
177 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
178 Likewise.
179 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
180 Likewise.
181 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
182 Likewise.
183 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
184 Likewise.
185 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
186 (GLIBC_2.30): Likewise.
187 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
188 (GLIBC_2.30): Likewise.
189 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
190 (GLIBC_2.30): Likewise.
191 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
192 (GLIBC_2.30): Likewise.
193 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
194 Likewise.
195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
196 (GLIBC_2.30): Likewise.
197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
198 (GLIBC_2.30): Likewise.
199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
200 (GLIBC_2.30): Likewise.
201 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
202 (GLIBC_2.30): Likewise.
203 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
204 Likewise.
205 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
206 Likewise.
207 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
208 Likewise.
209 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
210 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
211 Likewise.
212 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
213 Likewise.
214 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
215 Likewise.
216 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
217 Likewise.
218 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
219
220 2019-02-07 Florian Weimer <fweimer@redhat.com>
221
222 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
223 compatibility symbols.
224
225 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
226
227 [BZ #24180]
228 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
229 Add compiler barriers and comments.
230
231 2019-02-07 Florian Weimer <fweimer@redhat.com>
232
233 * include/array_length.h (array_length): Do not use a statement
234 expression and _Static_assert, so that array_length can be used at
235 file scope and as a constant expression.
236
237 2019-02-07 Florian Weimer <fweimer@redhat.com>
238
239 * support/xdlfcn.h (xdlmopen): Declare.
240 * support/xdlmopen.c: New file.
241 * support/Makefile (libsupport-routines): Add xdlmopen.
242
243 2019-02-06 Joseph Myers <joseph@codesourcery.com>
244
245 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
246 before return type, without separate inline.
247 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
248 * elf/dl-tunables.h (tunable_is_name): Likewise.
249 * malloc/malloc.c (do_set_trim_threshold): Likewise.
250 (do_set_top_pad): Likewise.
251 (do_set_mmap_threshold): Likewise.
252 (do_set_mmaps_max): Likewise.
253 (do_set_mallopt_check): Likewise.
254 (do_set_perturb_byte): Likewise.
255 (do_set_arena_test): Likewise.
256 (do_set_arena_max): Likewise.
257 (do_set_tcache_max): Likewise.
258 (do_set_tcache_count): Likewise.
259 (do_set_tcache_unsorted_limit): Likewise.
260 * nis/nis_subr.c (count_dots): Likewise.
261 * nptl/allocatestack.c (advise_stack_range): Likewise.
262 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
263 (do_sin): Likewise.
264 (reduce_sincos): Likewise.
265 (do_sincos): Likewise.
266 * sysdeps/unix/sysv/linux/x86/elision-conf.c
267 (do_set_elision_enable): Likewise.
268 (TUNABLE_CALLBACK_FNDECL): Likewise.
269
270 2019-02-06 Florian Weimer <fweimer@redhat.com>
271
272 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
273 (xdlsym): Use dlerror to detect a NULL symbol.
274
275 2019-02-06 Florian Weimer <fweimer@redhat.com>
276
277 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
278 <stap-probe.h>.
279 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
280
281 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
282
283 * libio/tst-bz24153.c (wide): Use wide char format specifier.
284
285 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
286
287 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
288 __wmemcmp and weak alias to wmemcmp.
289
290 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
291
292 [BZ #23403]
293 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
294 TLS_TCB_AT_TP tls variant.
295 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
296 Add alignment checks.
297 * support/Makefile (libsupport-routines): Add xposix_memalign and
298 xpthread_setstack.
299 * support/support.h: Add xposix_memalign.
300 * support/xthread.h: Add xpthread_attr_setstack.
301 * support/xposix_memalign.c: New File.
302 * support/xpthread_attr_setstack.c: Likewise.
303
304 2019-02-05 Florian Weimer <fweimer@redhat.com>
305
306 [BZ #24164]
307 arm: Use "nr" constraint for Systemtap probes, to avoid the
308 compiler using memory operands for constants, due to the "o"
309 alternative in the default "nor" constraint.
310 * include/stap-probe.h [USE_STAP_PROBE]: Include
311 <stap-probe-machine.h>
312 * sysdeps/generic/stap-probe-machine.h: New file.
313 * sysdeps/arm/stap-probe-machine.h: Likewise.
314
315 2019-02-04 Joseph Myers <joseph@codesourcery.com>
316
317 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
318 with 0, not tcache->entries[tc_idx].
319
320 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
321 once.
322
323 2019-02-04 Andreas Schwab <schwab@suse.de>
324
325 [BZ #16976]
326 [BZ #17396]
327 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
328 looking up collating elements match against (wide) character
329 sequence instead of name. Correct alignment adjustment.
330 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
331 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
332 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
333 (LOCALES): Add cs_CZ.ISO-8859-2.
334 * posix/tst-fnmatch4.c: New file.
335 * posix/tst-fnmatch5.c: New file.
336 * include/wchar.h (__wmemcmp): Declare.
337 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
338 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
339 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
340 * sysdeps/s390/wmemcmp.c: Likewise.
341
342 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
343
344 [BZ #24155]
345 CVE-2019-7309
346 * NEWS: Updated for CVE-2019-7309.
347 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
348 upper 32 bits of RDX register for x32. Use unsigned Jcc
349 instructions, instead of signed.
350 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
351 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
352
353 2019-02-04 Florian Weimer <fweimer@redhat.com>
354
355 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
356 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
357 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
358 Likewise.
359 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
360 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
361 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
362 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
363 Likewise.
364 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
365 Likewise.
366 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
367 Likewise.
368 (posix_spawn_file_actions_addopen): Likewise.
369 (posix_spawn_file_actions_addclose): Likewise.
370 (posix_spawn_file_actions_adddup2): Likewise.
371 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
372 qualifiers.
373 (posix_spawn_file_actions_addfchdir_np): Likewise.
374
375 2019-02-04 David Newall <glibc@davidnewall.com>
376
377 elf: Implement --preload option for the dynamic linker.
378 * elf/rtld.c (preloadarg): New variable.
379 (handle_preload_list): Pass through “where” argument to
380 do_preload.
381 (dl_main): Handle "--preload" and add second call to
382 handle_preload_list.
383 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
384 (tst-rtld-preload-OBJS): Set variable.
385 (tst-rtld-preload.out): New target.
386 * elf/tst-rtld-preload.sh: New file.
387
388 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
389
390 * Makefile (testrun.sh): Exit in case of incorrect argument.
391
392 2019-02-04 Florian Weimer <fweimer@redhat.com>
393
394 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
395 alignment gaps.
396
397 2019-02-03 Florian Weimer <fweimer@redhat.com>
398
399 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
400 implicit overflow checks.
401
402 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
403
404 * stdlib/isomac.c: Include <unistd.h>.
405
406 2019-02-03 Florian Weimer <fweimer@redhat.com>
407
408 * include/time.h (__tzfile_default): Use int, not long int, for
409 the GMT offsets.
410 * time/tzfile.c (struct ttinfo): Change type of the offset member
411 to int.
412 (__tzfile_read): Remove useless cast.
413 (__tzfile_default): Adjust prototype.
414 * time/tzset.c (tz_rule): Change type of the offset member to int.
415 (parse_offset): Change the type of the sign variable to int.
416
417 2019-02-03 Florian Weimer <fweimer@redhat.com>
418
419 [BZ #24153]
420 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
421 * libio/getchar.c (getchar): Likewise.
422 * libio/getchar_u.c (getchar_unlocked): Likewise.
423 * libio/getwchar.c (getwchar): Likewise.
424 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
425 * libio/iogets.c (_IO_gets): Likewise.
426 * libio/vscanf.c (_IO_vscanf): Likewise.
427 * libio/vwscanf.c (__vwscanf): Likewise.
428 * libio/tst-bz24153.c: New file.
429 * libio/Makefile (tests): Add it.
430
431 2019-02-02 Florian Weimer <fweimer@redhat.com>
432
433 [BZ #14829]
434 * manual/resource.texi (Basic Scheduling Functions): Add
435 portability note. Change process to task throughout the section.
436 Remove incorrect comment about sched_yield as it affects
437 tasks/threads, not entire processes.
438 * sysdeps/unix/sysv/linux/bits/posix_opt.h
439 (_POSIX_PRIORITY_SCHEDULING): Update comment.
440
441 2019-02-01 Joseph Myers <joseph@codesourcery.com>
442
443 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
444 * configure: Regenerated.
445 * manual/install.texi (Tools for Compilation): Update minimum GCC
446 version.
447 * INSTALL: Regenerated.
448
449 2019-02-01 Florian Weimer <fweimer@redhat.com>
450
451 * support/support_test_compare_string.c
452 (support_test_compare_string): Use "string" in error message.
453 * support/tst-test_compare_string.c (do_test): Adjust.
454
455 2019-02-01 Florian Weimer <fweimer@redhat.com>
456
457 * support/support_format_address_family.c
458 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
459
460 2019-02-01 Florian Weimer <fweimer@redhat.com>
461
462 * manual/socket.texi (Internet Address Formats): Clarify the byte
463 order of struct sockaddr_in, struct sockaddr_in6. Document
464 sin6_flowinfo and sin6_scope_id.
465
466 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
467
468 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
469 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
470 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
471 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
472 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
473 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
474
475 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
476
477 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
478 [!MEMCHR](MEMCHR): Set to __memchr.
479 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
480 Add memchr_generic and memchr_nosimd.
481 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
482 (__libc_ifunc_impl_list): Add memchr ifuncs.
483 * sysdeps/aarch64/multiarch/memchr.c: New file.
484 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
485 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
486
487 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
488
489 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
490 Add memset_emag.
491 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
492 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
493 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
494 Add IS_EMAG check for ifunc dispatch.
495 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
496 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
497
498 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
499
500 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
501 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
502 Add emag.
503 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
504 New macro.
505
506 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
507
508 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
509
510 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
511
512 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
513 syscall-template file.
514
515 2019-01-31 Carlos O'Donell <carlos@redhat.com>
516 Torvald Riegel <triegel@redhat.com>
517 Rik Prohaska <prohaska7@gmail.com>
518
519 [BZ# 23844]
520 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
521 tst-rwlock-trywrlock-stall.
522 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
523 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
524 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
525 Set __wrphase_fute to 1 only if we started the write phase.
526 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
527 * nptl/tst-rwlock-trywrlock-stall.c: New file.
528 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
529 * support/xpthread_rwlock_destroy.c: New file.
530 * support/xthread.h: Declare xpthread_rwlock_destroy.
531
532 2019-02-01 Joseph Myers <joseph@codesourcery.com>
533
534 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
535 version to 4.0.2.
536
537 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
538
539 [BZ #24051]
540 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
541 * libio/fileops.c (_IO_new_file_underflow): Likewise
542 * libio/wfileops.c (_IO_wfile_underflow): Likewise
543 * libio/putchar.c (putchar): Likewise.
544 * libio/putchar_u.c (putchar_unlocked): Likewise.
545 * libio/putwchar.c (putchar): Likewise.
546 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
547 * libio/tst-bz24051.c: New test.
548 * libio/Makefile (tests): Add tst-bz24051
549
550 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
551
552 regex: fix read overrun [BZ #24114]
553 Problem found by AddressSanitizer, reported by Hongxu Chen in:
554 https://debbugs.gnu.org/34140
555 * posix/regexec.c (proceed_next_node):
556 Do not read past end of input buffer.
557
558 2019-01-31 Florian Weimer <fweimer@redhat.com>
559
560 [BZ #24059]
561 * nss/nss_files/files-alias.c (get_next_alias): Handle
562 continuation line without newline at the end.
563 * nss/tst-nss-files-alias-truncated.c: New file.
564 * nss/Makefile [$(build-shared)] (tests): Add
565 tst-nss-files-alias-truncated.
566 (tst-nss-files-alias-truncated): Link with libnss_files.so.
567 * support/namespace.h (struct support_chroot_configuration): Add
568 aliases member.
569 (struct support_chroot): Add path_aliases member.
570 * support/support_chroot.c (support_chroot_create): Handle
571 aliases.
572 (support_chroot_free): Free path_aliases.
573
574 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
575
576 * version.h (RELEASE): Set to "development".
577 (VERSION): Set to "2.29.9000".
578 * NEWS: Add section for 2.30.
579
580 * version.h (RELEASE): Set to "stable".
581 (VERSION): Set to "2.29".
582 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
583
584 * NEWS: Add the list of bugs fixed in 2.29.
585 * manual/contrib.texi: Update contributors list with some more
586 names.
587 * manual/install.texi: Update latest versions of packages
588 tested.
589 * INSTALL: Regenerated.
590
591 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
592
593 * po/be.po: Update translations.
594 * po/bg.po: Likewise.
595 * po/ca.po: Likewise.
596 * po/cs.po: Likewise.
597 * po/da.po: Likewise.
598 * po/de.po: Likewise.
599 * po/el.po: Likewise.
600 * po/eo.po: Likewise.
601 * po/es.po: Likewise.
602 * po/fi.po: Likewise.
603 * po/fr.po: Likewise.
604 * po/gl.po: Likewise.
605 * po/hr.po: Likewise.
606 * po/hu.po: Likewise.
607 * po/ia.po: Likewise.
608 * po/id.po: Likewise.
609 * po/it.po: Likewise.
610 * po/ja.po: Likewise.
611 * po/ko.po: Likewise.
612 * po/lt.po: Likewise.
613 * po/nb.po: Likewise.
614 * po/nl.po: Likewise.
615 * po/pl.po: Likewise.
616 * po/pt_BR.po: Likewise.
617 * po/ru.po: Likewise.
618 * po/rw.po: Likewise.
619 * po/sk.po: Likewise.
620 * po/sl.po: Likewise.
621 * po/sv.po: Likewise.
622 * po/tr.po: Likewise.
623 * po/uk.po: Likewise.
624 * po/vi.po: Likewise.
625 * po/zh_CN.po: Likewise.
626 * po/zh_TW.po: Likewise.
627
628 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
629
630 [BZ #24130]
631 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
632 of $f3 register on $y_is_neg path.
633
634 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
635
636 [BZ #24110]
637 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
638 sigaltstack.ss_flags.
639
640 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
641
642 [BZ #23758]
643 * manual/time.texi (strftime): Document "%Ey".
644 * time/strftime_l.c (__strftime_internal): Set the default width
645 padding with zero of "%Ey" to 2.
646
647 [BZ #24096]
648 * manual/time.texi (strftime): Document "%EC" and "%EY".
649 * time/Makefile (tests): Add tst-strftime2.
650 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
651 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
652 override padding for "%Ey".
653 If an optional flag ('_' or '-') is specified to "%EY", interpret the
654 "%Ey" in the subformat as if decorated with that flag.
655 * time/tst-strftime2.c: New file.
656
657 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
658
659 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
660 are not defined.
661
662 [BZ #24122]
663 * elf/Makefile (tests): Add tst-audit13.
664 (modules-names): Add tst-audit13mod1.
665 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
666 rule.
667 * elf/rtld.c (dl_main): Handle invalid audit module version.
668 * elf/tst-audit13.c: New file.
669 * elf/tst-audit13mod1.c: Likewise.
670
671 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
672
673 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
674 returned by __hurd_at_flags.
675 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
676 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
677 directly instead of __hurd_file_name_lookup.
678
679 2019-01-21 Joseph Myers <joseph@codesourcery.com>
680
681 * scripts/build-many-glibcs.py (Context.checkout): Default
682 binutils version to 2.32 branch.
683
684 2019-01-21 Florian Weimer <fweimer@redhat.com>
685
686 [BZ #20018]
687 CVE-2016-10739
688 resolv: Reject trailing characters in host names
689 * include/arpa/inet.h (__inet_aton_exact): Declare.
690 (inet_aton): Remove hidden prototype. No longer used internally.
691 * nscd/gai.c (__inet_aton): Do not define.
692 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
693 * nss/digits_dots.c (__inet_aton): Likewise.
694 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
695 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
696 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
697 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
698 (tst-resolv-trailing): Likewise.
699 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
700 libc.
701 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
702 Make static. Add endp parameter.
703 (__inet_aton_exact): New function.
704 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
705 (__inet_addr): Call inet_aton_end.
706 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
707 not just IPv6. Call __inet_aton_exact.
708 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
709 (tests): Make const. Add additional test cases with trailing
710 characters.
711 (do_test): Use array_length.
712 * resolv/tst-inet_aton_exact.c: New file.
713 * resolv/tst-resolv-trailing.c: Likewise.
714 * resolv/tst-resolv-nondecimal.c: Likewise.
715 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
716
717 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
718
719 [BZ# 24097]
720 CVE-2019-6488
721 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
722 Clear the upper 32 bits of RSI register.
723 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
724 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
725 and tst-size_t-wcsnlen.
726 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
727 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
728
729 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
730
731 [BZ# 24097]
732 CVE-2019-6488
733 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
734 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
735 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
736 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
737 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
738
739 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
740
741 [BZ# 24097]
742 CVE-2019-6488
743 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
744 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
745 * sysdeps/x86_64/strcmp.S: Likewise.
746 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
747 tst-size_t-strncmp and tst-size_t-wcsncmp.
748 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
749 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
750 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
751
752 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
753
754 [BZ# 24097]
755 CVE-2019-6488
756 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
757 RDX_LP for length. Clear the upper 32 bits of RDX register.
758 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
759 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
760 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
761 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
762
763 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
764
765 [BZ# 24097]
766 CVE-2019-6488
767 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
768 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
769 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
770 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
771
772 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
773
774 [BZ# 24097]
775 CVE-2019-6488
776 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
777 length. Clear the upper 32 bits of RDX register.
778 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
779 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
780 Likewise.
781 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
782 Likewise.
783 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
784 tst-size_t-wmemchr.
785 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
786
787 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
788
789 [BZ# 24097]
790 CVE-2019-6488
791 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
792 length. Clear the upper 32 bits of RDX register.
793 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
794 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
795 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
796 tst-size_t-wmemcmp.
797 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
798 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
799
800 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
801
802 [BZ# 24097]
803 CVE-2019-6488
804 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
805 upper 32 bits of RDX register.
806 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
807 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
808 tst-size_t-wmemchr.
809 * sysdeps/x86_64/x32/test-size_t.h: New file.
810 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
811 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
812
813 2019-01-18 Florian Weimer <fweimer@redhat.com>
814
815 [BZ #24112]
816 resolv: Do not send queries for non-host-names in nss_dns.
817 * resolv/nss_dns/dns-host.c (check_name): New function.
818 (_nss_dns_gethostbyname2_r): Use it.
819 (_nss_dns_gethostbyname_r): Likewise.
820 (_nss_dns_gethostbyname4_r): Likewise.
821
822 2019-01-21 Florian Weimer <fweimer@redhat.com>
823
824 * resolv/inet_addr.c: Reformat to GNU style.
825 (__inet_addr, __inet_aton): Update comment.
826
827 2019-01-18 Florian Weimer <fweimer@redhat.com>
828
829 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
830 ("malloc: Use current (C11-style) atomics for fastbin access").
831 This commit introduces a substantial performance regression on
832 POWER and Aarch64.
833 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
834 (REMOVE_FB): Define.
835 (_int_malloc): Use it and reindent.
836 (_int_free): Use CAS loop with
837 catomic_compare_and_exchange_val_rel.
838 (malloc_consolidate): Use atomic_exchange_acq.
839
840
841 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
842
843 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
844 -Wl,-z,now.
845 (LDFLAGS-tst-minsigstksz-2): Likewise.
846 (LDFLAGS-tst-minsigstksz-3): Likewise.
847 (LDFLAGS-tst-minsigstksz-3a): Likewise.
848 (LDFLAGS-tst-minsigstksz-4): Likewise.
849
850 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
851
852 * manual/time.texi (strftime): Fix the wording to "alternative" rather
853 than "alternate".
854
855 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
856
857 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
858
859 2019-01-16 Zack Weinberg <zackw@panix.com>
860
861 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
862 (xget_sigstack_location): New test support functions.
863 * support/xsigstack.c: New file, implementing them.
864 * support/tst-xsigstack.c: New test for them.
865 * support/Makefile: Update.
866
867 * signal/tst-minsigstksz-1.c
868 * signal/tst-minsigstksz-2.c
869 * signal/tst-minsigstksz-3.c
870 * signal/tst-minsigstksz-3a.c
871 * signal/tst-minsigstksz-4.c: New tests.
872 * signal/Makefile: Run them.
873
874 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
875
876 * po/libc.pot: Regenerate.
877
878 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
879
880 * math/libm-test-fma.inc (fma_test_data): Set
881 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
882
883 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
884
885 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
886 (do_test): Changed __vector __int128_t to __vector unsigned int.
887
888 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
889
890 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
891 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
892 stpcpy-avx2 and stpncpy-avx2.
893 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
894 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
895 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
896 and __stpncpy_avx2.
897 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
898 ifunc-strcpy.h}: rename header for a more generic name.
899 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
900 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
901 AVX unaligned load is fast and vzeroupper is preferred.
902 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
903 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
904 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
905 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
906 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
907 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
908
909 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
910
911 * argp/argp-help.c: Fix typo in comment.
912 * misc/sys/cdefs.h: Likewise.
913 * posix/regexec.c (sift_states_iter_mb): Likewise.
914 * socket/sockatmark.c: Likewise.
915 * socket/sys/socket.h: Likewise.
916 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
917 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
918 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
919 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
920 * sysdeps/unix/sockatmark.c: Likewise.
921 * time/strptime_l.c: Likewise.
922
923 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
924
925 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
926 missing space after the cast of "_NL_CURRENT".
927
928 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
929
930 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
931 ifdef to fix read of VSCR.
932 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
933 tst-ucontext-ppc64-vscr.c to test list.
934 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
935
936 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
937
938 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
939 fall-through.
940
941 2019-01-09 Jim Wilson <jimw@sifive.com>
942
943 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
944
945 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
946
947 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
948 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
949 __memcpy_falkor for ares.
950 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
951 Add new define.
952 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
953 Add ares cpu.
954
955 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
956
957 [BZ #24066]
958 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
959 4_FP_W_TYPEs are used for IEEE quad precision.
960 * soft-fp/extendhftf2.c: Likewise.
961 * soft-fp/extendsftf2.c: Likewise.
962 * soft-fp/extendxftf2.c: Likewise.
963 * soft-fp/trunctfdf2.c: Likewise.
964 * soft-fp/trunctfhf2.c: Likewise.
965 * soft-fp/trunctfsf2.c: Likewise.
966 * soft-fp/trunctfxf2.c: Likewise.
967 * sysdeps/alpha/ots_cvttx.c: Likewise.
968 * sysdeps/alpha/ots_cvtxt.c: Likewise.
969 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
970 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
971 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
972 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
973 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
974 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
975 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
976 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
977 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
978 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
979 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
980 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
981 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
982 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
983 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
984 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
985
986 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
987
988 [BZ #24024]
989 * Makeconfig: Build libm with -fno-math-errno but build the remaining
990 code with -fmath-errno.
991 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
992 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
993 * string/test-strerror-errno.c: New file.
994
995 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
996
997 [BZ #24046]
998 * localedata/locales/en_US (date_fmt): Add, set to
999 "%a %d %b %Y %r %Z".
1000
1001 2019-01-07 Florian Weimer <fweimer@redhat.com>
1002
1003 [BZ #24063]
1004 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1005 instead of @var{errno}.
1006 (Parsing of Integers): Likewise.
1007 (Parsing of Floats): Likewise.
1008 * manual/filesys.texi (Working with Directory Trees): Likewise.
1009 (Temporary Files): Likewise.
1010 * manual/job.texi (Terminal Access Functions): Likewise.
1011 * manual/llio.texi (Synchronizing I/O): Likewise.
1012 * manual/math.texi (SVID Random): Likewise.
1013 * manual/message.texi (The catgets Functions): Likewise.
1014 (Translation with gettext): Likewise.
1015 (Locating gettext catalog): Likewise.
1016 (Charset conversion in gettext): Likewise.
1017 * manual/nss.texi (NSS Module Function Internals): Likewise.
1018 * manual/search.texi (Hash Search Function): Likewise.
1019 * manual/setjmp.texi (System V contexts): Likewise.
1020 * manual/time.texi (Sleeping): Likewise.
1021 * manual/users.texi (Lookup User): Likewise.
1022 (Lookup Group): Likewise.
1023
1024 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1025
1026 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1027 fix typo.
1028
1029 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1030
1031 [BZ #19444]
1032 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1033 __builtin_unreachable for default case in switch.
1034 (__ieee754_yn): Likewise.
1035 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1036 (__ieee754_ynl): Likewise.
1037 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1038 (__ieee754_ynl): Likewise.
1039 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1040 (__ieee754_ynl): Likewise.
1041
1042 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1043
1044 * manual/maint.texi: Use @{ and @}.
1045
1046 2019-01-04 Florian Weimer <fweimer@redhat.com>
1047
1048 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1049 function.
1050 (do_in_chroot_1): Call it.
1051 (run_chroot_tests):
1052 Improve error reporting in case it is not possible to create a
1053 collision for the PTY name required by the test.
1054
1055 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1056
1057 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1058 lll_wait_tid with timeout.
1059 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1060 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1061 futex_reltimed_wait_cancelable for cancelabla mode.
1062 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1063 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1064 macros.
1065 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1066 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1067 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1068 SYSCALL_CANCEL_NCS): New macro.
1069 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1070 (lll_timedwait_tid): Remove macro.
1071 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1072 Likewise.
1073 (lll_timedwait_tid): Likewise.
1074 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1075 Likewise.
1076 (lll_timedwait_tid): Likewise.
1077 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1078 Likewise.
1079 (lll_timedwait_tid): Likewise.
1080 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1081 Use INTERNAL_SYSCALL_CANCEL.
1082 * sysdeps/unix/sysv/linux/futex-internal.h
1083 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1084 instead of __pthread_{enable,disable}_asynccancel.
1085 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1086 (lll_futex_wait_cancel): New macro.
1087
1088 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1089 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1090
1091 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1092 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1093
1094 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1095 in backtrace analysis.
1096 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1097 side-effects.
1098 (tf_send): Likewise.
1099
1100 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1101 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1102 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1103 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1104 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1105 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1106 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1107 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1108 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1109 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1110 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1111 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1112 Likewise.
1113 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1114 tst-cancel-wrappers.sh.
1115 (generated): Remove tst-cancel-wrappers.out.
1116 (tst-cancel-wrappers.out): Remove rule.
1117 * nptl/tst-cancel-wrappers.sh: Remove file.
1118
1119 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1120
1121 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1122 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1123 Update.
1124
1125 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1126
1127 [BZ #23640]
1128 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1129 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1130 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1131 close-on-exec reset for adddup2 file action.
1132 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1133
1134 2019-01-03 Zack Weinberg <zackw@panix.com>
1135
1136 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1137 parameter. Only use deprecated scanf when __USE_GNU is defined
1138 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1139 than 201103L, whichever is relevant for the language being compiled.
1140
1141 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1142 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1143 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1144 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1145 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1146
1147 * libio/iovsscanf.c
1148 * libio/fwscanf.c
1149 * libio/iovswscanf.c
1150 * libio/swscanf.c
1151 * libio/vscanf.c
1152 * libio/vwscanf.c
1153 * libio/wscanf.c
1154 * stdio-common/fscanf.c
1155 * stdio-common/scanf.c
1156 * stdio-common/vfscanf.c
1157 * stdio-common/vfwscanf.c
1158 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1159 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1160 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1161 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1162 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1163 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1164 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1165 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1166 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1167 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1168 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1169 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1170 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1171 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1172 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1173
1174 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1175 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1176 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1177 not sscanf.
1178 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1179 with a preprocessor macro.
1180
1181 * stdio-common/bug21.c, stdio-common/scanf14.c:
1182 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1183 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1184 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1185 to xscanf, xfscanf, xsscanf.
1186
1187 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1188 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1189 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1190 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1191 xfscanf, xsscanf.
1192 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1193 override feature selection macros or provide definitions of u_char etc.
1194 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1195 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1196 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1197 with -std=gnu89.
1198
1199 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1200
1201 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1202 bits/termios-misc.h.
1203 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1204 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1205 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1206 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1207 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1208 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1209
1210 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1211 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1212 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1213 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1214 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1215 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1216 termios-misc.h.
1217 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1218 (sysdep_headers): Add termios-misc.h.
1219
1220 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1221 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1222 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1223
1224 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1225 termios-tcflow.h.
1226 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1227 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1228 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1229 TCSAFLUSH): Move to termios-tcflow.h.
1230 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1231 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1232 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1233 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1234
1235 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1236 termios-c_lflag.h.
1237 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1238 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1239 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1240 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1241 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1242 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1243 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1244 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1245 Likewise.
1246 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1247 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1248 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1249 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1250
1251 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1252 termios-c_cflag.h.
1253 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1254 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1255 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1256 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1257 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1258 termios-c_cflag.h.
1259 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1260 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1261 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1262 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1263
1264 [BZ #23783]
1265 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1266 termios-baud.h.
1267 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1268 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1269 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1270 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1271 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1272 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1273 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1274 __MAX_BAUD): Move to termios-baud.h.
1275 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1276 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1277 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1278 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1279 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1280
1281 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1282 termios-c_oflag.h.
1283 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1284 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1285 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1286 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1287 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1288 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1289 termios-c_oflag.h.
1290 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1291 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1292 FFR1): Likewise.
1293 [USE_MISC] (XTABS): Likewise.
1294 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1295 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1296 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1297 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1298
1299 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1300 termios-c_iflag.h.
1301 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1302 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1303 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1304 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1305 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1306 IUTF8): Move to termios-c_iflag.h.
1307 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1308 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1309 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1310 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1311
1312 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1313 termios-cc.h.
1314 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1315 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1316 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1317 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1318 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1319 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1320 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1321 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1322 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1323 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1324 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1325 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1326
1327 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1328 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1329 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1330 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1331 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1332 termios-struct.h.
1333 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1334 termios-struct.h.
1335 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1336 Likewise.
1337 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1338 Likewise.
1339 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1340 Likewise.
1341 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1342 Likewise.
1343 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1344 _HAVE_C_OSPEED): Define.
1345 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1346 _HAVE_C_OSPEED): Likewise.
1347 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1348 _HAVE_C_OSPEED): Likewise.
1349 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1350 (cfsetospeed): Check for define value instead of existence.
1351 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1352 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1353 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1354 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1355 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1356
1357 [BZ #17783]
1358 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1359 Define.
1360 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1361 (TIOCSER_TEMT): Likewise.
1362 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1363 (TEOCSER_TEMT): Likewise.
1364
1365 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1366
1367 [BZ #24011]
1368 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1369
1370 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1371
1372 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1373
1374 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1375
1376 * sysdeps/htl/pt-barrierattr-setpshared.c
1377 (pthread_barrierattr_setpshared): Add stub warning.
1378 * sysdeps/htl/pt-condattr-setpshared.c
1379 (pthread_condattr_setpshared): Likewise.
1380 * sysdeps/htl/pt-mutexattr-setpshared.c
1381 (pthread_mutexattr_setpshared): Likewise.
1382 * sysdeps/htl/pt-rwlockattr-setpshared.c
1383 (pthread_rwlockattr_setpshared): Likewise.
1384 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1385 (pthread_mutexattr_setpshared): Likewise.
1386
1387 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1388
1389 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1390 constants to match with Linux 4.20.
1391
1392 * sysdeps/mips/mips32/libm-test-ulps: Update.
1393 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1394
1395 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1396
1397 [BZ #24034]
1398 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1399 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1400 than __typeof (...) for the a_ptr variable.
1401
1402 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1403
1404 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1405 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1406 * libio/Makefile (tests): Add tst-sprintf-ub and
1407 tst-sprintf-chk-ub.
1408 (CFLAGS-tst-sprintf-ub.c): New variable.
1409 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1410 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1411 destination buffer and check for overflows in fortified mode.
1412 * libio/libioP.h (PRINTF_CHK): New macro.
1413 * libio/tst-sprintf-chk-ub.c: New file.
1414 * libio/tst-sprintf-ub.c: Likewise.
1415
1416 2019-01-02 Florian Weimer <fweimer@redhat.com>
1417
1418 [BZ #24018]
1419 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1420 failure.
1421
1422 2019-01-02 Florian Weimer <fweimer@redhat.com>
1423
1424 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1425
1426 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1427
1428 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1429 macro.
1430
1431 * sysdeps/unix/sysv/linux/netpacket/packet.h
1432 (PACKET_IGNORE_OUTGOING): New macro.
1433
1434 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1435 macro.
1436
1437 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1438 version to 4.20.
1439 (riscv_flush_icache): New syscall.
1440
1441 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1442 trailing whitespace removed.
1443 * scripts/config.guess: Update to version 2019-01-01.
1444 * scripts/config.sub: Update to version 2019-01-01.
1445 * scripts/move-if-change: Update from gnulib.
1446
1447 * NEWS: Update copyright dates.
1448 * catgets/gencat.c (print_version): Likewise.
1449 * csu/version.c (banner): Likewise.
1450 * debug/catchsegv.sh: Likewise.
1451 * debug/pcprofiledump.c (print_version): Likewise.
1452 * debug/xtrace.sh (do_version): Likewise.
1453 * elf/ldconfig.c (print_version): Likewise.
1454 * elf/ldd.bash.in: Likewise.
1455 * elf/pldd.c (print_version): Likewise.
1456 * elf/sotruss.sh: Likewise.
1457 * elf/sprof.c (print_version): Likewise.
1458 * iconv/iconv_prog.c (print_version): Likewise.
1459 * iconv/iconvconfig.c (print_version): Likewise.
1460 * locale/programs/locale.c (print_version): Likewise.
1461 * locale/programs/localedef.c (print_version): Likewise.
1462 * login/programs/pt_chown.c (print_version): Likewise.
1463 * malloc/memusage.sh (do_version): Likewise.
1464 * malloc/memusagestat.c (print_version): Likewise.
1465 * malloc/mtrace.pl: Likewise.
1466 * manual/libc.texinfo: Likewise.
1467 * nptl/version.c (banner): Likewise.
1468 * nscd/nscd.c (print_version): Likewise.
1469 * nss/getent.c (print_version): Likewise.
1470 * nss/makedb.c (print_version): Likewise.
1471 * posix/getconf.c (main): Likewise.
1472 * scripts/test-installation.pl: Likewise.
1473 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1474
1475 * All files with FSF copyright notices: Update copyright dates
1476 using scripts/update-copyrights.
1477 * locale/programs/charmap-kw.h: Regenerated.
1478 * locale/programs/locfile-kw.h: Likewise.
1479
1480 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1481
1482 * timezone/zdump.c: Update from tzcode 2018i.
1483 * timezone/zic.c: Likewise.
1484
1485 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1486
1487 regex: improve Gnulib port to AIX
1488 From the glibc point of view, this removes duplicate macro
1489 definitions and is obviously safe.
1490 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1491 * posix/regex_internal.h:
1492 (__attribute__, __attribute_warn_unused_result__):
1493 Remove; already defined elsewhere.
1494
1495 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1496
1497 [BZ #24027]
1498 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1499 copying operation. (ncopies had the wrong type, resulting in an
1500 integer wraparound and too few elements being copied.)
1501
1502 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1503
1504 [BZ #24022]
1505 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1506 <asm/syscalls.h> exists with __has_include__ before including it.
1507
1508 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1509
1510 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1511 version to 4.20.
1512
1513 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1514
1515 * hurd/lookup-retry: Include <unistd.h>.
1516 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1517 Release it on return. Handle "pid" magical lookup retry.
1518
1519 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1520
1521 [BZ #10496]
1522 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1523 (t_fmt_ampm): Likewise.
1524 * localedata/locales/aa_ER (t_fmt): Likewise.
1525 (t_fmt_ampm): Likewise.
1526 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1527 (t_fmt_ampm): Likewise.
1528 * localedata/locales/aa_ET (t_fmt): Likewise.
1529 (t_fmt_ampm): Likewise.
1530 * localedata/locales/am_ET (t_fmt): Likewise.
1531 (t_fmt_ampm): Likewise.
1532 * localedata/locales/byn_ER (t_fmt): Likewise.
1533 (t_fmt_ampm): Likewise.
1534 * localedata/locales/om_ET (t_fmt): Likewise.
1535 (t_fmt_ampm): Likewise.
1536 * localedata/locales/sid_ET (t_fmt): Likewise.
1537 (t_fmt_ampm): Likewise.
1538 * localedata/locales/so_DJ (t_fmt): Likewise.
1539 (t_fmt_ampm): Likewise.
1540 * localedata/locales/so_ET (t_fmt): Likewise.
1541 (t_fmt_ampm): Likewise.
1542 * localedata/locales/so_SO (t_fmt): Likewise.
1543 (t_fmt_ampm): Likewise.
1544 * localedata/locales/ti_ER (t_fmt): Likewise.
1545 (t_fmt_ampm): Likewise.
1546 * localedata/locales/ti_ET (t_fmt): Likewise.
1547 (t_fmt_ampm): Likewise.
1548 * localedata/locales/tig_ER (t_fmt): Likewise.
1549 (t_fmt_ampm): Likewise.
1550 * localedata/locales/wal_ET (t_fmt): Likewise.
1551 (t_fmt_ampm): Likewise.
1552
1553 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1554 * localedata/locales/ar_IN (t_fmt): Likewise.
1555 * localedata/locales/bhb_IN (t_fmt): Likewise.
1556 * localedata/locales/bho_IN (t_fmt): Likewise.
1557 * localedata/locales/bi_VU (t_fmt): Likewise.
1558 * localedata/locales/bn_BD (t_fmt): Likewise.
1559 * localedata/locales/bn_IN (t_fmt): Likewise.
1560 * localedata/locales/brx_IN (t_fmt): Likewise.
1561 * localedata/locales/doi_IN (t_fmt): Likewise.
1562 * localedata/locales/en_HK (t_fmt): Likewise.
1563 (t_fmt_ampm): Likewise.
1564 * localedata/locales/en_IN (t_fmt): Likewise.
1565 * localedata/locales/en_PH (t_fmt): Likewise.
1566 * localedata/locales/gu_IN (t_fmt): Likewise.
1567 * localedata/locales/hi_IN (t_fmt): Likewise.
1568 * localedata/locales/hif_FJ (t_fmt): Likewise.
1569 * localedata/locales/hne_IN (t_fmt): Likewise.
1570 * localedata/locales/kn_IN (t_fmt): Likewise.
1571 * localedata/locales/kok_IN (t_fmt): Likewise.
1572 * localedata/locales/ks_IN (t_fmt): Likewise.
1573 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1574 * localedata/locales/mag_IN (t_fmt): Likewise.
1575 * localedata/locales/mai_IN (t_fmt): Likewise.
1576 * localedata/locales/mjw_IN (t_fmt): Likewise.
1577 * localedata/locales/ml_IN (t_fmt): Likewise.
1578 * localedata/locales/mni_IN (t_fmt): Likewise.
1579 * localedata/locales/mr_IN (t_fmt): Likewise.
1580 * localedata/locales/ms_MY (t_fmt): Likewise.
1581 * localedata/locales/pa_IN (t_fmt): Likewise.
1582 * localedata/locales/raj_IN (t_fmt): Likewise.
1583 * localedata/locales/sa_IN (t_fmt): Likewise.
1584 * localedata/locales/sat_IN (t_fmt): Likewise.
1585 * localedata/locales/sd_IN (t_fmt): Likewise.
1586 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1587 * localedata/locales/tcy_IN (t_fmt): Likewise.
1588 * localedata/locales/the_NP (t_fmt): Likewise.
1589 * localedata/locales/to_TO (t_fmt): Likewise.
1590 * localedata/locales/ur_IN (t_fmt): Likewise.
1591
1592 * localedata/locales/hif_FJ (d_t_fmt): Set to
1593 "%A %d %b %Y %I:%M:%S %p".
1594 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1595
1596 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1597 * localedata/locales/ar_BH (t_fmt): Likewise.
1598 * localedata/locales/ar_DZ (t_fmt): Likewise.
1599 * localedata/locales/ar_EG (t_fmt): Likewise.
1600 * localedata/locales/ar_IQ (t_fmt): Likewise.
1601 * localedata/locales/ar_JO (t_fmt): Likewise.
1602 * localedata/locales/ar_KW (t_fmt): Likewise.
1603 * localedata/locales/ar_LB (t_fmt): Likewise.
1604 * localedata/locales/ar_LY (t_fmt): Likewise.
1605 * localedata/locales/ar_OM (t_fmt): Likewise.
1606 * localedata/locales/ar_QA (t_fmt): Likewise.
1607 * localedata/locales/ar_SD (t_fmt): Likewise.
1608 * localedata/locales/ar_SS (t_fmt): Likewise.
1609 * localedata/locales/ar_SY (t_fmt): Likewise.
1610 * localedata/locales/ar_TN (t_fmt): Likewise.
1611 * localedata/locales/ar_YE (t_fmt): Likewise.
1612
1613 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1614 (t_fmt_ampm): Likewise.
1615 * localedata/locales/gez_ET (t_fmt): Likewise.
1616 (t_fmt_ampm): Likewise.
1617
1618 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1619 (t_fmt_ampm): Likewise.
1620 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1621
1622 * localedata/locales/zh_HK (t_fmt):
1623 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1624
1625 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1626 because this locale does not use the 12-hour clock.
1627 (t_fmt): Set to "%Z %H:%M:%S".
1628 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1629
1630 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1631 because this locale does not use the 12-hour clock.
1632 (t_fmt): Set to "%H:%M:%S %Z".
1633 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1634
1635 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1636 because this locale does not use the 12-hour clock.
1637 (t_fmt): Set to "%T".
1638 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1639 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1640
1641 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1642 because this locale does not use the 12-hour clock.
1643 (t_fmt): Set to "%H:%M:%S %Z".
1644 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1645
1646 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1647 because this locale does not use the 12-hour clock.
1648 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1649 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1650
1651 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1652
1653 [BZ #10496]
1654 [BZ #23724]
1655 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1656 (t_fmt_ampm): Likewise.
1657 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1658 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1659 (d_fmt): Set to "%-d.%-m.%y".
1660
1661 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1662
1663 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1664 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1665 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1666 Likewise.
1667 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1668 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1669 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1670 function.
1671 * support/blob_repeat.c (check_mul_overflow_size_t,
1672 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1673
1674 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1675
1676 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1677
1678 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1679
1680 regex: simplify Gnulib port
1681 This simplifies the code, by removing stuff intended for porting
1682 to Gnulib but no longer needed there.
1683 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1684 uses of libc_hidden_def, weak_alias.
1685 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1686 _Restrict_ except for public-facing headers.
1687 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1688 Remove; already defined elsewhere.
1689 * posix/regex.c, posix/regex_internal.h:
1690 Use __GNUC_PREREQ instead of rolling our own.
1691 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1692
1693 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1694
1695 * benchtests/bench-strlen.c (generic_strlen): New function.
1696 (memchr_strlen): New function.
1697
1698 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1699
1700 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1701 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1702 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1703
1704 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1705
1706 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1707
1708 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1709
1710 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1711 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1712 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1713 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1714 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1715 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1716 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1717
1718 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1719
1720 [BZ #24023]
1721 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1722 PLT reference in libc.so.
1723 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1724 _Q_lltoq and _Q_qtod PLT references in libc.so.
1725
1726 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1727
1728 * benchtests/bench-memchr.c: Cleanup defines.
1729 * benchtests/bench-memcmp.c: Likewise.
1730 * benchtests/bench-memset.c: Likewise.
1731 * benchtests/bench-memset-large.c: Likewise.
1732 * benchtests/bench-memset-walk.c: Likewise.
1733 * benchtests/bench-stpcpy.c: Likewise.
1734 * benchtests/bench-stpncpy.c: Likewise.
1735 * benchtests/bench-strcat.c: Likewise.
1736 * benchtests/bench-strchr.c: Likewise.
1737 * benchtests/bench-strcmp.c: Likewise.
1738 * benchtests/bench-strcpy.c: Likewise.
1739 * benchtests/bench-strcspn.c: Likewise.
1740 * benchtests/bench-string.h: Likewise.
1741 * benchtests/bench-strlen.c: Likewise.
1742 * benchtests/bench-strncat.c: Likewise.
1743 * benchtests/bench-strncmp.c: Likewise.
1744 * benchtests/bench-strncpy.c: Likewise.
1745 * benchtests/bench-strnlen.c: Likewise.
1746 * benchtests/bench-strpbrk.c: Likewise.
1747 * benchtests/bench-strrchr.c: Likewise.
1748 * benchtests/bench-strspn.c: Likewise.
1749
1750 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1751
1752 * stdlib/longlong.h: Update from GCC.
1753
1754 [BZ #23993]
1755 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1756 * configure: Regenerated.
1757 * manual/install.texi (Tools for Compilation): Update minimum GCC
1758 version.
1759 * INSTALL: Regenerated.
1760
1761 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1762
1763 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1764
1765 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1766
1767 * malloc/malloc.c (mremap_chunk): Additional checks.
1768
1769 2018-12-21 Mao Han <han_mao@c-sky.com>
1770
1771 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1772 * scripts/build-many-glibcs.py: Add C-SKY targets.
1773 * sysdeps/csky/Implies: New file.
1774 * sysdeps/csky/Makefile: Likewise.
1775 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1776 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1777 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1778 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1779 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1780 * sysdeps/csky/abiv2/memmove.S: Likewise.
1781 * sysdeps/csky/abiv2/memset.S: Likewise.
1782 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1783 * sysdeps/csky/abiv2/start.S: Likewise.
1784 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1785 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1786 * sysdeps/csky/abiv2/strlen.S: Likewise.
1787 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1788 * sysdeps/csky/abort-instr.h: Likewise.
1789 * sysdeps/csky/atomic-machine.h: Likewise.
1790 * sysdeps/csky/bits/endian.h: Likewise.
1791 * sysdeps/csky/bits/fenv.h: Likewise.
1792 * sysdeps/csky/bits/link.h: Likewise.
1793 * sysdeps/csky/bits/setjmp.h: Likewise.
1794 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1795 * sysdeps/csky/bsd-setjmp.S: Likewise.
1796 * sysdeps/csky/configure: Likewise.
1797 * sysdeps/csky/configure.ac: Likewise.
1798 * sysdeps/csky/dl-machine.h: Likewise.
1799 * sysdeps/csky/dl-procinfo.c: Likewise.
1800 * sysdeps/csky/dl-procinfo.h: Likewise.
1801 * sysdeps/csky/dl-sysdep.h: Likewise.
1802 * sysdeps/csky/dl-tls.h: Likewise.
1803 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1804 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1805 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1806 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1807 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1808 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1809 * sysdeps/csky/fpu/fegetround.c: Likewise.
1810 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1811 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1812 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1813 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1814 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1815 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1816 * sysdeps/csky/fpu/fesetround.c: Likewise.
1817 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1818 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1819 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1820 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1821 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1822 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1823 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1824 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1825 * sysdeps/csky/fpu_control.h: Likewise.
1826 * sysdeps/csky/gccframe.h: Likewise.
1827 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1828 * sysdeps/csky/ldsodefs.h: Likewise.
1829 * sysdeps/csky/libc-tls.c: Likewise.
1830 * sysdeps/csky/linkmap.h: Likewise.
1831 * sysdeps/csky/machine-gmon.h: Likewise.
1832 * sysdeps/csky/memusage.h: Likewise.
1833 * sysdeps/csky/nofpu/Implies: Likewise.
1834 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1835 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1836 * sysdeps/csky/nptl/Makefile: Likewise.
1837 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1838 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1839 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1840 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1841 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1842 * sysdeps/csky/nptl/tls.h: Likewise.
1843 * sysdeps/csky/preconfigure: Likewise.
1844 * sysdeps/csky/sfp-machine.h: Likewise.
1845 * sysdeps/csky/sotruss-lib.c: Likewise.
1846 * sysdeps/csky/stackinfo.h: Likewise.
1847 * sysdeps/csky/sysdep.h: Likewise.
1848 * sysdeps/csky/tininess.h: Likewise.
1849 * sysdeps/csky/tst-audit.h: Likewise.
1850 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1851 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1852 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1853 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1854 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1855 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1856 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1857 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1858 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1859 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1860 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1861 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1862 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1863 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1864 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
1865 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
1866 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
1867 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
1868 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
1869 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
1870 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
1871 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
1872 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
1873 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1874 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
1875 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
1876 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1877 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
1878 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
1879 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
1880 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
1881 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
1882 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
1883 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
1884 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1885 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1886 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
1887 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
1888 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1889 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
1890 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
1891 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
1892 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
1893 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
1894
1895 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1896
1897 * include/time.h (__difftime64): Add.
1898 * time/difftime.c (subtract): convert to 64-bit time.
1899 * time/difftime.c (__difftime64): Add.
1900 * time/difftime.c (__difftime): Wrap around __difftime64.
1901
1902 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
1903
1904 * manual/examples/add.c: Remove redundant "if not".
1905 * manual/examples/argp-ex1.c: Likewise.
1906 * manual/examples/argp-ex2.c: Likewise.
1907 * manual/examples/argp-ex3.c: Likewise.
1908 * manual/examples/argp-ex4.c: Likewise.
1909 * manual/examples/atexit.c: Likewise.
1910 * manual/examples/db.c: Likewise.
1911 * manual/examples/dir.c: Likewise.
1912 * manual/examples/dir2.c: Likewise.
1913 * manual/examples/execinfo.c: Likewise.
1914 * manual/examples/filecli.c: Likewise.
1915 * manual/examples/filesrv.c: Likewise.
1916 * manual/examples/fmtmsgexpl.c: Likewise.
1917 * manual/examples/genpass.c: Likewise.
1918 * manual/examples/inetcli.c: Likewise.
1919 * manual/examples/inetsrv.c: Likewise.
1920 * manual/examples/isockad.c: Likewise.
1921 * manual/examples/longopt.c: Likewise.
1922 * manual/examples/memopen.c: Likewise.
1923 * manual/examples/memstrm.c: Likewise.
1924 * manual/examples/mkdirent.c: Likewise.
1925 * manual/examples/mkfsock.c: Likewise.
1926 * manual/examples/mkisock.c: Likewise.
1927 * manual/examples/mygetpass.c: Likewise.
1928 * manual/examples/pipe.c: Likewise.
1929 * manual/examples/popen.c: Likewise.
1930 * manual/examples/rprintf.c: Likewise.
1931 * manual/examples/search.c: Likewise.
1932 * manual/examples/select.c: Likewise.
1933 * manual/examples/setjmp.c: Likewise.
1934 * manual/examples/sigh1.c: Likewise.
1935 * manual/examples/sigusr.c: Likewise.
1936 * manual/examples/stpcpy.c: Likewise.
1937 * manual/examples/strdupa.c: Likewise.
1938 * manual/examples/strftim.c: Likewise.
1939 * manual/examples/subopt.c: Likewise.
1940 * manual/examples/swapcontext.c: Likewise.
1941 * manual/examples/termios.c: Likewise.
1942 * manual/examples/testopt.c: Likewise.
1943 * manual/examples/testpass.c: Likewise.
1944 * manual/examples/timeval_subtract.c: Likewise.
1945
1946 2018-12-19 Joseph Myers <joseph@codesourcery.com>
1947
1948 * sysdeps/x86/fpu/math_private.h: New file.
1949 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
1950
1951 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
1952 definition.
1953 (cosh): Likewise.
1954 (tanh): Likewise.
1955
1956 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1957
1958 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
1959 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
1960 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
1961 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
1962 fields.
1963 (_dl_show_auxv): Give a special treatment to
1964 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
1965 and AT_L3_CACHEGEOMETRY.
1966 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
1967 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
1968 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
1969 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
1970
1971 2018-12-19 Andreas Schwab <schwab@suse.de>
1972
1973 * nscd/connections.c (check_use): Don't abort on invalid len.
1974
1975 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
1976
1977 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
1978 values in the 64bit value cases.
1979
1980 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1981
1982 * include/time.h
1983 (__ctime64_r): Add.
1984 * time/ctime_r.c
1985 (__ctime64_r): Add.
1986 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
1987
1988 * include/time.h
1989 (__ctime64): Add.
1990 * time/gmtime.c
1991 (__ctime64): Add.
1992 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
1993
1994 * include/time.h
1995 (__gmtime64_r): Add.
1996 * time/gmtime.c
1997 (__gmtime64_r): Add.
1998 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
1999
2000 * include/time.h
2001 (__gmtime64): Add.
2002 * time/gmtime.c
2003 (__gmtime64): Add.
2004 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2005
2006 * include/time.h
2007 (__localtime64_r): Add.
2008 * time/localtime.c
2009 (__localtime64_r): Add.
2010 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2011
2012 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2013
2014 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2015 kernel_sigction definition.
2016
2017 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2018
2019 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2020
2021 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2022 __syscall_rt_sigaction.
2023 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2024 (kernel_sigaction): Use Linux generic defintion.
2025 (STUB): Define.
2026 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2027 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2028 (__syscall_rt_sigaction): Remove implementation.
2029 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2030 hidden.
2031 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2032 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2033 INTERNAL_SYSCALL): Remove definitions.
2034 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2035 action and signal set size.
2036 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2037 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2038
2039 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2040 James Clarke <jrtc27@jrtc27.com>
2041
2042 [BZ #23967]
2043 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2044 Define if SA_RESTORER is defined.
2045 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2046 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2047 already defined.
2048 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2049 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2050 definitions.
2051 (HAS_SA_RESTORER): Define.
2052 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2053 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2054 (HAS_SA_RESTORER): Define.
2055 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2056 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2057 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2058 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2059 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2060
2061 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2062
2063 * sysdeps/unix/sysv/linux/kernel-features.h
2064 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2065 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2066 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2067 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2068 (__ASSUME_ST_INO_64_BIT): Likewise.
2069 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2070 <kernel-features.h>.
2071 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2072 Remove conditional code.
2073 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2074 <kernel-features.h>.
2075 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2076 Remove conditional code.
2077 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2078 <kernel-features.h>.
2079 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2080 Remove conditional code.
2081 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2082 <kernel-features.h>.
2083 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2084 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2085
2086 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2087
2088 * sysdeps/s390/multiarch/ifunc-resolve.h
2089 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2090 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2091 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2092 Delete macro definition.
2093 (s390_libc_ifunc_init): Rename to
2094 s390_libc_ifunc_expr_stfle_init.
2095 * sysdeps/s390/bzero: Use
2096 s390_libc_ifunc_expr_stfle_init instead of
2097 s390_libc_ifunc_init.
2098 * sysdeps/s390/memcmp.c: Likewise.
2099 * sysdeps/s390/memcpy.c: Likewise.
2100 * sysdeps/s390/mempcpy.c: Likewise.
2101 * sysdeps/s390/memset.c: Likewise.
2102
2103 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2104
2105 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2106 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2107
2108 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2109
2110 * sysdeps/s390/multiarch/Makefile
2111 (sysdep_routines): Remove wmemcmp variants.
2112 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2113 * sysdeps/s390/multiarch/ifunc-impl-list.c
2114 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2115 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2116 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2117 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2118 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2119 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2120 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2121 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2122
2123 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2124
2125 * sysdeps/s390/multiarch/Makefile
2126 (sysdep_routines): Remove wmemset variants.
2127 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2128 * sysdeps/s390/multiarch/ifunc-impl-list.c
2129 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2130 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2131 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2132 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2133 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2134 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2135 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2136 * sysdeps/s390/ifunc-wmemset.h: New file.
2137
2138 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2139
2140 * sysdeps/s390/multiarch/Makefile
2141 (sysdep_routines): Remove wmemchr variants.
2142 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2143 * sysdeps/s390/multiarch/ifunc-impl-list.c
2144 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2145 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2146 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2147 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2148 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2149 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2150 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2151 * sysdeps/s390/ifunc-wmemchr.h: New file.
2152
2153 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2154
2155 * sysdeps/s390/multiarch/Makefile
2156 (sysdep_routines): Remove wcscspn variants.
2157 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2158 * sysdeps/s390/multiarch/ifunc-impl-list.c
2159 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2160 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2161 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2162 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2163 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2164 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2165 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2166 * sysdeps/s390/ifunc-wcscspn.h: New file.
2167
2168 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2169
2170 * sysdeps/s390/multiarch/Makefile
2171 (sysdep_routines): Remove wcspbrk variants.
2172 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2173 * sysdeps/s390/multiarch/ifunc-impl-list.c
2174 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2175 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2176 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2177 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2178 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2179 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2180 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2181 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2182
2183 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2184
2185 * sysdeps/s390/multiarch/Makefile
2186 (sysdep_routines): Remove wcsspn variants.
2187 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2188 * sysdeps/s390/multiarch/ifunc-impl-list.c
2189 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2190 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2191 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2192 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2193 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2194 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2195 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2196 * sysdeps/s390/ifunc-wcsspn.h: New file.
2197
2198 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2199
2200 * sysdeps/s390/multiarch/Makefile
2201 (sysdep_routines): Remove wcsrchr variants.
2202 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2203 * sysdeps/s390/multiarch/ifunc-impl-list.c
2204 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2205 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2206 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2207 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2208 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2209 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2210 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2211 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2212
2213 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2214
2215 * sysdeps/s390/multiarch/Makefile
2216 (sysdep_routines): Remove wcschrnul variants.
2217 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2218 * sysdeps/s390/multiarch/ifunc-impl-list.c
2219 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2220 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2221 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2222 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2223 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2224 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2225 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2226 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2227
2228 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2229
2230 * sysdeps/s390/multiarch/Makefile
2231 (sysdep_routines): Remove wcschr variants.
2232 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2233 * sysdeps/s390/multiarch/ifunc-impl-list.c
2234 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2235 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2236 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2237 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2238 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2239 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2240 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2241 * sysdeps/s390/ifunc-wcschr.h: New file.
2242
2243 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2244
2245 * sysdeps/s390/multiarch/Makefile
2246 (sysdep_routines): Remove wcsncmp variants.
2247 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2248 * sysdeps/s390/multiarch/ifunc-impl-list.c
2249 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2250 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2251 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2252 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2253 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2254 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2255 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2256 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2257
2258 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2259
2260 * sysdeps/s390/multiarch/Makefile
2261 (sysdep_routines): Remove wcscmp variants.
2262 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2263 * sysdeps/s390/multiarch/ifunc-impl-list.c
2264 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2265 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2266 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2267 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2268 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2269 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2270 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2271 * sysdeps/s390/ifunc-wcscmp.h: New file.
2272
2273 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2274
2275 * sysdeps/s390/multiarch/Makefile
2276 (sysdep_routines): Remove wcsncat variants.
2277 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2278 * sysdeps/s390/multiarch/ifunc-impl-list.c
2279 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2280 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2281 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2282 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2283 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2284 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2285 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2286 * sysdeps/s390/ifunc-wcsncat.h: New file.
2287
2288 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2289
2290 * sysdeps/s390/multiarch/Makefile
2291 (sysdep_routines): Remove wcscat variants.
2292 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2293 * sysdeps/s390/multiarch/ifunc-impl-list.c
2294 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2295 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2296 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2297 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2298 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2299 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2300 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2301 * sysdeps/s390/ifunc-wcscat.h: New file.
2302
2303 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2304
2305 * sysdeps/s390/multiarch/Makefile
2306 (sysdep_routines): Remove wcpncpy variants.
2307 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2308 * sysdeps/s390/multiarch/ifunc-impl-list.c
2309 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2310 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2311 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2312 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2313 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2314 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2315 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2316 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2317
2318 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2319
2320 * sysdeps/s390/multiarch/Makefile
2321 (sysdep_routines): Remove wcsncpy variants.
2322 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2323 * sysdeps/s390/multiarch/ifunc-impl-list.c
2324 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2325 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2326 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2327 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2328 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2329 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2330 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2331 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2332
2333 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2334
2335 * sysdeps/s390/multiarch/Makefile
2336 (sysdep_routines): Remove wcpcpy variants.
2337 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2338 * sysdeps/s390/multiarch/ifunc-impl-list.c
2339 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2340 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2341 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2342 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2343 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2344 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2345 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2346 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2347
2348 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2349
2350 * sysdeps/s390/multiarch/Makefile
2351 (sysdep_routines): Remove wcscpy variants.
2352 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2353 * sysdeps/s390/multiarch/ifunc-impl-list.c
2354 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2355 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2356 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2357 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2358 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2359 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2360 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2361 * sysdeps/s390/ifunc-wcscpy.h: New file.
2362
2363 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2364
2365 * sysdeps/s390/multiarch/Makefile
2366 (sysdep_routines): Remove wcsnlen variants.
2367 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2368 * sysdeps/s390/multiarch/ifunc-impl-list.c
2369 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2370 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2371 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2372 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2373 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2374 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2375 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2376 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2377
2378 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2379
2380 * sysdeps/s390/multiarch/Makefile
2381 (sysdep_routines): Remove wcslen variants.
2382 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2383 * sysdeps/s390/multiarch/ifunc-impl-list.c
2384 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2385 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2386 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2387 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2388 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2389 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2390 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2391 * sysdeps/s390/ifunc-wcslen.h: New file.
2392
2393 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2394
2395 * sysdeps/s390/multiarch/Makefile
2396 (sysdep_routines): Remove memrchr variants.
2397 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2398 * sysdeps/s390/multiarch/ifunc-impl-list.c
2399 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2400 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2401 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2402 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2403 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2404 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2405 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2406 * sysdeps/s390/ifunc-memrchr.h: New file.
2407
2408 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2409
2410 * sysdeps/s390/multiarch/Makefile
2411 (sysdep_routines): Remove memccpy variants.
2412 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2413 * sysdeps/s390/multiarch/ifunc-impl-list.c
2414 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2415 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2416 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2417 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2418 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2419 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2420 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2421 * sysdeps/s390/ifunc-memccpy.h: New file.
2422
2423 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2424
2425 * sysdeps/s390/multiarch/Makefile
2426 (sysdep_routines): Remove rawmemchr variants.
2427 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2428 * sysdeps/s390/multiarch/ifunc-impl-list.c
2429 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2430 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2431 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2432 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2433 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2434 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2435 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2436 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2437
2438 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2439
2440 * sysdeps/s390/multiarch/Makefile
2441 (sysdep_routines): Remove memchr variants.
2442 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2443 * sysdeps/s390/multiarch/ifunc-impl-list.c
2444 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2445 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2446 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2447 * sysdeps/s390/multiarch/memchr.c: Move to ...
2448 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2449 * sysdeps/s390/ifunc-memchr.h: New file.
2450 * sysdeps/s390/s390-64/memchr.S: Move to ...
2451 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2452 for 31/64bit and ifunc handling.
2453 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2454 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2455 * sysdeps/s390/s390-32/memchr.S: Likewise.
2456
2457 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2458
2459 * sysdeps/s390/multiarch/Makefile
2460 (sysdep_routines): Remove strcspn variants.
2461 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2462 * sysdeps/s390/multiarch/ifunc-impl-list.c
2463 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2464 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2465 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2466 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2467 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2468 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2469 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2470 * sysdeps/s390/ifunc-strcspn.h: New file.
2471
2472 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2473
2474 * sysdeps/s390/multiarch/Makefile
2475 (sysdep_routines): Remove strpbrk variants.
2476 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2477 * sysdeps/s390/multiarch/ifunc-impl-list.c
2478 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2479 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2480 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2481 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2482 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2483 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2484 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2485 * sysdeps/s390/ifunc-strpbrk.h: New file.
2486
2487 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2488
2489 * sysdeps/s390/multiarch/Makefile
2490 (sysdep_routines): Remove strspn variants.
2491 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2492 * sysdeps/s390/multiarch/ifunc-impl-list.c
2493 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2494 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2495 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2496 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2497 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2498 * sysdeps/s390/multiarch/strspn.c: Move to ...
2499 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2500 * sysdeps/s390/ifunc-strspn.h: New file.
2501
2502 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2503
2504 * sysdeps/s390/multiarch/Makefile
2505 (sysdep_routines): Remove strrchr variants.
2506 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2507 * sysdeps/s390/multiarch/ifunc-impl-list.c
2508 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2509 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2510 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2511 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2512 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2513 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2514 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2515 * sysdeps/s390/ifunc-strrchr.h: New file.
2516
2517 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2518
2519 * sysdeps/s390/multiarch/Makefile
2520 (sysdep_routines): Remove strchrnul variants.
2521 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2522 * sysdeps/s390/multiarch/ifunc-impl-list.c
2523 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2524 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2525 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2526 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2527 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2528 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2529 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2530 * sysdeps/s390/ifunc-strchrnul.h: New file.
2531
2532 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2533
2534 * sysdeps/s390/multiarch/Makefile
2535 (sysdep_routines): Remove strchr variants.
2536 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2537 * sysdeps/s390/multiarch/ifunc-impl-list.c
2538 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2539 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2540 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2541 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2542 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2543 * sysdeps/s390/multiarch/strchr.c: Move to ...
2544 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2545 * sysdeps/s390/ifunc-strchr.h: New file.
2546
2547 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2548
2549 * sysdeps/s390/multiarch/Makefile
2550 (sysdep_routines): Remove strncmp variants.
2551 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2552 * sysdeps/s390/multiarch/ifunc-impl-list.c
2553 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2554 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2555 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2556 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2557 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2558 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2559 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2560 * sysdeps/s390/ifunc-strncmp.h: New file.
2561
2562 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2563
2564 * sysdeps/s390/multiarch/Makefile
2565 (sysdep_routines): Remove strcmp variants.
2566 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2567 * sysdeps/s390/multiarch/ifunc-impl-list.c
2568 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2569 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2570 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2571 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2572 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2573 * sysdeps/s390/ifunc-strcmp.h: New file.
2574 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2575 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2576 for 31/64bit and ifunc handling.
2577 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2578 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2579 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2580
2581 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2582
2583 * sysdeps/s390/multiarch/Makefile
2584 (sysdep_routines): Remove strncat variants.
2585 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2586 * sysdeps/s390/multiarch/ifunc-impl-list.c
2587 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2588 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2589 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2590 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2591 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2592 * sysdeps/s390/multiarch/strncat.c: Move to ...
2593 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2594 * sysdeps/s390/ifunc-strncat.h: New file.
2595
2596 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2597
2598 * sysdeps/s390/multiarch/Makefile
2599 (sysdep_routines): Remove strcat variants.
2600 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2601 * sysdeps/s390/multiarch/ifunc-impl-list.c
2602 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2603 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2604 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2605 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2606 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2607 * sysdeps/s390/multiarch/strcat.c: Move to ...
2608 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2609 * sysdeps/s390/ifunc-strcat.h: New file.
2610
2611 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2612
2613 * sysdeps/s390/multiarch/Makefile
2614 (sysdep_routines): Remove stpncpy variants.
2615 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2616 * sysdeps/s390/multiarch/ifunc-impl-list.c
2617 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2618 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2619 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2620 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2621 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2622 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2623 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2624 * sysdeps/s390/ifunc-stpncpy.h: New file.
2625
2626 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2627
2628 * sysdeps/s390/multiarch/Makefile
2629 (sysdep_routines): Remove strncpy variants.
2630 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2631 * sysdeps/s390/multiarch/ifunc-impl-list.c
2632 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2633 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2634 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2635 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2636 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2637 * sysdeps/s390/ifunc-strncpy.h: New file.
2638 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2639 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2640 and adjust ifunc handling.
2641 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2642 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2643 and adjust ifunc handling.
2644 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2645 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2646
2647 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2648
2649 * sysdeps/s390/multiarch/Makefile
2650 (sysdep_routines): Remove stpcpy variants.
2651 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2652 * sysdeps/s390/multiarch/ifunc-impl-list.c
2653 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2654 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2655 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2656 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2657 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2658 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2659 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2660 * sysdeps/s390/ifunc-stpcpy.h: New file.
2661
2662 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2663
2664 * sysdeps/s390/multiarch/Makefile
2665 (sysdep_routines): Remove strcpy variants.
2666 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2667 * sysdeps/s390/multiarch/ifunc-impl-list.c
2668 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2669 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2670 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2671 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2672 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2673 * sysdeps/s390/ifunc-strcpy.h: New file.
2674 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2675 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2676 for 31/64bit and ifunc handling.
2677 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2678 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2679 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2680
2681 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2682
2683 * sysdeps/s390/multiarch/Makefile
2684 (sysdep_routines): Remove strnlen variants.
2685 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2686 * sysdeps/s390/multiarch/ifunc-impl-list.c
2687 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2688 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2689 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2690 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2691 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2692 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2693 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2694 * sysdeps/s390/ifunc-strnlen.h: New file.
2695
2696 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2697
2698 * sysdeps/s390/multiarch/Makefile
2699 (sysdep_routines): Remove strlen variants.
2700 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2701 * sysdeps/s390/multiarch/ifunc-impl-list.c
2702 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2703 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2704 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2705 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2706 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2707 * sysdeps/s390/multiarch/strlen.c: Move to ...
2708 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2709 * sysdeps/s390/ifunc-strlen.h: New file.
2710
2711 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2712
2713 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2714 * sysdeps/s390/multiarch/ifunc-impl-list.c
2715 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2716 * sysdeps/s390/ifunc-memmem.h: New file.
2717 * sysdeps/s390/memmem.c: Likewise.
2718 * sysdeps/s390/memmem-c.c: Likewise.
2719 * sysdeps/s390/memmem-vx.c: Likewise.
2720
2721 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2722
2723 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2724 * sysdeps/s390/multiarch/ifunc-impl-list.c
2725 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2726 * sysdeps/s390/ifunc-strstr.h: New file.
2727 * sysdeps/s390/strstr.c: Likewise.
2728 * sysdeps/s390/strstr-c.c: Likewise.
2729 * sysdeps/s390/strstr-vx.c: Likewise.
2730
2731 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2732
2733 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2734 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2735 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2736 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2737 New defines.
2738 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2739 * sysdeps/s390/memmove-c.c: New file.
2740 * sysdeps/s390/memmove.c: Likewise.
2741 * sysdeps/s390/multiarch/ifunc-impl-list.c
2742 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2743
2744 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2745
2746 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2747 * sysdeps/s390/configure.ac: Add check for z13 support.
2748 * sysdeps/s390/configure: Regenerated.
2749
2750 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2751
2752 * sysdeps/s390/memcopy.h: New file.
2753
2754 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2755
2756 * sysdeps/s390/s390-32/bcopy.S: Remove.
2757 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2758
2759 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2760
2761 * sysdeps/s390/ifunc-memcpy.h: New File.
2762 * sysdeps/s390/memcpy.S: Move to ...
2763 * sysdeps/s390/memcpy-z900.S ... here.
2764 Move implementations from memcpy-s390x.s to here.
2765 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2766 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2767 Remove memcpy/mempcpy variants.
2768 * sysdeps/s390/Makefile (sysdep_routines):
2769 Add memcpy/mempcpy variants.
2770 * sysdeps/s390/multiarch/ifunc-impl-list.c
2771 (__libc_ifunc_impl_list): Adjust ifunc variants for
2772 memcpy and mempcpy.
2773 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2774 to ...
2775 * sysdeps/s390/memcpy.c: ... here.
2776 Adjust ifunc variants for memcpy.
2777 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2778 * sysdeps/s390/mempcpy.c: ... here.
2779 Adjust ifunc variants for mempcpy.
2780 * sysdeps/s390/mempcpy.S: Delete file.
2781
2782 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2783
2784 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2785 * sysdeps/s390/memcpy.S: ... here.
2786 Adjust to be usable for 31/64bit.
2787 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2788 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2789 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2790 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2791 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2792 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2793 Adjust to be usable for 31/64bit.
2794 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2795 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2796 * sysdeps/s390/multiarch/memcpy.c: ... here.
2797 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2798
2799 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2800
2801 * sysdeps/s390/ifunc-memcmp.h: New File.
2802 * sysdeps/s390/memcmp.S: Move to ...
2803 * sysdeps/s390/memcmp-z900.S ... here.
2804 Move implementations from memcmp-s390x.s to here.
2805 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2806 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2807 Remove memcmp variants.
2808 * sysdeps/s390/Makefile (sysdep_routines):
2809 Add memcmp variants.
2810 * sysdeps/s390/multiarch/ifunc-impl-list.c
2811 (__libc_ifunc_impl_list): Adjust ifunc variants for
2812 memcmp.
2813 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2814 to ...
2815 * sysdeps/s390/memcmp.c: ... here.
2816 Adjust ifunc variants for memcmp.
2817
2818 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2819
2820 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2821 * sysdeps/s390/memcmp.S: ... here.
2822 Adjust to be usable for 31/64bit.
2823 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2824 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2825 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2826 Remove memcmp.
2827 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2828 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2829 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2830 Adjust to be usable for 31/64bit.
2831 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2832 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2833 * sysdeps/s390/multiarch/memcmp.c: ... here.
2834 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2835
2836 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2837
2838 * sysdeps/s390/s390-32/bzero.S: Delete file.
2839 * sysdeps/s390/s390-64/bzero.S: Likewise.
2840 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2841 * sysdeps/s390/bzero.c: New file.
2842 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2843 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2844 * sysdeps/s390/multiarch/ifunc-impl-list.c
2845 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2846
2847 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2848
2849 * sysdeps/s390/ifunc-memset.h: New File.
2850 * sysdeps/s390/memset.S: Move to ...
2851 * sysdeps/s390/memset-z900.S ... here.
2852 Move implementations from memset-s390x.s to here.
2853 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2854 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2855 Remove memset variants.
2856 * sysdeps/s390/Makefile (sysdep_routines):
2857 Add memset variants.
2858 * sysdeps/s390/multiarch/ifunc-impl-list.c
2859 (__libc_ifunc_impl_list): Adjust ifunc variants for
2860 memset.
2861 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2862 to ...
2863 * sysdeps/s390/memset.c: ... here.
2864 Adjust ifunc variants for memset.
2865
2866 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2867
2868 * sysdeps/s390/s390-64/memset.S: Move to ...
2869 * sysdeps/s390/memset.S: ... here.
2870 Adjust to be usable for 31/64bit.
2871 * sysdeps/s390/s390-32/memset.S: Delete File.
2872 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
2873 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2874 Remove memset.
2875 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2876 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
2877 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
2878 Adjust to be usable for 31/64bit.
2879 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
2880 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
2881 * sysdeps/s390/multiarch/memset.c: ... here.
2882 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
2883
2884 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2885
2886 * sysdeps/s390/multiarch/ifunc-resolve.h
2887 (s390_libc_ifunc_init, s390_libc_ifunc,
2888 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
2889
2890 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2891
2892 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
2893 * sysdeps/s390/configure.ac: Add check for z10 support.
2894 * sysdeps/s390/configure: Regenerated.
2895
2896 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
2897
2898 * sysdeps/i386/atomic-machine.h: Merged with ...
2899 * sysdeps/x86_64/atomic-machine.h: To ...
2900 * sysdeps/x86/atomic-machine.h: This. New file.
2901
2902 2018-12-18 Florian Weimer <fweimer@redhat.com>
2903
2904 Rewrite locale/gen-translit.pl in Python.
2905 * locale/Makefile (generated): Add C-translit.h.
2906 (before-compile): Add $(objpfx)C-translit.h.
2907 (C-translit.h): Move to $(objpfx). Create target directory.
2908 Build using Python script.
2909 * locale/gen-translit.py: New file.
2910 * locale/gen-translit.pl: Remove file.
2911 * locale/C-translit.h.in: Change comment character to '#' for
2912 easier parsing without a C preprocessor.
2913 * locale/C-translit.h: Remove generated file.
2914 * manual/install.texi (Tools for Compilation): Do not mention
2915 C-translit.h.
2916 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
2917 Remove locale/C-translit.h.
2918 * scripts/update-copyrights: Likewise.
2919 * INSTALL: Regenerate.
2920
2921 2018-12-18 Florian Weimer <fweimer@redhat.com>
2922
2923 [BZ #23995]
2924 * localedata/locales/bi_VU: Remove executable bit from file.
2925
2926 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
2927
2928 * include/time.h
2929 (__localtime64): Add.
2930 * manual/maint.texi: Document Y2038 symbol handling.
2931 * time/localtime.c
2932 (__localtime64): Add.
2933 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
2934
2935 2018-12-17 Joseph Myers <joseph@codesourcery.com>
2936
2937 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
2938 Do not clobber r12.
2939
2940 * scripts/glibcextract.py (compare_macro_consts): Take parameters
2941 to allow extra macros from first or second sources.
2942 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
2943 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2944 (tests-special): Add $(objpfx)tst-mman-consts.out.
2945 ($(objpfx)tst-mman-consts.out): New makefile target.
2946
2947 2018-12-17 Mao Han <han_mao@c-sky.com>
2948
2949 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
2950 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
2951 without stat64 system call support.
2952 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
2953 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
2954 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
2955 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
2956 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
2957 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
2958 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
2959 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
2960 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
2961 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
2962 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
2963
2964 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
2965
2966 regex: fix storage-exhaustion error
2967 [BZ #18040]
2968 * posix/regexec.c (get_subexp):
2969 Do not continue if storage is exhausted.
2970
2971 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
2972
2973 regex: fix heap-use-after-free error
2974 [BZ #18040]
2975 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
2976 https://debbugs.gnu.org/32592
2977 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
2978 call extend_buffers which reallocates the re_string_t internal buffer.
2979 Local variable 'buf' was not updated in such case, resulting in
2980 use-after-free.
2981 * posix/regexec.c (get_subexp): Update 'buf' after call to
2982 get_subexp_sub.
2983
2984 2018-12-15 Florian Weimer <fweimer@redhat.com>
2985
2986 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
2987 (minimum_stride_size): Use it.
2988 (support_blob_repeat_allocate): Likewise.
2989
2990 2018-12-14 Joseph Myers <joseph@codesourcery.com>
2991
2992 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
2993 definition.
2994 (acosh): Likewise.
2995 (atanh): Likewise.
2996
2997 2018-12-14 Florian Weimer <fweimer@redhat.com>
2998
2999 * manual/process.texi (Process Creation Concepts): Remove
3000 documentation of process (ID) lifetime. List more process
3001 creation functions. Reference Process Identification section.
3002 (Process Identification): Add information about process ID
3003 lifetime. Describe Linux thread/task IDs.
3004 * manual/signal.texi (Signaling Another Process): Mention that the
3005 signal is always sent to the process.
3006
3007 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3008
3009 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3010 and tst-ldbl-efgcvt.
3011 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3012 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3013 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3014 (fcvt_tests, output_error, output_r_error, do_test): Use the
3015 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3016 select the type of floating-point variables and arguments; to
3017 produce extra tests for double and conversion specifiers for
3018 printf; and to set the names of called functions.
3019 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3020 in tst-efgcvt-template.c.
3021 * misc/tst-ldbl-efgcvt.c: Likewise.
3022
3023 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3024
3025 * nss/Makefile (tst-nss-test3.out): New rule.
3026
3027 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3028
3029 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3030 clobber sp.
3031
3032 2018-12-13 fanjinke <fanjinke@hygon.cn>
3033
3034 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3035 "HygonGenuine".
3036
3037 2018-12-13 Andreas Schwab <schwab@suse.de>
3038
3039 [BZ #23861]
3040 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3041 (__pthread_rwlock_rdlock_full): Update expected value for
3042 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3043 * nptl/tst-rwlock-pwn.c: New file.
3044 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3045
3046 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3047
3048 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3049 definition.
3050
3051 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3052
3053 * benchtests/scripts/compare_bench.py (do_compare): write to
3054 stderr in casestat is not present.
3055 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3056 stderr in case timings field is not present. Also string showing
3057 the output filename goes into the stderr.
3058
3059 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3060
3061 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3062 and ZeroDivisorError exceptions.
3063 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3064 argument to loop through user provided statistics.
3065 * benchtests/scripts/compare_bench.py (main): Include the --stats
3066 argument.
3067
3068 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3069
3070 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3071 instead of return.
3072
3073 2018-12-12 Florian Weimer <fweimer@redhat.com>
3074
3075 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3076 clause to copyright header.
3077
3078 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3079
3080 [BZ #23614]
3081 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3082 registers saved in the stack frame.
3083 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3084 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3085
3086 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3087
3088 * include/bits/monetary-ldbl.h: New file.
3089 * include/bits/printf-ldbl.h: Likewise.
3090 * include/bits/stdio-ldbl.h: Likewise.
3091 * include/bits/stdlib-ldbl.h: Likewise.
3092 * include/bits/syslog-ldbl.h: Likewise.
3093 * include/bits/wchar-ldbl.h: Likewise.
3094
3095 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3096
3097 * libio/libio.h: Remove redirection for _IO_vfprintf.
3098
3099 2018-12-11 Andreas Schwab <schwab@suse.de>
3100
3101 * Makerules: Remove all references to abilist-pattern.
3102 (update-all-abi): Simplify find expression.
3103
3104 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3105
3106 [BZ #23961]
3107 * math/auto-libm-test-in: Add new test case.
3108 * math/auto-libm-test-out-pow: Regenerated.
3109 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3110
3111 2018-12-10 DJ Delorie <dj@redhat.com>
3112
3113 [BZ #23948]
3114 * support/test-container.c: Move postclean step to before we
3115 change namespaces.
3116
3117 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3118
3119 * scripts/gen-as-const.py (main): Handle --python option.
3120 * scripts/gen-py-const.awk: Remove.
3121 * Makerules (py-const-script): Use gen-as-const.py.
3122 ($(py-const)): Likewise.
3123 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3124 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3125 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3126 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3127 ~PTHREAD_MUTEX_NO_ELISION_NP.
3128 * manual/README.pretty-printers: Update reference to
3129 gen-py-const.awk.
3130
3131 * scripts/glibcextract.py: New file.
3132 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3133 or tempfile. Import glibcexctract.
3134 (compute_c_consts): Remove. Moved to glibcextract.py.
3135 (gen_test): Update reference to compute_c_consts.
3136 (main): Likewise.
3137 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3138 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3139 * sysdeps/unix/sysv/linux/Makefile
3140 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3141 Redirect stderr as well as stdout.
3142
3143 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3144
3145 [BZ #19767]
3146 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3147 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3148 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3149 ALWAYS_USE_VSYSCALL.
3150 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3151 ALWAYS_USE_VSYSCALL.
3152 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3153 ALWAYS_USE_VSYSCALL.
3154
3155 2018-12-10 Florian Weimer <fweimer@redhat.com>
3156
3157 [BZ #23972]
3158 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3159 offset instead of count for clarity. Fix typo in comment.
3160 (__old_getdents64): Keep track of previous offset. Use it to call
3161 handle_overflow.
3162 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3163 that d_off is never zero.
3164
3165 2018-12-10 Andreas Schwab <schwab@suse.de>
3166
3167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3168 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3170 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3171 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3172
3173 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3174
3175 * timezone/private.h: Update from tzcode 2018g.
3176 * timezone/tzfile.h: Likewise.
3177 * timezone/tzselect.ksh: Likewise.
3178 * timezone/zdump.c: Likewise.
3179 * timezone/zic.c: Likewise.
3180
3181 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3182
3183 [BZ #23490]
3184 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3185 (do_test): Adjust buffer size and fix format.
3186
3187 2018-12-07 DJ Delorie <dj@redhat.com>
3188
3189 [BZ #23907]
3190 * malloc/tst-tcfree3.c: New.
3191 * malloc/Makefile: Add it.
3192
3193 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3194
3195 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3196
3197 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3198
3199 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3200 used as a mask for the mode argument of __vfscanf_internal and
3201 __vfwscanf_internal.
3202 * stdio-common/vfscanf-internal.c
3203 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3204 (__strtof128_internal): Define to __wcstof128_internal.
3205 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3206 __strtof128_internal or __wcstof128_internal when the format of
3207 long double is the same as _Float128.
3208
3209 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3210
3211 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3212 * posix/confstr.c (confstr): Rename to __confstr.
3213 (__confstr): Add hidden def.
3214 (confstr): Add weak alias for __confstr.
3215 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3216 confstr.
3217
3218 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3219
3220 * NEWS: Mention getcpu.
3221 * include/sched.h (__getcpu): New libc_hidden_proto.
3222 * manual/resource.texi: Document getcpu.
3223 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3224 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3225 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3226 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3227 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3228 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3229 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3230 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3231 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3232 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3233 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3234 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3235 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3236 Likewise.
3237 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3238 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3239 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3240 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3241 Likewise.
3242 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3243 Likewise.
3244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3245 Likewise.
3246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3247 Likewise.
3248 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3249 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3250 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3251 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3252 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3253 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3254 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3255 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3256 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3257 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3258 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3259 Also check getcpu.
3260
3261 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3262
3263 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3264 functions.
3265 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3266
3267 2018-12-07 Florian Weimer <fweimer@redhat.com>
3268
3269 [BZ #17405]
3270 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3271 * posix/Versions (GLIBC_2.29): Export
3272 posix_spawn_file_actions_addfchdir_np.
3273 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3274 * posix/spawn_faction_destroy.c
3275 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3276 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3277 and the field action.fchdir_action.
3278 * posix/tst-spawn-chdir.c (add_chdir): New function.
3279 (do_test): Add do_fchdir loop. Call add_chdir.
3280 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3281 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3282 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3283 posix_spawn_file_actions_addfchdir_np.
3284 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3285 Likewise.
3286 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3287 Likewise.
3288 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3289 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3290 Likewise.
3291 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3292 Likewise.
3293 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3294 Likewise.
3295 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3296 Likewise.
3297 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3298 Likewise.
3299 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3300 Likewise.
3301 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3302 (GLIBC_2.29): Likewise.
3303 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3304 (GLIBC_2.29): Likewise.
3305 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3306 (GLIBC_2.29): Likewise.
3307 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3308 (GLIBC_2.29): Likewise.
3309 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3310 Likewise.
3311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3312 (GLIBC_2.29): Likewise.
3313 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3314 (GLIBC_2.29): Likewise.
3315 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3316 (GLIBC_2.29): Likewise.
3317 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3318 (GLIBC_2.29): Likewise.
3319 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3320 Likewise.
3321 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3322 Likewise.
3323 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3324 Likewise.
3325 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3326 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3327 Likewise.
3328 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3329 Likewise.
3330 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3331 Likewise.
3332 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3333 Likewise.
3334
3335 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3336
3337 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3338 trailing whitespace removed.
3339 * scripts/config.guess: Update to version 2018-11-28.
3340 * scripts/config.sub: Update to version 2018-11-28.
3341 * scripts/install-sh: Update to version 2018-03-11.20.
3342 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3343 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3344
3345 2018-12-07 Florian Weimer <fweimer@redhat.com>
3346
3347 [BZ #23927]
3348 CVE-2018-19591
3349 * inet/tst-if_index-long.c: New file.
3350 * inet/Makefile (tests): Add tst-if_index-long.
3351
3352 2018-12-07 Florian Weimer <fweimer@redhat.com>
3353
3354 * support/check.h (support_record_failure_is_failed): Declare.
3355 * support/descriptors.h: New file.
3356 * support/support_descriptors.c: Likewise.
3357 * support/tst-support_descriptors.c: Likewise.
3358 * support/support_record_failure.c
3359 (support_record_failure_is_failed): New function.
3360 * support/Makefile (libsupport-routines): Add support_descriptors.
3361 (tests): Add tst-support_descriptors.
3362
3363 2018-12-05 Zack Weinberg <zackw@panix.com>
3364 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3365
3366 * stdio-common/vfprintf-internal.c
3367 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3368 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3369 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3370 and __no_long_double.
3371 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3372 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3373 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3374 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3375 and __nldbl_*syslog* functions.
3376 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3377 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3378 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3379 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3380 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3381 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3382 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3383 (__nldbl_vwprintf, __nldbl_wprintf):
3384 Directly call the appropriate __v*printf_internal routine, passing
3385 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3386 variable names.
3387 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3388 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3389 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3390 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3391 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3392 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3393 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3394 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3395 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3396 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3397 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3398 (__nldbl_syslog, __nldbl_vsyslog):
3399 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3400 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3401 appropriate.
3402 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3403 appropriate.
3404
3405 2018-12-05 Zack Weinberg <zackw@panix.com>
3406 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3407
3408 [BZ #11319]
3409 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3410 Moved here from debug/vsprintf_chk.c.
3411 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3412 and completion logic for the strfile to match exactly what
3413 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3414 _IO_str_init_static_internal instead of maxlen-1.
3415 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3416 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3417 __vsprintf_internal.
3418
3419 * debug/vsprintf_chk.c (__vsprintf_chk)
3420 * debug/sprintf_chk.c (__sprintf_chk):
3421 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3422 'flags' argument is positive, and slen as maxlen. No need to lock
3423 the FILE and/or construct a temporary FILE. Minimize and normalize
3424 header inclusions and variable names. Do not libc_hidden_def anything.
3425
3426 * debug/asprintf_chk.c (__asprintf_chk)
3427 * debug/dprintf_chk.c (__dprintf_chk)
3428 * debug/fprintf_chk.c (__fprintf_chk)
3429 * debug/fwprintf_chk.c (__fwprintf_chk)
3430 * debug/printf_chk.c (__printf_chk)
3431 * debug/snprintf_chk.c (__snprintf_chk)
3432 * debug/swprintf_chk.c (__swprintf_chk)
3433 * debug/vasprintf_chk.c (__vasprintf_chk)
3434 * debug/vdprintf_chk.c (__vdprintf_chk)
3435 * debug/vfprintf_chk.c (__vfprintf_chk)
3436 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3437 * debug/vprintf_chk.c (__vprintf_chk)
3438 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3439 * debug/vswprintf_chk.c (__vswprintf_chk)
3440 * debug/vwprintf_chk.c (__vwprintf_chk)
3441 * debug/wprintf_chk.c (__wprintf_chk):
3442 Directly call the corresponding vxxprintf_internal function, passing
3443 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3444 the FILE and/or construct a temporary FILE. Minimize and normalize
3445 header inclusions and variable names. Do not libc_hidden_def anything.
3446
3447 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3448 __obstack_vprintf_internal.
3449 (__obstack_vprintf_chk): Convert into a wrapper that calls
3450 __obstack_vprintf_internal (these two functions already had the
3451 same code) and move to new file...
3452 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3453 file.
3454 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3455 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3456 * debug/Makefile (routines): Add vobprintf_chk.
3457
3458 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3459 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3460 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3461 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3462 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3463 (__nldbl___obstack_vfprintf_chk):
3464 Directly call the corresponding vxxprintf_internal function,
3465 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3466 duplicate comparison of slen with 0 or maxlen from the corresponding
3467 non-__nldbl function.
3468
3469 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3470 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3471 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3472 Remove libc_hidden_proto.
3473
3474 * stdio-common/vfprintf-internal.c
3475 (__vfprintf_internal, __vfwprintf_internal):
3476 Do not check _IO_FLAGS2_FORTIFY.
3477 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3478 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3479 a comment explaining why it has the maxlen argument.
3480 (_IO_acquire_lock_clear_flags2_fct): Remove.
3481 (_IO_acquire_lock_clear_flags2): Remove.
3482 (_IO_release_lock): Remove conditional statement which will
3483 now never execute.
3484 (_IO_acquire_lock): Remove variable which is now unused.
3485 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3486 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3487
3488 * stdio-common/Makefile (tests): Add tst-bz11319 and
3489 tst-bz11319-fortify2.
3490 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3491 * stdio-common/tst-bz11319-fortify2.c: New file.
3492 * stdio-common/tst-bz11319.c: Likewise.
3493
3494 2018-12-05 Zack Weinberg <zackw@panix.com>
3495 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3496
3497 * misc/syslog.c: Include libioP.h, not iolibio.h.
3498 (__vsyslog_internal): New function with the former body of
3499 __vsyslog_chk; takes mode_flags argument same as
3500 __v*printf_internal. Call __vfprintf_internal directly.
3501
3502 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3503 Remove libc_hidden_def.
3504 (__syslog, __syslog_chk): Use __vsyslog_internal.
3505 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3506
3507 * include/sys/syslog.h: Add multiple inclusion guard.
3508 Add prototype for __vsyslog_internal.
3509 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3510
3511 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3512 Use __vsyslog_internal.
3513
3514 2018-12-05 Zack Weinberg <zackw@panix.com>
3515 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3516
3517 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3518 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3519 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3520 New functions.
3521 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3522 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3523
3524 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3525 Include wctype.h here if COMPILE_WPRINTF is defined.
3526 Define __vfprintf_internal or __vfwprintf_internal, depending
3527 on COMPILE_WPRINTF.
3528 Temporarily, on entry to this function, update mode_flags
3529 according to the environmental settings corresponding to
3530 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3531 Throughout, check mode_flags instead of __ldbl_is_dbl and
3532 _IO_FLAGS2_FORTIFY on the destination FILE.
3533 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3534 Include vfprintf-internal.c. Don't include wctype.h.
3535 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3536 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3537 and vfprintf.
3538 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3539 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3540 and vfwprintf.
3541 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3542
3543 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3544 and add mode_flags argument; use __vfprintf_internal.
3545 (__vdprintf): New function. Alias vdprintf to this.
3546 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3547 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3548 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3549 (__obstack_printf): Use __obstack_printf_internal.
3550 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3551 public aliases __vsnprintf and vsnprintf.
3552 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3553 called internally.
3554 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3555 public aliases _IO_vsprintf and vsprintf.
3556 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3557 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3558 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3559 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3560 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3561
3562 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3563 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3564 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3565 * stdio-common/printf.c: Use __vfprintf_internal.
3566
3567 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3568 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3569 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3570
3571 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3572 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3573 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3574 __vfwprintf_internal.
3575
3576 * libio/libio.h: Remove libc_hidden_proto and declaration for
3577 _IO_vfprintf.
3578 Remove declaration of _IO_vfwprintf.
3579 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3580 _IO_vsprintf.
3581 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3582 _IO_obstack_printf.
3583 * include/stdio.h: Add prototype for __vasprintf.
3584 (__vsnprintf): Remove declaration, because there are no more
3585 internal calls.
3586 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3587 declaration, because there are no more internal calls.
3588
3589 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3590 __vsnprintf_internal, instead of _IO_vsnprintf.
3591 * argp/argp-help.c (__argp_error, __argp_failure): Use
3592 __vasprintf_internal, instead of _IO_vasprintf.
3593 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3594 redefine, because there are no more internal calls.
3595
3596 2018-12-05 Zack Weinberg <zackw@panix.com>
3597 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3598
3599 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3600 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3601 Include libio/strfile.h instead of libioP.h.
3602 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3603 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3604 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3605 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3606 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3607 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3608 necessary. Do not set __no_long_double. Normalize variable names.
3609 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3610 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3611 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3612 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3613 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3614 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3615 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3616 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3617 Do not set __no_long_double. Normalize variable names.
3618
3619 2018-12-05 Zack Weinberg <zackw@panix.com>
3620 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3621
3622 * stdio-common/isoc99_scanf.c
3623 * stdio-common/isoc99_fscanf.c
3624 * stdio-common/isoc99_sscanf.c
3625 * stdio-common/isoc99_vscanf.c
3626 * stdio-common/isoc99_vfscanf.c
3627 * stdio-common/isoc99_vsscanf.c
3628 * wcsmbs/isoc99_wscanf.c
3629 * wcsmbs/isoc99_fwscanf.c
3630 * wcsmbs/isoc99_swscanf.c
3631 * wcsmbs/isoc99_vwscanf.c
3632 * wcsmbs/isoc99_vfwscanf.c
3633 * wcsmbs/isoc99_vswscanf.c:
3634 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3635 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3636 No need to lock and unlock the FILE passed to that function.
3637
3638 * stdio-common/vfscanf-internal.c
3639 (__vfscanf_internal, __vfwscanf_internal):
3640 Don't look at _IO_FLAGS2_SCANF_STD.
3641 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3642 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3643 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3644
3645 2018-12-05 Zack Weinberg <zackw@panix.com>
3646 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3647
3648 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3649 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3650 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3651 * libio/strfile.h: Add multiple inclusion guard.
3652 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3653
3654 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3655 consistency with the other version of this file.
3656 (ldbl_compat_symbol): New macro.
3657 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3658 New macro.
3659
3660 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3661 Define __vfscanf_internal or __vfwscanf_internal, depending on
3662 COMPILE_WSCANF; don't define any other public symbols.
3663 Remove errval and code to set errp.
3664 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3665 as the mode_flags argument.
3666 (encode_error, conv_error, input_error): Don't set errval.
3667 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3668 Include vfscanf-internal.c.
3669 * stdio-common/vfscanf.c: New file defining the public entry
3670 point vfscanf, which calls __vfscanf_internal.
3671 * stdio-common/vfwscanf.c: New file defining the public entry
3672 point vfwscanf, which calls __vfwscanf_internal.
3673
3674 * stdio-common/iovfscanf.c: New file.
3675 * stdio-common/iovfwscanf.c: Likewise.
3676
3677 * stdio-common/Makefile (routines): Add vfscanf-internal,
3678 vfwscanf-internal, iovfscanf, iovfwscanf.
3679 * stdio-common/Versions: Mention GLIBC_2.29, so that
3680 it can be used in SHLIB_COMPAT expressions.
3681 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3682 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3683 Call __vfscanf_internal, instead of _IO_vfscanf.
3684 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3685 _IO_vfscanf.
3686 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3687 _IO_vfwscanf.
3688
3689 * libio/iovsscanf.c: Clean up includes, when possible. Use
3690 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3691 __vfscanf_internal or __vfwscanf_internal directly.
3692 * libio/iovswscanf.c: Likewise.
3693 * libio/swscanf.c: Likewise.
3694 * libio/vscanf.c: Likewise.
3695 * libio/vwscanf.c: Likewise.
3696 * libio/wscanf.c: Likewise.
3697 * stdio-common/isoc99_fscanf.c: Likewise.
3698 * stdio-common/isoc99_scanf.c: Likewise.
3699 * stdio-common/isoc99_sscanf.c: Likewise.
3700 * stdio-common/isoc99_vfscanf.c: Likewise.
3701 * stdio-common/isoc99_vscanf.c: Likewise.
3702 * stdio-common/isoc99_vsscanf.c: Likewise.
3703 * stdio-common/scanf.c: Likewise.
3704 * stdio-common/sscanf.c: Likewise.
3705 * wcsmbs/isoc99_fwscanf.c: Likewise.
3706 * wcsmbs/isoc99_swscanf.c: Likewise.
3707 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3708 * wcsmbs/isoc99_vswscanf.c: Likewise.
3709 * wcsmbs/isoc99_vwscanf.c: Likewise.
3710 * wcsmbs/isoc99_wscanf.c: Likewise.
3711
3712 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3713
3714 * include/time.h
3715 (__tz_compute): Replace time_t with __time64_t.
3716 (__tz_convert): Replace time_t* with __time64_t.
3717 (__offtime): Replace time_t* with __time64_t.
3718 * time/gmtime.c
3719 (__gmtime_r): Adjust call to __tz_convert.
3720 (gmtime): Likewise.
3721 * time/localtime.c
3722 (__localtime_r): Likewise.
3723 (localtime): Likewise.
3724 * time/offtime.c: Replace time_t with __time64_t.
3725 * time/tzset.c: Likewise.
3726
3727 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3728
3729 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3730 dynamic linker unless [$(run-built-tests) = yes].
3731
3732 2018-12-03 DJ Delorie <dj@delorie.com>
3733
3734 * support/test-container.c (check_for_unshare_hints): New.
3735 (main): Call it if unshare fails. Add support for "su" scriptlet
3736 command.
3737
3738 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3739
3740 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3741 'START' to indicate that start text should be output.
3742 (gen_test): Likewise.
3743 (main): Generate 'START' for first symbol or '--' line, or at end
3744 of input if not previously generated.
3745
3746 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3747
3748 [BZ #19767]
3749 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3750 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3751 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3752 ALWAYS_USE_VSYSCALL.
3753
3754 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3755
3756 [BZ #23913]
3757 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3758 new_argv by one.
3759
3760 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3761
3762 [BZ #23923]
3763 * locale/programs/localedef.c: Declare boolean hard_links default true.
3764 (options): Add --no-hard-links option.
3765 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3766 * locale/programs/localedef.h: Declare prototype for hard_links.
3767 * locale/programs/locfile.c (write_locale_data): Don't use hard
3768 links if hard_links is false.
3769
3770 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3771
3772 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3773 cpu_features_basic.
3774 (__cache_sysconf): Likewise.
3775 (init_cacheinfo): Likewise.
3776 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3777 populate COMMON_CPUID_INDEX_80000007 and
3778 COMMON_CPUID_INDEX_80000008.
3779 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3780 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3781 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3782 (init_cpu_features): Use _Static_assert on
3783 index_arch_Fast_Unaligned_Load.
3784 __get_cpuid_registers and __get_arch_feature. Updated for
3785 cpu_features_basic. Set stepping in cpu_features.
3786 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3787 (FEATURE_INDEX_2): New.
3788 (FEATURE_INDEX_MAX): Changed to enum.
3789 (COMMON_CPUID_INDEX_D_ECX_1): New.
3790 (COMMON_CPUID_INDEX_80000007): Likewise.
3791 (COMMON_CPUID_INDEX_80000008): Likewise.
3792 (cpuid_registers): Likewise.
3793 (cpu_features_basic): Likewise.
3794 (CPU_FEATURE_USABLE): Likewise.
3795 (bit_arch_XXX_Usable): Likewise.
3796 (cpu_features): Use cpuid_registers and cpu_features_basic.
3797 (bit_arch_XXX): Reweritten.
3798 (bit_cpu_XXX): Likewise.
3799 (index_cpu_XXX): Likewise.
3800 (reg_XXX): Likewise.
3801 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3802 <support/check.h>.
3803 (CHECK_CPU_FEATURE): New.
3804 (CHECK_CPU_FEATURE_USABLE): Likewise.
3805 (cpu_kinds): Likewise.
3806 (do_test): Print vendor, family, model and stepping. Check
3807 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3808 (TEST_FUNCTION): Removed.
3809 Include <support/test-driver.c> instead of
3810 "../../test-skeleton.c".
3811 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3812 Check POPCNT instead of POPCOUNT.
3813 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3814
3815 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3816
3817 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3818 there is no element in `consts'.
3819
3820 2018-12-01 Florian Weimer <fweimer@redhat.com>
3821
3822 * support/support_capture_subprocess.c
3823 (support_capture_subprocess): Check that pipe descriptors have
3824 expected values. Close original pipe descriptors in subprocess.
3825
3826 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3827
3828 [BZ #23032]
3829 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3830 attr with __pthread_default_barrierattr.
3831 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3832 attr with __pthread_default_condattr.
3833 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3834 attr with __pthread_default_mutexattr.
3835 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3836 attr with __pthread_default_rwlockattr.
3837
3838 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3839
3840 * manual/tunables.texi (POSIX Thread Tunables): New node.
3841 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3842 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3843 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3844 __pthread_tunables_init.
3845 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3846 (max_adaptive_count): Define.
3847 * nptl/pthread_mutex_conf.c: New file.
3848 * nptl/pthread_mutex_conf.h: New file.
3849 * sysdeps/generic/adaptive_spin_count.h: New file.
3850 * sysdeps/nptl/dl-tunables.list: New file.
3851 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3852 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3853 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3854 Likewise.
3855
3856 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3857
3858 [BZ #20544]
3859 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3860 * stdlib/on_exit.c (__on_exit): Likewise.
3861 * stdlib/Makefile (tests): Add tst-bz20544.
3862 * stdlib/tst-bz20544.c: New test.
3863
3864 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
3865
3866 [BZ #19767]
3867 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
3868 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
3869 New.
3870
3871 2018-11-30 Florian Weimer <fweimer@redhat.com>
3872
3873 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
3874 Extend error logging.
3875 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
3876 symbol.
3877
3878 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3879
3880 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
3881 __sigismember instead of sigismember.
3882 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
3883 cancel_handler): New definitions.
3884 (do_system): Use posix_spawn instead of fork and execl and remove
3885 reentracy code.
3886 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
3887 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
3888 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
3889 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
3890 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
3891 * sysdeps/unix/sysv/linux/system.c: Likewise.
3892
3893 [BZ #22834]
3894 [BZ #17490]
3895 * NEWS: Add new semantic for atfork with popen and system.
3896 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
3897 fork and execl.
3898
3899 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3900
3901 [BZ #23690]
3902 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
3903 modification order when accessing reloc_result->addr.
3904 * include/link.h (reloc_result): Add field init.
3905 * nptl/Makefile (tests): Add tst-audit-threads.
3906 (modules-names): Add tst-audit-threads-mod1 and
3907 tst-audit-threads-mod2.
3908 Add rules to build tst-audit-threads.
3909 * nptl/tst-audit-threads-mod1.c: New file.
3910 * nptl/tst-audit-threads-mod2.c: Likewise.
3911 * nptl/tst-audit-threads.c: Likewise.
3912 * nptl/tst-audit-threads.h: Likewise.
3913
3914 2018-11-30 Joseph Myers <joseph@codesourcery.com>
3915
3916 * scripts/gen-as-const.py: New file.
3917 * scripts/gen-as-const.awk: Remove.
3918 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
3919 gen-as-const.py.
3920 ($(objpfx)test-as-const-%.c): Likewise.
3921
3922 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3923
3924 * elf/dl-exception.c: Include <_itoa.h>.
3925
3926 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3927
3928 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
3929 returned by __f_setlk.
3930
3931 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3932 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3933
3934 * elf/Makefile (tests-internal): Add tst-create_format1.
3935 * elf/dl-exception.c (_dl_exception_create_format): Support
3936 %x, %lx and %zx.
3937 * elf/tst-create_format1.c: New file.
3938
3939 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
3940
3941 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
3942 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
3943 gnulib.)
3944 * argp/argp-help.c (__argp_failure): Likewise.
3945
3946 2018-11-29 Mao Han <han_mao@c-sky.com>
3947
3948 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
3949 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
3950 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
3951 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
3952 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
3953 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
3954 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
3955 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
3956 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
3957 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
3958 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
3959 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
3960 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
3961 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
3962 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
3963 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
3964 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
3965 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
3966 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
3967 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
3968 (R_CKCORE_TLS_TPOFF32): New defines.
3969
3970 2018-11-29 Florian Weimer <fweimer@redhat.com>
3971
3972 * posix/Makefile (before-compile): Remove testcases.h and
3973 ptestcases.h.
3974 (generated): Add testcases.h and ptestcases.h.
3975 (testcases.h, ptestcases.h): Move to $(objpfx).
3976 (runtests.o): Add dependency on testcases.h.
3977 (runptests.o): Add dependency on ptestcases.h.
3978 * posix/testcases.h, posix/ptestcases.h: Remove files.
3979 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
3980 not touch posix/testcases.h and posix/ptestcases.h.
3981
3982 2018-11-28 Florian Weimer <fweimer@redhat.com>
3983
3984 support: Add signal support to support_capture_subprocess_check.
3985 * support/capture_subprocess.h (support_capture_subprocess_check):
3986 Adjust comment and rename parameter.
3987 * support/support_capture_subprocess_check.c
3988 (print_actual_status): New function.
3989 (support_capture_subprocess_check): Support negative
3990 status_or_signal. Call print_actual_status.
3991 * support/tst-support_capture_subprocess.c (do_test): Call
3992 support_capture_subprocess_check.
3993 * libio/tst-vtables-common.c (termination_status)
3994 (init_termination_status): Remove.
3995 (check_for_termination): Adjust support_capture_subprocess_check
3996 call.
3997 (do_test): Remove call to init_termination_status.
3998
3999 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4000
4001 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4002 source directory instead of a copy.
4003 (CommandList.create_copy_dir): Remove.
4004
4005 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4006
4007 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4008
4009 2018-11-28 Florian Weimer <fweimer@redhat.com>
4010
4011 * support/support.h (support_quote_string): Do not use str
4012 parameter name.
4013
4014 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4015
4016 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4017 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4018
4019 2018-11-27 Florian Weimer <fweimer@redhat.com>
4020
4021 * support/support.h (support_quote_string): Declare.
4022 * support/support_quote_string.c: New file.
4023 * support/tst-support_quote_string.c: Likewise.
4024 * support/Makefile (libsupport-routines): Add
4025 support_quote_string.
4026 (tests): Add tst-support_quote_string.
4027
4028 2018-11-27 Florian Weimer <fweimer@redhat.com>
4029
4030 [BZ #23927]
4031 CVE-2018-19591
4032 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4033 descriptor leak in case of ENODEV error.
4034
4035 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4036
4037 [BZ #19767]
4038 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4039 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4040 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4041
4042 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4043
4044 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4045 Error for unknown lines.
4046
4047 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4048
4049 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4050 Touch additional files.
4051
4052 2018-11-26 Florian Weimer <fweimer@redhat.com>
4053
4054 [BZ #23907]
4055 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4056 double-frees.
4057
4058 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4059
4060 [BZ #19767]
4061 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4062 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4063 SHARED. Include sysdep.h.
4064 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4065 ALWAYS_USE_VSYSCALL.
4066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4067 ALWAYS_USE_VSYSCALL.
4068
4069 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4070
4071 [BZ #19767]
4072 * nptl/Makefile (tests-static): Add tst-cond11-static.
4073 (tests): Likewise.
4074 * nptl/tst-cond11-static.c: New File.
4075 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4076 tst-affinity-static.
4077 (tests): Likewise.
4078 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4079 instead of SHARED.
4080 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4081 (USE_VSYSCALL): Likewise.
4082 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4083 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4084 instead of SHARED.
4085 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4086 SHARED.
4087 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4088 New.
4089
4090 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4091
4092 [BZ #23915]
4093 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4094 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4095 Undefine.
4096
4097 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4098
4099 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4100 (tst-cet-legacy-1a-ARGS): New.
4101 ($(objpfx)tst-cet-legacy-1a): New target.
4102 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4103
4104 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4105
4106 * conform/conformtest.py (CompileSubTest.__init__): Set
4107 self.run_early to False.
4108 (ExecuteSubTest.__init__): Likewise.
4109 (HeaderTests.run): Try running all non-optional, non-XFAILed
4110 compilation tests in a single execution of the compiler.
4111
4112 * conform/conformtest.py (CompileSubTest): New class.
4113 (ExecuteSubTest): Likewise.
4114 (ElementTest.run): Rename to gen_subtests. Append tests to
4115 self.subtests instead of running them.
4116 (ConstantTest.run): Likewise.
4117 (SymbolTest.run): Likewise.
4118 (TypeTest.run): Likewise.
4119 (TagTest.run): Likewise.
4120 (FunctionTest.run): Likewise.
4121 (VariableTest.run): Likewise.
4122 (MacroFunctionTest.run): Likewise.
4123 (MacroStrTest.run): Likewise.
4124 (HeaderTests.handle_test_line): Generate subtests for tests.
4125 (HeaderTests.run): Run subtests for tests.
4126
4127 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4128
4129 * math/Versions (GLIBC_2.29): Add pow.
4130 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4131 symbol.
4132 * math/w_pow.c: New file.
4133 * sysdeps/i386/fpu/w_pow.c: New file.
4134 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4135 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4136 and add necessary aliases.
4137 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4138 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4139 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4140 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4141 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4142 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4143 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4144 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4145 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4146 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4147 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4148 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4149 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4150 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4151 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4152 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4153 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4156 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4157 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4158 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4159 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4160 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4161 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4162 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4163 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4164 __pow.
4165 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4166 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4167 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4168
4169 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4170
4171 * math/Versions (GLIBC_2.29): Add log2.
4172 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4173 symbol.
4174 * math/w_log2.c: New file.
4175 * sysdeps/i386/fpu/w_log2.c: New file.
4176 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4177 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4178 and add necessary aliases.
4179 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4180 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4181 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4182 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4183 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4184 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4185 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4186 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4187 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4188 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4189 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4190 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4191 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4192 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4193 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4198 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4199 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4200 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4201 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4202 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4203 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4204 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4205
4206 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4207
4208 * math/Versions (GLIBC_2.29): Add log.
4209 * math/w_log_compat.c (__log_compat): Change to versioned compat
4210 symbol.
4211 * math/w_log.c: New file.
4212 * sysdeps/i386/fpu/w_log.c: New file.
4213 * sysdeps/ia64/fpu/e_log.S: Update.
4214 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4215 and add necessary aliases.
4216 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4217 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4218 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4219 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4220 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4221 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4222 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4223 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4224 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4225 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4226 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4227 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4228 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4229 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4230 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4232 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4235 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4236 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4237 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4238 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4239 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4240 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4241 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4242 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4243 __log.
4244 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4245 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4246 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4247 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4248
4249 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4250
4251 * math/Versions (GLIBC_2.29): Add exp and exp2.
4252 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4253 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4254 * math/w_exp_compat.c (__exp_compat): Likewise.
4255 * math/w_exp.c: New file.
4256 * math/w_exp2.c: New file.
4257 * sysdeps/i386/fpu/w_exp.c: New file.
4258 * sysdeps/i386/fpu/w_exp2.c: New file.
4259 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4260 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4261 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4262 and add necessary aliases.
4263 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4264 and add necessary aliases.
4265 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4266 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4267 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4268 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4269 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4270 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4271 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4272 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4273 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4274 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4275 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4276 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4277 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4278 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4279 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4280 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4281 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4282 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4283 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4286 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4287 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4288 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4289 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4290 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4291 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4292 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4293 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4294 (__ieee754_exp): Rename to __exp.
4295 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4296 (__ieee754_exp): Rename to __exp.
4297 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4298 (__ieee754_exp): Rename to __exp.
4299 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4300 __exp.
4301 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4302
4303 2018-11-20 DJ Delorie <dj@redhat.com>
4304
4305 * malloc/malloc.c (tcache_entry): Add key field.
4306 (tcache_put): Set it.
4307 (tcache_get): Likewise.
4308 (_int_free): Check for double free in tcache.
4309 * malloc/tst-tcfree1.c: New.
4310 * malloc/tst-tcfree2.c: New.
4311 * malloc/Makefile: Run the new tests.
4312 * manual/probes.texi: Document memory_tcache_double_free probe.
4313
4314 * dlfcn/dlerror.c (check_free): Prevent double frees.
4315
4316 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4317
4318 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4319
4320 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4321
4322 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4323 in tests. Use names for format arguments.
4324 (ConstantTest.run): Likewise.
4325 (SymbolTest.run): Likewise.
4326 (TypeTest.run): Likewise.
4327 (TagTest.run): Likewise.
4328 (FunctionTest.run): Likewise.
4329 (VariableTest.run): Likewise.
4330 (MacroFunctionTest.run): Likewise.
4331 (MacroStrTest.run): Likewise.
4332 (HeaderTests.__init__): Set self.num_tests.
4333 (HeaderTests.handle_test_line): Set test.num. Increment
4334 self.num_tests.
4335
4336 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4337
4338 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4339 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4340 SEEK_SET.
4341
4342 2018-11-19 Mao Han <han_mao@c-sky.com>
4343
4344 * scripts/config.guess: Update to version 2018-08-29.
4345 * scripts/config.sub: Update to version 2018-08-29.
4346
4347 2018-11-19 Florian Weimer <fweimer@redhat.com>
4348
4349 support: Print timestamps in timeout handler.
4350 * support/support_test_main.c (print_timestamp): New function.
4351 (signal_handler): Use it to print the termination time and the
4352 time of the last write to standard output.
4353
4354 2018-11-16 Zack Weinberg <zackw@panix.com>
4355 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4356
4357 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4358 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4359 argument.
4360 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4361 and add flags argument. Check flags instead of __ldbl_is_dbl when
4362 deciding whether to set is_long_double.
4363 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4364 passing zero for flags argument.
4365 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4366
4367 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4368 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4369 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4370 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4371 variable names. Remove libc_hidden_def/libc_hidden_proto from
4372 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4373 longer called from within the library.
4374 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4375 for __nldbl___vstrfmon_l, declare it explicitly.
4376
4377 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4378
4379 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4380
4381 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4382 macros
4383 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4384 F_SETLK64, F_SETLKW64, respectively.
4385 * sysdeps/mach/hurd/f_setlk.c: New file.
4386 * sysdeps/mach/hurd/f_setlk.h: New file.
4387 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4388 f_setlk.
4389 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4390 (__libc_fcntl): Move non-flock operations to...
4391 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4392 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4393
4394 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4395
4396 mktime: DEBUG_MKTIME cleanup
4397 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4398 And it’s no longer needed now that glibc and Gnulib both have
4399 their own testing mechanisms for mktime.
4400 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4401
4402 mktime: fix non-EOVERFLOW errno handling
4403 [BZ#23789]
4404 mktime was not properly reporting failures when the underlying
4405 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4406 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4407 The problem could happen on non-glibc platforms, with Gnulib.
4408 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4409 (tm_diff): ... this simpler function, which does not change errno.
4410 All callers changed to deal with errno themselves.
4411 (ranged_convert, __mktime_internal): Return failure immediately if
4412 the underlying function reports any failure other than EOVERFLOW.
4413 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4414 gap code fails.
4415
4416 mktime: fix bug with Y2038 DST transition
4417 [BZ#23789]
4418 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4419 mishandle a DST transition that jumps over the Y2038 boundary.
4420 No such DST transitions are known so this is only a theoretical
4421 bug, but we might as well do things right.
4422
4423 mktime: make more room for overflow
4424 [BZ#23789]
4425 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4426 This is so that we can add tm_diff results to a previous guess,
4427 which will be useful in a later patch.
4428
4429 mktime: simplify offset guess
4430 [BZ#23789]
4431 * time/mktime.c (__mktime_internal): Omit excess precision.
4432
4433 mktime: new test for mktime failure
4434 [BZ#23789]
4435 Based on a test suggested by Albert Aribaud in:
4436 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4437 * time/Makefile (tests): Add bug-mktime4.
4438 * time/bug-mktime4.c: New file.
4439
4440 mktime: fix EOVERFLOW bug
4441 [BZ#23789]
4442 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4443 Include libc-config.h, not config.h, for __set_errno.
4444 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4445
4446 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4447
4448 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4449 __attribute_copy__ to copy attributes from name. Drop static qualifier
4450 to avoid warnings about leaf attribute not having effect on static
4451 functions.
4452
4453 2018-11-13 Florian Weimer <fweimer@redhat.com>
4454
4455 * malloc/malloc.c (fastbin_push_entry): New function.
4456 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4457 (REMOVE_FB): Remove macro.
4458 (_int_malloc): Use fastbin_pop_entry and reindent.
4459 (_int_free): Use fastbin_push_entry.
4460 (malloc_consolidate): Use atomic_exchange_acquire.
4461
4462 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4463
4464 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4465 alias attribute, not with strong_alias.
4466
4467 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4468 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4469 with additional parameter thread.
4470 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4471 in terms of __hidden_ver2.
4472 (hidden_tls_def): New macro.
4473 (libc_hidden_tls_def): Likewise.
4474 (rtld_hidden_tls_def): Likewise.
4475 (libm_hidden_tls_def): Likewise.
4476 (libmvec_hidden_tls_def): Likewise.
4477 (libresolv_hidden_tls_def): Likewise.
4478 (librt_hidden_tls_def): Likewise.
4479 (libdl_hidden_tls_def): Likewise.
4480 (libnss_files_hidden_tls_def): Likewise.
4481 (libnsl_hidden_tls_def): Likewise.
4482 (libnss_nisplus_hidden_tls_def): Likewise.
4483 (libutil_hidden_tls_def): Likewise.
4484 (libutil_hidden_tls_def): Likweise.
4485 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4486 libc_hidden_tls_def.
4487 (__sim_disabled_exceptions_thread): Likewise.
4488 (__sim_round_mode_thread): Likewise.
4489
4490 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4491 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4492 copy attributes from name.
4493
4494 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4495
4496 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4497 Use __attribute_copy__ to copy attributes from name.
4498
4499 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4500 with __hidden_ver1 call.
4501 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4502 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4503 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4504 (__cosf): Do not declare here.
4505 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4506 (__sincosf): Do not declare here.
4507 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4508 (__sinf): Do not declare here.
4509
4510 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4511 (__BIG_ENDIAN): Likewise.
4512 (__BYTE_ORDER): Likewise.
4513 (strong_alias): Likewise.
4514 (_strong_alias): Likewise.
4515
4516 2018-11-12 Florian Weimer <fweimer@redhat.com>
4517
4518 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4519 function. Move after the definition of in_smallbin_range. Do not
4520 use __builtin_expect for paths that lead to a noreturn function.
4521 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4522 because it is unclear whether this is in fact an unlikely
4523 condition.
4524 (_int_malloc, _int_free): Adjust.
4525 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4526 variables.
4527 * malloc/arena.c (heap_trim): Likewise.
4528
4529 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4530
4531 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4532 it, free it if needed.
4533 (reauthenticate): Test and use ccwdir.
4534 (child_init_port): In non-resetids case, test and use ccwdir.
4535 (child_chdir): New nested function to set ccwdir.
4536 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4537 * hurd/hurd/port.h (_hurd_port_move): New function.
4538 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4539 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4540 * hurd/Versions (_hurd_port_move): Export function.
4541 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4542 symbol.
4543 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4544 of dtablesize for allocating dtable_cloexec.
4545
4546 2018-11-09 Martin Sebor <msebor@redhat.com>
4547
4548 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4549 it's already defined.
4550 (_strong_alias): Use __attribute_copy__.
4551 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4552 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4553 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4554 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4555 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4556 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4557 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4558 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4559 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4560 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4561 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4562 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4563 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4564 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4565 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4566 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4567 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4568 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4569 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4570
4571 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4572
4573 * misc/tst-efgcvt.c: Include support/check.h and
4574 support/test-driver.c. Do not include test-skeleton.c.
4575 (error_count): Remove.
4576 (output_error): Replace increments to error_count with calls to
4577 support_record_failure.
4578 (output_r_error): Likewise.
4579 (special): Likewise.
4580 (do_test): Unconditionally return zero.
4581 (TEST_FUNCTION): Remove.
4582
4583 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4584
4585 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4586 not $(@D)/scratch.
4587 ($(linknamespace-header-tests)): Likewise.
4588
4589 * conform/conformtest.py: New file.
4590 * conform/conformtest.pl: Remove.
4591 * conform/GlibcConform.pm: Likewise.
4592 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4593 (KEYWORDS_C99): Likewise.
4594 (KEYWORDS): Likewise.
4595 * conform/Makefile ($(conformtest-header-tests)): Use
4596 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4597 option. Use --header instead of --headers.
4598 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4599 function entries.
4600 * conform/data/spawn.h-data: Likewise.
4601 * conform/data/fcntl.h-data (openat): Add space after function
4602 name.
4603 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4604 (wcscasecmp_l): Likewise.
4605 * conform/data/termios.h-data (c_cc): Add space after element
4606 name.
4607
4608 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4609
4610 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4611 instead of manually comparing and reporting mismatching strings.
4612 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4613 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4614
4615 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4616
4617 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4618 __ASSUME_SOCKETCALL.
4619 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4620 (__ASSUME_SOCKETCALL): Remove.
4621 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4622 (__ASSUME_SOCKETCALL): Likewise.
4623 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4624 (__ASSUME_SOCKETCALL): Likewise.
4625 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4626 (__ASSUME_SOCKETCALL): Likewise.
4627 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4628 (__ASSUME_SOCKETCALL): Likewise.
4629 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4630 (__ASSUME_SOCKETCALL): Likewise.
4631 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4632 (__ASSUME_SOCKETCALL): Likewise.
4633
4634 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4635
4636 [BZ #23509]
4637 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4638 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4639 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4640 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4641 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4642 lc_unknown.
4643
4644 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4645
4646 [BZ #17630]
4647 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4648
4649 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4650
4651 [BZ #23867]
4652 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4653 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4654 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4655 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4656
4657 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4658
4659 * support/support_test_compare_string.c
4660 (support_test_compare_string): Fix printf format.
4661
4662 2018-11-07 Florian Weimer <fweimer@redhat.com>
4663
4664 Implement TEST_COMPARE_STRING.
4665 * support/check.h (TEST_COMPARE_STRING): Define.
4666 (support_test_compare_string): Declare.
4667 * support/Makefile (libsupport-routines): Add
4668 support_test_compare_string.
4669 (tests): Add tst-test_compare_string.
4670 * support/support_test_compare_string.c: New file.
4671 * support/tst-test_compare_string.c: Likewise.
4672
4673 2018-11-07 Andreas Schwab <schwab@suse.de>
4674
4675 [BZ #23864]
4676 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4677 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4678 Undef.
4679
4680 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4681
4682 [BZ #23862]
4683 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4684 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4685 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4686 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4687 Likewise.
4688
4689 2018-11-06 Florian Weimer <fweimer@redhat.com>
4690
4691 [BZ #17405]
4692 * posix/Makefile (routines): Add spawn_faction_addchdir.
4693 (tests): Add tst-spawn-chdir.
4694 * posix/Versions (GLIBC_2.29): Add
4695 posix_spawn_file_actions_addchdir_np.
4696 * posix/spawn_faction_addchdir.c: New file.
4697 * posix/spawn_faction_destroy.c
4698 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4699 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4700 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4701 chdir_action.
4702 * posix/tst-spawn-chdir.c: New file.
4703 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4704 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4705 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4706 posix_spawn_file_actions_addchdir_np.
4707 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4708 Likewise.
4709 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4710 Likewise.
4711 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4712 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4713 Likewise.
4714 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4715 Likewise.
4716 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4717 Likewise.
4718 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4719 Likewise.
4720 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4721 Likewise.
4722 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4723 Likewise.
4724 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4725 (GLIBC_2.29): Likewise.
4726 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4727 (GLIBC_2.29): Likewise.
4728 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4729 (GLIBC_2.29): Likewise.
4730 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4731 (GLIBC_2.29): Likewise.
4732 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4733 Likewise.
4734 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4735 (GLIBC_2.29): Likewise.
4736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4737 (GLIBC_2.29): Likewise.
4738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4739 (GLIBC_2.29): Likewise.
4740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4741 (GLIBC_2.29): Likewise.
4742 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4743 Likewise.
4744 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4745 Likewise.
4746 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4747 Likewise.
4748 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4749 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4750 Likewise.
4751 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4752 Likewise.
4753 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4754 Likewise.
4755 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4756 Likewise.
4757
4758 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4759
4760 * misc/Makefile (tests): Add tst-ldbl-error.
4761 * misc/tst-ldbl-error.c: New file.
4762
4763 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4764
4765 * misc/Makefile (tests): Add tst-ldbl-warn.
4766 * misc/tst-ldbl-warn.c: New file.
4767
4768 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4769
4770 * argp/Makefile (tests): Add tst-ldbl-argp.
4771 * argp/tst-ldbl-argp.c: New file.
4772
4773 2018-11-05 Arjun Shankar <arjun@redhat.com>
4774
4775 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4776 __gconv_path_elem and call __gconv_get_path unconditionally.
4777
4778 2018-11-05 Andreas Schwab <schwab@suse.de>
4779
4780 [BZ #22927]
4781 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4782 creating the first helper thread failed.
4783
4784 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4785
4786 * sysdeps/mach/hurd/msync.c: New file.
4787
4788 2018-11-02 Florian Weimer <fweimer@redhat.com>
4789
4790 * support/shell-container.c (copy_func): Call
4791 support_copy_file_range instead of copy_file_range to support
4792 cross-device copies.
4793
4794 2018-11-02 Florian Weimer <fweimer@redhat.com>
4795
4796 * support/test-container.c: Include <libc-pointer-arith.h> for
4797 ALIGN_UP.
4798
4799 2018-11-01 Zong Li <zong@andestech.com>
4800
4801 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4802 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4803 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4804 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4805
4806 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4807 variable to avoid overlap arguments.
4808
4809 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4810
4811 * posix/bug-regex22.c (main): Use puts with distinct error
4812 messages for unexpected success of re_compile_pattern, not printf
4813 with NULL argument to %s.
4814
4815 * stdio-common/bug22.c: Include <libc-diag.h>.
4816 (do_test): Disable -Wformat-overflow= warnings around fprintf
4817 calls outputting more than INT_MAX characters.
4818 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4819 around printf call with NULL %s argument.
4820
4821 [BZ #23848]
4822 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4823 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4824 Undefine.
4825 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4826 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4827 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4828 (__ASSUME_SENDTO_SYSCALL): Likewise.
4829 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4830 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4831 [!__arch64__].
4832 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4833 (__ASSUME_CONNECT_SYSCALL): Likewise.
4834 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4835 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4836 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4837 Define.
4838 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4839 Likewise.
4840 [__LINUX_KERNEL_VERSION >= 0x040400]
4841 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4842 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4843 Remove.
4844 (listen): Likewise.
4845 (setsockopt): Likewise.
4846
4847 2018-11-01 Fredrik Noring <noring@nocrew.org>
4848
4849 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4850 with the ISA override.
4851
4852 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4853
4854 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4855 #endif.
4856
4857 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4858
4859 * manual/errno.texi (EIEIO): Document how translators should
4860 translate the error message.
4861 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4862 printing trailing whitespaces refused by git.
4863 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4864 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4865 * hurd/Makefile (user-interfaces): Add pci.
4866
4867 2018-10-30 Joseph Myers <joseph@codesourcery.com>
4868
4869 * conform/linknamespace.py: New file.
4870 * conform/linknamespace.pl: Remove file.
4871 * conform/Makefile ($(linknamespace-header-tests)): Use
4872 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
4873 option.
4874
4875 2018-10-30 Florian Weimer <fweimer@redhat.com>
4876
4877 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
4878 memory leaks.
4879
4880 2018-10-30 Florian Weimer <fweimer@redhat.com>
4881
4882 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
4883
4884 2018-10-30 Florian Weimer <fweimer@redhat.com>
4885
4886 * stdlib/tst-strtod-overflow.c (do_test): Switch to
4887 support_blob_repeat.
4888
4889 2018-10-30 Florian Weimer <fweimer@redhat.com>
4890
4891 Avoid spurious test failures in stdlib/test-bz22786.
4892 * support/Makefile (libsupport-routines): Add blob_repeat.
4893 (tests): Add tst-support_blob_repeat.
4894 * support/blob_repeat.h: New file.
4895 * support/blob_repeat.c: Likewise.
4896 * support/tst-support_blob_repeat.c: Likewise.
4897 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
4898 support_blob_repeat_allocate.
4899
4900 2018-10-30 Andreas Schwab <schwab@suse.de>
4901
4902 [BZ #23125]
4903 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
4904 Don't use tail call.
4905 * elf/tst-unwind-main.c: New file.
4906 * elf/Makefile (tests): Add tst-unwind-main.
4907 (CFLAGS-tst-unwind-main.c): Define.
4908
4909 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
4910
4911 [BZ #23791]
4912 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
4913 n_cs_precedes to 0.
4914 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
4915
4916 2018-10-29 Joseph Myers <joseph@codesourcery.com>
4917
4918 * conform/glibcconform.py: Do not import shutil.
4919 (list_exported_functions): Use tempfile.TemporaryDirectory instead
4920 of mkdtemp.
4921
4922 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
4923 critic_missing for versions before 3.4.
4924 * configure: Regenerated.
4925 * manual/install.texi (Tools for Compilation): Document
4926 requirement for Python to build glibc.
4927 * INSTALL: Regenerated.
4928 * Rules [PYTHON]: Make code unconditional.
4929 * benchtests/Makefile [PYTHON]: Likewise.
4930 * conform/Makefile [PYTHON]: Likewise.
4931 * manual/Makefile [PYTHON]: Likewise.
4932 * math/Makefile [PYTHON]: Likewise.
4933
4934 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
4935
4936 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
4937 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
4938 answer to interrupt_operation, return EIEIO instead of EINTR.
4939 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
4940 _hurd_intr_rpc_msg_about_to global point to start of controlled
4941 assembly snippet. Make it check canceled flag.
4942 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
4943 the _hurd_intr_rpc_msg_about_to point.
4944 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
4945 issue, remove cancel flag check.
4946
4947 2018-10-26 Joseph Myers <joseph@codesourcery.com>
4948
4949 * scripts/build-many-glibcs.py: Remove compatibility for missing
4950 os.cpu_count and re.fullmatch.
4951
4952 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
4953
4954 [BZ #23822]
4955 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
4956 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
4957 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
4958
4959 2018-10-25 Joseph Myers <joseph@codesourcery.com>
4960
4961 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
4962 macro.
4963
4964 2018-10-25 Florian Weimer <fweimer@redhat.com>
4965
4966 [BZ #23562]
4967 [BZ #23821]
4968 XFAIL siginfo_t si_band conform test on sparc64.
4969 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
4970 (__SI_BAND_TYPE): Only override long int default type on sparc64.
4971 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
4972 (conformtest-xfail-conds): Add sparc64-linux.
4973 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
4974 sparc64.
4975 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
4976
4977 2018-10-25 Joseph Myers <joseph@codesourcery.com>
4978
4979 * elf/elf.h (NT_MIPS_DSP): New macro.
4980 (NT_MIPS_FP_MODE): Likewise.
4981
4982 2018-10-25 Zong Li <zong@andestech.com>
4983
4984 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
4985 name by adding the file extension (.so).
4986
4987 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
4988
4989 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
4990 (test-xfail-ISO11/threads.h/linknamespace,
4991 test-xfail-ISO11/threads.h/conform): Add.
4992
4993 2018-10-24 Joseph Myers <joseph@codesourcery.com>
4994
4995 * math/gen-libm-test.py: Import os.
4996 (ALL_FLOATS_MANUAL): New constant.
4997 (ALL_FLOATS_SUFFIX): Likewise.
4998 (Ulps.all_functions): New function.
4999 (real_all_ulps): Likewise.
5000 (generate_err_table_sub): Likewise.
5001 (generate_err_table): Likewise.
5002 (main): Handle -s and -m options.
5003 * manual/libm-err-tab.pl: Remove.
5004 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5005 instead of libm-err-tab.pl.
5006 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5007 != no].
5008 * manual/install.texi (Tools for Compilation): Document
5009 requirement for Python to build manual.
5010 * INSTALL: Regenerated.
5011
5012 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5013
5014 * bits/time64.h: New file.
5015 * include/time.h: Replace internal_time_t with __time64_t.
5016 * posix/bits/types (__time64_t): Add.
5017 * stdlib/Makefile: Add bits/time64.h to includes.
5018 * time/tzfile.c: Replace internal_time_t with __time64_t.
5019
5020 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5021
5022 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5023 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5024 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5025 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5026 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5027 prototype.
5028 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5029 * posix/spawn_faction_addclose.c
5030 (__posix_spawn_file_actions_addclose): Add hidden definition.
5031 * posix/spawn_faction_adddup2.c
5032 (__posix_spawn_file_actions_adddup2): Likewise.
5033 * posix/spawn_faction_destroy.c
5034 (__posix_spawn_file_actions_destroy): Likewise.
5035 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5036 Likewise.
5037 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5038 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5039 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5040 Likewise.
5041 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5042 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5043 Likewise.
5044
5045 2018-10-24 Andreas Schwab <schwab@suse.de>
5046
5047 [BZ #18093]
5048 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5049 format cache.
5050 * elf/cache.c (print_cache): Likewise.
5051
5052 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5053
5054 * bits/timesize.h: New file.
5055 * stdlib/Makefile (headers): Add bits/timesize.h.
5056 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5057 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5058 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5059 (__SEM_PAD_AFTER_TIME): Likewise.
5060 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5061 (__SHM_PAD_AFTER_TIME): Likewise.
5062 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5063 (__MSQ_PAD_BEFORE_TIME): Likewise.
5064 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5065 (__SEM_PAD_BEFORE_TIME): Likewise.
5066 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5067 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5068 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5069 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5070 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5071 (__MSQ_PAD_BEFORE_TIME): Likewise.
5072 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5073 (__SEM_PAD_BEFORE_TIME): Likewise.
5074 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5075 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5076 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5077 (__MSQ_PAD_BEFORE_TIME): Likewise.
5078 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5079 (__SEM_PAD_BEFORE_TIME): Likewise.
5080 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5081 (__SHM_PAD_BEFORE_TIME): Likewise.
5082 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5083 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5084 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5085
5086 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5087
5088 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5089 USE_RDTSCP is defined.
5090 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5091 USE_RDTSCP is defined.
5092
5093 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5094
5095 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5096 defined.
5097
5098 [BZ #23709]
5099 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5100 independently of other flags.
5101
5102 2018-10-23 Florian Weimer <fweimer@redhat.com>
5103
5104 * time/tst-mktime2.c (N_STRINGS): Remove.
5105 (set_timezone): New function.
5106 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5107 (mktime_test1): Report localtime failure and check errno value.
5108 Use TEST_COMPARE.
5109 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5110 (do_test): Remove alarm call. Use set_timezone and array_length.
5111
5112 2018-10-23 Andreas Schwab <schwab@suse.de>
5113
5114 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5115 (__start_context): Use END instead of PSEUDO_END.
5116
5117 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5118
5119 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5120 version to 4.19.
5121
5122 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5123 version to 4.19.
5124
5125 [BZ #23793]
5126 * wcsmbs/c32rtomb.c: New file.
5127 * wcsmbs/mbrtoc32.c: Likewise.
5128 * wcsmbs/tst-c32-state.c: Likewise.
5129 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5130 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5131 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5132 (tests): Add tst-c32-state.
5133 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5134 $(gen-locales).
5135
5136 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5137
5138 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5139 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5140
5141 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5142
5143 [BZ #23794]
5144 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5145 pair and return 0 in that case, and use saved character to
5146 interpret following character.
5147 * wcsmbs/tst-c16-surrogate.c: New file.
5148 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5149 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5150 Depend on $(gen-locales)
5151
5152 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5153
5154 [BZ #23562]
5155 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5156 (struct siginfo_t): Use correct type for si_band.
5157
5158 2018-10-19 Florian Weimer <fweimer@redhat.com>
5159
5160 [BZ #23689]
5161 * resource/bits/types/struct_rusage.h (struct rusage): Update
5162 comment on struct. Remove extraneous field comment.
5163
5164 2018-10-18 David S. Miller <davem@davemloft.net>
5165
5166 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5167 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5168 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5169 sysdep_routines in subdir elf.
5170 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5171 version for __vdso_clock_gettime.
5172 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5173 Define.
5174 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5175 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5176
5177 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5178
5179 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5180
5181 * sysdeps/i386/init-arch.h: Removed.
5182 * sysdeps/i386/i586/init-arch.h: Likewise.
5183 * sysdeps/i386/i686/init-arch.h: Likewise.
5184 * sysdeps/i386/i686/hp-timing.h: Likewise.
5185 * sysdeps/x86_64/hp-timing.h: Likewise.
5186 * sysdeps/i386/isa.h: New file.
5187 * sysdeps/i386/i586/isa.h: Likewise.
5188 * sysdeps/i386/i686/isa.h: Likewise.
5189 * sysdeps/x86_64/isa.h: Likewise.
5190 * sysdeps/x86/hp-timing.h: New file.
5191 * sysdeps/x86/init-arch.h: Include <isa.h>.
5192
5193 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5194
5195 * math/libm-test-pow.inc (pow_test_data): Do not allow
5196 divide-by-zero exception for pow(+/- 0, -Inf).
5197
5198 2018-10-17 Zack Weinberg <zackw@panix.com>
5199
5200 * manual/job.texi (Job Control is Optional): Remove node, as
5201 job control has not been optional in quite some time.
5202 (Job Control): Mention briefly that systems older than
5203 POSIX.1-2001 might not support job control.
5204 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5205 defined on systems conforming to POSIX.1-2001.
5206
5207 2018-10-17 Arjun Shankar <arjun@redhat.com>
5208
5209 [BZ #22062]
5210 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5211 indentation.
5212 * (__gconv_read_conf): Mark function static.
5213 * (once): New static variable.
5214 * (__gconv_load_conf): New function.
5215 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5216 * iconv/gconv_db.c (once): Remove static variable.
5217 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5218 __gconv_read_conf.
5219 * (__gconv_find_transform): Likewise.
5220 * iconv/tst-iconv-mt.c: New test.
5221 * iconv/Makefile: Add tst-iconv_mt.
5222
5223 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5224
5225 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5226 bits/shm-pad.h.
5227 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5228 (shmatt_t): Define as __syscall_ulong_t.
5229 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5230 and [__SHM_PAD_AFTER_TIME].
5231 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5232 Define shm_segsz and associated padding based on
5233 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5234 Use __syscall_ulong_t instead of unsigned long int.
5235 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5236 unsigned long int.
5237 [__USE_MISC] (struct shm_info): Likewise.
5238 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5239 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5240 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5241 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5242 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5243 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5244 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5245 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5246 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5247 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5248 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5249
5250 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5251 bits/shmlba.h.
5252 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5253 (SHMLBA): Remove macro.
5254 (__getpagesize): Remove function declaration.
5255 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5256 <bits/shmlba.h>.
5257 (SHMLBA): Remove macro.
5258 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5259 <bits/shmlba.h>.
5260 (SHMLBA): Remove macro.
5261 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5262 <bits/shmlba.h>.
5263 (SHMLBA): Remove macro.
5264 (__getpagesize): Remove function declaration.
5265 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5266 <bits/shmlba.h>.
5267 (SHMLBA): Remove macro.
5268 (__getshmlba): Remove function declaration.
5269 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5270 (SHMLBA): Remove macro.
5271 (__getpagesize): Remove function declaration.
5272 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5273 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5274 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5275 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5276 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5277 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5278 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5279 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5280 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5281 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5282
5283 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5284
5285 [BZ #23275]
5286 * nptl/tst-mutex10.c: New File.
5287 * nptl/Makefile (tests): Add tst-mutex10.
5288 (tst-mutex10-ENV): New variable.
5289 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5290 Ensure that elision path is used if elision is available.
5291 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5292 Likewise.
5293 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5294 Likewise.
5295 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5296 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5297 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5298 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5299 Likewise.
5300 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5301 (__pthread_mutex_cond_lock_adjust): Likewise.
5302 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5303 Likewise.
5304 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5305 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5306 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5307 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5308 Add comments.
5309 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5310 Use atomic_load_relaxed and atomic_store_relaxed.
5311 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5312 Use atomic_store_relaxed.
5313
5314 2018-10-17 Andreas Schwab <schwab@suse.de>
5315
5316 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5317 * crypt/badsalttest.c (TIMEOUT): Likewise.
5318 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5319 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5320 * io/test-lfs.c (TIMEOUT): Likewise.
5321 * libio/tst-atime.c (TIMEOUT): Likewise.
5322 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5323 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5324 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5325 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5326 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5327 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5328 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5329 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5330 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5331 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5332 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5333 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5334 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5335 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5336 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5337 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5338 * nptl/tst-once2.c (TIMEOUT): Likewise.
5339 * nptl/tst-once3.c (TIMEOUT): Likewise.
5340 * nptl/tst-once4.c (TIMEOUT): Likewise.
5341 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5342 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5343 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5344 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5345 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5346 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5347 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5348 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5349 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5350 * posix/tst-chmod.c (TIMEOUT): Likewise.
5351 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5352 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5353 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5354 * posix/tst-regex2.c (TIMEOUT): Likewise.
5355 * posix/tst-waitid.c (TIMEOUT): Likewise.
5356 * rt/tst-aio.c (TIMEOUT): Likewise.
5357 * rt/tst-aio10.c (TIMEOUT): Likewise.
5358 * rt/tst-aio4.c (TIMEOUT): Likewise.
5359 * rt/tst-aio5.c (TIMEOUT): Likewise.
5360 * rt/tst-aio6.c (TIMEOUT): Likewise.
5361 * rt/tst-aio64.c (TIMEOUT): Likewise.
5362 * rt/tst-aio7.c (TIMEOUT): Likewise.
5363 * rt/tst-aio9.c (TIMEOUT): Likewise.
5364 * rt/tst-clock.c (TIMEOUT): Likewise.
5365 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5366 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5367 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5368 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5369 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5370 * rt/tst-timer4.c (TIMEOUT): Likewise.
5371 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5372 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5373 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5374 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5375 * time/tst-ftime.c (TIMEOUT): Likewise.
5376 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5377
5378 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5379
5380 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5381 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5382 for thunderX2.
5383
5384 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5385
5386 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5387 bits/sem-pad.h.
5388 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5389 instead of <bits/wordsize.h>.
5390 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5391 and [__SEM_PAD_AFTER_TIME].
5392 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5393 __syscall_ulong_t instead of unsigned long int.
5394 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5395 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5396 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5397 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5398 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5399 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5400 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5401 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5402 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5403 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5404 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5405
5406 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5407
5408 regex: simplify by using intprops.h
5409 [BZ#23744]
5410 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5411 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5412 intprops.h defines them.
5413
5414 regex: __builtin_expect → __glibc_unlikely
5415 [BZ#23744]
5416 This refactoring was prompted by a problem when the regex code is
5417 used as part of Gnulib and when the builder’s compiler does not grok
5418 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5419 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5420 Although this refactoring does not fix the problem directly,
5421 we might as well have Gawk use the now-preferred glibc style for when
5422 __builtin_expect is unavailable.
5423 * posix/regex_internal.h (BE): Remove.
5424 All uses replaced by __glibc_unlikely or __glibc_likely.
5425
5426 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5427
5428 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5429 bits/msq-pad.h.
5430 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5431 instead of <bits/wordsize.h>.
5432 (msgqnum_t): Define as __syscall_ulong_t.
5433 (msglen_t): Likewise.
5434 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5435 and [__MSQ_PAD_AFTER_TIME].
5436 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5437 __syscall_ulong_t instead of unsigned long int.
5438 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5439 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5440 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5441 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5442 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5443 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5444 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5445 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5446 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5447 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5448 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5449
5450 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5451
5452 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5453 (struct shmid_ds): Condition padding after time fields on
5454 [__WORDSIZE == 32].
5455 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5456 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5457 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5458
5459 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5460 (struct semid_ds): Condition padding after time fields on
5461 [__WORDSIZE == 32].
5462 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5463 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5464 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5465 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5466
5467 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5468 (struct msqid_ds): Condition padding after time fields on
5469 [__WORDSIZE == 32].
5470 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5471 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5472 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5473 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5474
5475 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5476
5477 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5478
5479 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5480
5481 * libio/tst-readline.c (TIMEOUT): Define.
5482
5483 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5484
5485 mktime fix for Gnulib + coreutils
5486 [BZ#23745]
5487 This fix affects only Gnulib. Problem discovered when
5488 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5489 * time/mktime.c:
5490 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5491 Do not define since it is not used. Defining an unused static
5492 function prompts a warning from GCC when Coreutils is configured
5493 with --enable-gcc-warnings.
5494
5495 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5496
5497 * benchtests/scripts/compare_bench.py (main): set float type on
5498 threshold argument.
5499
5500 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5501
5502 [BZ #23740]
5503 * localedata/locales/kl_GL (mon): Update, the relative case.
5504 (alt_mon): Add, fill with month names in the nominative case.
5505 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5506 (d_fmt): Set to "%b %d %Y".
5507
5508 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5509
5510 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5511 <bits/mman-linux.h>.
5512 (PROT_READ): Don't define here.
5513 (PROT_WRITE): Likewise.
5514 (PROT_EXEC): Likewise.
5515 (PROT_NONE): Likewise.
5516 (PROT_GROWSDOWN): Likewise.
5517 (PROT_GROWSUP): Likewise.
5518 (MAP_SHARED): Likewise.
5519 (MAP_PRIVATE): Likewise.
5520 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5521 [__USE_MISC] (MAP_FILE): Likewise.
5522 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5523 [__USE_MISC] (MAP_ANON): Likewise.
5524 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5525 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5526 (MCL_CURRENT): Likewise.
5527 (MCL_FUTURE): Likewise.
5528 (MCL_ONFAULT): Likewise.
5529 [__USE_MISC] (MADV_NORMAL): Likewise.
5530 [__USE_MISC] (MADV_RANDOM): Likewise.
5531 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5532 [__USE_MISC] (MADV_WILLNEED): Likewise.
5533 [__USE_MISC] (MADV_DONTNEED): Likewise.
5534 [__USE_MISC] (MADV_FREE): Likewise.
5535 [__USE_MISC] (MADV_REMOVE): Likewise.
5536 [__USE_MISC] (MADV_DONTFORK): Likewise.
5537 [__USE_MISC] (MADV_DOFORK): Likewise.
5538 [__USE_MISC] (MADV_HWPOISON): Likewise.
5539 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5540 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5541 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5542 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5543 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5544 (__MAP_ANONYMOUS): New macro.
5545 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5546 <bits/mman-linux.h> inclusion.
5547 (MAP_FIXED): Likewise.
5548 (MS_SYNC): Likewise.
5549 (MS_ASYNC): Likewise.
5550 (MS_INVALIDATE): Likewise.
5551 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5552 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5553 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5554 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5555 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5556 [__USE_MISC] (MADV_DODUMP): Likewise.
5557 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5558 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5559
5560 [BZ #23735]
5561 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5562 Define.
5563 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5564 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5565 Add test-nldbl-redirect.
5566 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5567 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5568 $(objpfx)libnldbl_nonshared.a.
5569
5570 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5571
5572 * support/support.h (support_objdir_elf_ldso): New variable.
5573 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5574 * support/Makefile (CFLAGS-support_paths.c): Add definition
5575 for OBJDIR_ELF_LDSO_PATH.
5576 * support/test-container.c (main): Search for the ld.so
5577 which is also used by the testsuite.
5578
5579 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5580
5581 [BZ #20209]
5582 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5583 should be "sap" rather than "sab".
5584 (day): Fix spelling of Sunday, should be "sapaat" rather than
5585 "sabaat".
5586
5587 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5588
5589 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5590
5591 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5592
5593 [BZ #19444]
5594 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5595 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5596 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5597
5598 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5599
5600 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5601
5602 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5603
5604 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5605 Add -mrtm.
5606 (CFLAGS-elision-unlock.c): Likewise.
5607 (CFLAGS-elision-timed.c): Likewise.
5608 (CFLAGS-elision-trylock.c): Likewise.
5609 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5610
5611 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5612
5613 [BZ #21037]
5614 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5615 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5616 new fd_to_filename interface.
5617 * libio/freopen64.c (freopen64): Likewise.
5618 * libio/tst-memstream.h: New file.
5619 * libio/tst-memstream4.c: Likewise.
5620 * libio/tst-wmemstream4.c: Likewise.
5621 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5622 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5623 and remove internal dynamic allocation.
5624
5625 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5626
5627 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5628 (MREMAP_MAYMOVE): Do not define here.
5629 [__USE_GNU] (MREMAP_FIXED): Likewise.
5630 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5631 (MREMAP_MAYMOVE): Define here instead.
5632 [__USE_GNU] (MREMAP_FIXED): Likewise.
5633 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5634 (MREMAP_MAYMOVE): Remove.
5635 [__USE_GNU] (MREMAP_FIXED): Likewise.
5636
5637 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5638
5639 * math/fromfp.h: Do not include <math_private.h>.
5640 * math/s_cacosh_template.c: Likewise.
5641 * math/s_casin_template.c: Likewise.
5642 * math/s_casinh_template.c: Likewise.
5643 * math/s_ccos_template.c: Likewise.
5644 * math/s_cproj_template.c: Likewise.
5645 * math/s_fdim_template.c: Likewise.
5646 * math/s_fmaxmag_template.c: Likewise.
5647 * math/s_fminmag_template.c: Likewise.
5648 * math/s_iseqsig_template.c: Likewise.
5649 * math/s_ldexp_template.c: Likewise.
5650 * math/s_nextdown_template.c: Likewise.
5651 * math/w_log1p_template.c: Likewise.
5652 * math/w_scalbln_template.c: Likewise.
5653 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5654 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5655 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5656 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5657 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5658 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5659 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5660 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5661 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5662 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5663 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5664 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5665 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5666 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5667 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5668 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5669 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5670 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5671 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5672 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5673 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5674 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5675 * sysdeps/ieee754/k_standardf.c: Likewise.
5676 * sysdeps/ieee754/k_standardl.c: Likewise.
5677 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5678 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5679 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5680 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5681 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5682 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5683 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5684 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5685 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5686 * sysdeps/ieee754/s_signgam.c: Likewise.
5687 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5688 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5689 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5690 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5691 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5692 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5693 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5694 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5695 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5696 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5697 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5698 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5699 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5700 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5701 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5702 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5703 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5704 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5705 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5706 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5707 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5708 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5709 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5710 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5711 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5712 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5713 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5714 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5715 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5716 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5717 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5718 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5719 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5720 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5721 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5722 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5723 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5724 <math_private.h>.
5725 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5726
5727 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5728
5729 [BZ #23716]
5730 * sysdeps/i386/dl-cet.c: Removed.
5731 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5732 prototype.
5733 (_dl_runtime_profile_shstk): Likewise.
5734 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5735 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5736
5737 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5738
5739 [BZ #23579]
5740 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5741 do_test_with_invalid_iov): New tests.
5742 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5743 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5744 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5745 errno is ENOSYS.
5746 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5747 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5748 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5749
5750 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5751
5752 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5753 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5754 (MATH_REDIRECT_BINARY_ARGS): New macro.
5755 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5756 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5757 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5758 header inclusion.
5759 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5760 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5761 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5762 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5763 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5764 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5765 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5766 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5767 Likewise.
5768 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5769 Likewise.
5770 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5771 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5772 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5773 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5774 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5775 Likewise.
5776 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5777 Likewise.
5778 * sysdeps/generic/math_private_calls.h
5779 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5780 Do not declare and define as an inline function.
5781 * math/divtc3.c (__divtc3): Use copysign functions instead of
5782 __copysign variants.
5783 * math/multc3.c (__multc3): Likewise.
5784 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5785 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5786 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5787 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5788 Likewise.
5789 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5790 (__ieee754_yn): Likewise.
5791 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5792 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5793 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5794 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5795 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5796 (__sin): Likewise.
5797 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5798 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5799 Likewise.
5800 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5801 Likewise.
5802 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5803 Likewise.
5804 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5805 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5806 Likewise.
5807 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5808 (__ieee754_ynf): Likewise.
5809 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5810 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5811 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5812 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5813 Likewise.
5814 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5815 (__ieee754_ynl): Likewise.
5816 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5817 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5818 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5819 Likewise.
5820 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5821 (__ieee754_ynl): Likewise.
5822 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5823 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5824 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5825 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5826 Likewise.
5827 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5828 (__ieee754_ynl)
5829 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5830 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5831 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5832 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5833 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5834
5835 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5836 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5837 using MATH_REDIRECT.
5838 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5839 header inclusion.
5840 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5841 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5842 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5843 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5844 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5845 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5846 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5847 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5848 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5849 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5851 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5852 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5853 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5854 (round): Redirect to __round.
5855 (__roundl): Call round instead of __round.
5856 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5857 Remove macro.
5858 [_ARCH_PWR5X] (__roundf): Likewise.
5859 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5860 functions instead of __round variants.
5861 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5862 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5863 Likewise.
5864 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
5865 Likewise.
5866 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
5867 Likewise.
5868 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5869 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
5870 __lroundl.
5871 (__ieee754_expl): Call roundl instead of __roundl.
5872
5873 2018-09-27 Andreas Schwab <schwab@suse.de>
5874
5875 [BZ #23717]
5876 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
5877 (do_test): Make st1 static.
5878
5879 2018-09-26 Andreas Schwab <schwab@suse.de>
5880
5881 [BZ #23707]
5882 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
5883 * elf/Makefile (tests): Add tst-unwind-ctor.
5884 (modules-names): Add tst-unwind-ctor-lib.
5885 ($(objpfx)tst-unwind-ctor): Depend on
5886 $(objpfx)tst-unwind-ctor-lib.so.
5887
5888 2018-09-26 Joseph Myers <joseph@codesourcery.com>
5889
5890 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
5891 file. Most contents moved from ....
5892 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
5893 and include <bits/mman-map-flags-generic.h>.
5894 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5895 (sysdep_headers): Add bits/mman-map-flags-generic.h.
5896 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
5897 <bits/mman-map-flags-generic.h>.
5898 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
5899 macros defined in <bits/mman-map-flags-generic.h>.
5900 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
5901 <bits/mman-map-flags-generic.h>.
5902 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
5903 defined in <bits/mman-map-flags-generic.h>.
5904
5905 2018-09-26 Andreas Schwab <schwab@suse.de>
5906
5907 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
5908 output.
5909
5910 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
5911 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5912 Fangrui Song <maskray@google.com>
5913
5914 [BZ #20480]
5915 * config.make.in (have-textrel_ifunc): New define.
5916 * configure.ac: Add check if linker supports textrel relocation with
5917 ifunc.
5918 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
5919 tst-ifunc-textrel.
5920 (CFLAGS-tst-ifunc-textrel.c): New rule.
5921 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
5922 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
5923 * elf/tst-ifunc-textrel.c: New file.
5924
5925 2018-09-25 Joseph Myers <joseph@codesourcery.com>
5926
5927 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
5928 <bits/procfs-prregset.h>.
5929 (prgregset_t): Define using __prgregset_t.
5930 (prfpregset_t): Define using __prfpregset_t.
5931 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5932 (sysdep_headers): Add bits/procfs-prregset.h.
5933 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
5934 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
5935 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
5936 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
5937
5938 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
5939 <bits/procfs-id.h> and <bits/procfs-extra.h>.
5940 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
5941 pr_uid and pr_gid.
5942 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5943 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
5944 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
5945 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
5946 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
5947 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
5948 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
5949 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
5950 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
5951 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
5952 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
5953 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
5954 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
5955 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
5956 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
5957 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
5958 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
5959 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
5960 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
5961 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
5962 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
5963 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
5964 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
5965 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
5966
5967 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
5968 AArch64 version. Include <bits/procfs.h>.
5969 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5970 (sysdep_headers): Add bits/procfs.h.
5971 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
5972 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
5973 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
5974 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
5975 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
5976 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
5977 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
5978 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
5979 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
5980 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
5981 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
5982 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
5983 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
5984 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
5985 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
5986 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
5987 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
5988
5989 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5990
5991 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
5992 Use libsupport.
5993
5994 2018-09-25 Arjun Shankar <arjun@redhat.com>
5995
5996 * iconv/gconv_int.h (__gconv_path_elem): Remove.
5997 (__gconv_max_path_elem_len): Likewise.
5998 (__gconv_nmodules): Likewise.
5999 (__gconv_get_path): Likewise.
6000 (path_elem): Move to ...
6001 * iconv/gconv_conf.c: ... here.
6002 (__gconv_get_path): Mark function static.
6003 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6004 * iconv/gconv_open.c: ... here.
6005
6006 2018-09-24 Andreas Schwab <schwab@suse.de>
6007
6008 * scripts/haveversions.awk: New file.
6009 * Makerules ($(common-objpfx)Versions.def)
6010 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6011 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6012 Move rules ...
6013 * Makeconfig ($(common-objpfx)Versions.def)
6014 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6015 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6016 ... here.
6017 ($(common-objpfx)Versions.mk): New rule. Include it.
6018 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6019 Emit error if build-obsolete-nsl = yes.
6020 * manual/install.texi (Configuring and compiling): Describe
6021 --enable-obsolete-nsl as unavaiable after version 2.28.
6022 * INSTALL: Regenerate.
6023
6024 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6025
6026 * NEWS: Add note about new TLE support on powerpc64le.
6027 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6028 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6029 __ununsed1.
6030 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6031 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6032 * sysdeps/powerpc/powerpc32/sysdep.h,
6033 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6034 ABORT_TRANSACTION): Remove macros.
6035 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6036 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6037 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6038 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6039 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6040 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6041 usage.
6042 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6043
6044 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6045
6046 [BZ #10425]
6047 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6048 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6049 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6050 which is the same as in it_IT.
6051 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6052 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6053
6054 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6055
6056 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6057 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6058 using MATH_REDIRECT.
6059 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6060 header inclusion.
6061 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6062 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6063 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6064 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6065 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6066 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6067 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6068 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6069 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6070 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6071 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6072 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6073 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6074 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6075 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6076 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6077 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6078 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6079 (ceil): Redirect to __ceil.
6080 (floor): Redirect to __floor.
6081 (trunc): Redirect to __trunc.
6082 (__truncl): Call trunc instead of __trunc.
6083 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6084 Remove macro.
6085 [_ARCH_PWR5X] (__truncf): Likewise.
6086 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6087 trunc functions instead of __trunc variants.
6088 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6089 Likewise.
6090 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6091 Likewise.
6092 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6093 Likewise.
6094 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6095 Likewise.
6096
6097 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6098 [__i586__ || __pentium__].
6099 [__i486__]: Handle explicitly.
6100 (HAS_CPUID): Define to 1 if above macros are undefined.
6101 (HAS_I586): Likewise.
6102 (HAS_I686): Likewise.
6103
6104 2018-09-20 Florian Weimer <fweimer@redhat.com>
6105
6106 * misc/tst-gethostid.c: New file.
6107 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6108 (tst-gethostid): Link with -ldl.
6109
6110 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6111
6112 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6113 value from gethostbyname_r.
6114
6115 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6116
6117 * stdlib/tst-setcontext9.c (f1): Rename to...
6118 (f1a): ... this.
6119 (f1b): New function implementing lower half of f1 in alternate stack.
6120
6121 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6122
6123 Fix mktime localtime offset confusion
6124 [BZ #23603]
6125 * include/time.h (__mktime_internal): The localtime offset is now
6126 of type long int instead of time_t. This is the longstanding type
6127 in glibc, and it is more than enough to represent difference
6128 between localtime and gmtime even if it is 32 bits and time_t is
6129 64. Changing it now will let us avoid an unnecessary change when
6130 time_t is widened to 64 bits on 32-bit platforms.
6131 * time/mktime-internal.h (mktime_offset_t): Now long int.
6132
6133 Merge mktime, timegm from upstream Gnulib
6134 [BZ #23603][BZ #16346]
6135 This fixes some obscure problems with integer overflow.
6136 Although it looks scary, it is almost all a byte-for-byte copy
6137 from Gnulib, and the Gnulib code has been tested reasonably well.
6138 * include/intprops.h: New file, copied from Gnulib.
6139 * include/verify.h, time/mktime-internal.h:
6140 New tiny files, simplified from Gnulib.
6141 * time/mktime.c: Copy from Gnulib. This has the following changes:
6142 Do not include config.h if DEBUG_MKTIME is nonzero.
6143 Include stdbool.h, intprops.h, verify.h.
6144 Include string.h only if needed.
6145 Include stdlib.h on MS-Windows.
6146 Include mktime-internal.h.
6147 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6148 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6149 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6150 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6151 simplify later conditionals; default the others to zero. Use
6152 these conditionals to express only the code needed on the current
6153 platform. In uses of these conditionals, explicitly spell out how
6154 _LIBC affects things, so it’s easier to review from a glibc
6155 viewpoint.
6156 (WRAPV): Remove; no longer needed now that we have
6157 systematic overflow checking.
6158 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6159 compartmentalize tzset issues. Move system-dependent tzsettish
6160 code here from mktime.
6161 (verify): Remove; now done by verify.h. All uses changed.
6162 (long_int): Use a more-conservative definition, to avoid
6163 integer overflow.
6164 (SHR): Remove, replacing with ...
6165 (shr): New function, which means we needn’t worry about side
6166 effects in args, and conversion analysis is simpler.
6167 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6168 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6169 (time_t_avg, time_t_add_ok): Remove.
6170 (mktime_min, mktime_max): New constants.
6171 (leapyear, isdst_differ): Use bool for booleans.
6172 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6173 Use long_int, not time_t, for mktime differences.
6174 (long_int_avg): New function, replacing time_t_avg.
6175 INT_ADD_WRAPV replaces time_t_add_ok.
6176 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6177 All uses changed.
6178 (convert_time): New function.
6179 (ranged_convert): Use it.
6180 (__mktime_internal): Last arg now points to mktime_offset_t, not
6181 time_t. All uses changed. This is a no-op on glibc, where
6182 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6183 offset guess. Directly check for integer overflow instead of
6184 using a heuristic that works only 99.9...% of the time.
6185 Access *OFFSET only once, to avoid an unlikely race if the
6186 compiler delays a load and if this cascades into a signed integer
6187 overflow.
6188 (mktime): Move tzsettish code to my_tzset, and move
6189 localtime_offset to within mktime so that it doesn’t
6190 need a separate ifdef.
6191 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6192 instead of localtime.
6193 * time/timegm.c: Copy from Gnulib. This has the following changes:
6194 Include mktime-internal.h.
6195 [!_LIBC]: Include config.h and time.h. Do not include
6196 timegm.h or time_r.h. Make __mktime_internal a macro,
6197 and include mktime-internal.h to get its declaration.
6198 (timegm): Temporary is now mktime_offset_t, not time_t.
6199 This affects only Gnulib.
6200
6201 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6202
6203 [BZ #23637]
6204 * string/test-strstr.c (pr23637): New function.
6205 (test_main): Add tests with longer needles.
6206 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6207 * string/strstr.c (AVAILABLE): Likewise.
6208
6209 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6210
6211 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6212
6213 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6214
6215 * NEWS: Mention pow improvements.
6216 * math/Makefile (type-double-routines): Add e_pow_log_data.
6217 * sysdeps/generic/math_private.h (__exp1): Remove.
6218 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6219 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6220 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6221 contraction.
6222 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6223 (exp_inline): Remove.
6224 (__ieee754_exp): Only single double input is handled.
6225 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6226 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6227 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6228 (__pow_log_data): Define.
6229 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6230 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6231 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6232 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6233 contraction.
6234 (CFLAGS-e_pow-fma4.c): Likewise.
6235
6236 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6237
6238 Simplify tzfile fstat failure code
6239 [BZ #21716]
6240 * time/tzfile.c (__tzfile_read): Simplify slightly.
6241
6242 Fix tzfile low-memory assertion failure
6243 [BZ #21716]
6244 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6245 when registering time zone abbreviations.
6246
6247 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6248
6249 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6250 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6251 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6252 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6253 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6254 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6255 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6256 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6257 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6258
6259 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6260 __ceil.
6261 (__ceill): Call ceil instead of __ceil.
6262 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6263 __floor.
6264 (__floorl): Call floor instead of __floor.
6265
6266 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6267
6268 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6269 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6270 using MATH_REDIRECT.
6271 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6272 header inclusion.
6273 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6274 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6275 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6276 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6277 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6278 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6279 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6280 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6281 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6282 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6285 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6286 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6287 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6288 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6289 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6290 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6291 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6292 Remove macro.
6293 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6294 functions instead of __ceil variants.
6295 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6296 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6297 Likewise.
6298 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6299 Likewise.
6300 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6301 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6302 Likewise.
6303 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6304 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6305
6306 [BZ #21286]
6307 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6308 constant.
6309 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6310 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6311 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6312 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6313 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6314 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6315 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6316 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6317 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6318 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6319 (ILL_BADIADDR): Remove constant.
6320 (TRAP_BRANCH): Likewise.
6321 (TRAP_HWBKPT): Likewise.
6322
6323 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6324
6325 [BZ #23656]
6326 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6327 Remove [_MIPS_SIM = _ABIN32] conditional case.
6328 (struct elf_prpsinfo): Likewise.
6329
6330 [BZ #23649]
6331 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6332 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6333 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6334 Likewise.
6335 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6336 elf_prpsinfo): Likewise.
6337 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6338 elf_prpsinfo): Likewise.
6339 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6340 Likewise.
6341
6342 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6343 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6344 using MATH_REDIRECT.
6345 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6346 header inclusion.
6347 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6348 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6349 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6350 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6351 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6352 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6353 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6354 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6355 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6356 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6357 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6358 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6359 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6360 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6361 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6362 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6363 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6364 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6365 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6366 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6367 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6368 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6369 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6370 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6371 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6372 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6373 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6374 __rint variants.
6375 * math/e_scalbf.c (invalid_fn): Likewise.
6376 * math/e_scalbl.c (invalid_fn): Likewise.
6377 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6378 Likewise.
6379 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6380 Likewise.
6381 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6382 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6383 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6384 Likewise.
6385 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6386 Likewise.
6387 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6388 Likewise.
6389 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6390 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6391
6392 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6393 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6394 New macro.
6395 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6396 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6397 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6398 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6399 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6400 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6401 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6402 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6403 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6404 && !NO_MATH_REDIRECT] (floor): Likewise.
6405 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6406 header inclusion.
6407 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6408 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6409 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6410 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6411 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6412 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6413 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6414 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6415 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6417 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6418 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6419 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6420 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6421 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6422 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6423 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6424 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6425 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6426 Remove macro.
6427 [_ARCH_PWR5X] (__floorf): Likewise.
6428 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6429 inline function.
6430 [__SSE4_1__] (__floorf): Likewise.
6431 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6432 instead of __floor variants.
6433 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6434 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6435 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6436 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6437 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6438 * math/w_tgamma_compat.c (__tgamma): Likewise.
6439 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6440 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6441 * math/w_tgammal_compat.c (__tgammal): Likewise.
6442 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6443 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6444 Likewise.
6445 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6446 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6447 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6448 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6449 Likewise.
6450 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6451 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6452 Likewise.
6453 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6454 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6455 Likewise.
6456 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6457 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6458 Likewise.
6459 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6460 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6461 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6462 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6463 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6464 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6465
6466 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6467
6468 * elf/Makefile (modules-names-tests): New variable.
6469
6470 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6471
6472 * NEWS: Mention log2 improvements.
6473 * math/Makefile (type-double-routines): Add e_log2_data.
6474 * sysdeps/i386/fpu/e_log2_data.c: New file.
6475 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6476 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6477 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6478 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6479 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6480 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6481
6482 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6483
6484 * NEWS: Mention log improvement.
6485 * math/Makefile (type-double-routines): Add e_log_data.
6486 * sysdeps/i386/fpu/e_log_data.c: New file.
6487 * sysdeps/ia64/fpu/e_log_data.c: New file.
6488 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6489 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6490 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6491 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6492 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6493 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6494
6495 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6496 Xuepeng Guo <xuepeng.guo@intel.com>
6497
6498 [BZ #23606]
6499 * sysdeps/i386/start.S: Include <sysdep.h>
6500 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6501 enabled. Add cfi_undefined (eip).
6502
6503 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6504
6505 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6506 (MOVQ): Likewise.
6507 (EXTRACT_WORDS64): Likewise.
6508 (INSERT_WORDS64): Likewise.
6509 (GET_FLOAT_WORD): Likewise.
6510 (SET_FLOAT_WORD): Likewise.
6511
6512 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6513 argument.
6514 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6515 build, but not for second build if --full-gcc. Use
6516 --enable-languages=all for second build if --full-gcc.
6517 (get_parser): Add --full-gcc option.
6518 (main): Update call to Context.
6519
6520 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6521
6522 [BZ #10797]
6523 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6524 Single Quotation Mark).
6525 (thousands_sep): Likewise.
6526 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6527 * localedata/locales/it_IT (thousands_sep): Use ".".
6528 (grouping): Use "3;3".
6529
6530 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6531
6532 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6533 x86_64 and i686 configs using --enable-obsolete-rpc
6534 --enable-obsolete-nsl.
6535
6536 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6537
6538 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6539
6540 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6541
6542 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6543 Increment size of new_argv by one.
6544
6545 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6546
6547 [BZ #17426]
6548 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6549 * localedata/locales/ar_IN (d_fmt): Likewise.
6550 * localedata/locales/bhb_IN (d_fmt): Likewise.
6551 * localedata/locales/bho_IN (d_fmt): Likewise.
6552 * localedata/locales/bn_BD (d_fmt): Likewise.
6553 * localedata/locales/bn_IN (d_fmt): Likewise.
6554 * localedata/locales/doi_IN (d_fmt): Likewise.
6555 * localedata/locales/gu_IN (d_fmt): Likewise.
6556 * localedata/locales/hi_IN (d_fmt): Likewise.
6557 * localedata/locales/hne_IN (d_fmt): Likewise.
6558 * localedata/locales/kn_IN (d_fmt): Likewise.
6559 * localedata/locales/mag_IN (d_fmt): Likewise.
6560 * localedata/locales/mai_IN (d_fmt): Likewise.
6561 * localedata/locales/mjw_IN (d_fmt): Likewise.
6562 * localedata/locales/ml_IN (d_fmt): Likewise.
6563 * localedata/locales/mni_IN (d_fmt): Likewise.
6564 * localedata/locales/mr_IN (d_fmt): Likewise.
6565 * localedata/locales/pa_IN (d_fmt): Likewise.
6566 * localedata/locales/raj_IN (d_fmt): Likewise.
6567 * localedata/locales/sat_IN (d_fmt): Likewise.
6568 * localedata/locales/sd_IN (d_fmt): Likewise.
6569 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6570 * localedata/locales/ta_IN (d_fmt): Likewise.
6571 * localedata/locales/ta_LK (d_fmt): Likewise.
6572 * localedata/locales/tcy_IN (d_fmt): Likewise.
6573 * localedata/locales/ur_IN (d_fmt): Likewise.
6574
6575 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6576 * localedata/locales/ks_IN (d_fmt): Likewise.
6577 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6578
6579 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6580 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6581 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6582 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6583
6584 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6585
6586 * NEWS: Mention exp and exp2 improvements.
6587 * math/Makefile (libm-support): Remove t_exp.
6588 (type-double-routines): Add math_err and e_exp_data.
6589 * sysdeps/aarch64/libm-test-ulps: Update.
6590 * sysdeps/arm/libm-test-ulps: Update.
6591 * sysdeps/i386/fpu/e_exp_data.c: New file.
6592 * sysdeps/i386/fpu/math_err.c: New file.
6593 * sysdeps/i386/fpu/t_exp.c: Remove.
6594 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6595 * sysdeps/ia64/fpu/math_err.c: New file.
6596 * sysdeps/ia64/fpu/t_exp.c: Remove.
6597 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6598 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6599 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6600 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6601 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6602 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6603 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6604 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6605 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6606 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6607 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6608 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6609 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6610 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6611 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6612 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6613
6614 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6615
6616 * sysdeps/alpha/fpu/math_private.h: Remove.
6617
6618 * sysdeps/generic/math_private.h
6619 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6620 Move this inline function ....
6621 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6622 * include/math.h [!_ISOMAC]: To here....
6623
6624 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6625
6626 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6627 code ....
6628 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6629 * include/fenv.h [!_ISOMAC]: ... to here.
6630 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6631 (feraiseexcept): Likewise.
6632 * math/fromfp.h: Do not include <fenv_private.h>.
6633 * math/s_cexp_template.c: Likewise.
6634 * math/s_csin_template.c: Likewise.
6635 * math/s_csinh_template.c: Likewise.
6636 * math/s_ctan_template.c: Likewise.
6637 * math/s_ctanh_template.c: Likewise.
6638 * math/s_iseqsig_template.c: Likewise.
6639 * math/w_acos_compat.c: Likewise.
6640 * math/w_acosf_compat.c: Likewise.
6641 * math/w_acosl_compat.c: Likewise.
6642 * math/w_asin_compat.c: Likewise.
6643 * math/w_asinf_compat.c: Likewise.
6644 * math/w_asinl_compat.c: Likewise.
6645 * math/w_j0_compat.c: Likewise.
6646 * math/w_j0f_compat.c: Likewise.
6647 * math/w_j0l_compat.c: Likewise.
6648 * math/w_j1_compat.c: Likewise.
6649 * math/w_j1f_compat.c: Likewise.
6650 * math/w_j1l_compat.c: Likewise.
6651 * math/w_jn_compat.c: Likewise.
6652 * math/w_jnf_compat.c: Likewise.
6653 * math/w_log10_compat.c: Likewise.
6654 * math/w_log10f_compat.c: Likewise.
6655 * math/w_log10l_compat.c: Likewise.
6656 * math/w_log2_compat.c: Likewise.
6657 * math/w_log2f_compat.c: Likewise.
6658 * math/w_log2l_compat.c: Likewise.
6659 * math/w_log_compat.c: Likewise.
6660 * math/w_logf_compat.c: Likewise.
6661 * math/w_logl_compat.c: Likewise.
6662 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6663 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6664 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6665 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6666 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6667 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6668 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6669 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6670 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6671 * sysdeps/ieee754/k_standardl.c: Likewise.
6672 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6673 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6674 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6675 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6676 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6677 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6678 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6679 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6680 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6681 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6682 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6683 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6684 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6685 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6686 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6687 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6688 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6689 * math/w_ilogb_template.c: Include <fenv.h> instead of
6690 <fenv_private.h>.
6691 * math/w_llogb_template.c: Likewise.
6692 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6693 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6694
6695 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6696
6697 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6698 * math/fromfp.h: Include <fenv_private.h>.
6699 * math/math-narrow.h: Likewise.
6700 * math/s_cexp_template.c: Likewise.
6701 * math/s_csin_template.c: Likewise.
6702 * math/s_csinh_template.c: Likewise.
6703 * math/s_ctan_template.c: Likewise.
6704 * math/s_ctanh_template.c: Likewise.
6705 * math/s_iseqsig_template.c: Likewise.
6706 * math/w_acos_compat.c: Likewise.
6707 * math/w_acosf_compat.c: Likewise.
6708 * math/w_acosl_compat.c: Likewise.
6709 * math/w_asin_compat.c: Likewise.
6710 * math/w_asinf_compat.c: Likewise.
6711 * math/w_asinl_compat.c: Likewise.
6712 * math/w_ilogb_template.c: Likewise.
6713 * math/w_j0_compat.c: Likewise.
6714 * math/w_j0f_compat.c: Likewise.
6715 * math/w_j0l_compat.c: Likewise.
6716 * math/w_j1_compat.c: Likewise.
6717 * math/w_j1f_compat.c: Likewise.
6718 * math/w_j1l_compat.c: Likewise.
6719 * math/w_jn_compat.c: Likewise.
6720 * math/w_jnf_compat.c: Likewise.
6721 * math/w_llogb_template.c: Likewise.
6722 * math/w_log10_compat.c: Likewise.
6723 * math/w_log10f_compat.c: Likewise.
6724 * math/w_log10l_compat.c: Likewise.
6725 * math/w_log2_compat.c: Likewise.
6726 * math/w_log2f_compat.c: Likewise.
6727 * math/w_log2l_compat.c: Likewise.
6728 * math/w_log_compat.c: Likewise.
6729 * math/w_logf_compat.c: Likewise.
6730 * math/w_logl_compat.c: Likewise.
6731 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6732 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6733 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6734 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6735 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6736 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6737 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6738 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6739 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6740 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6741 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6742 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6743 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6744 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6745 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6746 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6747 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6748 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6749 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6750 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6751 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6752 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6753 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6754 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6755 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6756 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6757 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6758 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6759 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6760 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6761 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6762 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6763 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6764 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6765 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6766 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6767 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6768 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6769 * sysdeps/ieee754/k_standardl.c: Likewise.
6770 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6771 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6772 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6773 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6774 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6775 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6776 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6777 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6778 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6779 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6780 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6781 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6782 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6783 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6784 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6785 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6786 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6787 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6788 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6789 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6790 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6791 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6792 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6793 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6794 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6795 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6796 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6797 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6798 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6799 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6800 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6801 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6802 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6803 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6804 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6805 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6806 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6807 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6808 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6809 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6810 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6811 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6812 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6813 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6814 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6815 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6816 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6817 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6818 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6819 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6820 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6821 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6822 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6823 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6824 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6825 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6826 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6827 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6828 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6829 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6830 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6831 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6832 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6833 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6834 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6835 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6836 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6837 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6838 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6839 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6840 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6841
6842 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6843
6844 [BZ #20271]
6845 * include/stdio.h (__libc_fatal): Mention newline in comment.
6846 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6847 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6848 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6849 * nss/nsswitch.c (__nss_next2): Likewise.
6850 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6851 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6852 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6853 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6854 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6855 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6856 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6857 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6858 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6859 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6860 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6861 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6862 (__netlink_assert_response): Likewise.
6863
6864 2018-08-31 Joseph Myers <joseph@codesourcery.com>
6865
6866 * conform/glibcconform.py: New file.
6867 * conform/list-header-symbols.py: Likewise.
6868 * conform/list-header-symbols.pl: Remove.
6869 * conform/Makefile (tests-special): Only add linknamespace tests
6870 if [PYTHON].
6871 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
6872
6873 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
6874
6875 [BZ #23597]
6876 * support/Makefile (libsupport-routines): Add
6877 support_copy_file_range and xcopy_file_range.
6878 * support/support.h: Include <sys/types.h>.
6879 (support_copy_file_range): New prototype.
6880 * support/support_copy_file_range.c: New file. Copied and
6881 modified from io/copy_file_range-compat.c.
6882 * support/test-container.c (copy_one_file): Call xcopy_file_rang
6883 instead of copy_file_range.
6884 * support/xcopy_file_range.c: New file.
6885 * support/xunistd.h (xcopy_file_range): New prototype.
6886
6887 2018-08-30 Carlos O'Donell <carlos@redhat.com>
6888
6889 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
6890 xpthread_create and xpthread_join.
6891
6892 2018-08-30 Florian Weimer <fweimer@redhat.com>
6893
6894 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
6895
6896 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
6897
6898 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
6899 if malloc fails.
6900
6901 2018-08-29 Joseph Myers <joseph@codesourcery.com>
6902
6903 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
6904 and minus_oflow as non-finite.
6905
6906 2018-08-28 Joseph Myers <joseph@codesourcery.com>
6907
6908 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
6909 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
6910 moved to fenv_private.h except for ...
6911 (TOINT_INTRINSICS): Kept in math_private.h.
6912 (roundtoint): Likewise.
6913 (converttoint): Likewise.
6914 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
6915 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6916 * sysdeps/arm/math_private.h: Remove.
6917 * sysdeps/generic/fenv_private.h: New file. Contents moved from
6918 ....
6919 * sysdeps/generic/math_private.h: ... this file. Include
6920 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
6921 Include <fenv_private.h>. Remove functions and macros moved to
6922 fenv_private.h.
6923 * sysdeps/i386/fpu/math_private.h: Remove.
6924 * sysdeps/mips/math_private.h: Move to ....
6925 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
6926 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
6927 [__mips_hard_float] conditional. Include next <fenv_private.h>.
6928 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
6929 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6930 * sysdeps/powerpc/fpu/math_private.h: Do not include
6931 <fenv_private.h>.
6932 * sysdeps/riscv/rvf/math_private.h: Move to ....
6933 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
6934 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
6935 <fenv_private.h>.
6936 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
6937 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6938 * sysdeps/sparc/fpu/math_private.h: Remove.
6939 * sysdeps/i386/fpu/fenv_private.h: Move to ....
6940 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
6941 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
6942 <fenv_private.h>.
6943 * sysdeps/x86_64/fpu/math_private.h: Do not include
6944 <sysdeps/i386/fpu/fenv_private.h>.
6945
6946 2018-08-28 Florian Weimer <fweimer@redhat.com>
6947
6948 [BZ #23578]
6949 * posix/tst-regcomp-truncated.c: New file.
6950 * posix/Makefile (tests): Add it.
6951 (tst-regcomp-truncated.out): Depend on generated locales.
6952
6953 2018-08-28 Florian Weimer <fweimer@redhat.com>
6954
6955 * support/test-container.c (main): Treat unshare failure with
6956 EPERM as an unsupported test.
6957
6958 2018-08-28 Florian Weimer <fweimer@redhat.com>
6959
6960 [BZ #23520]
6961 nscd: Fix use-after-free in addgetnetgrentX and its callers.
6962 * nscd/netgroupcache.c
6963 (addgetnetgrentX): Add tofreep parameter. Do not free
6964 heap-allocated buffer.
6965 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
6966 (addgetnetgrentX_ignore): New function.
6967 (addgetnetgrent): Call it.
6968 (readdgetnetgrent): Likewise.
6969
6970 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6971
6972 * string/memmem.c: Use memcmp for first match.
6973
6974 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
6975
6976 [BZ #17426]
6977 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
6978
6979 2018-08-27 DJ Delorie <dj@redhat.com>
6980
6981 * support/Makefile (others): Don't list programs explicitly as a
6982 dependency of "others".
6983
6984 2018-08-27 Joseph Myers <joseph@codesourcery.com>
6985
6986 * sysdeps/generic/math-tests-trap-force.h: New file.
6987 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
6988 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
6989 * sysdeps/powerpc/math-tests.h: Remove file.
6990 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
6991
6992 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
6993 Torvald Riegel <triegel@redhat.com>
6994
6995 [BZ #23538]
6996 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
6997 Update r to include the set wake-request flag if waiters are
6998 remaining after spinning.
6999
7000 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7001
7002 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7003
7004 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7005
7006 [BZ #23578]
7007 regex: fix uninitialized memory access
7008 I introduced this bug into gnulib in commit
7009 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7010 eventually it was merged into glibc. The bug was found by
7011 project-repo <bugs@feusi.co> and reported here:
7012 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7013 Diagnosis and draft fix reported by Assaf Gordon here:
7014 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7015 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7016 * posix/regex_internal.c (build_wcs_upper_buffer):
7017 Fix bug when mbrtowc returns 0.
7018
7019 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7020
7021 * po/be.po: Update translation.
7022
7023 2018-08-24 DJ Delorie <dj@delorie.com>
7024
7025 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7026 $(libunwind).
7027
7028 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7029
7030 [BZ #23400]
7031 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7032 create temporary files in source tree.
7033
7034 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7035
7036 * sysdeps/generic/math-tests-trap.h: New file.
7037 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7038 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7039 * sysdeps/aarch64/math-tests.h: Remove file.
7040 * sysdeps/arm/math-tests.h: Likewise.
7041 * sysdeps/riscv/math-tests.h: Likewise.
7042 * sysdeps/aarch64/math-tests-trap.h: New file.
7043 * sysdeps/arm/math-tests-trap.h: Likewise.
7044 * sysdeps/riscv/math-tests-trap.h: Likewise.
7045
7046 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7047
7048 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7049 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7050 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7051 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7052 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7053 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7054 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7055 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7056 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7057 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7058 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7059 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7060 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7061 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7062 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7063 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7064 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7065 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7066
7067 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7068
7069 * sysdeps/generic/math-tests-exceptions.h: New file.
7070 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7071 (EXCEPTION_TESTS_float): Do not define here.
7072 (EXCEPTION_TESTS_double): Likewise.
7073 (EXCEPTION_TESTS_long_double): Likewise.
7074 (EXCEPTION_TESTS_float128): Likewise.
7075 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7076 Likewise.
7077 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7078 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7079 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7080 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7081 * sysdeps/mips/math-tests.h: Likewise.
7082 * sysdeps/nios2/math-tests.h: Likewise.
7083 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7084 (EXCEPTION_TESTS_float): Do not define here.
7085 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7086 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7087 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7088
7089 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7090
7091 * NEWS: Move optimized sinf entry to 2.29.
7092
7093 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7094
7095 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7096
7097 2018-08-22 DJ Delorie <dj@redhat.com>
7098
7099 * Makefile (testroot.pristine): New rules to initialize the
7100 test-in-container "testroot".
7101 * Makerules (all-testsuite): Add tests-container.
7102 * Rules (tests-expected): Add tests-container.
7103 (binaries-all-tests): Likewise.
7104 (tests-container): New, run these tests in the testroot container.
7105 * support/Makefile (others): Add *-container, support_paths.c,
7106 xmkdirp, and links-dso-program.
7107 * support/links-dso-program-c.c: New.
7108 * support/links-dso-program.cc: New.
7109 * support/test-container.c: New.
7110 * support/shell-container.c: New.
7111 * support/echo-container.c: New.
7112 * support/true-container.c: New.
7113 * support/xmkdirp.c: New.
7114 * support/xsymlink.c: New.
7115 * support/support_paths.c: New.
7116 * support/support.h: Add support paths prototypes.
7117 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7118
7119 * nss/tst-nss-test3.c: Convert to test-in-container.
7120 * nss/tst-nss-test3.root/: New.
7121
7122 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7123
7124 regex: port Gnulib code to z/OS POSIX environment
7125 Problem reported by Arnold Robbins in:
7126 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7127 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7128 Undef.
7129
7130 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7131
7132 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7133 (ROUNDING_TESTS_double): Remove.
7134 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7135 (ROUNDING_TESTS_double): Remove.
7136 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7137 (ROUNDING_TESTS_double): Remove.
7138 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7139 (ROUNDING_TESTS_float): Remove.
7140 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7141 (ROUNDING_TESTS_float): Remove.
7142 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7143 (ROUNDING_TESTS_float): Remove.
7144 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7145 !TEST_MATHVEC here.
7146 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7147 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7148
7149 * sysdeps/generic/math-tests-rounding.h: New file.
7150 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7151 (ROUNDING_TESTS_float): Do not define here.
7152 (ROUNDING_TESTS_double): Likewise.
7153 (ROUNDING_TESTS_long_double): Likewise.
7154 (ROUNDING_TESTS_float128): Likewise.
7155 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7156 (ROUNDING_TESTS_double): Undefine before defining.
7157 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7158 (ROUNDING_TESTS_double): Undefine before defining.
7159 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7160 (ROUNDING_TESTS_double): Undefine before defining.
7161 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7162 (ROUNDING_TESTS_float): Undefine before defining.
7163 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7164 (ROUNDING_TESTS_float): Undefine before defining.
7165 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7166 (ROUNDING_TESTS_float): Undefine before defining.
7167 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7168 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7169 not define here.
7170 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7171 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7172 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7173 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7174 (ROUNDING_TESTS_float): Do not define here.
7175 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7176 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7177 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7178 (ROUNDING_TESTS_float): Likewise.
7179 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7180 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7181 * sysdeps/mips/math-tests.h [__mips_soft_float]
7182 (ROUNDING_TESTS_float): Likewise.
7183 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7184 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7185 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7186 (ROUNDING_TESTS_double): Likewise.
7187 (ROUNDING_TESTS_long_double): Likewise.
7188
7189 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7190
7191 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7192 (PF_XDP): New macro.
7193 (AF_XDP): New macro.
7194 (SOL_XDP): New macro.
7195
7196 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7197
7198 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7199 (TCP_INQ): Likewise.
7200 (TCP_CM_INQ): Likewise.
7201 (TCP_REPAIR_ON): Likewise.
7202 (TCP_REPAIR_OFF): Likewise.
7203 (TCP_REPAIR_OFF_NO_WP): Likewise.
7204 (struct tcp_zerocopy_receive): New type.
7205
7206 2018-08-21 Florian Weimer <fweimer@redhat.com>
7207
7208 * support/support.h (support_descriptor_supports_holes): Declare.
7209 * support/Makefile (libsupport-routines): Add
7210 support_descriptor_supports_holes.
7211 * support/support_descriptor_supports_holes.c: New file.
7212 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7213 and stop testing if holes are not supported.
7214 * io/test-lfs.c (do_prepare): Likewise.
7215 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7216 Likewise.
7217 * timezone/tst-tzset.c (create_tz_file): Likewise.
7218 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7219 variable.
7220 (do_prepare): Set it.
7221 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7222
7223 2018-08-21 Florian Weimer <fweimer@redhat.com>
7224
7225 [BZ #17248]
7226 * Makeconfig (+cflags): Do not sort (and deduplicate).
7227
7228 2018-08-21 Florian Weimer <fweimer@redhat.com>
7229
7230 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7231 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7232
7233 2018-08-20 Florian Weimer <fweimer@redhat.com>
7234
7235 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7236 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7237
7238 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7239
7240 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7241 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7242 and ssi_arch members.
7243
7244 * elf/elf.c (NT_VMCOREDD): New macro.
7245 (AT_MINSIGSTKSZ): Likewise.
7246
7247 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7248
7249 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7250 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7251 s_cosf-ppc64 and s_cosf-power8.
7252 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7253 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7254 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7255 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7261 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7262 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7263 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7264
7265 2018-08-17 Florian Weimer <fweimer@redhat.com>
7266
7267 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7268
7269 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7270
7271 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7272
7273 2018-08-16 Florian Weimer <fweimer@redhat.com>
7274
7275 * configure.ac: Add --with-nonshared-cflags option.
7276 * config.make.in (extra-nonshared-cflags): Set variable.
7277 * Makeconfig (CFLAGS-.oS): Use it.
7278 * manual/install.texi (Configuring and compiling): Document
7279 --with-nonshared-cflags.
7280 * configure: Regenerate.
7281 * INSTALL: Likewise.
7282
7283 2018-08-16 Florian Weimer <fweimer@redhat.com>
7284
7285 * Makeconfig (ASFLAGS): Always append required assembler flags.
7286
7287 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7288
7289 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7290 (malloc_consolidate): Likewise.
7291
7292 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7293
7294 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7295
7296 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7297
7298 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7299 every strlen call.
7300
7301 * benchtests/bench-strlen.c: Print performance numbers in json.
7302
7303 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7304
7305 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7306 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7307 only for little endian.
7308 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7309 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7310 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7311 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7312 Add check for little endian.
7313 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7314 (__strcmp_power9): Add check for little endian.
7315 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7316 Add check for little endian.
7317 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7318 (__strncmp_power9): Add check for little endian.
7319 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7320 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7321 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7322 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7323 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7324
7325 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7326
7327 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7328 [!STRLEN](STRLEN): Set to __strlen.
7329 * sysdeps/aarch64/multiarch/strlen.c: New file.
7330 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7331 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7332 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7333 (__libc_ifunc_impl_list): Add strlen.
7334 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7335 strlen_generic and strlen_asimd.
7336
7337 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7338
7339 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7340 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7341 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7342
7343 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7344
7345 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7346
7347 2018-08-14 Florian Weimer <fweimer@redhat.com>
7348
7349 [BZ #23519]
7350 * include/stdio.h (__vfxprintf): Declare.
7351 * stdio-common/fxprintf.c (__vfxprintf): New function.
7352 (__fxprintf): Call it.
7353 * misc/err.c (convert_and_print): Remove function.
7354 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7355 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7356 * misc/Makefile (tests): Add tst-warn-wide.
7357 * misc/tst-warn-wide.c: New file.
7358
7359 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7360 Szabolcs Nagy <szabolcs.nagy@arm.com>
7361
7362 * NEWS: Mention sinf, cosf, sincosf.
7363 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7364 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7365 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7366 constants rather than including generic sincosf.h.
7367 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7368 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7369 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7370 (reduced_cos): Remove.
7371 (sinf_poly): New function.
7372 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7373
7374 2018-08-14 Florian Weimer <fweimer@redhat.com>
7375
7376 [BZ #23521]
7377 [BZ #23522]
7378 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7379 processing, bail out if no room, and close the stream before
7380 returning ERANGE.
7381 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7382 (tst-nss-files-alias-leak): Link with libdl.
7383 (tst-nss-files-alias-leak.out): Depend on nss_files.
7384
7385 * nss/tst-nss-files-alias-leak.c: New file.
7386
7387 2018-08-14 Florian Weimer <fweimer@redhat.com>
7388
7389 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7390 server_user, stat_user.
7391
7392 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7393
7394 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7395 version to 4.18.
7396 (io_pgetevents): New syscall.
7397 (rseq): Likewise.
7398
7399 * manual/install.texi (Configuring and compiling): Do not list
7400 tools used for testing pretty printers here.
7401 (Tools for Compilation): List Python, PExpect and GDB here.
7402 Update descriptions of uses of Perl and Python.
7403 * INSTALL: Regenerate.
7404
7405 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7406 version to 4.18.
7407
7408 2018-08-13 Florian Weimer <fweimer@redhat.com>
7409
7410 * misc/error.c (error): Add missing va_end call.
7411 (error_at_line): Likewise.
7412
7413 2018-08-13 Florian Weimer <fweimer@redhat.com>
7414
7415 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7416
7417 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7418
7419 * benchtests/scripts/benchout.schema.json (properties): Add
7420 new properties.
7421
7422 * benchtests/bench-skeleton.c (main): Add duration and
7423 iterations attributes.
7424
7425 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7426
7427 regex: Gnulib unibyte RRI uses bytes not chars
7428 Adjust the non-glibc code to agree with what Gawk needs for
7429 rational range interpretation (RRI) for regular expression ranges.
7430 In unibyte locales, Gawk wants ranges to use the underlying byte
7431 rather than the character code point. This change does not affect
7432 glibc proper.
7433 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7434 In unibyte locales, use the byte value rather than
7435 running it through btowc.
7436
7437 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7438
7439 * sysdeps/generic/math-tests-snan.h: New file.
7440 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7441 (SNAN_TESTS_float): Do not define here.
7442 (SNAN_TESTS_double): Likewise.
7443 (SNAN_TESTS_long_double): Likewise.
7444 (SNAN_TESTS_float128): Likewise.
7445 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7446 * sysdeps/i386/fpu/math-tests.h: Remove file.
7447 * sysdeps/ia64/math-tests-snan.h: New file.
7448 * sysdeps/ia64/math-tests.h: Remove file.
7449 * sysdeps/x86/math-tests.h: Likewise.
7450 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7451
7452 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7453 Szabolcs Nagy <szabolcs.nagy@arm.com>
7454
7455 * math/Makefile: Add s_sincosf_data.c.
7456 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7457 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7458 (sincosf_poly): Likewise.
7459 (reduce_small): Likewise.
7460 (reduce_large): Likewise.
7461 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7462 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7463 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7464 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7465
7466 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7467 Szabolcs Nagy <szabolcs.nagy@arm.com>
7468
7469 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7470 (converttoint): Use lround.
7471 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7472 document the semantics when TOINT_INTRINSICS is set.
7473 (converttoint): Likewise.
7474 (TOINT_RINT): Remove.
7475 (TOINT_SHIFT): Remove.
7476 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7477 path.
7478
7479 2018-08-10 Florian Weimer <fweimer@redhat.com>
7480
7481 [BZ #23497]
7482 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7483 function.
7484 (__old_getdents64): Use getdents64. Convert entries without
7485 moving them.
7486 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7487 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7488 tst-readdir64-compat.
7489
7490 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7491
7492 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7493 Fix unwind.
7494
7495 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7496
7497 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7498 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7499 code to s390x-mcount.h and #include it.
7500 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7501 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7502 (__fentry__): Add.
7503
7504 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7505
7506 * stdlib/Versions: Remove __fentry__.
7507 * sysdeps/i386/Versions: Add __fentry__.
7508 * sysdeps/x86_64/Versions: Add __fentry__.
7509
7510 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7511
7512 * sysdeps/s390/Makefile: Register the new tests.
7513 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7514 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7515 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7516 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7517 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7518 * sysdeps/s390/tst-dl-runtime.c: New file.
7519
7520 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7521
7522 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7523 Do not clobber R0.
7524
7525 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7526
7527 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7528 Do not clobber R0.
7529
7530 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7531
7532 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7533 Do not clobber R0.
7534
7535 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7536
7537 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7538 Do not clobber R0.
7539
7540 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7541
7542 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7543 Use symbolic offsets for stack variables.
7544
7545 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7546
7547 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7548 Use symbolic offsets for stack variables.
7549
7550 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7551
7552 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7553 Use symbolic offsets for stack variables.
7554
7555 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7556
7557 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7558 Use symbolic offsets for stack variables.
7559
7560 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7561
7562 * math/gen-libm-test.py: New file.
7563 * math/gen-libm-test.pl: Remove.
7564 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7565 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7566 gen-libm-test.pl.
7567 ($(libm-test-c-noauto-obj)): Likewise.
7568 ($(libm-test-c-auto-obj)): Likewise.
7569 ($(libm-test-c-narrow-obj)): Likewise.
7570 (regen-ulps): Likewise.
7571 * math/README.libm-test: Update references to gen-libm-test.pl.
7572 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7573 referencing gen-libm-test.pl.
7574 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7575 * math/libm-test-support.c: Likewise.
7576 * math/libm-test-support.h: Likewise.
7577 * sysdeps/generic/libm-test-ulps: Likewise.
7578
7579 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7580
7581 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7582 Fix value.
7583
7584 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7585
7586 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7587 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7588
7589 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7590
7591 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7592 symbols.
7593 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7594 __pthread_setspecific): Add hidden proto.
7595 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7596 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7597
7598 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7599
7600 * benchtests/bench-string.h (buf1_size, buf2_size): New
7601 variables.
7602 (init_sizes): New function.
7603 (test_init): Use it.
7604 (alloc_buf, exit_error): New functions.
7605 (alloc_bufs): Use ALLOC_BUF.
7606 (realloc_bufs): Remove.
7607 * benchtests/bench-memcmp.c (do_test): Adjust.
7608 * benchtests/bench-memset-large.c (do_test): Likewise.
7609 * benchtests/bench-memset-walk.c (do_test): Likewise.
7610 * benchtests/bench-memset.c (do_test): Likewise.
7611 * benchtests/bench-strncmp.c (do_test): Likewise.
7612
7613 2018-08-06 Andreas Schwab <schwab@suse.de>
7614
7615 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7616 of CONST_THREAD_AREA.
7617
7618 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7619
7620 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7621 (STATE_SAVE_MASK): Likewise.
7622 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7623 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7624 (STATE_SAVE_MASK): Likewise.
7625 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7626 instead of <cpu-features.h>.
7627
7628 2018-08-03 DJ Delorie <dj@redhat.com>
7629
7630 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7631 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7632
7633 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7634
7635 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7636
7637 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7638 after TEST_* calls.
7639 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7640 * math/libm-test-logb.inc (logb_test_data): Likewise.
7641
7642 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7643
7644 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7645 * string/strstr.c (AVAILABLE): Likewise.
7646
7647 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7648
7649 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7650 <init-arch.h>.
7651 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7652 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7653 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7654
7655 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7656
7657 * po/be.po: Update translation.
7658
7659 * po/be.po: Update translation.
7660
7661 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7662
7663 * sysdeps/x86/cpu-features-offsets.sym
7664 (rtld_global_ro_offsetof): Removed.
7665 (CPU_FEATURES_SIZE): Likewise.
7666 (CPUID_OFFSET): Likewise.
7667 (CPUID_SIZE): Likewise.
7668 (CPUID_EAX_OFFSET): Likewise.
7669 (CPUID_EBX_OFFSET): Likewise.
7670 (CPUID_ECX_OFFSET): Likewise.
7671 (CPUID_EDX_OFFSET): Likewise.
7672 (FAMILY_OFFSET): Likewise.
7673 (MODEL_OFFSET): Likewise.
7674 (FEATURE_OFFSET): Likewise.
7675 (FEATURE_SIZ): Likewise.
7676 (COMMON_CPUID_INDEX_1): Likewise.
7677 (COMMON_CPUID_INDEX_7): Likewise.
7678 (FEATURE_INDEX_1): Likewise.
7679 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7680
7681 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7682
7683 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7684 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7685 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7686 (install-locales): Depend on install-locale-archive.
7687 (install-locale-archive): Define.
7688 (install-locale-files): Define.
7689 (build-one-locale): Define macro.
7690 * manual/install.texi (Running make install): Document.
7691 * manual/INSTALL: Regenerate.
7692
7693 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7694
7695 * benchtests/scripts/compare_strings.py: Import traceback.
7696 (parse_file): Pretty-print error.
7697
7698 * NEWS: Mention the change.
7699 * elf/dl-tunables.list: Rename tune namespace to cpu.
7700 * sysdeps/powerpc/dl-tunables.list: Likewise.
7701 * sysdeps/x86/dl-tunables.list: Likewise.
7702 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7703 cpu.name.
7704 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7705 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7706 * manual/README.tunables: Likewise.
7707 * manual/tunables.texi: Likewise.
7708 * sysdeps/powerpc/cpu-features.c: Likewise.
7709 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7710 (init_cpu_features): Likewise.
7711 * sysdeps/x86/cpu-features.c: Likewise.
7712 * sysdeps/x86/cpu-features.h: Likewise.
7713 * sysdeps/x86/cpu-tunables.c: Likewise.
7714 * sysdeps/x86_64/Makefile: Likewise.
7715 * sysdeps/x86/dl-cet.c: Likewise.
7716
7717 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7718
7719 [BZ #23479]
7720 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7721 [__mips_hard_float].
7722 (FE_UNDERFLOW): Likewise.
7723 (FE_OVERFLOW): Likewise.
7724 (FE_DIVBYZERO): Likewise.
7725 (FE_INVALID): Likewise.
7726 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7727 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7728 (FE_UPWARD): Likewise.
7729 (FE_DOWNWARD): Likewise.
7730 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7731 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7732 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7733 [__mips_hard_float].
7734 (FP_ROUNDMODE): Likewise.
7735 (FP_RND_NEAREST): Likewise.
7736 (FP_RND_ZERO): Likewise.
7737 (FP_RND_PINF): Likewise.
7738 (FP_RND_MINF): Likewise.
7739 (FP_EX_INVALID): Likewise.
7740 (FP_EX_OVERFLOW): Likewise.
7741 (FP_EX_UNDERFLOW): Likewise.
7742 (FP_EX_DIVZERO): Likewise.
7743 (FP_EX_INEXACT): Likewise.
7744 (FP_INIT_ROUNDMODE): Likewise.
7745 * sysdeps/mips/nofpu/fesetenv.c: New file.
7746 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7747
7748 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7749
7750 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7751 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7752 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7753 conditional on [FE_UPWARD].
7754
7755 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7756
7757 regex: fix memory leak in Gnulib
7758 Problem and fix reported by Assaf Gordon in:
7759 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7760 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7761 range_ends members too, as they are defined in 'struct
7762 re_charset_t' even if not _LIBC. This affects only Gnulib.
7763
7764 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7765
7766 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7767 ...
7768 (get_common_indices): This.
7769 (init_cpu_features): Updated.
7770
7771 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7772
7773 * sysdeps/generic/math-tests-snan-payload.h: New file.
7774 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7775 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7776 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7777 * sysdeps/generic/math-tests.h: Include
7778 <math-tests-snan-payload.h>.
7779 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7780 * sysdeps/hppa/math-tests.h: Remove file.
7781 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7782 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7783 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7784 Likewise.
7785
7786 * sysdeps/generic/math-tests-snan-cast.h: New file.
7787 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7788 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7789 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7790 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7791
7792 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7793
7794 * version.h (RELEASE): Set to "development".
7795 (VERSION): Set to "2.28.9000".
7796 * NEWS (2.29): New section.
7797
7798 * version.h (RELEASE): Set to "stable".
7799 (VERSION): Set to "2.28".
7800 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7801 * NEWS: Add the list of bugs fixed in 2.28.
7802
7803 * po/ca.po: Update to latest version.
7804 * po/cs.po: Likewise
7805 * po/da.po: Likewise
7806 * po/el.po: Likewise
7807 * po/eo.po: Likewise
7808 * po/es.po: Likewise
7809 * po/fi.po: Likewise
7810 * po/fr.po: Likewise
7811 * po/gl.po: Likewise
7812 * po/hu.po: Likewise
7813 * po/ia.po: Likewise
7814 * po/id.po: Likewise
7815 * po/it.po: Likewise
7816 * po/ja.po: Likewise
7817 * po/ko.po: Likewise
7818 * po/lt.po: Likewise
7819 * po/nb.po: Likewise
7820 * po/nl.po: Likewise
7821 * po/pt_BR.po: Likewise
7822 * po/ru.po: Likewise
7823 * po/rw.po: Likewise
7824 * po/sk.po: Likewise
7825 * po/sl.po: Likewise
7826 * po/tr.po: Likewise
7827 * po/zh_CN.po: Likewise
7828 * po/zh_TW.po: Likewise
7829
7830 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7831
7832 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7833 initialization...
7834 (init): ... before initializing libpthread.
7835
7836 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7837 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7838 (__mach_setup_tls): ... new function.
7839 (mach_setup_tls): New alias.
7840 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7841 __mach_setup_thread.
7842 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7843 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7844 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7845 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7846
7847 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7848
7849 * manual/install.texi: Update versions.
7850 * INSTALL: Regenerate.
7851
7852 * manual/contrib.texi (Contributors): Update contributions.
7853
7854 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7855
7856 * po/be.po: Update translations.
7857
7858 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7859
7860 * sysdeps/sh/libm-test-ulps: Update.
7861
7862 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7863
7864 * po/bg.po: Update translations.
7865 * po/de.po: Likewise.
7866 * po/hr.po: Likewise.
7867 * po/pt_BR.po: Likewise.
7868 * po/sv.po: Likewise.
7869 * po/vi.po: Likewise.
7870
7871 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7872
7873 [BZ #23467]
7874 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7875 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
7876 (CFLAGS-tst-cet-property-1.o): New.
7877 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
7878 ($(objpfx)tst-cet-property-2): Likewise.
7879 ($(objpfx)tst-cet-property-2.out): Likewise.
7880 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
7881 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
7882 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
7883 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
7884 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
7885
7886 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7887
7888 [BZ #23458]
7889 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
7890
7891 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7892
7893 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
7894 __sbrk): Do not set attribute_hidden.
7895 * sysdeps/mach/hurd/not-errno.h: New file.
7896 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7897 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
7898
7899 2018-07-27 Carlos O'Donell <carlos@redhat.com>
7900
7901 * po/uk.po: Update translations.
7902 * po/cs.po: Likewise.
7903 * po/pl.po: Likewise.
7904
7905 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
7906
7907 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
7908 parse beyond the note end.
7909
7910 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7911
7912 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
7913 kernel does not support OFD locks.
7914 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
7915
7916 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
7917
7918 * sysdeps/mach/hurd/Versions (libc): Make __access and
7919 __access_noerrno external so they can override the ld symbols.
7920 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
7921 __writev, __open64, __access_noerrno extern so they can be overrided.
7922 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
7923 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7924
7925 2018-07-26 Carlos O'Donell <carlos@redhat.com>
7926
7927 * po/libc.pot: Regenerate.
7928
7929 2018-07-26 Joseph Myers <joseph@codesourcery.com>
7930
7931 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7932
7933 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
7934
7935 [BZ #23459]
7936 * sysdeps/x86/cpu-features.c (get_extended_indices): New
7937 function.
7938 (init_cpu_features): Call get_extended_indices for both Intel
7939 and AMD CPUs.
7940 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
7941 Remove "for AMD" comment.
7942
7943 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
7944
7945 [BZ # 23456]
7946 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
7947 COMMON_CPUID_INDEX_80000001.
7948
7949 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
7950
7951 * string/tst-xbzero-opt.c (use_test_buffer): New function.
7952 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
7953
7954 2018-07-26 Florian Weimer <fweimer@redhat.com>
7955
7956 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
7957 aliases for symbols not in the implementation namespace.
7958
7959 2018-07-25 Carlos O'Donell <carlos@redhat.com>
7960
7961 [BZ #23393]
7962 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
7963 lowercase in LATIN script.
7964 * localedata/Makefile (test-input): Add en_US.UTF-8.
7965 * localedata/en_US.UTF-8.in: New file.
7966 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
7967 and restore old tests.
7968 * posix/tst-regexloc.c (do_test): Add back range expression test.
7969
7970 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7971
7972 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
7973
7974 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7975
7976 * nptl/threads.h: Move to ...
7977 * sysdeps/nptl/threads.h: ... here.
7978 * sysdeps/hurd/stdc-predef.h: New file.
7979
7980 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7981
7982 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7983 tst-cet-setcontext-1 if CET is enabled.
7984 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
7985 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
7986
7987 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7988
7989 * include/threads.h: Move to ...
7990 * sysdeps/nptl/threads.h: ... here.
7991 * sysdeps/htl/threads.h: New file.
7992 * conform/Makefile (linknamespace-libs-ISO11): Use
7993 static-thread-library instead of linking libpthread.
7994 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
7995
7996 2018-07-25 Florian Weimer <fweimer@redhat.com>
7997
7998 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
7999 nanoseconds into seconds.
8000 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8001 (do_test): Likewise.
8002 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8003 (do_test): Likewise. Avoid nanosecond overflow and spurious
8004 timeouts due to system load.
8005 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8006 (child_wait): Increment it.
8007 (do_test): Wait as long as necessary until all expected threads
8008 have arrived.
8009
8010 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8011 H.J. Lu <hongjiu.lu@intel.com>
8012
8013 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8014 __ssp.
8015 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8016 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8017 (__push___start_context): New.
8018 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8019 <asm/prctl.h>.
8020 (__getcontext): Record the current shadow stack base. Save the
8021 caller's shadow stack pointer and base.
8022 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8023 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8024 (__push___start_context): New prototype.
8025 (__makecontext): Call __push___start_context to allocate a new
8026 shadow stack, push __start_context onto the new stack as well
8027 as the new shadow stack.
8028 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8029 <asm/prctl.h>.
8030 (__setcontext): Restore the target shadow stack.
8031 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8032 <asm/prctl.h>.
8033 (__swapcontext): Record the current shadow stack base. Save
8034 the caller's shadow stack pointer and base. Restore the target
8035 shadow stack.
8036 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8037 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8038 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8039
8040 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8041
8042 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8043 tst-setcontext8 and tst-setcontext9.
8044 * stdlib/tst-setcontext6.c: New file.
8045 * stdlib/tst-setcontext7.c: Likewise.
8046 * stdlib/tst-setcontext8.c: Likewise.
8047 * stdlib/tst-setcontext9.c: Likewise.
8048
8049 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8050
8051 * stdlib/Makefile ((tests): Add tst-setcontext5.
8052 * stdlib/tst-setcontext5.c: New file.
8053
8054 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8055
8056 * stdlib/Makefile (tests): Add tst-setcontext4.
8057 * stdlib/tst-setcontext4.c: New file.
8058
8059 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8060
8061 * stdlib/Makefile (tests): Add tst-swapcontext1.
8062 * stdlib/tst-swapcontext1.c: New test.
8063
8064 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8065
8066 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8067 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8068 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8069 and tst-cet-legacy-4c.
8070 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8071 and tst-cet-legacy-mod-4.
8072 (CFLAGS-tst-cet-legacy-2.c): New.
8073 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8074 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8075 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8076 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8077 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8078 ($(objpfx)tst-cet-legacy-1): Likewise.
8079 ($(objpfx)tst-cet-legacy-2): Likewise.
8080 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8081 ($(objpfx)tst-cet-legacy-2a): Likewise.
8082 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8083 ($(objpfx)tst-cet-legacy-4): Likewise.
8084 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8085 ($(objpfx)tst-cet-legacy-4a): Likewise.
8086 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8087 (tst-cet-legacy-4a-ENV): Likewise.
8088 ($(objpfx)tst-cet-legacy-4b): Likewise.
8089 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8090 (tst-cet-legacy-4b-ENV): Likewise.
8091 ($(objpfx)tst-cet-legacy-4c): Likewise.
8092 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8093 (tst-cet-legacy-4c-ENV): Likewise.
8094 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8095 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8096 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8097 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8098 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8099 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8100 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8101 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8102 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8103 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8104 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8105
8106 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8107
8108 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8109 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8110 with ssp_base.
8111 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8112 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8113 with ssp_base.
8114
8115 2018-07-25 Andreas Schwab <schwab@suse.de>
8116
8117 [BZ #23442]
8118 * locale/weightwc.h (findidx): Handle the case where usrc is a
8119 prefix of cp but one character too short.
8120
8121 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8122
8123 * NEWS: Add ISO C threads addition.
8124
8125 2018-07-24 Florian Weimer <fweimer@redhat.com>
8126
8127 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8128 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8129 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8130 4.13.
8131
8132 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8133
8134 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8135 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8136 <sys/prctl.h> and <asm/prctl.h>.
8137 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8138 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8139 and <asm/prctl.h>.
8140 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8141 ARCH_CET_LEGACY_BITMAP.
8142 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8143 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8144 * sysdeps/x86/libc-start.c: Include <startup.h>.
8145
8146 2018-07-24 Florian Weimer <fweimer@redhat.com>
8147
8148 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8149 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8150
8151 2018-07-24 Rical Jasan <rj@2c3t.io>
8152 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8153 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8154
8155 [BZ #14092]
8156 * manual/debug.texi: Update adjacent chapter name.
8157 * manual/probes.texi: Likewise.
8158 * manual/threads.texi (ISO C Threads): New section.
8159 (POSIX Threads): Convert to a section.
8160
8161 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8162 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8163
8164 [BZ# 14092]
8165 * nptl/Makefile (tests): Add new test files.
8166 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8167 * nptl/tst-cnd-basic.c: Likewise.
8168 * nptl/tst-cnd-broadcast.c: Likewise.
8169 * nptl/tst-cnd-timedwait.c: Likewise.
8170 * nptl/tst-mtx-basic.c: Likewise.
8171 * nptl/tst-mtx-recursive.c: Likewise.
8172 * nptl/tst-mtx-timedlock.c: Likewise.
8173 * nptl/tst-mtx-trylock.c: Likewise.
8174 * nptl/tst-thrd-basic.c: Likewise.
8175 * nptl/tst-thrd-detach.c: Likewise.
8176 * nptl/tst-thrd-sleep.c: Likewise.
8177 * nptl/tst-tss-basic.c: Likewise.
8178
8179 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8180
8181 [BZ #14092]
8182 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8183 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8184 symbols.
8185 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8186 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8187 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8188 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8189 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8190 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8191 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8192 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8193 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8194 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8195 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8196 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8198 Likewise.
8199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8200 Likewise.
8201 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8202 Likewise.
8203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8204 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8205 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8206 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8207 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8208 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8209 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8210 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8211 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8212 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8213 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8214 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8215 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8216 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8217 Likewise.
8218 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8219 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8220 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8221 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8222 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8223 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8224 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8225 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8226 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8227 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8228 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8229 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8230 ikewise.
8231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8233 Likewise.
8234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8235 Likewise.
8236 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8237 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8238 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8239 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8240 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8241 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8242 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8243 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8244
8245 [BZ #14092]
8246 * conform/data/threads.h-data (thread_local): New macro.
8247 (TSS_DTOR_ITERATIONS): Likewise.
8248 (tss_t): New type.
8249 (tss_dtor_t): Likewise.
8250 (tss_create): New function.
8251 (tss_get): Likewise.
8252 (tss_set): Likewise.
8253 (tss_delete): Likewise.
8254 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8255 tss_get, and tss_set objects.
8256 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8257 * nptl/tss_create.c: New file.
8258 * nptl/tss_delete.c: Likewise.
8259 * nptl/tss_get.c: Likewise.
8260 * nptl/tss_set.c: Likewise.
8261 * sysdeps/nptl/threads.h (thread_local): New define.
8262 (TSS_DTOR_ITERATIONS): Likewise.
8263 (tss_t): New typedef.
8264 (tss_dtor_t): Likewise.
8265 (tss_create): New prototype.
8266 (tss_get): Likewise.
8267 (tss_set): Likewise.
8268 (tss_delete): Likewise.
8269
8270 [BZ #14092]
8271 * conform/data/threads.h-data (cnd_t): New type.
8272 (cnd_init): New function.
8273 (cnd_signal): Likewise.
8274 (cnd_broadcast): Likewise.
8275 (cnd_wait): Likewise.
8276 (cnd_timedwait): Likewise.
8277 (cnd_destroy): Likewise.
8278 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8279 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8280 object.
8281 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8282 * nptl/cnd_broadcast.c: New file.
8283 * nptl/cnd_destroy.c: Likewise.
8284 * nptl/cnd_init.c: Likewise.
8285 * nptl/cnd_signal.c: Likewise.
8286 * nptl/cnd_timedwait.c: Likewise.
8287 * nptl/cnd_wait.c: Likewise.
8288 * sysdeps/nptl/threads.h (cnd_t): New type.
8289 (cnd_init): New prototype.
8290 (cnd_signa): Likewise.
8291 (cnd_broadcast): Likewise.
8292 (cnd_wait): Likewise.
8293 (cnd_timedwait): Likewise.
8294 (cnd_destroy): Likewise.
8295
8296 [BZ #14092]
8297 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8298 (once_flag): New type.
8299 (call_once): New function.
8300 * nptl/Makefile (libpthread-routines): Add call_once object.
8301 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8302 * nptl/call_once.c: New file.
8303 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8304 (once_flag): New type.
8305 (call_once): New prototype.
8306
8307 [BZ #14092]
8308 * conform/data/threads.h-data (mtx_plain): New constant.
8309 (mtx_recursive): Likewise.
8310 (mtx_timed): Likewise.
8311 (mtx_t): New type.
8312 (mtx_init): New function.
8313 (mtx_lock): Likewise.
8314 (mtx_timedlock): Likewise.
8315 (mtx_trylock): Likewise.
8316 (mtx_unlock): Likewise.
8317 (mtx_destroy): Likewise.
8318 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8319 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8320 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8321 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8322 * nptl/mtx_destroy.c: New file.
8323 * nptl/mtx_init.c: Likewise.
8324 * nptl/mtx_lock.c: Likewise.
8325 * nptl/mtx_timedlock.c: Likewise.
8326 * nptl/mtx_trylock.c: Likewise.
8327 * nptl/mtx_unlock.c: Likewise.
8328 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8329 (mtx_recursive): Likewise.
8330 (mtx_timed): Likewise.
8331 (mtx_t): New type.
8332 (mtx_init): New prototype.
8333 (mtx_lock): Likewise.
8334 (mtx_timedlock): Likewise.
8335 (mtx_trylock): Likewise.
8336 (mtx_unlock): Likewise.
8337 (mtx_destroy): Likewise.
8338
8339 [BZ #14092]
8340 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8341 (linknamespace-libs-ISO11): Add libpthread.a.
8342 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8343 functions.
8344 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8345 * nptl/Makefile (headers): Add threads.h.
8346 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8347 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8348 thrd_yield.
8349 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8350 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8351 thrd_join, thrd_sleep, and thrd_yield symbols.
8352 * nptl/descr.h (struct pthread): Add c11 field.
8353 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8354 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8355 routine with expected function prototype.
8356 (__pthread_create_2_1): Add C11 threads check based on attribute
8357 value.
8358 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8359 * nptl/thrd_create.c: New file.
8360 * nptl/thrd_current.c: Likewise.
8361 * nptl/thrd_detach.c: Likewise.
8362 * nptl/thrd_equal.c: Likewise.
8363 * nptl/thrd_exit.c: Likewise.
8364 * nptl/thrd_join.c: Likewise.
8365 * nptl/thrd_priv.h: Likewise.
8366 * nptl/thrd_sleep.c: Likewise.
8367 * nptl/thrd_yield.c: Likewise.
8368 * include/threads.h: Likewise.
8369
8370 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8371
8372 * bits/indirect-return.h: New file.
8373 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8374 * sysdeps/x86/bits/indirect-return.h: Likewise.
8375 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8376 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8377 (swapcontext): Add __INDIRECT_RETURN.
8378 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8379 (prepare_test_buffer): Use it.
8380
8381 2018-07-24 Andreas Schwab <schwab@suse.de>
8382
8383 [BZ #23448]
8384 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8385 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8386
8387 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8388
8389 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8390 Redefine if shadow stack is enabled.
8391 (SYSCALL_ERROR_LABEL): Likewise.
8392 (__vfork): Pop shadow stack and jump back to to caller directly
8393 when shadow stack is in use.
8394 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8395 Redefine if shadow stack is enabled.
8396 (SYSCALL_ERROR_LABEL): Likewise.
8397 (__vfork): Pop shadow stack and jump back to to caller directly
8398 when shadow stack is in use.
8399
8400 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8401
8402 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8403 enabled.
8404 (foo): Likewise.
8405 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8406 (foo): Likewise.
8407
8408 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8409
8410 * scripts/build-many-glibcs.py (Context.checkout): Default
8411 binutils version to 2.31 branch.
8412
8413 2018-07-20 Zong Li <zong@andestech.com>
8414
8415 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8416 URL of gcc's tarball.
8417
8418 2018-07-20 Florian Weimer <fweimer@redhat.com>
8419
8420 [BZ #23396]
8421 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8422 not compare an extra byte after the end of the weights.
8423
8424 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8425
8426 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8427 to 1.
8428 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8429 hidden prototypes.
8430 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8431 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8432 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8433 list of libraries whose stack executability is expected.
8434 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8435 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8436 variable.
8437 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8438 libc.so libpthread.so.
8439
8440 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8441
8442 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8443 SOCK_NONBLOCK.
8444 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8445 and SOCK_NONBLOCK.
8446 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8447 implement __pipe2.
8448 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8449
8450 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8451
8452 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8453 library to improve command line parsing.
8454 (__main__): make schema file as optional parameter (--schema),
8455 defaulting to benchtests/scripts/benchout.schema.json.
8456 (main): move out of the parsing stuff to __main_  and leave it
8457 only as caller of main comparison functions.
8458
8459 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8460
8461 * NEWS: Add a note for Intel CET status.
8462 * manual/install.texi: Likewise.
8463 * INSTALL: Regenerated.
8464
8465 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8466
8467 [BZ #23140]
8468 * localedata/locales/oc_FR (mon): Rename to...
8469 (alt_mon): This, then update October (typo fix).
8470 (mon): New content (genitive case, month names preceded by
8471 "de" or "d’").
8472
8473 [BZ #23422]
8474 * localedata/locales/oc_FR (abday): Update all items.
8475 (day): Update Wednesday and Saturday (typo fixes).
8476 (abmon): Update all items, except May.
8477 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8478 (LC_IDENTIFICATION): Bump the revision number and date.
8479 Keep the "category" entries in alphabetic order.
8480 (LC_ADDRESS): Remove no longer needed comment.
8481 (LC_COLLATE): Use “copy "ca_ES"”.
8482 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8483 "name_mrs".
8484
8485 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8486
8487 * grp/tst_fgetgrent.c: Include <unistd.h>.
8488 (main): Use mkstemp instead of tmpnam.
8489 * io/test-utime.c (main): Likewise.
8490 * posix/annexc.c (macrofile): Change to modifiable array.
8491 (main): Remove macrofile here.
8492 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8493 macrofile here.
8494 (check_header): Do not remove macrofile here.
8495 * posix/bug-getopt1.c: Include <stdlib.h>.
8496 (do_test): Use mkstemp instead of tmpnam.
8497 * posix/bug-getopt2.c: Include <stdlib.h>.
8498 (do_test): Use mkstemp instead of tmpnam.
8499 * posix/bug-getopt3.c: Include <stdlib.h>.
8500 (do_test): Use mkstemp instead of tmpnam.
8501 * posix/bug-getopt4.c: Include <stdlib.h>.
8502 (do_test): Use mkstemp instead of tmpnam.
8503 * posix/bug-getopt5.c: Include <stdlib.h>.
8504 (do_test): Use mkstemp instead of tmpnam.
8505 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8506 (main): Use mkstemp instead of tmpnam.
8507 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8508 (main): Use mkstemp instead of tmpnam.
8509 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8510 (main): use mkstemp instead of tmpnam.
8511 * stdlib/isomac.c (macrofile): Change to modifiable array.
8512 (main): Remove macrofile here.
8513 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8514 macrofile here.
8515 (check_header): Do not remove macrofile here.
8516
8517 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8518
8519 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8520 glibc.tune.x86_shstk.
8521
8522 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8523
8524 * NEWS: Mention --enable-cet.
8525 * manual/install.texi: Document --enable-cet.
8526 * INSTALL: Regenerated.
8527
8528 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8529
8530 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8531 Add _CET_NOTRACK before indirect jump to jump table.
8532
8533 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8534
8535 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8536 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8537 to jump table.
8538
8539 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8540
8541 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8542 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8543 to jump table.
8544
8545 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8546
8547 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8548 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8549 to jump table.
8550
8551 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8552
8553 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8554 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8555 to jump table.
8556
8557 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8558
8559 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8560 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8561 to jump table.
8562 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8563
8564 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8565
8566 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8567 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8568 to jump table.
8569
8570 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8571
8572 * sysdeps/i386/i686/multiarch/memset-sse2.S
8573 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8574 to jump table.
8575
8576 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8577
8578 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8579 indirect jump to jump table.
8580
8581 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8582
8583 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8584 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8585 to jump table.
8586 (MEMCPY): Likewise.
8587
8588 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8589
8590 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8591 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8592 to jump table.
8593 (MEMCPY): Likewise.
8594
8595 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8596
8597 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8598 _CET_NOTRACK before indirect jump to jump table.
8599
8600 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8601
8602 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8603 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8604 to jump table.
8605
8606 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8607
8608 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8609 indirect jump to jump table.
8610
8611 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8612
8613 [BZ #22241]
8614 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8615 (LOCALES): Likewise.
8616 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8617 * localedata/locales/sah_RU: New file.
8618 * localedata/sah_RU.UTF-8.in: New file.
8619
8620 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8621
8622 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8623 "sysdep.h".
8624 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8625 _CET_ENDBR to indirect jump targets and adjust jump destination
8626 for _CET_ENDBR.
8627 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8628 "sysdep.h".
8629 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8630 _CET_ENDBR to indirect jump targets and adjust jump destination
8631 for _CET_ENDBR.
8632 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8633 "sysdep.h".
8634 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8635 _CET_ENDBR to indirect jump targets and adjust jump destination
8636 for _CET_ENDBR.
8637
8638 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8639
8640 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8641 _CET_ENDBR.
8642
8643 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8644
8645 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8646 _CET_ENDBR.
8647 (_dl_tlsdesc_undefweak): Likewise.
8648 (_dl_tlsdesc_dynamic): Likewise.
8649 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8650 (_dl_tlsdesc_resolve_rel): Likewise.
8651 (_dl_tlsdesc_resolve_rela): Likewise.
8652 (_dl_tlsdesc_resolve_hold): Likewise.
8653 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8654 (_dl_tlsdesc_undefweak): Likewise.
8655 (_dl_tlsdesc_dynamic): Likewise.
8656 (_dl_tlsdesc_resolve_rela): Likewise.
8657 (_dl_tlsdesc_resolve_hold): Likewise.
8658
8659 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8660
8661 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8662 (_fini): Likewise.
8663 * sysdeps/x86_64/crti.S (_init): Likewise.
8664 (_fini): Likewise.
8665
8666 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8667
8668 [BZ #23140]
8669 * localedata/locales/os_RU (mon): Rename to...
8670 (alt_mon): This.
8671 (mon): Import from CLDR (genitive case).
8672
8673 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8674
8675 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8676 cet-tunables.h> when CET is enabled.
8677
8678 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8679
8680 [BZ #21598]
8681 * configure.ac: Add --enable-cet.
8682 * configure: Regenerated.
8683 * elf/Makefille (all-built-dso): Add a comment.
8684 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8685 Include <dl-prop.h>.
8686 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8687 segment.
8688 * elf/dl-open.c: Include <dl-prop.h>.
8689 (dl_open_worker): Call _dl_open_check.
8690 * elf/rtld.c: Include <dl-prop.h>.
8691 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8692 _rtld_main_check.
8693 * sysdeps/generic/dl-prop.h: New file.
8694 * sysdeps/i386/dl-cet.c: Likewise.
8695 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8696 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8697 * sysdeps/x86/cet-tunables.h: Likewise.
8698 * sysdeps/x86/check-cet.awk: Likewise.
8699 * sysdeps/x86/configure: Likewise.
8700 * sysdeps/x86/configure.ac: Likewise.
8701 * sysdeps/x86/dl-cet.c: Likewise.
8702 * sysdeps/x86/dl-procruntime.c: Likewise.
8703 * sysdeps/x86/dl-prop.h: Likewise.
8704 * sysdeps/x86/libc-start.h: Likewise.
8705 * sysdeps/x86/link_map.h: Likewise.
8706 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8707 _CET_ENDBR.
8708 (_dl_runtime_profile): Likewise.
8709 (_dl_runtime_resolve_shstk): New.
8710 (_dl_runtime_profile_shstk): Likewise.
8711 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8712 if CET is enabled.
8713 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8714 (CFLAGS-.os): Likewise.
8715 (CFLAGS-.op): Likewise.
8716 (CFLAGS-.oS): Likewise.
8717 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8718 is enabled.
8719 (tests-special): Add $(objpfx)check-cet.out.
8720 (cet-built-dso): New.
8721 (+$(cet-built-dso:=.note)): Likewise.
8722 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8723 ($(objpfx)check-cet.out): New.
8724 (generated): Add check-cet.out.
8725 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8726 <cet-tunables.h>.
8727 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8728 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8729 (init_cpu_features): Call get_cet_status to check CET status
8730 and update dl_x86_feature_1 with CET status. Call
8731 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8732 (set_x86_shstk). Disable and lock CET in libc.a.
8733 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8734 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8735 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8736 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8737 (_CET_ENDBR): Define if not defined.
8738 (ENTRY): Add _CET_ENDBR.
8739 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8740 x86_shstk.
8741 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8742 _CET_ENDBR.
8743 (_dl_runtime_profile): Likewise.
8744
8745 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8746
8747 [BZ #21895]
8748 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8749 restore r2 on longjmp.
8750 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8751 test list.
8752 Added rules to build test tst-setjmp-bug21895-static.
8753 Added module setjmp-bug21895 and rules to build a shared object from it.
8754 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8755 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8756
8757 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8758
8759 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8760 * benchtests/bench-strstr.c: Likewise.
8761 * string/memmem.c (FASTSEARCH): Define.
8762 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8763 Add support for FASTSEARCH.
8764 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8765 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8766 (FASTSEARCH): Define.
8767 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8768 * string/test-strstr.c: Likewise.
8769
8770 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8771
8772 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8773 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8774
8775 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8776 H.J. Lu <hongjiu.lu@intel.com>
8777
8778 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8779 (__longjmp): Restore shadow stack pointer if shadow stack is
8780 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8781 isn't defined for __longjmp_cancel.
8782 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8783 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8784 and SHADOW_STACK_POINTER_OFFSET is defined.
8785 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8786 (setjmp): Save shadow stack pointer if shadow stack is enabled
8787 and SHADOW_STACK_POINTER_OFFSET is defined.
8788 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8789 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8790 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8791 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8792 <jmp_buf-ssp.h>.
8793 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8794 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8795 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8796 Remove jmp_buf-ssp.sym.
8797 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8798 <jmp_buf-ssp.h>.
8799 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8800 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8801 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8802 jmp_buf-ssp.sym.
8803 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8804 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8805 (__longjmp): Restore shadow stack pointer if shadow stack is
8806 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8807 isn't defined for __longjmp_cancel.
8808 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8809 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8810 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8811
8812 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8813
8814 [BZ #22563]
8815 * nptl/pthread_create.c: Include <tls-setup.h>.
8816 (__pthread_create_2_1): Call tls_setup_tcbhead.
8817 * sysdeps/generic/tls-setup.h: New file.
8818 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8819 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8820 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8821 Likewise.
8822 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8823 to feature_1.
8824 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8825 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8826 (X86_FEATURE_1_SHSTK): Likewise.
8827 (CET_ENABLED): Likewise.
8828 (IBT_ENABLED): Likewise.
8829 (SHSTK_ENABLED): Likewise.
8830
8831 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8832
8833 [BZ #23208]
8834 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8835 (LOCALES): Likewise.
8836 * localedata/dsb_DE.UTF-8.in: New file.
8837 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8838
8839 2018-07-12 Florian Weimer <fweimer@redhat.com>
8840
8841 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8842 __mprotect, not mprotect.
8843
8844 2018-07-11 Florian Weimer <fweimer@redhat.com>
8845
8846 * io/Makefile (headers): Add bits/statx.h.
8847
8848 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8849
8850 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8851 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8852 and headers.
8853 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8854 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8855 for utf8_gen.py
8856
8857 2018-07-10 Florian Weimer <fweimer@redhat.com>
8858
8859 * io/Makefile (routines): Add statx.
8860 (tests-internal): Add tst-statx.
8861 * io/Versions (GLIBC_2.28): Export statx.
8862 * io/bits/statx.h: New file.
8863 * io/sys/stat.h [__USE_GNU]: Include it.
8864 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
8865 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
8866 Define.
8867 * io/statx.c: New file.
8868 * io/statx_generic.: Likewise.
8869 * io/tst-statx.: Likewise.
8870 * include/bits/statx.h: Likewise.
8871 * sysdeps/unix/sysv/linux/kernel-features.h
8872 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
8873 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8874 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
8875 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
8876 Undefine.
8877 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8878 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
8879 * sysdeps/unix/sysv/linux/statx.c: New file.
8880 * manual/filesys.texi: Note that statx is undocumented.
8881 * sysdeps/**/libc*.abilist: Update.
8882
8883 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8884
8885 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
8886 a kernel issue which lead to test failure in some cases.
8887
8888 2018-07-10 Florian Weimer <fweimer@redhat.com>
8889
8890 [BZ #23036]
8891 * posix/regexec.c (check_node_accept_bytes): When comparing
8892 weights, do not compare an extra byte after the end of the
8893 weights.
8894
8895 2018-07-10 Florian Weimer <fweimer@redhat.com>
8896
8897 * libio/readline.c: Fix copyright year.
8898 * libio/tst-readline.c Likewise.
8899 * nss/tst-nss-files-hosts-getent.c: Likewise.
8900
8901 2018-07-06 Florian Weimer <fweimer@redhat.com>
8902
8903 [BZ #18991]
8904 * nss/nss_files/files-XXX.c (internal_getent): Use
8905 __libc_readline_unlocked. Seek back to the start of the line if
8906 parsing failes with ERANGE.
8907 (get_contents_ret, get_contents): Remove.
8908 * nss/tst-nss-files-hosts-getent.c: New file.
8909 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
8910 (tst-nss-files-hosts-getent): Link with -ldl.
8911
8912 2018-07-06 Florian Weimer <fweimer@redhat.com>
8913
8914 * include/stdio.h (__libc_readline_unlocked): Declare.
8915 (__ftello64, __fseeko64): Declare aliases.
8916 * libio/readline.c: New file.
8917 * libio/tst-readline.c: Likewise.
8918 (routines): Add readline.
8919 (tests-internal): Add tst-readlime.
8920 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
8921 __libc_readline_unlocked.
8922 * libio/fseeko.c (__fseeko): Rename from fseeko.
8923 (fseeko): Add alias.
8924 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
8925 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
8926 (fseeko64): Add alias.
8927 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
8928 * libio/ftello64.c (__ftello64): Rename from ftello64.
8929 (ftello64): Add alias.
8930
8931 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8932
8933 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
8934 HWCAP_ATOMICS.
8935
8936 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8937
8938 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
8939 Use dl_hwcap without masking.
8940 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
8941 Remove HWCAP_CPUID.
8942
8943 2018-07-06 Florian Weimer <fweimer@redhat.com>
8944
8945 * conform/conformtest.pl (checknamespace): Escape literal braces
8946 in regular expressions.
8947
8948 2018-07-06 Amit Pawar <amit.pawar@amd.com>
8949
8950 * sysdeps/x86/cpu-features.c (get_common_indeces):
8951 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
8952 * sysdeps/x86/cpu-features.c (init_cpu_features):
8953 AVX_Fast_Unaligned_Load is disabled for Excavator core.
8954
8955 2018-07-05 Florian Weimer <fweimer@redhat.com>
8956
8957 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
8958 protector.
8959 (CFLAGS-elf-init.oS): Likewise.
8960
8961 2018-07-05 Florian Weimer <fweimer@redhat.com>
8962 Carlos O'Donell <carlos@redhat.com>
8963
8964 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
8965 $(no-stack-protector). stack_chk_fail_local.c can be compiled
8966 with stack protector enabled because there is no risk of infinite
8967 recursion.
8968
8969 2018-07-05 Maciej W. Rozycki <macro@mips.com>
8970
8971 [BZ #19818]
8972 [BZ #23307]
8973 * libc-abis (ABSOLUTE): New ABI.
8974 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
8975 * NEWS: Mention the new ABI.
8976
8977 2018-07-05 Florian Weimer <fweimer@redhat.com>
8978
8979 [BZ # 17662]
8980 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
8981 (RENAME_WHITEOUT): Define.
8982 [__USE_GNU] (renameat2): Declare.
8983 * stdio-common/Makefile (routines): Add renameat2.
8984 (tests): Add tst-renameat2.
8985 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
8986 * stdio-common/renameat2.c: New file.
8987 * stdio-common/tst-renameat2.c: Likewise.
8988 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
8989 * manual/filesys.texi (Temporary Files): Note that renameat2 is
8990 undocumented.
8991 * sysdeps/unix/sysv/linux/kernel-features.h
8992 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
8993 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8994 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
8995 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8996 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
8997 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8998 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
8999 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9000 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9001 * include/stdio.h (__renameat): Add alias for renameat.
9002 * stdio-common/renameat.c (__renameat): Rename from renameat.
9003 Add hidden definition and alias.
9004 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9005 * sysdeps/mach/hurd/renameat.c: Likewise.
9006 * sysdeps/**/libc*.abilist: Add renameat2.
9007
9008 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9009
9010 * posix/bug-regex33.c: Fix build after regex sync.
9011
9012 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9013
9014 [BZ #23164]
9015 * localedata/tst-langinfo-setlocale.c: New file.
9016 * localedata/tst-langinfo-setlocale-static.c: New file.
9017 * localedata/tst-langinfo-newlocale.c: New file.
9018 * localedata/tst-langinfo-newlocale-static.c: New file.
9019 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9020 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9021 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9022 (tests-static): Remove tst-langinfo-static. Add
9023 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9024 (tests-special): Remove $(objpfx)tst-langinfo.out,
9025 $(objpfx)tst-langinfo-static.out. Add
9026 $(objpfx)tst-langinfo-setlocale.out,
9027 $(objpfx)tst-langinfo-newlocale.out,
9028 $(objpfx)tst-langinfo-setlocale-static.out,
9029 $(objpfx)tst-langinfo-newlocale-static.out.
9030 ($(objpfx)tst-langinfo.out): Remove.
9031 ($(objpfx)tst-langinfo-static.out): Remove.
9032 ($(objpfx)tst-langinfo-newlocale.out): New target.
9033 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9034 (test-xfail-tst-langinfo-newlocale-static): Add.
9035 ($(objpfx)tst-langinfo-setlocale.out): New target.
9036 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9037 * localedata/tst-langinfo.c: Call test_locale.
9038 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9039 data.
9040
9041 2018-07-04 Florian Weimer <fweimer@redhat.com>
9042
9043 testrun.sh: Implement --tool=strace, --tool=valgrind
9044 * Makefile (testrun-script): Define variable.
9045 (testrun.sh): Use variable.
9046 * manual/install.texi (Tools for Compilation): make 4.0 or later
9047 is required.
9048 * configure.ac: Check for make 4.0 or later.
9049 * INSTALL: Regenerate.
9050 * configure: Likewise.
9051
9052 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9053
9054 [BZ #23233]
9055 [BZ #21163]
9056 [BZ #18986]
9057 [BZ #13762]
9058 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9059 * posix/PCRE.tests: Remove invalid test.
9060 * posix/bug-regex28.c: Fix expected values for used syntax.
9061 * posix/bug-regex37.c: New file.
9062 * posix/bug-regex38.c: Likewise.
9063 * posix/regcomp.c: Sync with gnulib.
9064 * posix/regex.c: Likewise.
9065 * posix/regex.h: Likewise.
9066 * posix/regex_internal.c: Likewise.
9067 * posix/regex_internal.h: Likewise.
9068 * posix/regexec.c: Likewise.
9069
9070 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9071
9072 [BZ #23308]
9073 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9074 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9075 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9076 * localedata/unicode-gen/PropList.txt: likewise.
9077 * localedata/unicode-gen/UnicodeData.txt: likewise.
9078 * localedata/charmaps/UTF-8: Regenerate.
9079 * localedata/locales/i18n_ctype: likewise.
9080 * localedata/locales/tr_TR: likewise.
9081 * localedata/locales/translit_circle: likewise.
9082 * localedata/locales/translit_cjk_compat: likewise.
9083 * localedata/locales/translit_combining: likewise.
9084 * localedata/locales/translit_compat: likewise.
9085 * localedata/locales/translit_font: likewise.
9086 * localedata/locales/translit_fraction: likewise.
9087
9088 2018-07-03 Florian Weimer <fweimer@redhat.com>
9089
9090 [BZ #23363]
9091 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9092 * stdio-common/tst-printf.sh: Adjust expected output.
9093 * LICENSES: Update.
9094
9095 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9096
9097 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9098 symbol.
9099
9100 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9101
9102 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9103 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9104 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9105 * stdio-common/tst-printfsz-islongdouble.c: New file.
9106 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9107 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9108 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9109 [subdir == stdio-common] (tests-internal): Add
9110 test-printf-size-ieee128, and test-printf-size-ibm128.
9111 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9112 (CFLAGS-test-printf-size-ibm128.c): New variables.
9113 [subdir == stdio-common] (tests-special): Add
9114 $(objpfx)test-printf-size-ieee128.out and
9115 $(objpfx)test-printf-size-ibm128.out.
9116 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9117 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9118 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9119 __printf_sizeieee128.
9120 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9121 New file.
9122 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9123 Likewise.
9124 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9125 Likewise.
9126
9127 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9128
9129 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9130 (exp2f_inline): Likewise.
9131 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9132 (__math_uflowf): Likewise.
9133 (__math_may_uflowf): Likewise.
9134 (__math_divzerof): Likewise.
9135 (__math_invalidf): Likewise.
9136 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9137 (__math_oflowf): Likewise.
9138 (__math_uflowf): Likewise.
9139 (__math_may_uflowf): Likewise.
9140 (__math_divzerof): Likewise.
9141 (__math_invalidf): Likewise.
9142
9143 2018-06-29 DJ Delorie <dj@redhat.com>
9144 Carlos O'Donell <carlos@redhat.com>
9145
9146 [BZ #23329]
9147 * include/libc-symbols.h: Comment the freeres framework.
9148 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9149 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9150 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9151 * dlfcn/dlerror.c: Include libc-symbols.h
9152 (__dlerror_main_freeres): New function.
9153 * dlfcn/dlfreeres.c: New file.
9154 * dlfcn/sdlfreeres.c: New file.
9155 * include/dlfcn.h: Declare __dlerror_main_freeres.
9156 * malloc/set-freeres.c: Declare __libdl_freeres, and
9157 __libpthread_freeres.
9158 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9159 the releavant libraries are loaded.
9160 * malloc/thread-freeres.c: Add comments.
9161 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9162 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9163 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9164 (__free_stacks): Rename to...
9165 (free_stacks): ...this. Mark static.
9166 (queue_stack): Call free_stacks.
9167 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9168 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9169 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9170 ptr_freeres element from struct.
9171 (pthread_functions): Remove .ptr_freeres from struct initializer.
9172 [SHARED] (nptl_freeres): Remove.
9173 * nptl/nptlfreeres.c: New file.
9174 * nptl/pthreadP.h
9175 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9176 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9177 attribute_hidden.
9178 (__free_stacks): Rename to...
9179 (__nptl_stacks_freeres): ...this.
9180 (__shm_directory_freeres): Declare.
9181 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9182 (__nptl_unwind_freeres): ...this.
9183 * resolv/res-close.c: Add comment.
9184 * resolv/resolv_conf.c: Include libc-symbols.h.
9185 * string/strerror_l.c: Include libc-symbols.h.
9186 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9187 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9188 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9189 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9190
9191 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9192
9193 * stdlib/tst-strfmon_l.c: Add tests for long double.
9194
9195 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9196
9197 [BZ #23208]
9198 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9199 * localedata/locales/dsb_DE: New file.
9200
9201 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9202
9203 [BZ #23140]
9204 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9205 genitive case).
9206 (alt_mon): New entry, import from CLDR (nominative case).
9207
9208 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9209
9210 [BZ #22996]
9211 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9212
9213 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9214
9215 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9216 Use vector registers.
9217
9218 * sysdeps/aarch64/multiarch/memmove_falkor.S
9219 (__memcpy_falkor): Use vector registers.
9220
9221 2018-06-29 Martin Sebor <msebor@redhat.com>
9222
9223 * manual/stdio.texi (Customizing Printf): Mention interaction
9224 with GCC built-ins.
9225
9226 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9227
9228 [BZ #23307]
9229 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9230 `st_value' is 0 if `st_shndx' is SHN_ABS.
9231 * elf/tst-absolute-zero.c: New file.
9232 * elf/tst-absolute-zero-lib.c: New file.
9233 * elf/tst-absolute-zero-lib.lds: New file.
9234 * elf/Makefile (tests): Add `tst-absolute-zero'.
9235 (modules-names): Add `tst-absolute-zero-lib'.
9236 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9237 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9238 ($(objpfx)tst-absolute-zero: New dependency.
9239
9240 2018-06-29 Zack Weinberg <zackw@panix.com>
9241
9242 * configure.ac: New command-line option --disable-crypt.
9243 Force --disable-nss-crypt when --disable-crypt is given, with a
9244 warning if it was explicitly enabled.
9245 * configure: Regenerate.
9246 * config.make.in: New boolean substitution variable $(build-crypt).
9247 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9248 when $(build-crypt).
9249 * manual/install.texi: Document --disable-crypt.
9250 * INSTALL: Regenerate.
9251
9252 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9253 which is never set.
9254 * conform/Makefile: Only include libcrypt.a in
9255 linknamespace-libs-xsi and linknamespace-libs-XPG4
9256 when $(build-crypt).
9257 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9258 USE_CRYPT to 1 when $(build-crypt).
9259 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9260 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9261 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9262
9263 2018-06-29 Zack Weinberg <zackw@panix.com>
9264
9265 * crypt/crypt.h, posix/unistd.h: Update comments and
9266 prototypes for crypt and crypt_r.
9267
9268 * manual/crypt.texi (Cryptographic Functions): New initial
9269 exposition.
9270 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9271 (Unpredictable Bytes): Improve initial exposition. Clarify error
9272 behavior of getentropy and getrandom.
9273 * manual/examples/genpass.c: Generate a salt using getentropy
9274 instead of the current time. Use hash $5$ (SHA-2-256).
9275 * manual/examples/testpass.c: Demonstrate validation against
9276 hashes generated with three different one-way functions.
9277
9278 * manual/intro.texi: crypt.texi does not need an overview
9279 anymore.
9280
9281 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9282 * manual/terminal.texi: Consistently refer to "passphrases"
9283 * instead of "passwords", and to the "user database" instead
9284 * of the "password database".
9285 * manual/users.texi: Similarly. Add notes about how actual
9286 passphrase hashes are now stored in the shadow database.
9287 Remove 20-year-old junk todo note.
9288
9289 2018-06-29 Zack Weinberg <zackw@panix.com>
9290
9291 * manual/crypt.texi: Use a normal top-level @node declaration.
9292 Move most of the introductory text to the 'crypt' section.
9293 Move the example programs below the @deftypefun for 'crypt_r'.
9294 Move the 'getpass' section...
9295 * manual/terminal.texi: ...here.
9296
9297 2018-06-29 Zack Weinberg <zackw@panix.com>
9298 Florian Weimer <fweimer@redhat.com>
9299
9300 * posix/unistd.h: Do not declare encrypt.
9301 (_XOPEN_CRYPT): Remove macro definition.
9302 (crypt): Declare only for _USE_MISC.
9303 * stdlib/stdlib.h: Do not declare setkey.
9304 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9305 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9306
9307 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9308 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9309 into compat symbols. Don't define initial_perm if it's not
9310 going to be used.
9311 * crypt/cert.c: Link explicitly with the expected versions for
9312 setkey and encrypt. If they are not available at all, mark
9313 the test as unsupported.
9314
9315 * sunrpc/des_crypt.c: Unconditionally block linkage with
9316 cbc_crypt and ecb_crypt for new binaries.
9317 * sunrpc/des_soft.c: Unconditionally block linkage with
9318 des_setparity for new binaries.
9319
9320 * manual/crypt.texi: Remove the entire "DES Encryption"
9321 section. Also remove the paragraph talking about FIPS 140-2
9322 from the introduction.
9323 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9324 of libgcrypt for "real" encryption, not DES.
9325 * manual/conf.texi (Constants for Sysconf): Mention that
9326 _XOPEN_CRYPT is no longer impelemented.
9327
9328 * conform/data/unistd.h-data: Remove crypt function declaration.
9329
9330 2018-06-29 Florian Weimer <fweimer@redhat.com>
9331
9332 [BZ #23351]
9333 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9334 (disallow_malloc_check): Remove variable.
9335 (__malloc_check_init): Adjust.
9336 (malloc_set_state): Update comment.
9337 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9338 declarations.
9339
9340 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9341
9342 [BZ #23140]
9343 * localedata/locales/ast_ES (mon): Rename to...
9344 (alt_mon): This.
9345 (mon): Import from CLDR (genitive case).
9346
9347 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9348 Jakub Sitnicki <jkbs@redhat.com>
9349
9350 [BZ #21812]
9351 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9352 on NLM_F_DUMP_INTR.
9353
9354 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9355
9356 * manual/llio.texi: Remove spurious space.
9357
9358 2018-06-28 Florian Weimer <fweimer@redhat.com>
9359
9360 [BZ #23349]
9361 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9362 _STRUCT_TIMESPEC.
9363
9364 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9365
9366 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9367 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9368 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9369 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9370 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9371 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9372 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9373
9374 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9375
9376 [BZ #23266]
9377 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9378 Copy and null-terminate entries that are not terminated, in
9379 addition to empty ones.
9380
9381 2018-06-27 Florian Weimer <fweimer@redhat.com>
9382
9383 [BZ #18023]
9384 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9385 (extend_alloca_account): Remove.
9386 * manual/stdio.texi (Variable Arguments Output): Update comment.
9387
9388 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9389
9390 * nptl/sockperf.c: Remove file.
9391
9392 2018-06-27 Florian Weimer <fweimer@redhat.com>
9393
9394 [BZ #18023]
9395 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9396 scratch_buffer instead of extend_alloca.
9397
9398 2018-06-27 Florian Weimer <fweimer@redhat.com>
9399
9400 [BZ #18023]
9401 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9402 scratch_buffer instead of extend_alloca. Update comments.
9403
9404 2018-06-27 Florian Weimer <fweimer@redhat.com>
9405
9406 [BZ #18023]
9407 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9408 instead of extend_alloca.
9409
9410 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9411
9412 [BZ #13888]
9413 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9414 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9415 /tmp.
9416 * scripts/test-installation.pl: Put temporary files in build
9417 directory, not /tmp.
9418 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9419 (CFLAGS-bug4.c): Likewise.
9420 (CFLAGS-bug5.c): Likewise.
9421 (CFLAGS-test-fseek.c): Likewise.
9422 (CFLAGS-test-popen.c): Likewise.
9423 (CFLAGS-test_rdwr.c): Likewise.
9424 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9425 /tmp.
9426 * stdio-common/bug4.c (main): Likewise.
9427 * stdio-common/bug5.c (main): Likewise.
9428 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9429 * stdio-common/test-popen.c (do_test): Likewise.
9430 * stdio-common/test_rdwr.c (main): Likewise.
9431
9432 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9433
9434 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9435 (sem_open): Set sem.newsem.pad to zero for valgrind.
9436
9437 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9438
9439 [BZ #20251]
9440 * NEWS: Mention fcntl64 addition.
9441 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9442 * login/utmp_file.c: Likewise.
9443 * sysdeps/posix/fdopendir.c: Likewise.
9444 * sysdeps/posix/opendir.c: Likewise.
9445 * sysdeps/unix/pt-fcntl.c: Likewise.
9446 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9447 __fcntl64_nocancel_adjusted): New prototype.
9448 (__fcntl_nocancel_adjusted): Remove prototype.
9449 * io/Makefile (routines): Add fcntl64.
9450 (CFLAGS-fcntl64.c): New rule.
9451 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9452 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9453 * io/fcntl.h (fcntl64): Add prototype and redirect if
9454 __USE_FILE_OFFSET64 is defined.
9455 * io/fcntl64.c: New file.
9456 * manual/llio.text: Add a note for which commands fcntl acts a
9457 cancellation point.
9458 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9459 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9460 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9461 New symbols.
9462 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9463 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9464 non-LFS case.
9465 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9466 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9467 to __fcntl64_nocancel.
9468 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9469 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9470 to __fcntl64_nocancel.
9471 * sysdeps/generic/not-cancel.h: Likewise.
9472 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9473 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9474 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9475 (fcntl64): New symbol.
9476 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9477 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9478 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9481 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9482 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9483 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9484 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9485 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9486 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9487 fcntl64): Likewise.
9488 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9489 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9490 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9491 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9492 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9493 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9494 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9495 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9496 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9498 Likewise.
9499 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9500 Likewise.
9501 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9502 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9503 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9504
9505 2018-06-26 Florian Weimer <fweimer@redhat.com>
9506
9507 Run thread shutdown functions in an explicit order.
9508 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9509 definition.
9510 (__libc_thread_freeres): Call thread shutdown functions
9511 explicitly.
9512 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9513 * include/string.h (__strerror_thread_freeres): Declare.
9514 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9515 arena_thread_freeres. No longer static. Remove thread shutdown
9516 hook registration.
9517 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9518 Declare.
9519 * resolv/res-close.c (__res_thread_freeres): Renamed from
9520 res_thread_freeres. No longer static. Remove thread shutdown
9521 hook registration.
9522 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9523 * resolv/resolv_conf.c (freeres): Remove incorrect section
9524 attribute and use libc_freeres_fn.
9525 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9526 strerror_thread_freeres. No longer static. Remove thread
9527 shutdown hook registration.
9528 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9529 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9530 shutdown hook registration.
9531 * Makerules (shlib.lds): Do not provide section boundary symbols
9532 for __libc_thread_subfreeres.
9533 * manual/memory.texi (Basic Allocation): Update comment.
9534
9535 2018-06-26 Florian Weimer <fweimer@redhat.com>
9536
9537 Remove always-defined _RPC_THREAD_SAFE_ macro.
9538 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9539 Do not define _RPC_THREAD_SAFE_.
9540 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9541 conditional.
9542 * sunrpc/clnt_perr.c: Likewise.
9543 * sunrpc/clnt_raw.c: Likewise.
9544 * sunrpc/clnt_simp.c: Likewise.
9545 * sunrpc/key_call.c: Likewise.
9546 * sunrpc/rpc_common.c: Likewise.
9547 * sunrpc/rpc_main.c: Likewise.
9548 * sunrpc/rpc_thread.c: Likewise.
9549 * sunrpc/svc.c: Likewise.
9550 * sunrpc/svc_raw.c: Likewise.
9551 * sunrpc/svc_simple.c: Likewise.
9552 * sumrpc/svcauth_des.c: Likewise.
9553
9554 2018-06-26 Florian Weimer <fweimer@redhat.com>
9555
9556 * libio/Makefile (tests-internal): Add tst-vtables,
9557 tst-vtables-interposed.
9558 * libio/tst-vtables.c: New file.
9559 * libio/tst-vtables-common.c: Likewise.
9560 * libio/tst-vtables-interposed.c: Likewise.
9561
9562 2018-06-26 Florian Weimer <fweimer@redhat.com>
9563
9564 * support/support_test_main.c (support_test_main): Only call
9565 setvbuf if not disables.
9566 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9567 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9568
9569 2018-06-26 Florian Weimer <fweimer@redhat.com>
9570
9571 [BZ #23313]
9572 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9573
9574 2018-06-25 Florian Weimer <fweimer@redhat.com>
9575
9576 [BZ #18023]
9577 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9578 Use struct scratch_buffer instead of extend_alloca.
9579
9580 2018-06-25 Florian Weimer <fweimer@redhat.com>
9581
9582 [BZ #18023]
9583 * nss/getent.c (initgroups_keys): Use dynarray instead of
9584 extend_alloca.
9585
9586 2018-06-25 Florian Weimer <fweimer@redhat.com>
9587
9588 [BZ #18023]
9589 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9590 Use struct scratch_buffer instead of extend_alloca.
9591
9592 2018-06-25 Florian Weimer <fweimer@redhat.com>
9593
9594 [BZ #18023]
9595 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9596 back to malloc directly, without stack allocations.
9597
9598 2018-06-25 Florian Weimer <fweimer@redhat.com>
9599
9600 [BZ #18023]
9601 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9602 of extend_alloca.
9603
9604 2018-06-25 Florian Weimer <fweimer@redhat.com>
9605
9606 [BZ #18023]
9607 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9608 of extend_alloca.
9609 * nscd/hstcache.c (addhstbyX): Likewise.
9610 * nscd/pwdcache.c (addpwbyX): Likewise.
9611 * nscd/servicescache.c (addservbyX): Likewise.
9612
9613 2018-06-25 Florian Weimer <fweimer@redhat.com>
9614
9615 [BZ #18023]
9616 * nscd/connections.c (read_cmdline): New function.
9617 (restart): Use it. Update comment.
9618
9619 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9620
9621 [BZ #23140]
9622 * localedata/locales/csb_PL (mon): Rename to...
9623 (alt_mon): This.
9624 (abmon): Rename to...
9625 (ab_alt_mon): This.
9626 (mon): Add with proper genitive forms, copy from Wikipedia.
9627 (abmon): Likewise.
9628
9629 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9630
9631 [BZ #19485]
9632 * localedata/locales/csb_PL (mon): Fix typos:
9633 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9634 (yesstr): Add, value is "jo".
9635 (nostr): Add, value is "nié".
9636
9637 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9638
9639 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9640 all log1p and significand functions on m680x0.
9641 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9642 of s_significand.c..
9643 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9644 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9645 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9646 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9647 s_log1p.c and include it..
9648
9649 2018-06-21 Vincent Chen <vincentc@andestech.com>
9650
9651 * elf/elf.h (R_NDS32_NONE): New define.
9652 (R_NDS32_32_RELA): Likewise.
9653 (R_NDS32_COPY): Likewise.
9654 (R_NDS32_GLOB_DAT): Likewise.
9655 (R_NDS32_JUMP_SLOT): Likewise.
9656 (R_NDS32_RELATIVE): Likewise.
9657 (R_NDS32_TLS_TPOFF): Likewise.
9658 (R_NDS32_TLS_DESC): Likewise.
9659
9660 2018-06-21 Mark Wielaard <mark@klomp.org>
9661
9662 * elf/elf.h (R_BPF_MAP_FD): Removed.
9663 (R_BPF_64_64, R_BPF_64_32): New.
9664
9665 2018-06-21 Florian Weimer <fweimer@redhat.com>
9666
9667 [BZ #23253]
9668 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9669 Renamed from libc_feholdsetround_ctx.
9670 (default_libc_feresetround_ctx): Renamed from
9671 libc_feresetround_ctx.
9672 (default_libc_feholdsetround_noex_ctx): Renamed from
9673 libc_feholdsetround_noex_ctx.
9674 (default_libc_feresetround_noex_ctx): Renamed from
9675 libc_feresetround_noex_ctx.
9676 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9677 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9678 forwardning to the old implementations under the new names.
9679 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9680 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9681 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9682 (libc_feresetround_ctx): Forward to default implements for i386
9683 and MATH_SET_BOTH_ROUNDING_MODES.
9684 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9685 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9686
9687 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9688
9689 * string/tst-cmp.c: Include <libc-diag.h>.
9690 (strncmp_max): Disable -Wstringop-overflow= around call to
9691 strncmp.
9692 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9693 strncasecmp.
9694
9695 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9696 (main): Disable -Wunused-value around call to strpbrk.
9697 * string/bug-strspn1.c: Include <libc-diag.h>.
9698 (main): Disable -Wunused-value around call to strspn.
9699
9700 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9701 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9702
9703 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9704 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9705
9706 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9707
9708 * math/Makefile (libm-calls): Move s_significandF to...
9709 (gen-libm-calls): ... here.
9710 * math/s_significand_template.c: New file.
9711 * math/s_significand.c: Removed.
9712 * math/s_significandf.c: Removed.
9713 * math/s_significandl.c: Removed.
9714 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9715 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9716
9717 * math/e_exp2_template.c (declare_mgen_finite_alias,
9718 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9719 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9720 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9721
9722 2018-06-20 Florian Weimer <fweimer@redhat.com>
9723
9724 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9725
9726 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9727
9728 [BZ #23280]
9729 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9730 floating-point number to strtod functions rather than possibly
9731 negating result of those functions.
9732 * stdio-common/tst-scanf-round.c: New file.
9733 * stdio-common/Makefile (tests): Add tst-scanf-round.
9734 ($(objpfx)tst-scanf-round): Depend on $(libm).
9735
9736 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9737
9738 * sysdeps/mach/hurd/localplt.data: Move to...
9739 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9740 R_386_GLOB_DAT like on Linux i386.
9741
9742 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9743
9744 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9745 (SHM_STAT_ANY): New macro.
9746 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9747 (SHM_STAT_ANY): Likewise.
9748 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9749 (SHM_STAT_ANY): Likewise.
9750 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9751 (SHM_STAT_ANY): Likewise.
9752 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9753 (SHM_STAT_ANY): Likewise.
9754 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9755 (SHM_STAT_ANY): Likewise.
9756 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9757 (SHM_STAT_ANY): Likewise.
9758 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9759 (SHM_STAT_ANY): Likewise.
9760 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9761 (SHM_STAT_ANY): Likewise.
9762 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9763 (SHM_STAT_ANY): Likewise.
9764 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9765 (SHM_STAT_ANY): Likewise.
9766 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9767 (SHM_STAT_ANY): Likewise.
9768
9769 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9770 (SEM_STAT_ANY): New macro.
9771 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9772 (SEM_STAT_ANY): Likewise.
9773 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9774 (SEM_STAT_ANY): Likewise.
9775 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9776 (SEM_STAT_ANY): Likewise.
9777 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9778 (SEM_STAT_ANY): Likewise.
9779 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9780 (SEM_STAT_ANY): Likewise.
9781 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9782 (SEM_STAT_ANY): Likewise.
9783 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9784 (SEM_STAT_ANY): Likewise.
9785 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9786 (SEM_STAT_ANY): Likewise.
9787 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9788 (SEM_STAT_ANY): Likewise.
9789
9790 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9791 (MSG_STAT_ANY): New macro.
9792 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9793 (MSG_STAT_ANY): Likewise.
9794 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9795 (MSG_STAT_ANY): Likewise.
9796 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9797 (MSG_STAT_ANY): Likewise.
9798 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9799 (MSG_STAT_ANY): Likewise.
9800 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9801 (MSG_STAT_ANY): Likewise.
9802 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9803 (MSG_STAT_ANY): Likewise.
9804 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9805 (MSG_STAT_ANY): Likewise.
9806 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9807 (MSG_STAT_ANY): Likewise.
9808 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9809 (MSG_STAT_ANY): Likewise.
9810
9811 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9812 (MAP_TYPE): Change value to 0x2b.
9813
9814 2018-06-18 Florian Weimer <fweimer@redhat.com>
9815
9816 [BZ #15722]
9817 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9818 socket with SOCK_CLOEXEC.
9819
9820 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9821
9822 [BZ #23303]
9823 * sysdeps/powerpc/powerpc64/le/Makefile
9824 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9825 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9826 (gnulib-tests): Also add $(f128-loader-link) for
9827 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9828
9829 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9830
9831 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9832 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9833 of sendfile.
9834 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9835 (sendfile64): New strong alias.
9836 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9837 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9838 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9839 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9840 attribute.
9841 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9842 ___pthread_get_cleanup_stack.
9843 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9844 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9845 * mach/shortcut.awk: Make syscall stubs include
9846 <mach-shortcuts-hidden.h> and add hidden definition.
9847 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9848 (__mach_msg): Add hidden prototype.
9849 * mach/msg.c: Include <mach.h>.
9850 (__mach_msg): Add hidden definition.
9851 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9852 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9853 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9854 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9855 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9856 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9857 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9858 prototype and definition.
9859 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9860 hidden target for _hurd_self_sigstate.
9861
9862 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9863
9864 [BZ #23007]
9865 * stdlib/tst-strtod-nan-sign-main.c: New file.
9866 * stdlib/tst-strtod-nan-sign.c: Likewise.
9867 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
9868 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
9869 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
9870 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
9871 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
9872
9873 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
9874
9875 [BZ #23007]
9876 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
9877 appropriate sign.
9878
9879 2018-06-14 Florian Weimer <fweimer@redhat.com>
9880
9881 [BZ #23290]
9882 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
9883 that the result stays within the ISO-8859-1 range.
9884 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
9885 characters are defined in IBM273.
9886
9887 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9888
9889 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
9890 __mach_task_self): Remove attribute_hidden.
9891
9892 2018-06-14 Joseph Myers <joseph@codesourcery.com>
9893
9894 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
9895 ignore -Wrestrict for one test.
9896
9897 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
9898 Szabolcs Nagy <szabolcs.nagy@arm.com>
9899
9900 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
9901
9902 2018-06-14 Florian Weimer <fweimer@redhat.com>
9903
9904 * scripts/update-abilist.sh: Accept empty list of files to patch.
9905
9906 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
9907
9908 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
9909 test-xfail-check-abi-libmachuser): Add.
9910 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
9911 __libc_read and __libc_write to __read and __write.
9912 * sysdeps/hurd/include/hurd/port.h: New file.
9913 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
9914 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
9915 __thread_switch, __evc_wait): Move declarations to...
9916 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
9917 attribute_hidden.
9918 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
9919 use PLT to call _hurd_self_sigstate.
9920
9921 2018-06-13 Joseph Myers <joseph@codesourcery.com>
9922
9923 [BZ #23279]
9924 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
9925 MAX_EXP as overflowing.
9926 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
9927 overflow flag.
9928 (round_str): Output also whether result overflows in each rounding
9929 mode.
9930 * stdlib/tst-strtod-round-data: Add more tests.
9931 * stdlib/tst-strtod-round-data.h: Regenerated.
9932 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
9933 (TEST): Handle extra arguments for overflow flags.
9934 (struct test_overflow): New type.
9935 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
9936 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
9937 (test_in_one_mode): Take argument with overflow information.
9938 (do_test): Update calls to test_in_one_mode.
9939
9940 2018-06-12 Carlos O'Donell <carlos@redhat.com>
9941
9942 * elf/dl-load (_dl_dst_substitute): Correct comment.
9943 (_dl_dst_count): Likewise.
9944
9945 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
9946 lll_futex_timed_wait.
9947
9948 2018-06-12 Joseph Myers <joseph@codesourcery.com>
9949
9950 [BZ #23277]
9951 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
9952 attribute.
9953 * math/test-nan-const.c: New file.
9954 * math/Makefile (tests): Add test-nan-const.
9955 (CFLAGS-test-nan-const.c): New variable.
9956
9957 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
9958
9959 * benchtests/scripts/compare_strings.py (process_results): Add
9960 funcs argument. Compare only functions which are selected.
9961 (main): Check if base function is among selected functions.
9962 Pass selected functions to process_results.
9963 (__main__): Add -f/--functions argument.
9964
9965 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
9966 Hongbo Zhang <hongbo.zhang@linaro.org>
9967
9968 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
9969 __memcpy_falkor for phecda core.
9970 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
9971 __memmove_falkor for phecda core.
9972 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
9973 __memset_falkor for phecda core.
9974 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
9975 for phecda core.
9976 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
9977 macro to identify phecda core.
9978
9979 2018-06-12 Carlos O'Donell <carlos@redhat.com>
9980 Andreas Schwab <schwab@suse.de>
9981 Dmitry V. Levin <ldv@altlinux.org>
9982 Florian Weimer <fweimer@redhat.com>
9983
9984 [BZ #23102]
9985 [BZ #21942]
9986 [BZ #18018]
9987 [BZ #23259]
9988 CVE-2011-0536
9989 * elf/dl-dst.h: Remove DL_DST_COUNT.
9990 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
9991 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
9992 (is_dst): Comment. Support ELF gABI.
9993 (_dl_dst_count): Comment. Simplify and count DSTs.
9994 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
9995 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
9996 locals.
9997
9998 2018-06-12 Zack Weinberg <zackw@panix.com>
9999
10000 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10001 * sysdeps/unix/sysv/linux/dl-sysdep.c
10002 Include not-cancel.h. Use __close_nocancel instead of __close,
10003 __open64_nocancel instead of __open, __read_nocancel instead of
10004 __libc_read, and __write_nocancel instead of __libc_write.
10005
10006 * csu/check_fds.c (check_one_fd)
10007 * sysdeps/posix/fdopendir.c (__fdopendir)
10008 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10009 instead of __fcntl and/or __libc_fcntl.
10010
10011 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10012 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10013 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10014 Use __open64_nocancel instead of __open_nocancel.
10015
10016 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10017 hidden_proto declarations to the end and issue them if either
10018 IS_IN(libc) or IS_IN(rtld).
10019 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10020 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10021 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10022 read_nocancel, waitpid_nocancel, write_nocancel.
10023
10024 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10025 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10026 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10027
10028 * nptl/pt-fcntl.c: New file.
10029 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10030 (libpthread-routines): Add pt-fcntl.
10031 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10032 (__libc_fcntl): Remove attribute_hidden.
10033 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10034 __fcntl_nocancel_adjusted, not fcntl_common.
10035 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10036 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10037 to fcntl_nocancel.c.
10038 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10040 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10041 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10042
10043 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10044 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10045 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10046 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10047 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10048 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10049 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10050 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10051 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10052 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10053 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10054 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10055 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10056 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10057 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10058 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10059 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10060 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10061 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10062 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10063
10064 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10065 libpthread-routines.
10066 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10067 defines nothing.
10068
10069 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10070 __libc_read, and __write instead of __libc_write. Define
10071 __open64 in addition to __open.
10072
10073 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10074
10075 [BZ #23250]
10076 [BZ #10686]
10077 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10078 to _private_tm[3] and add __glibc_reserved2.
10079 Add _Static_assert of offset of __private_ss == 0x30.
10080 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10081 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10082
10083 2018-06-12 Florian Weimer <fweimer@redhat.com>
10084
10085 x86: Make strncmp usable from rtld.
10086 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10087 __strncmp_ia32 if in libc (and not in rtld).
10088 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10089 strncmp if not in libc (and not to __strncmp_sse2).
10090
10091 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10092
10093 [BZ #23140]
10094 * localedata/locales/gd_GB (mon): Rename to...
10095 (alt_mon): This.
10096 (mon): Import from CLDR (genitive case).
10097 * localedata/locales/hsb_DE (mon): Rename to...
10098 (alt_mon): This.
10099 (mon): Import from CLDR (genitive case).
10100 * localedata/locales/wa_BE (mon): Rename to...
10101 (alt_mon): This.
10102 (mon): Add, fill with the proper genitive forms, but CLDR data
10103 is incomplete; completed according to the comments in this file.
10104 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10105
10106 * localedata/locales/wa_BE (country_name): Reword
10107 "Beljike" -> "Beldjike".
10108
10109 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10110
10111 [BZ #23272]
10112 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10113 cases of non-finite arguments.
10114 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10115
10116 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10117
10118 [BZ #23174]
10119 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10120
10121 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10122
10123 [BZ #23264]
10124 * include/unistd.h (__execvpex): New prototype.
10125 * posix/Makefile (tests): Add tst-spawn4.
10126 (tests-internal): Add tst-spawn4-compat.
10127 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10128 * posix/tst-spawn4-compat.c: New file.
10129 * posix/tst-spawn4.c: Likewise.
10130 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10131 binaries as shell scripts.
10132 * sysdeps/posix/spawni.c (__spawni): Likewise.
10133
10134 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10135
10136 [BZ #23145]
10137 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10138 ($(all-built-dso:=.dynsym): New target.
10139 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10140 ($(objpfx)check-initfini.out): New target.
10141 (generated): Add check-initfini.out.
10142 * scripts/check-initfini.awk: New file.
10143 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10144 (_fini): Likewise.
10145 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10146 (_fini): Likewise.
10147 * sysdeps/arm/crti.S (_init): Mark as hidden.
10148 (_fini): Likewise.
10149 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10150 (_fini): Likewise.
10151 * sysdeps/i386/crti.S (_init): Mark as hidden.
10152 (_fini): Likewise.
10153 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10154 (_fini): Likewise.
10155 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10156 (_fini): Likewise.
10157 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10158 (_fini): Likewise.
10159 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10160 (_fini): Likewise.
10161 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10162 (_fini): Likewise.
10163 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10164 (_fini): Likewise.
10165 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10166 (_fini): Likewise.
10167 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10168 (_fini): Likewise.
10169 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10170 (_fini): Likewise.
10171 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10172 (_fini): Likewise.
10173 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10174 (_fini): Likewise.
10175 * sysdeps/sh/crti.S (_init): Mark as hidden.
10176 (_fini): Likewise.
10177 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10178 (_fini): Likewise.
10179 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10180 (_fini): Likewise.
10181
10182 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10183
10184 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10185 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10186 and TF redirection to KFtype and KF only when the default
10187 long double type is not the IEEE 128-bit floating point type.
10188
10189 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10190
10191 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10192 macro.
10193 (HWCAP_USCAT): Likewise.
10194 (HWCAP_ILRCPC): Likewise.
10195 (HWCAP_FLAGM): Likewise.
10196 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10197 Increase to 28.
10198 (_dl_aarch64_cap_flags): Add new flag names.
10199
10200 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10201 (MAP_FIXED_NOREPLACE): New macro.
10202 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10203 (MAP_FIXED_NOREPLACE): Likewise.
10204 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10205 (MAP_FIXED_NOREPLACE): Likewise.
10206 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10207 (MAP_FIXED_NOREPLACE): Likewise.
10208 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10209 (MAP_FIXED_NOREPLACE): Likewise.
10210 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10211 (MAP_FIXED_NOREPLACE): Likewise.
10212 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10213 (MAP_FIXED_NOREPLACE): Likewise.
10214 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10215 (MAP_FIXED_NOREPLACE): Likewise.
10216 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10217 (MAP_FIXED_NOREPLACE): Likewise.
10218 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10219 (MAP_FIXED_NOREPLACE): Likewise.
10220 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10221 (MAP_FIXED_NOREPLACE): Likewise.
10222 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10223 (MAP_FIXED_NOREPLACE): Likewise.
10224 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10225 (MAP_FIXED_NOREPLACE): Likewise.
10226 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10227 (MAP_FIXED_NOREPLACE): Likewise.
10228 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10229 (MAP_FIXED_NOREPLACE): Likewise.
10230
10231 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10232 version to 4.17.
10233
10234 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10235
10236 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10237 version to 4.17
10238
10239 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10240
10241 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10242 int.
10243 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10244
10245 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10246
10247 * benchtests/scripts/compare_string.py: (process_results) Catch
10248 exception in non-existent base_func and catch exception in
10249 non-existent attribute.
10250 (parse_file) Catch exception if input file does not exist.
10251
10252 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10253
10254 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10255 options to avoid diff calculation and omit header, respectively.
10256 (main): process --no-diff and --no-header
10257
10258 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10259 H.J. Lu <hongjiu.lu@intel.com>
10260
10261 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10262 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10263 wcsncmp-sse2.
10264 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10265 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10266 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10267 and __wcsncmp_sse2.
10268 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10269 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10270 AVX unaligned load is fast and vzeroupper is preferred.
10271 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10272 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10273 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10274 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10275 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10276 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10277 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10278 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10279 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10280 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10281 is undefined.
10282
10283 2018-06-01 Florian Weimer <fweimer@redhat.com>
10284
10285 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10286 configuring with --disable-multi-arch, building with
10287 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10288 Haswell-era CPU.
10289
10290 2018-06-01 Florian Weimer <fweimer@redhat.com>
10291
10292 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10293 results from building with “-march=x86-64 -mtune=generic
10294 -mfpmath=sse” and running on a Haswell-era CPU.
10295
10296 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10297
10298 [BZ #18473]
10299 * soft-fp/sqrttf2.c: Remove file.
10300 * soft-fp/sqrtdf2.c: Move to ....
10301 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10302 <shlib-compat.h>.
10303 (__sqrtdf2): Make conditional on
10304 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10305 symbol.
10306 * soft-fp/sqrtsf2.c: Move to ....
10307 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10308 <shlib-compat.h>.
10309 (__sqrtsf2): Make conditional on
10310 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10311 symbol.
10312 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10313 (gcc-double-routines): Remove sqrtdf2.
10314 (gcc-quad-routines): Remove sqrttf2.
10315 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10316 Do not filter out sqrtsf2 and sqrtdf2.
10317 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10318 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10319
10320 2018-06-01 Florian Weimer <fweimer@redhat.com>
10321
10322 * sysdeps/generic/libcidn.abilist: Remove file.
10323
10324 2018-06-01 Florian Weimer <fweimer@redhat.com>
10325
10326 [BZ #23236]
10327 * libio/strfile.h (struct _IO_str_fields): Rename members to
10328 discourage their use and add comment.
10329 (_IO_STR_DYNAMIC): Remove unused macro.
10330 * libio/strops.c (_IO_str_init_static_internal): Do not use
10331 callback pointers. Call malloc and free.
10332 (_IO_str_overflow): Do not use callback pointers. Call malloc
10333 and free.
10334 (enlarge_userbuf): Likewise.
10335 (_IO_str_finish): Call free.
10336 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10337 _allocate_buffer_unused.
10338 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10339 and free.
10340 (enlarge_userbuf): Likewise.
10341 (_IO_wstr_finish): Call free.
10342 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10343 _allocate_buffer_unused, _free_buffer_unused.
10344 * libio/memstream.c (__open_memstream): Likewise.
10345 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10346 * libio/wmemstream.c (open_wmemstream): Likewise.
10347
10348 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10349
10350 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10351 AMD Ryzen 7 1800X.
10352
10353 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10354
10355 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10356 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10357 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10358 New file.
10359 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10360 Likewise.
10361 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10362
10363 2018-05-29 Florian Weimer <fweimer@redhat.com>
10364
10365 * support/Makefile (libsupport-routines): Add
10366 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10367 xpthread_barrierattr_setpshared.
10368 * support/xpthread_barrierattr_destroy.c: New file.
10369 * support/xpthread_barrierattr_init.c: Likewise.
10370 * support/xpthread_barrierattr_setpshared.c: Likewise.
10371
10372 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10373
10374 [BZ #23206]
10375 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10376 _r_debug and update DT_DEBUG for debugger.
10377
10378 2018-05-29 Florian Weimer <fweimer@redhat.com>
10379
10380 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10381 (tst-strtod5i.out): Likewise.
10382
10383 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10384
10385 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10386 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10387 (sparc64-quad-routines): New variable. Moved from ....
10388 [$(subdir) = soft-fp] (sysdep_routines): Add
10389 $(sparc64-quad-routines). Moved from ....
10390 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10391 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10392 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10393 moved from ....
10394 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10395 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10396 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10397 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10398 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10399 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10400 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10401 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10402 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10403 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10404 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10405 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10406 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10407 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10408 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10409 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10410 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10411 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10412 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10413 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10414 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10415 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10416 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10417 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10418 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10419 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10420 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10421 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10422 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10423 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10424 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10425 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10426 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10427 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10428 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10429 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10430 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10431 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10432 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10433 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10434 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10435 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10436 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10437 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10438 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10439 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10440 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10441 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10442 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10443 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10444 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10445 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10446 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10447 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10448 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10449 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10450 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10451 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10452
10453 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10454 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10455 (sparc32-quad-routines): New variable. Moved from ....
10456 [$(subdir) = soft-fp] (sysdep_routines): Add
10457 $(sparc32-quad-routines). Moved from ....
10458 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10459 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10460 moved from ....
10461 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10462 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10463 * sysdeps/sparc/sparc32/q_add.c: ... here.
10464 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10465 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10466 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10467 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10468 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10469 * sysdeps/sparc/sparc32/q_div.c: ... here.
10470 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10471 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10472 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10473 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10474 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10475 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10476 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10477 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10478 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10479 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10480 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10481 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10482 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10483 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10484 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10485 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10486 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10487 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10488 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10489 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10490 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10491 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10492 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10493 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10494 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10495 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10496 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10497 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10498 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10499 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10500 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10501 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10502 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10503 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10504 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10505 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10506 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10507 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10508 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10509 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10510 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10511 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10512 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10513 * sysdeps/sparc/sparc32/q_util.c: ... here.
10514 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10515 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10516 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10517 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10518
10519 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10520 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10521
10522 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10523 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10524 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10525 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10526
10527 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10528
10529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10530 powerpc/soft-fp.
10531 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10532 Likewise.
10533 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10534 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10535
10536 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10537
10538 [BZ #23171]
10539 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10540 double version.
10541
10542 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10543
10544 * sysdeps/sh/Implies: Remove sh/soft-fp.
10545 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10546 * sysdeps/sh/sfp-machine.h: ... here.
10547
10548 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10549
10550 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10551 (__mempcpy_erms): Skip zero length.
10552 (__memmove_erms): Likewise.
10553 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10554 (__memset_erms): Likewise.
10555
10556 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10557
10558 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10559 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10560 Add functions moved from ....
10561 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10562 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10563 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10564 from ....
10565 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10566 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10567 * sysdeps/alpha/e_sqrtl.c: ... here.
10568 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10569 * sysdeps/alpha/local-soft-fp.h: ... here.
10570 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10571 * sysdeps/alpha/ots_add.c: ... here.
10572 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10573 * sysdeps/alpha/ots_cmp.c: ... here.
10574 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10575 * sysdeps/alpha/ots_cmpe.c: ... here.
10576 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10577 * sysdeps/alpha/ots_cvtqux.c: ... here.
10578 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10579 * sysdeps/alpha/ots_cvtqx.c: ... here.
10580 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10581 * sysdeps/alpha/ots_cvttx.c: ... here.
10582 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10583 * sysdeps/alpha/ots_cvtxq.c: ... here.
10584 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10585 * sysdeps/alpha/ots_cvtxt.c: ... here.
10586 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10587 * sysdeps/alpha/ots_div.c: ... here.
10588 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10589 * sysdeps/alpha/ots_mul.c: ... here.
10590 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10591 * sysdeps/alpha/ots_nintxq.c: ... here.
10592 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10593 * sysdeps/alpha/ots_sub.c: ... here.
10594 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10595 * sysdeps/alpha/sfp-machine.h: ... here.
10596
10597 2018-05-23 Florian Weimer <fweimer@redhat.com>
10598
10599 [BZ #19728]
10600 [BZ #19729]
10601 [BZ #22247]
10602 CVE-2016-6261
10603 CVE-2016-6263
10604 CVE-2017-14062
10605 Switch to extern IDNA implementation (libidn2).
10606 * libidn: Remove subdirectory.
10607 * LICENSES: Do not mention licensing conditions for the removed
10608 libidn code.
10609 * config.h.in (HAVE_LIBIDN): Remove.
10610 * include/dlfcn.h (__libc_dlopen): Update comment.
10611 * include/idna.h: Remove file.
10612 * inet/Makefile (routines): Add idna.
10613 (tests-static, tests-internal): Add tst-idna_name_classify.
10614 (LOCALES): Generate locales for tests.
10615 (tst-idna_name_classify.out): Depend on generated locales.
10616 * inet/idna_name_classify.c: New file.
10617 * inet/tst-idna_name_classify.c: Likewise.
10618 * inet/net-internal.h (__idna_to_dns_encoding)
10619 (__idna_from_dns_encoding): Declare.
10620 * inet/net-internal.h (enum idna_name_classification): Define.
10621 (__idna_name_classify): Declare.
10622 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10623 __idna_from_dns_encoding.
10624 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10625 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10626 name as a fallback in case of encoding errors.
10627 (getnameinfo): Use DEPRECATED_NI_IDN.
10628 * inet/idna.c: New file.
10629 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10630 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10631 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10632 (modules-names): Add tst-no-libidn2.
10633 (extra-test-objs): Add tst-no-libidn2.os.
10634 (LDFLAGS-tst-no-libidn2.so): Set soname.
10635 (LOCALES): Set, and generate locales.
10636 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10637 (tst-resolv-ai_idn-latin1): Likewise.
10638 (tst-resolv-ai_idn-nolibidn2): Likewise.
10639 (tst-resolv-ai_idn.out): Depend on locales.
10640 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10641 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10642 tst-no-libidn2.so.
10643 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10644 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10645 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10646 * resolv/tst-resolv-ai_idn.c: New file.
10647 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10648 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10649 * resolv/tst-no-libidn2.c: Likewise.
10650 * support/support_format_addrinfo.c (format_ai_flags): Do not
10651 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10652 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10653 (gaih_inet): Call __idna_to_dns_encoding and
10654 __idna_from_dns_encoding, and use the original (punycode) name if
10655 __idna_from_dns_encoding fails due to an encoding error.
10656 (getaddrinfo): Use DEPRECATED_AI_IDN.
10657 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10658 * sysdeps/unix/inet/configure: Remove file.
10659 * sysdeps/unix/inet/configure.ac: Likewise.
10660
10661 2018-05-23 Florian Weimer <fweimer@redhat.com>
10662
10663 Implement allocate_once.
10664 * include/allocate_once.h: New file.
10665 * misc/allocate_once.c: Likewise.
10666 * misc/tst-allocate_once.c: Likewise.
10667 * misc/Makefile (routines): Add allocate_once.
10668 (tests-internal): Add tst-allocate_once.
10669 (generated): Add tst-allocate_once.mtrace,
10670 tst-allocate_once-mem.out.
10671 (tests-special): Add tst-allocate_once-mem.out.
10672 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10673 (tst-allocate_once-mem.out): Call mtrace.
10674 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10675
10676 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10677
10678 [BZ #23196]
10679 * string/test-memcpy.c (do_test1): New function.
10680 (test_main): Call it.
10681
10682 2018-05-23 Andreas Schwab <schwab@suse.de>
10683
10684 [BZ #23196]
10685 CVE-2018-11237
10686 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10687 (L(preloop_large)): Save initial destination pointer in %r11 and
10688 use it instead of %rax after the loop.
10689 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10690
10691 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10692
10693 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10694 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10695 -I../soft-fp. Moved from ....
10696 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10697 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10698 * sysdeps/aarch64/e_sqrtl.c: ... here.
10699 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10700 * sysdeps/aarch64/sfp-machine.h: ... here.
10701
10702 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10703 -Wmaybe-uninitialized around access to fq[0].
10704 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10705 Likewise.
10706
10707 [BZ #18471]
10708 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10709 aliases for non-libc case of versioned symbols.
10710 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10711 (llseek): Define as compat symbol if
10712 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10713 with link warning.
10714 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10715 Make into a compat symbol, disabled for minimum symbol version
10716 GLIBC_2.28 and later.
10717 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10718
10719 2018-05-22 Florian Weimer <fweimer@redhat.com>
10720
10721 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10722 not add -mpreferred-stack-boundary=4.
10723 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10724 (stack-align-test-flags): Likewise.
10725 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10726 Likewise.
10727 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10728 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10729 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10730 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10731 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10732 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10733 (CFLAGS-tst-align2.c): Likewise.
10734
10735 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10736
10737 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10738 (index_arch_Prefer_FSRM): Likewise.
10739 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10740 Also check Prefer_FSRM.
10741 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10742 Also return OPTIMIZE (erms) for Prefer_FSRM.
10743
10744 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10745
10746 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10747 (index_cpu_FSRM): Likewise.
10748 (reg_FSRM): Likewise.
10749
10750 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10751
10752 * math/gen-tgmath-tests.py: Import sys.
10753 (Tests.__init__): Initialize macros_seen.
10754 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10755 if requested to do so for this macro.
10756 (Tests.add_all_tests): Take argument for macro for which to
10757 generate tests.
10758 (Tests.check_macro_list): New function.
10759 (main): Handle check-list argument and argument specifying macro
10760 for which to generate tests.
10761 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10762 [PYTHON] (tgmath3-macro-tests): Likewise.
10763 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10764 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10765 not test-tgmath3.c.
10766 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10767 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10768 to CFLAGS.
10769 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10770 [PYTHON] ($(foreach
10771 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10772 rule.
10773 [PYTHON] (tests-special): Add
10774 $(objpfx)test-tgmath3-macro-list.out.
10775 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10776
10777 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10778 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10779 later.
10780
10781 [BZ #22639]
10782 * time/tzset.c (SECSPERDAY): Cast to time_t.
10783 * time/tst-y2039.c: New file.
10784 * time/Makefile (tests): Add tst-y2039.
10785
10786 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10787
10788 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10789 (PREFETCH_ONE_SET): Remove duplicate line.
10790
10791 2018-05-17 Florian Weimer <fweimer@redhat.com>
10792
10793 * sysdeps/generic/math-type-macros-double.h: Include
10794 <math-nan-payload-double.h> after <libm-alias-double.h>.
10795 * sysdeps/generic/math-type-macros-float.h: Include
10796 <math-nan-payload-float.h> after <libm-alias-float.h>.
10797 * sysdeps/generic/math-type-macros-float128.h: Include
10798 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10799 * sysdeps/generic/math-type-macros-ldouble.h: Include
10800 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10801
10802 2018-05-17 Andreas Schwab <schwab@suse.de>
10803
10804 * resolv/res_send.c (__res_context_send): Don't set errno when
10805 returing error after malloc failure.
10806
10807 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10808
10809 * nptl/allocatestack.c (allocate_stack): Remove the
10810 !__ASSUME_PRIVATE_FUTEX paths.
10811 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10812 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10813 Likewise.
10814 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10815 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10816 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10817 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10818 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10819 !__ASSUME_PRIVATE_FUTEX path.
10820 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10821 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10822 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10823 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10824 !__ASSUME_PRIVATE_FUTEX macros.
10825 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10826 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10827 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10828 * sysdeps/unix/sysv/linux/kernel-features.h
10829 (__ASSUME_PRIVATE_FUTEX): Removed.
10830
10831 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10832
10833 * math/Makefile (libm-narrow-fns): Add div.
10834 (libm-test-funcs-narrow): Likewise.
10835 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10836 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10837 * math/gen-auto-libm-tests.c (test_functions): Add div.
10838 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10839 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10840 (NARROW_DIV_TRIVIAL): Likewise.
10841 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10842 macro.
10843 (__ddivl): Likewise.
10844 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10845 ddiv.
10846 (CFLAGS-nldbl-ddiv.c): New variable.
10847 (CFLAGS-nldbl-fdiv.c): Likewise.
10848 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10849 __nldbl_ddivl.
10850 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10851 prototype.
10852 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10853 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10854 * math/auto-libm-test-in: Add tests of div.
10855 * math/auto-libm-test-out-narrow-div: New generated file.
10856 * math/libm-test-narrow-div.inc: New file.
10857 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10858 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10859 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10860 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10861 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10862 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10863 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10864 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
10865 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
10866 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
10867 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
10868 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
10869 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
10870 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
10871 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
10872 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
10873 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
10874 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
10875 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10876 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10877 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10878 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10879 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10880 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10881 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10882 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10883 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10884 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10885 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10886 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10887 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10888 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10889 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10893 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10894 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10895 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10896 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10897 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10898 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10899 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10900 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10901
10902 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10903
10904 [BZ #23178]
10905 * nscd/nscd-client.h (sendfileall): Remove prototype.
10906 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
10907 (handle_request): Use writeall instead of sendfileall.
10908 * nscd/aicache.c (addhstaiX): Likewise.
10909 * nscd/grpcache.c (cache_addgr): Likewise.
10910 * nscd/hstcache.c (cache_addhst): Likewise.
10911 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10912 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
10913 * nscd/pwdcache.c (cache_addpw): Likewise.
10914 * nscd/servicescache.c (cache_addserv): Likewise.
10915 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
10916 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
10917 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
10918 Remove define.
10919
10920 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
10921
10922 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
10923 Include <string/strncat.c>.
10924 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
10925 alias.
10926 (__GI___strncat): New hidden alias.
10927
10928 2018-05-16 Joseph Myers <joseph@codesourcery.com>
10929
10930 * sysdeps/mips/mips32/libm-test-ulps: Update.
10931 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10932
10933 2018-05-16 Florian Weimer <fweimer@redhat.com>
10934
10935 * support/Makefile (libsupport-routines): Add support_quote_blob,
10936 support_test_compare_blob.
10937 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
10938 * support/check.h (TEST_COMPARE_BLOB): Define.
10939 (support_test_compare_blob): Declare.
10940 * support/support.h (support_quote_blob): Declare.
10941 * support/support_quote_blob.c: New file.
10942 * support/support_test_compare_blob.c: Likewise.
10943 * support/tst-support_quote_blob.c: Likewise.
10944 * support/tst-test_compare_blob.c: Likewise.
10945
10946 2018-05-16 Florian Weimer <fweimer@redhat.com>
10947
10948 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
10949 of <strtod_nan_double.h>.
10950 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
10951 instead of SET_MANTISSA.
10952 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
10953 of include <strtod_nan_float.h>.
10954 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
10955 instead of <strtod_nan_ldouble.h>.
10956 * stdlib/strtod_nan_double.h: Move to ...
10957 * sysdeps/generic/math-nan-payload-double.h: ... here.
10958 (FLOAT): Remove definition.
10959 (SET_MANTISSA): Rename to ...
10960 (SET_NAN_PAYLOAD): ... this.
10961 * stdlib/strtod_nan_float.h: Move to ...
10962 * sysdeps/generic/math-nan-payload-float.h: ... here.
10963 (FLOAT): Remove definition.
10964 (SET_MANTISSA): Rename to ...
10965 (SET_NAN_PAYLOAD): ... this.
10966 * sysdeps/generic/math-type-macros-double.h: Include
10967 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
10968 instead of <math-svid-compat.h>.
10969 * sysdeps/generic/math-type-macros-float.h: Include
10970 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
10971 instead of <math-svid-compat.h>.
10972 * sysdeps/generic/math-type-macros-float128.h: Include
10973 <math-nan-payload-float128.h>.
10974 * sysdeps/generic/math-type-macros-ldouble.h: Include
10975 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
10976 instead of <math-svid-compat.h>.
10977 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
10978 check for definition.
10979 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
10980 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
10981 Include <ieee754_float128.h>.
10982 (FLOAT): Remove definition.
10983 (SET_MANTISSA): Rename to ...
10984 (SET_NAN_PAYLOAD): ... this.
10985 * sysdeps/ieee754/float128/strtof128_nan.c: Include
10986 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
10987 Do not include <float128_private.h>.
10988 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
10989 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
10990 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
10991 (FLOAT): Remove definition.
10992 (SET_MANTISSA): Rename to ...
10993 (SET_NAN_PAYLOAD): ... this.
10994 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
10995 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
10996 (FLOAT): Remove definition.
10997 (SET_MANTISSA): Rename to ...
10998 (SET_NAN_PAYLOAD): ... this.
10999 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11000 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11001 (FLOAT): Remove definition.
11002 (SET_MANTISSA): Rename to ...
11003 (SET_NAN_PAYLOAD): ... this.
11004 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11005 of "../stdlib/strtod_nan_double.h".
11006 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11007 of "../stdlib/strtod_nan_float.h".
11008 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11009 instead of "../stdlib/strtod_nan_ldouble.h".
11010 * manual/arith.texi (Parsing of Floats): Adjust comment.
11011
11012 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11013
11014 * math/Makefile (libm-narrow-fns): Add mul.
11015 (libm-test-funcs-narrow): Likewise.
11016 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11017 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11018 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11019 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11020 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11021 (NARROW_MUL_TRIVIAL): Likewise.
11022 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11023 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11024 macro.
11025 (__dmull): Likewise.
11026 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11027 dmul.
11028 (CFLAGS-nldbl-dmul.c): New variable.
11029 (CFLAGS-nldbl-fmul.c): Likewise.
11030 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11031 __nldbl_dmull.
11032 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11033 prototype.
11034 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11035 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11036 * math/auto-libm-test-in: Add tests of mul.
11037 * math/auto-libm-test-out-narrow-mul: New generated file.
11038 * math/libm-test-narrow-mul.inc: New file.
11039 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11040 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11041 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11042 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11043 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11044 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11045 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11046 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11047 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11048 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11049 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11050 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11051 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11052 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11053 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11054 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11055 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11056 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11057 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11058 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11059 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11060 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11061 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11062 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11063 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11064 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11065 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11066 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11067 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11068 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11069 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11070 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11072 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11074 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11075 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11076 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11077 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11078 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11079 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11080 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11081 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11082 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11083
11084 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11085
11086 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11087 with *%eax in call.
11088
11089 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11090
11091 * sysdeps/i386/ldsodefs.h: Removed.
11092 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11093 * sysdeps/x86/ldsodefs.h: This.
11094 (La_i86_regs): New.
11095 (La_i86_retval): Likewise.
11096 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11097 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11098
11099 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11100
11101 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11102 unnecessary testl.
11103
11104 2018-05-13 Alan Modra <amodra@gmail.com>
11105
11106 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11107 R_PARISC_TLS_DTPOFF32 reloc addend.
11108
11109 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11110
11111 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11112 * math/math.h: Restrict the prototype definition for the functions
11113 issignaling(_Float128) and iszero(_Float128); and template
11114 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11115 __HAVE_FLOAT128_UNLIKE_LDBL.
11116 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11117 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11118 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11119 __f128() constants; define the type _Float128 as long double;
11120 and reuse long double in __CFLOAT128.
11121
11122 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11123
11124 * sysdeps/generic/math_private.h: Do not include
11125 <math-barriers.h>.
11126 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11127 <math_private.h>.
11128 * math/fromfp.h: Include <math-barriers.h>.
11129 * math/math-narrow.h: Likewise.
11130 * math/s_nextafter.c: Likewise.
11131 * math/s_nexttowardf.c: Likewise.
11132 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11133 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11134 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11135 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11136 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11137 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11138 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11139 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11140 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11141 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11142 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11143 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11144 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11145 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11146 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11147 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11148 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11149 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11150 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11151 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11152 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11153 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11154 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11155 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11156 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11157 * sysdeps/ieee754/k_standardl.c: Likewise.
11158 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11159 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11160 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11161 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11162 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11163 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11164 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11165 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11166 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11167 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11168 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11169 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11170 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11171 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11172 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11173 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11174 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11175 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11176 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11177 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11178 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11179 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11180
11181 2018-05-11 Florian Weimer <fweimer@redhat.com>
11182
11183 Use 64-bit epoch values in the time zone file parser.
11184 * include/time.h (internal_time_t): Define.
11185 (__tzfile_compute): Use it.
11186 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11187 member.
11188 (transitions): Switch to internal_time_t.
11189 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11190 types.
11191 (__tzfile_compute): Use internal_time_t for timer argument. Check
11192 for truncation before calling __offtime.
11193
11194 2018-05-11 Florian Weimer <fweimer@redhat.com>
11195
11196 [BZ #23166]
11197 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11198 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11199 Likewise.
11200 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11201 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11202 export without --enable-obsolete-rpc.
11203 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11204 symbol. This should not have been exported, ever.
11205
11206 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11207
11208 [BZ #23152]
11209 * localedata/locales/gd_GB (abmon): Fix typo in May:
11210 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11211
11212 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11213
11214 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11215 Use multiple registers to copy data in loop tail.
11216
11217 * sysdeps/aarch64/multiarch/memmove_falkor.S
11218 (__memmove_falkor): Use multiple registers to move data in
11219 loop tail.
11220
11221 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11222
11223 * math/math-underflow.h: New file.
11224 * sysdeps/generic/math_private.h: Do not include <float.h>.
11225 (fabs_tg): Remove macro. Moved to math-underflow.h.
11226 (min_of_type_f): Likewise.
11227 (min_of_type_): Likewise.
11228 (min_of_type_l): Likewise.
11229 (min_of_type_f128): Likewise.
11230 (min_of_type): Likewise.
11231 (math_check_force_underflow): Likewise.
11232 (math_check_force_underflow_nonneg): Likewise.
11233 (math_check_force_underflow_complex): Likewise.
11234 * math/e_exp2_template.c: Include <math-underflow.h>.
11235 * math/k_casinh_template.c: Likewise.
11236 * math/s_catan_template.c: Likewise.
11237 * math/s_catanh_template.c: Likewise.
11238 * math/s_ccosh_template.c: Likewise.
11239 * math/s_cexp_template.c: Likewise.
11240 * math/s_clog10_template.c: Likewise.
11241 * math/s_clog_template.c: Likewise.
11242 * math/s_csin_template.c: Likewise.
11243 * math/s_csinh_template.c: Likewise.
11244 * math/s_csqrt_template.c: Likewise.
11245 * math/s_ctan_template.c: Likewise.
11246 * math/s_ctanh_template.c: Likewise.
11247 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11248 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11249 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11250 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11251 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11252 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11253 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11254 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11255 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11256 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11257 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11258 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11259 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11260 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11261 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11262 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11263 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11264 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11265 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11266 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11267 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11268 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11269 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11270 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11271 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11272 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11273 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11274 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11275 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11276 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11277 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11278 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11279 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11280 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11281 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11282 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11283 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11284 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11285 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11286 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11287 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11288 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11289 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11290 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11291 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11292 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11293 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11294 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11295 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11296 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11297 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11298 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11299 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11300 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11301 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11302 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11303 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11304 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11305 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11306 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11307 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11308 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11309 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11310 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11311 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11312 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11313 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11314 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11315 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11316 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11317 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11318 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11319 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11320 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11321 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11322 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11323 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11324 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11325 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11326 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11327 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11328 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11329 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11330 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11331
11332 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11333
11334 * sysdeps/generic/math-barriers.h: New file.
11335 * sysdeps/generic/math_private.h [!math_opt_barrier]
11336 (math_opt_barrier): Move to math-barriers.h.
11337 [!math_opt_barrier] (math_force_eval): Likewise.
11338 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11339 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11340 math-barriers.h.
11341 (math_force_eval): Likewise.
11342 * sysdeps/alpha/fpu/math-barriers.h: New file.
11343 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11344 math-barriers.h.
11345 (math_force_eval): Likewise.
11346 * sysdeps/x86/fpu/math-barriers.h: New file.
11347 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11348 math-barriers.h.
11349 (math_force_eval): Likewise.
11350 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11351 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11352 multiple-include guard for rename.
11353 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11354 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11355 math-barriers.h.
11356 (math_force_eval): Likewise.
11357
11358 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11359
11360 [BZ #22786]
11361 CVE-2018-11236
11362 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11363 computation.
11364 * stdlib/Makefile (test-bz22786): New test.
11365 * stdlib/test-bz22786.c: New test.
11366
11367 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11368
11369 * include/math-narrow-eval.h: New file. Contents moved from ....
11370 * sysdeps/generic/math_private.h: ... here.
11371 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11372 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11373 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11374 * stdlib/strtod_l.c: Likewise.
11375 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11376 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11377 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11378 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11379 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11380 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11381 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11382 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11383 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11384 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11385 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11386 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11387 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11388 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11389 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11390 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11391 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11392 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11393 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11394 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11395 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11396 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11397 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11398 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11399 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11400 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11401 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11402 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11403 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11404
11405 2018-05-08 Andreas Schwab <schwab@suse.de>
11406
11407 * sysdeps/nptl/internaltypes.h: Fix comment.
11408
11409 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11410
11411 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11412 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11413 hidden.
11414
11415 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11416
11417 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11418 of I into loop header.
11419 * benchtests/bench-memmove-walk.c
11420 (test_main): Likewise.
11421
11422 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11423
11424 Revert:
11425 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11426 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11427
11428 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11429
11430 [BZ #20419]
11431 * elf/dl-load.c (open_verify): Fix stack overflow.
11432 * elf/Makefile (tst-big-note): New test.
11433 * elf/tst-big-note-lib.S: New.
11434 * elf/tst-big-note.c: New.
11435
11436 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11437
11438 * scripts/abilist.awk: Ignore absolute symbols.
11439 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11440 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11441 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11442 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11443 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11444 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11445 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11446 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11447 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11448 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11449 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11450 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11451 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11452 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11453 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11454 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11455 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11456 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11457 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11458 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11459 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11460 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11461 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11462 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11463 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11464 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11465 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11466 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11467 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11468 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11469 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11470 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11471 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11472 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11473 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11474 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11475 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11476 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11477 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11478 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11479 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11480 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11481 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11482 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11483 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11484 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11485 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11486 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11487 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11488 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11489 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11490 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11491 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11492 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11493 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11494 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11495 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11496 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11497 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11498 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11499 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11500 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11501 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11502 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11503 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11504 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11505 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11506 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11507 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11508 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11509 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11510 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11511 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11512 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11513 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11514 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11515 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11516 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11517 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11518 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11519 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11520 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11521 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11522 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11523 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11524 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11525 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11526 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11527 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11528 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11529 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11530 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11531 Likewise.
11532 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11533 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11534 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11535 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11536 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11537 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11538 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11539 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11540 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11541 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11542 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11543 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11544 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11545 Likewise.
11546 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11547 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11548 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11549 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11550 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11551 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11552 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11553 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11554 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11555 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11556 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11558 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11559 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11573 Likewise.
11574 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11581 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11582 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11583 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11584 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11585 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11586 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11587 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11588 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11589 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11590 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11591 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11592 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11594 Likewise.
11595 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11604 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11605 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11617 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11618 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11619 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11620 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11621 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11622 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11623 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11627 Likewise.
11628 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11633 Likewise.
11634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11635 Likewise.
11636 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11638 Likewise.
11639 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11641 Likewise.
11642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11643 Likewise.
11644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11647 Likewise.
11648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11649 Likewise.
11650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11651 Likewise.
11652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11656 Likewise.
11657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11663 Likewise.
11664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11666 Likewise.
11667 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11668 Likewise.
11669 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11670 Likewise.
11671 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11672 Likewise.
11673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11676 Likewise.
11677 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11678 Likewise.
11679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11680 Likewise.
11681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11684 Likewise.
11685 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11699 Likewise.
11700 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11712 Likewise.
11713 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11738 Likewise.
11739 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11752 Likewise.
11753 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11785 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11791
11792 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11793
11794 [BZ #23137]
11795 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11796 Use atomic_load_acquire to load __tid.
11797
11798 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11799
11800 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11801 Restore the pointer into %rdx, after syscall and use %rdx,
11802 instead of %rsi, to restore context.
11803
11804 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11805
11806 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11807 Pop the pointer into %rdx after syscall and use %rdx, instead
11808 of %rsi, to restore context.
11809
11810 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11811
11812 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11813 handlers after setjmp.
11814 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11815 defined.
11816 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11817 <libc-pointer-arith.h>.
11818 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11819 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11820 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11821 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11822 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11823 * sysdeps/x86/__longjmp_cancel.S: New file.
11824 * sysdeps/x86/longjmp.c: Likewise.
11825 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11826
11827 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11828
11829 * NEWS: Add ustat.h deprecation entry.
11830 * bits/ustat.h: Remove file.
11831 * misc/sys/ustat.h: Likewise.
11832 * misc/ustat.h: Likewise.
11833 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11834 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11835 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11836 compatibility mode.
11837 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11838 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11839 generic Linux implementation.
11840
11841 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11842
11843 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11844 * math/w_expl_compat.c: Likewise.
11845 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11846
11847 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11848
11849 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11850
11851 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11852
11853 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11854 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11855 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11856 Remove.
11857 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11859 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11860 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11861 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11862 and SYSCALL_LL64.
11863
11864 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11865
11866 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
11867
11868 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
11869 * math/w_asin_template.c: Likewise.
11870 * math/w_atanh_template.c: Likewise.
11871
11872 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11873
11874 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
11875 to powerpc/powerpc64/be for big-endian.
11876 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
11877 little-endian.
11878
11879 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
11880 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
11881 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
11882 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
11883 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
11884 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
11885 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
11886 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
11887 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
11888 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
11889 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
11890 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
11891 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
11892 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
11893 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
11894 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
11895 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
11896 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
11897 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
11898 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
11899 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
11900 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
11901 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
11902 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
11903 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
11904 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
11905 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
11906 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
11907 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
11908 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
11909 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
11910 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
11911
11912 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
11913 adjusted to imply powerpc64 and older processors on powerpc64/be.
11914 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
11915 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
11916 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
11917 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
11918 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
11919 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
11920 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
11921 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
11922 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
11923 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
11924 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
11925 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
11926 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
11927 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
11928 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
11929 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
11930 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
11931 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
11932 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
11933 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
11934 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
11935 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
11936 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
11937 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
11938 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
11939 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
11940 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
11941 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
11942 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
11943 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
11944 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
11945
11946 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
11947 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
11948 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
11949 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
11950
11951 * sysdeps/powerpc/powerpc64/be/Implies: New file.
11952 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
11953 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
11954 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
11955
11956 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
11957 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
11958 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
11959 * sysdeps/powerpc/powerpc64le/configure: Likewise.
11960 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
11961 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
11962 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
11963 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
11964 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
11965 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
11966 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
11967
11968 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
11969 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
11970 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
11971 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
11972 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
11973 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
11974 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
11975 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
11976 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
11977 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
11978 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
11979
11980 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
11981 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
11982 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
11983 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
11984 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
11985 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
11986 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
11987 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
11988 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
11989 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
11990 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
11991 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
11992
11993 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
11994 and adjusted to imply olders processors.
11995 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
11996 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
11997 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
11998 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
11999 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12000 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12001 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12002 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12003 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12004 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12005 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12006
12007 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12008 powerpc64/le.
12009 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12010 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12011
12012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12013 powerpc64le.
12014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12015 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12016
12017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12018 powerpc64/be.
12019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12022
12023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12024 powerpc64 and adjusted.
12025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12028 Likewise.
12029
12030 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12031
12032 * sysdeps/tile: Remove.
12033 * sysdeps/unix/sysv/linux/tile: Likewise.
12034 * README (tilegx-*-linux-gnu): Remove from list of supported
12035 configurations.
12036 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12037 contribution of support for generic Linux kernel syscall
12038 interface.
12039 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12040 tilegx configurations.
12041 (Config.install_linux_headers): Do not handle tile.
12042 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12043 in comment.
12044 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12045 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12046 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12047 conditional undefine and redefine.
12048 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12049 in comment.
12050 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12051 conditional undefine and redefine.
12052
12053 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12054
12055 * signal/tst-sigaction.c: New file to test BZ #23069.
12056 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12057
12058 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12059
12060 [BZ #22766]
12061 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12062 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12063 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12064 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12065
12066 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12067
12068 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12069 _DIRENT_MATCHES_DIRENT64 is not defined.
12070 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12071 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12072 is defined.
12073 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12074 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12075
12076 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12077
12078 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12079 version to GCC 8 branch.
12080
12081 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12082
12083 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12084 (check_no_hidden): Use type of original function when declaring
12085 alias.
12086
12087 * sysdeps/unix/sysv/linux/sys/ptrace.h
12088 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12089 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12090 (struct __ptrace_seccomp_metadata): New type.
12091 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12092 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12093 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12094 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12095 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12096 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12097 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12098 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12099 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12100 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12101 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12102 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12103 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12104 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12105 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12106 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12107
12108 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12109
12110 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12111 defined.
12112 * dirent/versionsort.c (versionsort): Likewise.
12113 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12114 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12115 * dirent/versionsort64.c (versionsort64): Likewise.
12116 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12117 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12118 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12119 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12120 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12121 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12122 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12123 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12124 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12125 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12126 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12128 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12129 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12130
12131 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12132
12133 * elf/elf.h (NT_PPC_PKEY): New macro.
12134
12135 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12136
12137 [BZ #23094]
12138 * localedata/locales/hr_HR: fix thousands_sep and
12139 mon_thousands_sep
12140
12141 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12142
12143 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12144 (XTABS): Define to TAB3.
12145
12146 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12147
12148 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12149
12150 * dirent/scandir-tail-common.c: New file.
12151 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12152 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12153 * dirent/scandir.c: Use scandir-tail-common.c.
12154 * dirent/scandirat.c: Likewise.
12155 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12156 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12157 if _DIRENT_MATCHES_DIRENT64 is defined.
12158 * dirent/scandirat64.c (scandirat64): Likewise.
12159 * include/dirent.h (__scandir_tail): Only define iff
12160 _DIRENT_MATCHES_DIRENT64 is not defined.
12161 (__scandir64_tail): Define regardless.
12162 (__scandirat, scandirat64): Remove libc_hidden_proto.
12163 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12164 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12166 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12167 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12168 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12169 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12170
12171 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12172
12173 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12174 New macro.
12175 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12176 Increase to 24.
12177 (_dl_aarch64_cap_flags): Add asimdfhm.
12178
12179 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12180
12181 * sysdeps/nios2/libm-test-ulps: Update.
12182
12183 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12184
12185 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12186 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12187
12188 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12189 requirements.
12190 (_DIRENT_MATCHES_DIRENT64): Undef
12191 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12192 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12193 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12194 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12195 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12196 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12197 use getdents64 syscalls as base.
12198 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12199 symbol if required.
12200 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12201 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12202 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12203 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12204 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12205 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12206 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12207 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12208 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12209 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12210 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12211
12212 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12213
12214 * scripts/test_printers_common.py (init_test): Disable lock elision.
12215
12216 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12217
12218 * math/test-tgmath.c (count_double, count_float,
12219 count_ldouble, count_cdouble, count_cfloat,
12220 count_cldouble): Use volatile int.
12221
12222 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12223
12224 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12225 (conformtest-xfail-conds): Add i386-gnu.
12226 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12227 i386-gnu.
12228 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12229 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12230 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12231 msqid_ds.msg_lrpid): Likewise.
12232 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12233 Likewise.
12234 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12235 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12236 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12237 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12238 unsigned int.
12239 (struct statvfs64): Likewise.
12240 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12241 Likewise.
12242 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12243 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12244 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12245 instead of wait_queue.
12246 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12247 instead of vm_area_struct.
12248 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12249 struct sched_param definition to it.
12250 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12251 * bits/types/struct_sched_param.h: New file.
12252 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12253 <bits/types/struct_sched_param.h> instead of <sched.h>.
12254 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12255 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12256 generic version but include <bits/pthreadtypes.h> to make struct
12257 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12258 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12259 non-compliant.
12260 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12261 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12262 [__USE_XOPEN] (OFDEL): New macro.
12263 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12264 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12265 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12266 prototypes.
12267 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12268 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12269 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12270 non-compliant.
12271 * sysdeps/i386/sys/ucontext.h: Likewise.
12272 * sysdeps/m68k/sys/ucontext.h: Likewise.
12273 * sysdeps/mips/sys/ucontext.h: Likewise.
12274 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12275 * sysdeps/mach/hurd/i386/Makefile
12276 (test-xfail-POSIX/fcntl.h/conform): Add.
12277 (test-xfail-POSIX/signal.h/conform): Add.
12278 (test-xfail-POSIX/semaphore.h/conform): Add.
12279 (test-xfail-POSIX/regex.h/conform): Add.
12280 (test-xfail-POSIX/aio.h/conform): Add.
12281 (test-xfail-POSIX/mqueue.h/conform): Add.
12282 (test-xfail-POSIX/sys/types.h/conform): Add.
12283 (test-xfail-UNIX98/fcntl.h/conform): Add.
12284 (test-xfail-UNIX98/netdb.h/conform): Add.
12285 (test-xfail-UNIX98/signal.h/conform): Add.
12286 (test-xfail-UNIX98/semaphore.h/conform): Add.
12287 (test-xfail-UNIX98/regex.h/conform): Add.
12288 (test-xfail-UNIX98/aio.h/conform): Add.
12289 (test-xfail-UNIX98/ftw.h/conform): Add.
12290 (test-xfail-UNIX98/mqueue.h/conform): Add.
12291 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12292 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12293 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12294 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12295 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12296 (test-xfail-UNIX98/sys/types.h/conform): Add.
12297 (test-xfail-UNIX98/stdlib.h/conform): Add.
12298 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12299 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12300 (test-xfail-POSIX2008/netdb.h/conform): Add.
12301 (test-xfail-POSIX2008/signal.h/conform): Add.
12302 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12303 (test-xfail-POSIX2008/regex.h/conform): Add.
12304 (test-xfail-POSIX2008/aio.h/conform): Add.
12305 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12306 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12307 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12308 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12309 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12310 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12311 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12312 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12313 (test-xfail-XOPEN2K/signal.h/conform): Add.
12314 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12315 (test-xfail-XOPEN2K/regex.h/conform): Add.
12316 (test-xfail-XOPEN2K/aio.h/conform): Add.
12317 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12318 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12319 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12320 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12321 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12322 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12323 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12324 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12325 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12326 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12327 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12328 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12329 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12330 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12331 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12332 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12333 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12334 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12335 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12336 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12337 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12338 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12339 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12340 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12341 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12342 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12343 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12344 i386-gnu.
12345 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12346 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12347
12348 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12349
12350 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12351 --enable-obsolete for powerpc-linux-gnuspe.
12352
12353 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12354
12355 * conform/data/sys/un.h-data: Allow sun_ prefix.
12356 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12357 prototypes.
12358 * sysdeps/mach/include/mach.h: Likewise.
12359 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12360 * sysdeps/mach/include/mach_error.h: Likewise.
12361
12362 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12363
12364 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12365 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12366 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12367 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12368
12369 2018-04-16 Andreas Schwab <schwab@suse.de>
12370
12371 [BZ #19527]
12372 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12373
12374 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12375
12376 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12377 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12378
12379 2018-04-12 DJ Delorie <dj@redhat.com>
12380
12381 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12382 version to 4.16.
12383
12384 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12385
12386 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12387 (struct kernel_sigaction): Use the same definition on 31bit as is used
12388 on 64bit.
12389
12390 2018-04-09 Florian Weimer <fweimer@redhat.com>
12391
12392 [BZ #23037]
12393 * resolv/res_send.c (send_dg): Use designated initializers instead
12394 of assignment to zero-initialize other fields of struct mmsghdr.
12395
12396 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12397
12398 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12399 __READDIR_ALIAS): Undefine after usage.
12400 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12401 __READDIR_R_ALIAS): Likewise.
12402 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12403 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12404 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12405 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12406 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12407 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12408 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12409 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12410 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12411 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12412 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12413 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12414 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12415 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12416 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12417 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12418 * sysdeps/unix/sysv/linux/readdir.c: New file.
12419 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12420 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12421 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12422
12423 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12424
12425 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12426
12427 * manual/charset.texi (Converting a Character): Fix typo.
12428
12429 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12430
12431 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12432
12433 * sysdeps/arm/libm-test-ulps: Update.
12434
12435 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12436 as base implementation.
12437 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12438 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12439 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12440 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12441 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12442 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12443 remove unrequired definitions and update comments.
12444 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12445 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12446 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12447 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12448 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12449 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12450 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12451 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12452 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12453 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12454 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12455 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12456 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12457 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12458 and RESET_SA_RESTORER hooks.
12459
12460 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12461
12462 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12463
12464 2018-04-05 Florian Weimer <fweimer@redhat.com>
12465
12466 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12467 integer overflow, memory leak on error, and indeterminate errno
12468 value. Add a null wide character to terminate the result string.
12469 * manual/charset.texi (Converting a Character): Mention embedded
12470 null bytes in the mbrtowc input string. Explain what happens in
12471 the -2 result case. Do not claim that mbrtowc is simple or
12472 obvious to use. Adjust the description of the code example. Use
12473 @code, not @var, for concrete variables.
12474
12475 2018-04-05 Florian Weimer <fweimer@redhat.com>
12476
12477 * manual/examples/mbstouwcs.c: New file.
12478 * manual/charset.texi (Converting a Character): Include it.
12479
12480 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12481
12482 * include/dirent.h (dirfd): Add hidden proto.
12483 * dirent/dirfd.c (dirfd): Add hidden def.
12484 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12485 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12486
12487 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12488
12489 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12490 sin, cos and sincos to 1 ULP.
12491
12492 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12493
12494 [BZ #19818]
12495 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12496 symbols.
12497 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12498 * elf/tst-absolute-sym.c: New file.
12499 * elf/tst-absolute-sym-lib.c: New file.
12500 * elf/tst-absolute-sym-lib.lds: New file.
12501 * elf/Makefile (tests): Add `tst-absolute-sym'.
12502 (modules-names): Add `tst-absolute-sym-lib'.
12503 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12504 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12505 ($(objpfx)tst-absolute-sym): New dependency.
12506
12507 [BZ #19818]
12508 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12509 parameter.
12510 (SYMBOL_ADDRESS): New macro.
12511 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12512 SYMBOL_ADDRESS for symbol address calculation.
12513 * elf/dl-runtime.c (_dl_fixup): Likewise.
12514 (_dl_profile_fixup): Likewise.
12515 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12516 * elf/rtld.c (dl_main): Likewise.
12517 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12518 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12519 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12520 (elf_machine_rela): Likewise.
12521 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12522 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12523 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12524 (elf_machine_rela): Likewise.
12525 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12526 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12527 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12528 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12529 Likewise.
12530 (elf_machine_reloc): Likewise.
12531 (elf_machine_got_rel): Likewise.
12532 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12533 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12534 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12535 Likewise.
12536 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12537 Likewise.
12538 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12539 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12540 Likewise.
12541 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12542 Likewise.
12543 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12544 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12545 Likewise.
12546 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12547 Likewise.
12548 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12549 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12550
12551 2018-04-04 Zack Weinberg <zackw@panix.com>
12552
12553 * sysdeps/generic/internal-signals.h: Include signal.h,
12554 sigsetops.h, and stdbool.h.
12555 (__libc_signal_block_all): Actually block all signals.
12556 (__libc_signal_block_app): Likewise.
12557 (__libc_signal_restore_set): Actually restore the signal mask.
12558
12559 2018-04-04 Florian Weimer <fweimer@redhat.com>
12560
12561 inet: Actually build and run tst-deadline.
12562 * inet/Makefile (tests-internal): Add tst-deadline and do not
12563 overwrite the variable.
12564 (tests-static-internal): Remove variable.
12565
12566 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12567
12568 [BZ #22947]
12569 * bits/uio-ext.h (RWF_APPEND): New.
12570 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12571 * manual/llio.texi: Document RWF_APPEND.
12572 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12573 (RWF_SUPPORTED): Add RWF_APPEND.
12574
12575 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12576
12577 [BZ #22391]
12578 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12579 check for internal nptl signals.
12580 * nptl/sigaction.c (__sigaction): Likewise.
12581 * signal/sigaddset.c (sigaddset): Likewise.
12582 * signal/sigdelset.c (sigdelset): Likewise.
12583 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12584 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12585 value.
12586 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12587 to filter out internal nptl signals.
12588 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12589 also check realtime signals using standard macros.
12590 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12591 __is_internal_signal, __libc_signal_block_all,
12592 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12593 * sysdeps/nptl/sigfillset.c: Remove file.
12594 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12595 Change return to bool.
12596 (__clear_internal_signals): Remove SIGTIMER clean since it is
12597 equal to SIGCANEL on Linux.
12598 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12599 signal set was constructed using standard functions.
12600
12601 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12602
12603 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12604 ifname is too long.
12605 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12606 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12607 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12608 hidden def.
12609 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12610 * signal/sigaddset.c: Include <sigsetopts.h>.
12611 * signal/sigdelset.c: Likewise.
12612
12613 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12614
12615 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12616 (__cos): Likewise.
12617 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12618 logic as sin and cos.
12619
12620 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12621
12622 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12623 inputs. Return correct sign.
12624 (do_sincos): Remove small input check before do_sin, let do_sin set
12625 the sign.
12626 (__sin): Likewise.
12627 (__cos): Likewise.
12628
12629 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12630
12631 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12632 (do_cos_slow): Likewise.
12633 (do_sin_slow): Likewise.
12634 (reduce_and_compute): Likewise.
12635 (slow): Likewise.
12636 (slow1): Likewise.
12637 (slow2): Likewise.
12638 (sloww): Likewise.
12639 (sloww1): Likewise.
12640 (sloww2): Likewise.
12641 (bslow): Likewise.
12642 (bslow1): Likewise.
12643 (bslow2): Likewise.
12644 (cslow2): Likewise.
12645
12646 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12647
12648 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12649 (do_cos): Remove corp parameter and calculations.
12650 (do_sin): Likewise.
12651 (do_sincos): Remove cor variable.
12652 (__sin): Use do_sincos for huge inputs.
12653 (__cos): Likewise.
12654 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12655 (reduce_and_compute_sincos): Remove unused function.
12656
12657 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12658
12659 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12660 reduce_sincos, improve accuracy to 136 bits.
12661 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12662 (__sin): Use improved reduction and simplified do_sincos calculation.
12663 (__cos): Likewise.
12664 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12665
12666 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12667
12668 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12669 (do_sincos_2): Likewise.
12670 (__sin): Remove middle range reduction case.
12671 (__cos): Likewise.
12672 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12673 reduction case.
12674
12675 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12676
12677 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12678 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12679 inputs.
12680 (__cos): Likewise.
12681 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12682
12683 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12684
12685 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12686 version to 4.16
12687
12688 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12689
12690 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12691 Remove definitions.
12692 (opendir_oflags): Use O_DIRECTORY regardless.
12693 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12694 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12695
12696 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12697
12698 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12699 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12700 macros.
12701 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12702 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12703 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12704 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12705 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12706 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12707
12708 * htl/Makefile: Bump licence to LGPL 2.1+.
12709 * htl/alloca_cutoff.c: Likewise.
12710 * htl/cthreads-compat.c: Likewise.
12711 * htl/lockfile.c: Likewise.
12712 * htl/pt-alloc.c: Likewise.
12713 * htl/pt-cancel.c: Likewise.
12714 * htl/pt-cleanup.c: Likewise.
12715 * htl/pt-create.c: Likewise.
12716 * htl/pt-dealloc.c: Likewise.
12717 * htl/pt-detach.c: Likewise.
12718 * htl/pt-exit.c: Likewise.
12719 * htl/pt-getattr.c: Likewise.
12720 * htl/pt-initialize.c: Likewise.
12721 * htl/pt-internal.h: Likewise.
12722 * htl/pt-join.c: Likewise.
12723 * htl/pt-self.c: Likewise.
12724 * htl/pt-setcancelstate.c: Likewise.
12725 * htl/pt-setcanceltype.c: Likewise.
12726 * htl/pt-sigmask.c: Likewise.
12727 * htl/pt-spin-inlines.c: Likewise.
12728 * htl/pt-testcancel.c: Likewise.
12729 * htl/pt-yield.c: Likewise.
12730 * htl/tests/test-1.c: Likewise.
12731 * htl/tests/test-10.c: Likewise.
12732 * htl/tests/test-11.c: Likewise.
12733 * htl/tests/test-12.c: Likewise.
12734 * htl/tests/test-13.c: Likewise.
12735 * htl/tests/test-14.c: Likewise.
12736 * htl/tests/test-15.c: Likewise.
12737 * htl/tests/test-16.c: Likewise.
12738 * htl/tests/test-17.c: Likewise.
12739 * htl/tests/test-2.c: Likewise.
12740 * htl/tests/test-3.c: Likewise.
12741 * htl/tests/test-4.c: Likewise.
12742 * htl/tests/test-5.c: Likewise.
12743 * htl/tests/test-6.c: Likewise.
12744 * htl/tests/test-7.c: Likewise.
12745 * htl/tests/test-8.c: Likewise.
12746 * htl/tests/test-9.c: Likewise.
12747 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12748 * sysdeps/htl/bits/cancelation.h: Likewise.
12749 * sysdeps/htl/bits/pthread-np.h: Likewise.
12750 * sysdeps/htl/bits/pthread.h: Likewise.
12751 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12752 * sysdeps/htl/bits/semaphore.h: Likewise.
12753 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12754 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12755 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12756 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12757 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12758 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12759 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12760 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12761 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12762 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12763 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12764 * sysdeps/htl/old_pt-atfork.c: Likewise.
12765 * sysdeps/htl/pt-atfork.c: Likewise.
12766 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12767 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12768 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12769 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12770 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12771 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12772 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12773 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12774 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12775 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12776 * sysdeps/htl/pt-attr-init.c: Likewise.
12777 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12778 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12779 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12780 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12781 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12782 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12783 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12784 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12785 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12786 * sysdeps/htl/pt-attr.c: Likewise.
12787 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12788 * sysdeps/htl/pt-barrier-init.c: Likewise.
12789 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12790 * sysdeps/htl/pt-barrier.c: Likewise.
12791 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12792 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12793 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12794 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12795 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12796 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12797 * sysdeps/htl/pt-cond-init.c: Likewise.
12798 * sysdeps/htl/pt-cond-signal.c: Likewise.
12799 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12800 * sysdeps/htl/pt-cond-wait.c: Likewise.
12801 * sysdeps/htl/pt-cond.c: Likewise.
12802 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12803 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12804 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12805 * sysdeps/htl/pt-condattr-init.c: Likewise.
12806 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12807 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12808 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12809 * sysdeps/htl/pt-equal.c: Likewise.
12810 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12811 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12812 * sysdeps/htl/pt-getschedparam.c: Likewise.
12813 * sysdeps/htl/pt-getspecific.c: Likewise.
12814 * sysdeps/htl/pt-init-specific.c: Likewise.
12815 * sysdeps/htl/pt-key-create.c: Likewise.
12816 * sysdeps/htl/pt-key-delete.c: Likewise.
12817 * sysdeps/htl/pt-key.h: Likewise.
12818 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12819 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12820 * sysdeps/htl/pt-mutex-init.c: Likewise.
12821 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12822 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12823 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12824 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12825 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12826 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12827 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12828 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12829 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12830 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12831 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12832 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12833 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12834 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12835 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12836 * sysdeps/htl/pt-mutexattr.c: Likewise.
12837 * sysdeps/htl/pt-once.c: Likewise.
12838 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12839 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12840 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12841 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12842 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12843 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12844 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12845 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12846 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12847 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12848 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12849 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12850 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12851 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12852 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12853 * sysdeps/htl/pt-setschedparam.c: Likewise.
12854 * sysdeps/htl/pt-setschedprio.c: Likewise.
12855 * sysdeps/htl/pt-setspecific.c: Likewise.
12856 * sysdeps/htl/pt-spin.c: Likewise.
12857 * sysdeps/htl/pt-startup.c: Likewise.
12858 * sysdeps/htl/pthread.h: Likewise.
12859 * sysdeps/htl/sem-close.c: Likewise.
12860 * sysdeps/htl/sem-destroy.c: Likewise.
12861 * sysdeps/htl/sem-getvalue.c: Likewise.
12862 * sysdeps/htl/sem-init.c: Likewise.
12863 * sysdeps/htl/sem-open.c: Likewise.
12864 * sysdeps/htl/sem-post.c: Likewise.
12865 * sysdeps/htl/sem-timedwait.c: Likewise.
12866 * sysdeps/htl/sem-trywait.c: Likewise.
12867 * sysdeps/htl/sem-unlink.c: Likewise.
12868 * sysdeps/htl/sem-wait.c: Likewise.
12869 * sysdeps/hurd/htl/pt-kill.c: Likewise.
12870 * sysdeps/i386/htl/pt-machdep.h: Likewise.
12871 * sysdeps/mach/htl/pt-block.c: Likewise.
12872 * sysdeps/mach/htl/pt-spin.c: Likewise.
12873 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
12874 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
12875 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
12876 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
12877 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
12878 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
12879 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
12880 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
12881 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
12882 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
12883 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
12884 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
12885 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
12886 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
12887 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
12888 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
12889 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
12890 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
12891 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
12892 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
12893 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
12894 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
12895 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
12896 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
12897 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
12898 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
12899 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
12900 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
12901 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
12902 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
12903 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
12904 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
12905 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
12906 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
12907 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
12908 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
12909 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
12910 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
12911 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
12912 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
12913 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
12914 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
12915 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
12916
12917 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
12918 * README: Remove the mention of out-of-tree patches needed for
12919 GNU/Hurd.
12920
12921 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
12922 (UTIME_NOW, UTIME_OMIT): Define macros.
12923
12924 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
12925 instead of pthread_detach.
12926 (__cthread_fork): Call __pthread_create instead of pthread_create.
12927 (__cthread_keycreate): Call __pthread_key_create instead of
12928 pthread_key_create.
12929 (__cthread_getspecific): Call __pthread_getspecific instead of
12930 pthread_getspecific.
12931 (__cthread_setspecific): Call __pthread_setspecific instead of
12932 pthread_setspecific.
12933 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
12934 __pthread_mutex_unlock instead of pthread_mutex_lock and
12935 pthread_mutex_unlock.
12936 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
12937 ___pthread_get_cleanup_stack.
12938 (__pthread_get_cleanup_stack): New strong alias.
12939 * htl/pt-create.c: Include <pthreadP.h>.
12940 (entry_point): Call __pthread_exit instead of pthread_exit.
12941 (pthread_create): Rename to __pthread_create.
12942 (pthread_create): New strong alias.
12943 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
12944 (pthread_detach): New strong alias.
12945 (__pthread_detach): Call __pthread_cond_broadcast instead of
12946 pthread_cond_broadcast.
12947 * htl/pt-exit.c: Include <pthreadP.h>.
12948 (__pthread_exit): Call __pthread_setcancelstate and
12949 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
12950 __pthread_get_cleanup_stack.
12951 * htl/pt-testcancel.c: Include <pthreadP.h>.
12952 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
12953 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
12954 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
12955 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
12956 pthread_attr_getstacksize.
12957 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
12958 Rename to __pthread_attr_getstackaddr.
12959 (pthread_attr_getstackaddr): New strong alias.
12960 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
12961 Rename to __pthread_attr_getstacksize.
12962 (pthread_attr_getstacksize): New strong alias.
12963 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
12964 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
12965 (pthread_attr_setstack): New strong alias.
12966 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
12967 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
12968 pthread_attr_getstacksize, pthread_attr_setstacksize and
12969 pthread_attr_setstackaddr.
12970 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
12971 Rename to __pthread_attr_setstackaddr.
12972 (pthread_attr_setstackaddr): New strong alias.
12973 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
12974 Rename to __pthread_attr_setstacksize.
12975 (pthread_attr_setstacksize): New strong alias.
12976 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
12977 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
12978 pthread_exit.
12979 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
12980 (__pthread_key_create): New hidden def.
12981 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
12982 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
12983 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
12984 __pthread_exit, __pthread_key_create, __pthread_getspecific,
12985 __pthread_setspecific, __pthread_setcancelstate,
12986 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
12987 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
12988 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
12989 declarations.
12990 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
12991 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
12992 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
12993 (pthread_attr_setstackaddr): New strong alias.
12994 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
12995 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
12996 (pthread_attr_setstacksize): New strong alias.
12997 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
12998 (call_exit): Call __pthread_exit instead of pthread_exit.
12999 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13000 (_pthread_mutex_init): New hidden definition.
13001 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13002 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13003 instead of pthread_attr_init and pthread_attr_setstack.
13004
13005 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13006 __vm_deallocate instead of vm_allocate and vm_deallocate.
13007 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13008 setenv.
13009 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13010 of geteuid.
13011 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13012 strdup.
13013 * hurd/siginfo.c: Include <libioP.h>.
13014 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13015 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13016 munmap.
13017 * mach/devstream.c: Include <libioP.h>.
13018 (dealloc_ref): Call __mach_port_deallocate instead of
13019 mach_port_deallocate.
13020 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13021 Call __mach_port_deallocate instead of mach_port_deallocate.
13022 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13023 pathconf.
13024 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13025 munmap.
13026 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13027 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13028 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13029 of munmap.
13030 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13031 of close.
13032 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13033 instead of sysconf.
13034 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13035 __clock_gettime instead of clock_gettime.
13036 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13037 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13038 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13039 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13040 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13041 tcgetattr.
13042 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13043 __clock_gettime and __nanosleep instead of clock_gettime and
13044 nanosleep.
13045 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13046 __hurd_catch_signal.
13047 (hurd_catch_signal): New strong alias.
13048 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13049 __hurd_catch_signal instead of hurd_catch_signal.
13050 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13051 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13052 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13053 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13054 (_hurd_thread_sigstate): Add hidden def.
13055 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13056 mutex_unlock.
13057 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13058 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13059 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13060 __hurd_file_name_path_lookup.
13061 (hurd_file_name_path_lookup): New strong alias.
13062 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13063 hurd_file_name_path_lookup.
13064 * mach/errstring.c (mach_error_type): Add hidden def.
13065 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13066 * mach/mutex-init.c (__mutex_init): Add hidden def.
13067 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13068 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13069 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13070 * sysdeps/mach/hurd/getcwd.c
13071 (_hurd_canonicalize_directory_name_internal): Rename to
13072 __hurd_canonicalize_directory_name_internal.
13073 (_hurd_canonicalize_directory_name_internal): New strong alias.
13074 (__canonicalize_directory_name_internal, __getcwd): Call
13075 __hurd_canonicalize_directory_name_internal instead of
13076 _hurd_canonicalize_directory_name_internal.
13077 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13078 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13079 hidden defs.
13080 * sysdeps/hurd/include/hurd.h: New file.
13081 * sysdeps/hurd/include/hurd/fd.h: New file.
13082 * sysdeps/hurd/include/hurd/signal.h: New file.
13083 * sysdeps/mach/include/lock-intern.h: New file.
13084 * sysdeps/mach/include/mach.h: New file.
13085 * sysdeps/mach/include/mach/mig_support.h: New file.
13086 * sysdeps/mach/include/mach_error.h: New file.
13087 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13088 prototype.
13089 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13090 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13091 _HEADER_H_HIDDEN_DEF macro.
13092 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13093 _hurd_fd_error_signal): Add hidden prototype.
13094 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13095 hidden def.
13096 * libio/iolibio.h (_IO_puts): New hidden prototype.
13097 * libio/ioputs.c (_IO_puts): New hidden def.
13098 * sysdeps/mach/hurd/localplt.data: New file.
13099
13100 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13101 Amos Jeffries <squid3@treenet.co.nz>
13102 David Michael <fedora.dm0@gmail.com>
13103 Marco Gerards <marco@gnu.org>
13104 Marcus Brinkmann <marcus@gnu.org>
13105 Neal H. Walfield <neal@gnu.org>
13106 Pino Toscano <toscano.pino@tiscali.it>
13107 Richard Braun <rbraun@sceen.net>
13108 Roland McGrath <roland@gnu.org>
13109 Samuel Thibault <samuel.thibault@ens-lyon.org>
13110 Thomas DiModica <ricinwich@yahoo.com>
13111 Thomas Schwinge <tschwinge@gnu.org>
13112
13113 * htl: New directory.
13114 * sysdeps/htl: New directory.
13115 * sysdeps/hurd/htl: New directory.
13116 * sysdeps/i386/htl: New directory.
13117 * sysdeps/mach/htl: New directory.
13118 * sysdeps/mach/hurd/htl: New directory.
13119 * sysdeps/mach/hurd/i386/htl: New directory.
13120 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13121 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13122 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13123
13124 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13125
13126 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13127 signals in thread created for runing timers.
13128
13129 2018-04-01 Florian Weimer <fweimer@redhat.com>
13130
13131 * support/support_format_addrinfo.c (support_format_addrinfo):
13132 Include unknown error number in formatted result.
13133
13134 2018-03-29 Florian Weimer <fweimer@redhat.com>
13135
13136 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13137 capture SIGBUS.
13138
13139 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13140
13141 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13142 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13143 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13144 (__ASSUME_CLONE_BACKWARDS): Define.
13145
13146 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13147
13148 [BZ #23024]
13149 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13150 early when linux sentinel value is set.
13151
13152 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13153
13154 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13155
13156 2018-03-27 Andreas Schwab <schwab@suse.de>
13157
13158 [BZ #23005]
13159 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13160 allocation of private copy of nsaddr_list fails.
13161
13162 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13163
13164 [BZ #16552]
13165 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13166 * sysdeps/unix/sysv/linux/umount.c: ... here.
13167 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13168 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13169 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13170 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13171 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13172 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13173 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13174
13175 2018-03-26 Andreas Schwab <schwab@suse.de>
13176
13177 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13178 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13179 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13180 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13181 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13182 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13183 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13184 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13185 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13186 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13187 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13188 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13189 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13190 (R_RISCV_NUM): Define.
13191
13192 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13193
13194 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13195 TLS declaration of errno.
13196 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13197 __libc_setup_tls.
13198 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13199 (ARCH_SETUP_TLS): Likewise.
13200 * sysdeps/mach/hurd/libc-start.h: New file copied from
13201 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13202 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13203 instead of __libc_setup_tls.
13204 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13205 __libc_setup_tls before initializing libpthread and running _hurd_init
13206 which starts the signal thread.
13207 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13208 Declare function.
13209 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13210
13211 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13212
13213 [BZ #22998]
13214 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13215 after it is defined.
13216
13217 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13218 Max Horn <max@quendi.de>
13219
13220 [BZ #22644]
13221 CVE-2017-18269
13222 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13223 branch conditions.
13224 * string/test-memmove.c (do_test2): New testcase.
13225
13226 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13227
13228 * sysdeps/generic/frame.h: Remove file.
13229 * sysdeps/arm/frame.h: Likewise.
13230 * sysdeps/hppa/frame.h: Likewise.
13231 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13232 macro.
13233 (GET_FRAME): Likewise.
13234 (GET_STACK): Likewise.
13235 (CALL_SIGHANDLER): Likewise.
13236 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13237 Likewise.
13238 (GET_FRAME): Likewise.
13239 (GET_STACK): Likewise.
13240 (CALL_SIGHANDLER): Likewise.
13241 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13242 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13243 (GET_FRAME): Likewise.
13244 (GET_STACK): Likewise.
13245 (CALL_SIGHANDLER): Likewise.
13246 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13247 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13248 (GET_FRAME): Likewise.
13249 (GET_STACK): Likewise.
13250 (ADVANCE_STACK_FRAME): Likewise.
13251 (CALL_SIGHANDLER): Likewise.
13252 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13253 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13254 (GET_FRAME): Likewise.
13255 (GET_STACK): Likewise.
13256 (CALL_SIGHANDLER): Likewise.
13257 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13258 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13259 (GET_FRAME): Likewise.
13260 (GET_STACK): Likewise.
13261 (CALL_SIGHANDLER): Likewise.
13262 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13263 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13264 (GET_FRAME): Likewise.
13265 (GET_STACK): Likewise.
13266 (CALL_SIGHANDLER): Likewise.
13267 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13268 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13269 (GET_FRAME): Likewise.
13270 (GET_STACK): Likewise.
13271 (CALL_SIGHANDLER): Likewise.
13272 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13273 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13274 (GET_FRAME): Likewise.
13275 (GET_STACK): Likewise.
13276 (CALL_SIGHANDLER): Likewise.
13277 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13278 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13279 (GET_FRAME): Likewise.
13280 (GET_STACK): Likewise.
13281 (CALL_SIGHANDLER): Likewise.
13282 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13283 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13284 (GET_FRAME): Likewise.
13285 (GET_STACK): Likewise.
13286 (CALL_SIGHANDLER): Likewise.
13287 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13288 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13289 (GET_FRAME): Likewise.
13290 (GET_STACK): Likewise.
13291 (CALL_SIGHANDLER): Likewise.
13292 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13293 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13294 (GET_FRAME): Likewise.
13295 (GET_STACK): Likewise.
13296 (CALL_SIGHANDLER): Likewise.
13297 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13298 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13299 (FIRST_FRAME_POINTER): Likewise.
13300 (ADVANCE_STACK_FRAME): Likewise.
13301 (GET_STACK): Likewise.
13302 (GET_FRAME): Likewise.
13303 (CALL_SIGHANDLER): Likewise.
13304 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13305 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13306 (ADVANCE_STACK_FRAME): Likewise.
13307 (GET_STACK): Likewise.
13308 (GET_FRAME): Likewise.
13309 (CALL_SIGHANDLER): Likewise.
13310 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13311 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13312 (GET_FRAME): Likewise.
13313 (GET_STACK): Likewise.
13314 (CALL_SIGHANDLER): Likewise.
13315 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13316 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13317 (GET_FRAME): Likewise.
13318 (GET_STACK): Likewise.
13319 (CALL_SIGHANDLER): Likewise.
13320
13321 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13322
13323 * sysdeps/x86_64/backtrace.c: Move to ....
13324 * debug/backtrace.c: ... here.
13325 * sysdeps/aarch64/backtrace.c: Remove file.
13326 * sysdeps/alpha/backtrace.c: Likewise.
13327 * sysdeps/hppa/backtrace.c: Likewise.
13328 * sysdeps/ia64/backtrace.c: Likewise.
13329 * sysdeps/mips/backtrace.c: Likewise.
13330 * sysdeps/nios2/backtrace.c: Likewise.
13331 * sysdeps/riscv/backtrace.c: Likewise.
13332 * sysdeps/sh/backtrace.c: Likewise.
13333 * sysdeps/tile/backtrace.c: Likewise.
13334
13335 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13336
13337 [BZ #22987]
13338 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13339 function.
13340 (fdimf): Likewise.
13341 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13342
13343 [BZ #17343]
13344 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13345 possibly overflowing computations.
13346
13347 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13348
13349 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13350 values from Linux-specific section now that it is in the GNU section.
13351 * sysdeps/gnu/errlist.c: Regenerate.
13352
13353 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13354
13355 * math/Makefile (libm-narrow-fns): Add sub.
13356 (libm-test-funcs-narrow): Likewise.
13357 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13358 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13359 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13360 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13361 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13362 (NARROW_SUB_TRIVIAL): Likewise.
13363 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13364 macro.
13365 (__dsubl): Likewise.
13366 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13367 dsub.
13368 (CFLAGS-nldbl-dsub.c): New variable.
13369 (CFLAGS-nldbl-fsub.c): Likewise.
13370 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13371 __nldbl_dsubl.
13372 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13373 prototype.
13374 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13375 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13376 * math/auto-libm-test-in: Add tests of sub.
13377 * math/auto-libm-test-out-narrow-sub: New generated file.
13378 * math/libm-test-narrow-sub.inc: New file.
13379 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13380 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13381 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13382 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13383 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13384 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13385 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13386 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13387 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13388 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13389 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13390 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13391 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13392 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13393 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13394 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13395 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13396 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13397 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13398 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13399 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13400 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13401 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13402 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13403 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13404 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13405 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13406 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13407 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13408 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13409 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13410 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13415 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13416 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13417 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13418 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13419 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13420 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13421 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13422 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13423 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13424 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13425
13426 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13427
13428 [BZ #20079]
13429 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13430
13431 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13432
13433 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13434
13435 2018-03-18 Richard Braun <rbraun@sceen.net>
13436
13437 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13438 thread reference.
13439
13440 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13441
13442 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13443 (__libc_cleanup_fct): Define function.
13444 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13445 __libc_cleanup_end): Rewrite implementation using
13446 __attribute__ ((__cleanup__)).
13447 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13448 * hurd/Makefile (routines): Add hurdlock.
13449 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13450 interface.
13451 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13452 * hurd/hurdpid.c: Include <lowlevellock.h>
13453 (_S_msg_proc_newids): Use lll_wait to synchronize.
13454 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13455 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13456 * mach/Makefile (lock-headers): Remove machine-lock.h.
13457 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13458 <machine-lock.h>.
13459 (__spin_lock_t): New type.
13460 (__SPIN_LOCK_INITIALIZER): New macro.
13461 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13462 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13463 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13464 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13465 (__mutex_init): Initialize with lll.
13466 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13467 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13468 needing lll.
13469 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13470 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13471 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13472 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13473 (__setpgid): Use lll for synchronization.
13474 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13475 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13476 instead of <cthreads.h>.
13477 (_IO_lock_inexpensive): New macro
13478 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13479 (__libc_lock_self0): New declaration.
13480 (__libc_lock_owner_self): New macro.
13481 (__libc_key_t): Remove type.
13482 (_LIBC_LOCK_INITIALIZER): New macro.
13483 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13484 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13485 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13486 __libc_lock_define_initialized_recursive,
13487 __rtld_lock_define_initialized_recursive,
13488 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13489 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13490 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13491 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13492 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13493 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13494 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13495 New macros.
13496 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13497 * hurd/hurdlock.c: New file.
13498 * hurd/hurdlock.h: New file.
13499 * mach/lowlevellock.h: New file
13500
13501 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13502
13503 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13504 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13505 when opening a symlink with O_NOFOLLOW.
13506 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13507 path when flags contains O_NOFOLLOW.
13508 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13509 if flags contains O_DIRECTORY and the result is a directory.
13510 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13511 oneself when the pointer given in D is nul (as set by ext2fs).
13512 * sysdeps/mach/hurd/mlockall.c: New file.
13513 * sysdeps/mach/hurd/munlockall.c: New file.
13514
13515 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13516
13517 * hurd/hurdsig.c: Include <pthread.h>.
13518 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13519 get the signal thread stack layout.
13520 * hurd/Makefile (headers): Remove threadvar.h.
13521 (inline-headers): Remove threadvar.h.
13522 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13523 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13524 __hurd_threadvar_max, __hurd_errno_location.
13525 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13526 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13527 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13528 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13529 unless TLS is not initialized yet, in which case we do not need a
13530 critical section yet anyway.
13531 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13532 <machine-sp.h>.
13533 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13534 declarations.
13535 (__hurd_threadvar_index): Remove enum.
13536 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13537 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13538 inlines.
13539 (__hurd_reply_port0): New variable declaration.
13540 (__hurd_local_reply_port): New macro.
13541 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13542 (interrupted_reply_port_location): Add thread_t parameter. Use it
13543 with THREAD_TCB to access thread-local variables.
13544 (_hurdsig_abort_rpcs): Pass ss->thread to
13545 interrupted_reply_port_location.
13546 (_hurd_internal_post_signal): Likewise.
13547 (_hurdsig_init): Use presence of cthread_fork instead of
13548 __hurd_threadvar_stack_mask to start signal thread by hand.
13549 Remove signal thread threadvar initialization.
13550 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13551 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13552 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13553 of threadvar.
13554 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13555 __libc_lock_self0.
13556 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13557 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13558 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13559 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13560 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13561 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13562 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13563 define variables.
13564 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13565 <hurd/threadvar.h>.
13566 [IS_IN(rtld)] (rtld_errno): New variable.
13567 [IS_IN(rtld)] (__errno_location): New weak function.
13568 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13569 * sysdeps/mach/hurd/errno.c: Remove file.
13570 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13571 (__fork): Remove THREADVAR_SPACE macro and its use.
13572 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13573 variable.
13574 (init): Do not initialize threadvar.
13575 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13576 symbol.
13577 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13578 __hurd_local_reply_port instead of threadvar.
13579 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13580 _hurd_sigstate fields.
13581 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13582 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13583 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13584 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13585 instead of threadvar.
13586 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13587 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13588 (use_threadvar, global_reply_port): Remove variables.
13589 (__hurd_reply_port0): New variable.
13590 (__mig_get_reply_port): Use __hurd_local_reply_port and
13591 __hurd_reply_port0 instead of threadvar.
13592 (__mig_dealloc_reply_port): Likewise.
13593 (__mig_init): Do not initialize threadvar.
13594 * sysdeps/mach/hurd/profil.c: Fix comment.
13595 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13596 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13597 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13598 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13599 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13600 __cthread_setspecific.
13601 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13602 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13603 __cthread_t instead of cthread_fork, cthread_detach,
13604 pthread_getattr_np, pthread_attr_getstack.
13605 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13606 __cthread_keycreate.
13607 (cthread_getspecific): Rename to __cthread_getspecific.
13608 (cthread_setspecific): Rename to __cthread_setspecific.
13609 (__libc_getspecific): Use __cthread_getspecific instead of
13610 cthread_getspecific.
13611 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13612 __cthread_keycreate instead of cthread_keycreate.
13613 (__libc_setspecific): Use __cthread_setspecific instead of
13614 cthread_setspecific.
13615 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13616 Likewise.
13617 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13618 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13619 testing whether it is defined.
13620
13621 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13622
13623 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13624 Define macro.
13625 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13626 * sysdeps/mach/i386/thread_state.h
13627 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13628 i386_THREAD_STATE.
13629 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13630 i386_THREAD_STATE.
13631 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13632
13633 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13634 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13635
13636 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13637 macros.
13638 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13639 descriptor instead of creating a new one.
13640 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13641
13642 * mach/setup-thread.c: Include <ldsodefs.h>.
13643 (__mach_setup_thread): Call _dl_allocate_tls, pass
13644 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13645 MACHINE_THREAD_STATE_FLAVOR, before getting
13646 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13647 MACHINE_THREAD_STATE_FLAVOR with the result.
13648 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13649 MACHINE_THREAD_STATE_FIX_NEW.
13650 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13651 too. Add original thread parameter.
13652
13653 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13654
13655 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13656 Remove inline function.
13657
13658 * sysdeps/i386/fpu/libm-test-ulps: Update.
13659 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13660
13661 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13662
13663 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13664 commit.
13665
13666 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13667
13668 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13669 (__sincos_code): Remove define and undefine.
13670 [__FAST_MATH__] (__sincos): Remove inline function.
13671 [__FAST_MATH__] (__sincosf): Remove inline function.
13672 [__FAST_MATH__] (__sincosl): Remove inline function.
13673 (__atan2l): Remove inline functions.
13674 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13675 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13676 function.
13677 (floor): Remove inline function.
13678 (ceil): Likewise.
13679 [__FAST_MATH__] (__ldexp_code): Remove macro.
13680 [__FAST_MATH__] (ldexp): Remove inline function.
13681 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13682 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13683 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13684 [__USE_ISOC99] (__lrint_code): Remove macro.
13685 [__USE_ISOC99] (__llrint_code): Likewise.
13686 [__USE_ISOC99] (lrintf): Remove inline function.
13687 [__USE_ISOC99] (lrint): Likewise.
13688 [__USE_ISOC99] (lrintl): Likewise.
13689 [__USE_ISOC99] (llrint): Likewise.
13690 [__USE_ISOC99] (llrintf): Likewise.
13691 [__USE_ISOC99] (llrintl): Likewise.
13692
13693 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13694
13695 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13696 (__ieee754_sqrtf): Remove.
13697 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13698 (__ieee754_sqrtf): Remove.
13699 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13700 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13701 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13702 (__ieee754_sqrtf): Remove.
13703 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13704 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13705 (sqrtf): Remove.
13706 (sqrtl): Remove.
13707 (__ieee754_sqrt): Remove.
13708 (__ieee754_sqrtf): Remove.
13709 (__ieee754_sqrtl): Remove.
13710 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13711 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13712 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13713 (__ieee754_sqrtf): Remove.
13714 (__ieee754_sqrtl): Remove.
13715
13716 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13717
13718 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13719 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13720 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13721 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13722 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13723 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13724 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13725 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13726 Likewise.
13727 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13728 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13729 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13730 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13731 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13732 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13733 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13734 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13735 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13736 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13737 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13738 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13739 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13740 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13741 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13742 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13743 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13744 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13745 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13746 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13747 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13748 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13749 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13750 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13751 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13752 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13753 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13754 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13755 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13756 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13757 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13758 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13759 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13760 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13761 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13762 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13763 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13764 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13765 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13766 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13767
13768 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13769
13770 * include/math.h (sqrt): Declare with asm redirect.
13771 (sqrtf): Likewise.
13772 (sqrtl): Likewise.
13773 (sqrtf128): Likewise.
13774 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13775 nonlib and libnldbl with -fmath-errno.
13776 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13777 * math/w_sqrt_template.c: Likewise.
13778 * math/w_sqrtf_compat.c: Likewise.
13779 * math/w_sqrtl_compat.c: Likewise.
13780 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13781 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13782 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13783 complex.h.
13784
13785 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13786
13787 * benchtests/Makefile: Define _ISOMAC.
13788 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13789 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13790 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13791 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13792 * benchtests/bench-timing.h: Define attribute_hidden.
13793
13794 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13795
13796 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13797 mov + lsr.
13798
13799 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13800
13801 [BZ #22963]
13802 * localedata/locales/cs_CZ (mon): Rename to...
13803 (alt_mon): This.
13804 (mon): Import from CLDR (genitive case).
13805
13806 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13807
13808 [BZ #22937]
13809 * localedata/locales/el_CY (abmon): Rename to...
13810 (ab_alt_mon): This.
13811 (abmon): Import from CLDR (abbreviated genitive case).
13812 * localedata/locales/el_GR (abmon): Rename to...
13813 (ab_alt_mon): This.
13814 (abmon): Import from CLDR (abbreviated genitive case).
13815
13816 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13817
13818 [BZ #22932]
13819 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13820
13821 2018-03-15 Robert Buj <robert.buj@gmail.com>
13822
13823 [BZ #22848]
13824 * localedata/locales/ca_ES (abmon): Rename to...
13825 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13826 (mon): Rename to...
13827 (alt_mon): This.
13828 (abmon): Import from CLDR (genitive case, month names preceded by
13829 "de" or "d’").
13830 (mon): Likewise.
13831 (abday): Synchronize with CLDR.
13832 (d_t_fmt): Likewise.
13833 (d_fmt): Likewise.
13834 (am_pm): Likewise.
13835
13836 (LC_TIME): Improve indentation.
13837 (LC_TELEPHONE): Likewise.
13838 (LC_NAME): Likewise.
13839 (LC_ADDRESS): Likewise.
13840
13841 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13842
13843 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13844 (lrintf): Remove definitions used only with old GCC.
13845 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13846 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13847 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13848 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13849 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13850 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13851 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13852 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13853 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13854 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13855 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13856 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13857 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13858 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13859 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13860 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13861 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13862 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13863 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13864 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
13865 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
13866 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
13867 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
13868 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
13869 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
13870 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
13871 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
13872 [__FAST_MATH__] (__M_SQRT2): Remove macro.
13873
13874 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
13875
13876 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
13877 instruction to unbreak builds with binutils 2.26 and older.
13878
13879 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
13880
13881 * sysdeps/aarch64/strncmp.S (count): New macro.
13882 (strncmp): Store misaligned length in SRC1 in COUNT.
13883 (mutual_align): Adjust.
13884 (misaligned8): Load dword at a time when it is safe.
13885
13886 2018-03-12 Zack Weinberg <zackw@panix.com>
13887
13888 [BZ #1190]
13889 [BZ #19476]
13890 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
13891 if the _IO_EOF_SEEN bit is already set; update commentary.
13892 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
13893 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
13894
13895 * support/support_openpty.c, support/tty.h: New files.
13896 * support/Makefile (libsupport-routines): Add support_openpty.
13897
13898 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
13899 New test cases.
13900 * libio/Makefile (tests): Add tst-fgetc-after-eof.
13901 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
13902
13903 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
13904
13905 * po/pt_BR.po: Update translations.
13906
13907 2018-03-12 David Michael <fedora.dm0@gmail.com>
13908
13909 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
13910 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
13911 get a port to the startup server.
13912
13913 2018-03-11 Zack Weinberg <zackw@panix.com>
13914
13915 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
13916 before nldbl-compat.h.
13917
13918 2018-03-10 Zack Weinberg <zackw@panix.com>
13919
13920 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
13921 math.h or math_private.h.
13922
13923 * sysdeps/alpha/fpu/s_isnan.c
13924 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
13925 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
13926 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
13927 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
13928 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
13929 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
13930 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
13931 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
13932 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
13933 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
13934 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
13935 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
13936 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
13937 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
13938 Include math_private.h.
13939
13940 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
13941 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
13942 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
13943 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
13944 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
13945 * sysdeps/powerpc/power7/fpu/s_logb.c:
13946 Include math.h and math_private.h.
13947
13948 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
13949 uses of $at in .set noat / .set at.
13950
13951 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
13952
13953 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
13954 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
13955 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
13956 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
13957 Likewise.
13958
13959 2018-03-09 Florian Weimer <fweimer@redhat.com>
13960
13961 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
13962 in comment.
13963
13964 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
13965
13966 [BZ #22919]
13967 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
13968 Add nop before __startcontext, add explaining comments.
13969
13970 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13971
13972 [BZ #22926]
13973 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
13974 empty for __SPE__.
13975 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
13976 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
13977 Do not build hardware transactional code for __SPE__.
13978 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13979 (__lll_trylock_elision): Likewise.
13980 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
13981 (__lll_unlock_elision): Likewise.
13982
13983 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
13984 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
13985 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
13986 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
13987 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
13988 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
13989 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
13990 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
13991 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
13992 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
13993 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
13994 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
13995 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
13996 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
13997 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
13998 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
13999 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14000 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14001 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14002 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14003 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14004 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14005 (__ASSUME_CLONE_BACKWARDS): Define.
14006 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14007 __clone2 if __NR_clone2 is defined.
14008 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14009 (__ASSUME_CLONE_BACKWARDS): Likewise.
14010 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14011 (__ASSUME_CLONE_BACKWARDS): Likewise.
14012 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14013 (__ASSUME_CLONE2): Likewise.
14014 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14015 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14016 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14017 variants and the define architecture can use.
14018 (__ASSUME_CLONE_DEFAULT): Define as default.
14019 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14020 (__ASSUME_CLONE_BACKWARDS): Likewise.
14021 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14022 (__ASSUME_CLONE_BACKWARDS): Likewise.
14023 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14024 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14025
14026 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14027
14028 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14029
14030 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14031 time.
14032
14033 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14034 (do_test_limit): Likewise.
14035
14036 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14037 for every implementation.
14038 (do_test): Likewise.
14039
14040 * benchtests/bench-strncmp.c: Convert output to json.
14041
14042 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14043
14044 * io/futimens.c: Add missing start-of-file descriptive comment.
14045 * io/utime.c: Likewise.
14046 * misc/futimesat.c: Likewise.
14047 * misc/utimes.c: Likewise.
14048 * sysdeps/mach/hurd/futimesat.c: Likewise.
14049 * sysdeps/mach/hurd/utimes.c: Likewise.
14050 * sysdeps/posix/utime.c: Likewise.
14051 * sysdeps/posix/utimes.c: Likewise.
14052 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14053 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14054 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14055 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14056
14057 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14058
14059 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14060 hurd_futimes.
14061 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14062 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14063 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14064 (__futimens): Move implementation to...
14065 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14066 utime_tvalue_from_tspec): ... new helper functions.
14067 (hurd_futimens): New function.
14068 * sysdeps/mach/hurd/futimesat.c: New file.
14069 * sysdeps/mach/hurd/utimensat.c: New file.
14070
14071 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14072
14073 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14074 UTIME_OMIT): New macros.
14075 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14076 before reverting to converting time spec to time value and calling
14077 __file_utimes.
14078 * sysdeps/mach/hurd/utime-helper.c: New file.
14079 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14080 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14081 reverting to utime_tvalue_from_tval and __file_utimes.
14082 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14083 (__lutimes): Just call hurd_futimens after lookup.
14084 * sysdeps/mach/hurd/utimes.c: Likewise.
14085
14086 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14087
14088 * bits/sigaction.h: Add include guard.
14089 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14090 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14091 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14092 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14093 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14094 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14095 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14096 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14097 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14098
14099 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14100
14101 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14102 -Wmaybe-uninitialized for -Os.
14103 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14104 this disabling.
14105
14106 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14107
14108 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14109 __INO_T_MATCHES_INO64_T is defined.
14110 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14111 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14112 of definition.
14113 * dirent/alphasort64.c: Likewise.
14114 * dirent/scandir.c: Likewise.
14115 * dirent/scandir64-tail.c: Likewise.
14116 * dirent/scandir64.c: Likewise.
14117 * dirent/scandirat.c: Likewise.
14118 * dirent/scandirat64.c: Likewise.
14119 * dirent/versionsort.c: Likewise.
14120 * dirent/versionsort64.c: Likewise.
14121 * include/dirent.h: Likewise.
14122
14123 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14124 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14125 for socketpair endpoint.
14126 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14127 WRITE_BUFFER_SIZE as buffer size for sending socket.
14128 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14129 issue on system where send is implemented with sendto syscall.
14130 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14131 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14132 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14133 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14134
14135 [BZ #21269]
14136 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14137 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14138 sa_restorer for vDSO case.
14139 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14140
14141 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14142
14143 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14144 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14145 * hurd/hurd/ioctl.h: Include <mach/port.h>
14146 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14147 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14148 <mach/mach_types.h> and <mach/message.h>.
14149 (headers): Move mach/param.h to bits/mach/param.h.
14150 * sysdeps/mach/i386/mach/param.h: Move file to ...
14151 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14152 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14153 of <mach/param.h>.
14154 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14155 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14156 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14157 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14158 trivial, for C++ conformity.
14159 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14160 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14161 Process mig output through $(migheadersed).
14162 * hurd/Makefile (migheadersed): Define variable.
14163 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14164 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14165 headers.
14166 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14167 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14168 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14169 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14170 <bits/types/sigset_t.h>.
14171 [!defined __USE_GNU]: Do not #error out.
14172 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14173 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14174 Include <stddef.h> and <bits/types/sigset_t.h>
14175 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14176 instead of sighandler_t.
14177 * stdlib/errno.h (error_t): Move definition to...
14178 * bits/types/error_t.h: ... new header.
14179 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14180 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14181 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14182 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14183 * hurd/hurd.h: Include <bits/types/error_t.h>
14184 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14185 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14186 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14187 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14188 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14189 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14190 * sysdeps/mach/hurd/futimens.c: New file.
14191
14192 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14193
14194 [BZ #22918]
14195 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14196 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14197 * nscd/gai.c (__nss_hosts_database): Readd definition.
14198 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14199 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14200 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14201
14202 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14203
14204 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14205 (ifunc_one): Likewise.
14206
14207 2018-03-01 DJ Delorie <dj@delorie.com>
14208
14209 [BZ #22342]
14210 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14211 key value.
14212
14213 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14214
14215 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14216 `match_pid' parameter.
14217 (td_ta_thr_iter): Update accordingly.
14218
14219 2018-03-01 Florian Weimer <fweimer@redhat.com>
14220
14221 * nptl/Makefile (install-lib-ldscripts): Remove.
14222 (install): Remove rule.
14223 ($(inst_libdir)/libpthread.so): Likewise.
14224
14225 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14226
14227 [BZ #22896]
14228 * localedata/locales/an_ES: update month and day names,
14229 improve d_fmt, improve postal_fmt, add country_post,
14230 add country_isbn
14231
14232 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14233
14234 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14235 Ukrainian instead of Bulgarian.
14236
14237 2018-03-01 Florian Weimer <fweimer@redhat.com>
14238
14239 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14240 reference.
14241
14242 2018-03-01 Florian Weimer <fweimer@redhat.com>
14243
14244 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14245 * nptl/Makefile (routines): Add pthread_atfork.
14246 (static-only-routines): Set to pthread_atfork.
14247 (libpthread-routines): Remove pthread_atfork.
14248 (libpthread-static-only-routines): Remove.
14249 (install): Update comment.
14250 (libpthread.so): Do not install libpthread_nonshared.a.
14251 (tests): Do not link with libpthread_nonshared.a.
14252 (generated): Remove libpthread_nonshared.a.
14253 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14254 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14255 with libpthread_nonshared.a.
14256
14257 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14258
14259 [BZ #22902]
14260 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14261 (libc_feholdexcept_setroundf128): New macro.
14262 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14263
14264 [BZ #15105]
14265 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14266 libc_hidden_def.
14267 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14268 * include/inttypes.h: New file.
14269
14270 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14271
14272 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14273 -Os in two more places.
14274
14275 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14276
14277 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14278 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14279 be sorted correctly at the moment because of a bug.
14280
14281 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14282
14283 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14284 treat ñ as a primary different character, sync the collation
14285 for Spanish with CLDR.
14286 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14287 * localedata/Makefile: Add new test files.
14288 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14289 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14290 collation order.
14291 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14292 * localedata/am_ET.UTF-8.in: New test file.
14293 * localedata/az_AZ.UTF-8.in: Likewise.
14294 * localedata/be_BY.UTF-8.in: Likewise.
14295 * localedata/ber_DZ.UTF-8.in: Likewise.
14296 * localedata/ber_MA.UTF-8.in: Likewise.
14297 * localedata/bg_BG.UTF-8.in: Likewise.
14298 * localedata/br_FR.UTF-8.in: Likewise.
14299 * localedata/cmn_TW.UTF-8.in: Likewise.
14300 * localedata/crh_UA.UTF-8.in: Likewise.
14301 * localedata/csb_PL.UTF-8.in: Likewise.
14302 * localedata/cv_RU.UTF-8.in: Likewise.
14303 * localedata/cy_GB.UTF-8.in: Likewise.
14304 * localedata/dz_BT.UTF-8.in: Likewise.
14305 * localedata/eo.UTF-8.in: Likewise.
14306 * localedata/es_ES.UTF-8.in: Likewise.
14307 * localedata/fa_IR.UTF-8.in: Likewise.
14308 * localedata/fi_FI.UTF-8.in: Likewise.
14309 * localedata/fil_PH.UTF-8.in: Likewise.
14310 * localedata/fur_IT.UTF-8.in: Likewise.
14311 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14312 * localedata/ha_NG.UTF-8.in: Likewise.
14313 * localedata/ig_NG.UTF-8.in: Likewise.
14314 * localedata/ik_CA.UTF-8.in: Likewise.
14315 * localedata/kk_KZ.UTF-8.in: Likewise.
14316 * localedata/ku_TR.UTF-8.in: Likewise.
14317 * localedata/ky_KG.UTF-8.in: Likewise.
14318 * localedata/ln_CD.UTF-8.in: Likewise.
14319 * localedata/mi_NZ.UTF-8.in: Likewise.
14320 * localedata/ml_IN.UTF-8.in: Likewise.
14321 * localedata/mn_MN.UTF-8.in: Likewise.
14322 * localedata/mr_IN.UTF-8.in: Likewise.
14323 * localedata/mt_MT.UTF-8.in: Likewise.
14324 * localedata/nb_NO.UTF-8.in: Likewise.
14325 * localedata/om_KE.UTF-8.in: Likewise.
14326 * localedata/os_RU.UTF-8.in: Likewise.
14327 * localedata/ps_AF.UTF-8.in: Likewise.
14328 * localedata/ro_RO.UTF-8.in: Likewise.
14329 * localedata/ru_RU.UTF-8.in: Likewise.
14330 * localedata/sc_IT.UTF-8.in: Likewise.
14331 * localedata/se_NO.UTF-8.in: Likewise.
14332 * localedata/sq_AL.UTF-8.in: Likewise.
14333 * localedata/sv_SE.UTF-8.in: Likewise.
14334 * localedata/szl_PL.UTF-8.in: Likewise.
14335 * localedata/tg_TJ.UTF-8.in: Likewise.
14336 * localedata/tk_TM.UTF-8.in: Likewise.
14337 * localedata/tt_RU.UTF-8.in: Likewise.
14338 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14339 * localedata/ug_CN.UTF-8.in: Likewise.
14340 * localedata/uz_UZ.UTF-8.in: Likewise.
14341 * localedata/vi_VN.UTF-8.in: Likewise.
14342 * localedata/yi_US.UTF-8.in: Likewise.
14343 * localedata/yo_NG.UTF-8.in: Likewise.
14344 * localedata/zh_CN.UTF-8.in: Likewise.
14345 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14346 file and fix bugs in the collation.
14347 * localedata/locales/az_AZ: Likewise.
14348 * localedata/locales/be_BY: Likewise.
14349 * localedata/locales/ber_DZ: Likewise.
14350 * localedata/locales/ber_MA: Likewise.
14351 * localedata/locales/bg_BG: Likewise.
14352 * localedata/locales/br_FR: Likewise.
14353 * localedata/locales/br_FR@euro: Likewise.
14354 * localedata/locales/ca_ES: Likewise.
14355 * localedata/locales/cns11643_stroke: Likewise.
14356 * localedata/locales/crh_UA: Likewise.
14357 * localedata/locales/cs_CZ: Likewise.
14358 * localedata/locales/csb_PL: Likewise.
14359 * localedata/locales/cv_RU: Likewise.
14360 * localedata/locales/cy_GB: Likewise.
14361 * localedata/locales/da_DK: Likewise.
14362 * localedata/locales/dz_BT: Likewise.
14363 * localedata/locales/en_CA: Likewise.
14364 * localedata/locales/eo: Likewise.
14365 * localedata/locales/es_CU: Likewise.
14366 * localedata/locales/es_EC: Likewise.
14367 * localedata/locales/es_ES: Likewise.
14368 * localedata/locales/es_US: Likewise.
14369 * localedata/locales/et_EE: Likewise.
14370 * localedata/locales/fa_IR: Likewise.
14371 * localedata/locales/fi_FI: Likewise.
14372 * localedata/locales/fil_PH: Likewise.
14373 * localedata/locales/fur_IT: Likewise.
14374 * localedata/locales/gez_ER@abegede: Likewise.
14375 * localedata/locales/ha_NG: Likewise.
14376 * localedata/locales/hr_HR: Likewise.
14377 * localedata/locales/hsb_DE: Likewise.
14378 * localedata/locales/hu_HU: Likewise.
14379 * localedata/locales/ig_NG: Likewise.
14380 * localedata/locales/ik_CA: Likewise.
14381 * localedata/locales/is_IS: Likewise.
14382 * localedata/locales/iso14651_t1_pinyin: Likewise.
14383 * localedata/locales/kk_KZ: Likewise.
14384 * localedata/locales/ku_TR: Likewise.
14385 * localedata/locales/ky_KG: Likewise.
14386 * localedata/locales/ln_CD: Likewise.
14387 * localedata/locales/lt_LT: Likewise.
14388 * localedata/locales/lv_LV: Likewise.
14389 * localedata/locales/mi_NZ: Likewise.
14390 * localedata/locales/ml_IN: Likewise.
14391 * localedata/locales/mn_MN: Likewise.
14392 * localedata/locales/mr_IN: Likewise.
14393 * localedata/locales/mt_MT: Likewise.
14394 * localedata/locales/nb_NO: Likewise.
14395 * localedata/locales/om_KE: Likewise.
14396 * localedata/locales/os_RU: Likewise.
14397 * localedata/locales/pl_PL: Likewise.
14398 * localedata/locales/ps_AF: Likewise.
14399 * localedata/locales/ro_RO: Likewise.
14400 * localedata/locales/ru_RU: Likewise.
14401 * localedata/locales/ru_UA: Likewise.
14402 * localedata/locales/sc_IT: Likewise.
14403 * localedata/locales/se_NO: Likewise.
14404 * localedata/locales/si_LK: Likewise.
14405 * localedata/locales/sq_AL: Likewise.
14406 * localedata/locales/sv_FI: Likewise.
14407 * localedata/locales/sv_FI@euro: Likewise.
14408 * localedata/locales/sv_SE: Likewise.
14409 * localedata/locales/szl_PL: Likewise.
14410 * localedata/locales/tg_TJ: Likewise.
14411 * localedata/locales/ti_ER: Likewise.
14412 * localedata/locales/tk_TM: Likewise.
14413 * localedata/locales/tl_PH: Likewise.
14414 * localedata/locales/tr_TR: Likewise.
14415 * localedata/locales/tt_RU: Likewise.
14416 * localedata/locales/tt_RU@iqtelif: Likewise.
14417 * localedata/locales/ug_CN: Likewise.
14418 * localedata/locales/uk_UA: Likewise.
14419 * localedata/locales/uz_UZ: Likewise.
14420 * localedata/locales/uz_UZ@cyrillic: Likewise.
14421 * localedata/locales/vi_VN: Likewise.
14422 * localedata/locales/yi_US: Likewise.
14423 * localedata/locales/yo_NG: Likewise.
14424
14425 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14426
14427 * gen-locales.mk: Make test files which contain @ modifiers in their
14428 name work.
14429 * localedata/gen-locale.sh: Likewise.
14430
14431 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14432
14433 * posix/tst-fnmatch.input: Fix results for range expressions
14434 for non C locales.
14435 * posix/tst-regexloc.c: Do not use a range expression for
14436 de_DE.ISO-8859-1 locale.
14437
14438 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14439
14440 * posix/bug-regex5.c: Fix test case because with the new
14441 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14442 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14443 file.
14444
14445 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14446
14447 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14448 downloaded from ISO, the collation order of @-. and space has changed.
14449 Therefore, this test file needed to be adapted.
14450 * localedata/fr_CA.UTF-8.in: Likewise.
14451 * localedata/fr_FR.UTF-8.in: Likewise.
14452 * localedata/uk_UA.UTF-8.in: Likewise.
14453
14454 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14455
14456 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14457 order of ȥ in the new iso14651_t1_common file.
14458 * localedata/pl_PL.UTF-8.in: Likewise.
14459
14460 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14461
14462 * localedata/locales/iso14651_t1_common: Add sections for various
14463 scripts to the iso14651_t1_common file.
14464
14465 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14466
14467 * localedata/locales/iso14651_t1_common: Use the code point of a
14468 character in the fourth collation level instead of IGNORE for all
14469 entries which have IGNORE on all 4 levels.
14470
14471 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14472
14473 * localedata/locales/iso14651_t1_common: Add some convenient collation
14474 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14475 rules similar to those in CLDR.
14476
14477 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14478
14479 * localedata/locales/iso14651_t1_common: The new version of this
14480 file downloaded from ISO contained several syntax errors which
14481 are fixed by this patch.
14482
14483 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14484
14485 * localedata/locales/iso14651_t1_common: replace all <U.....>
14486 with <U000.....> because glibc understands only 4 digit or 8 digit
14487
14488 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14489
14490 * localedata/locales/iso14651_t1_common: Necessary changes
14491 to make the file downloaded from ISO usable by glibc.
14492
14493 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14494
14495 [BZ #14095]
14496 * localedata/locales/iso14651_t1_common: Update file to
14497 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14498
14499 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14500
14501 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14502 of <nptl/pthreadP.h>
14503 (thread_attr_compare): Move function to...
14504 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14505 * sysdeps/nptl/timer_routines.h: ... new header.
14506 * sysdeps/mach/hurd/gai_misc.h: New file.
14507
14508 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14509
14510 * string/strcoll_l.c: Include <libc-diag.h>.
14511 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14512 declarations of seq1 and seq2.
14513
14514 [BZ #15105]
14515 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14516 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14517
14518 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14519
14520 [BZ #22433]
14521 [BZ #22807]
14522 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14523 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14524 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14525 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14526 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14527 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14528
14529 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14530
14531 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14532 macros used in __ptrace_request.
14533
14534 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14535
14536 [BZ #22792]
14537 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14538 to $(CC).
14539 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14540 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14541 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14542 <tcb-offsets.h>.
14543
14544 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14545
14546 [BZ #15105]
14547 * ctype/ctype.c (tolower): Use libc_hidden_def.
14548 (toupper): Likewise.
14549 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14550 [!_ISOMAC] (toupper): Likewise.
14551
14552 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14553
14554 * localedata/Makefile: Remove --quiet argument when
14555 installing locales
14556
14557 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14558
14559 [BZ #17438]
14560 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14561 in d_fmt.
14562 * localedata/locales/pt_PT (LC_TIME): likewise
14563
14564 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14565
14566 [BZ #22646]
14567 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14568 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14569 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14570
14571 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14572
14573 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14574
14575 * nptl/Makefile (routines): Remove unregister-atfork.
14576 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14577 (fork_handler_alloc): Remove function.
14578 (fork_handlers, fork_handler_init): New variables.
14579 (__fork_lock): Rename to atfork_lock.
14580 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14581 to use a dynamic array to add/remove atfork handlers.
14582 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14583 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14584 Remove declaration.
14585 (fork_handler): Remove next, refcntr, and need_signal member.
14586 (__run_fork_handler_type): New enum.
14587 (__run_fork_handlers): New prototype.
14588 * nptl/register-atfork.c: Remove file.
14589 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14590
14591 * sysdeps/nptl/nptl-signals.h: Move to ...
14592 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14593 comments.
14594 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14595 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14596 unnecessary check for SIGTIMER.
14597 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14598 remove unnecessary removal of SIGTIMER.
14599 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14600 include-signals.h rename.
14601 * nptl/pthreadP.h: Likewise.
14602 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14603 __is_internal_signal instead of __nptl_is_internal_signal.
14604
14605 2018-02-22 Andrew Waterman <andrew@sifive.com>
14606
14607 [BZ # 22884]
14608 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14609 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14610 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14611 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14612
14613 2018-02-22 DJ Delorie <dj@delorie.com>
14614
14615 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14616
14617 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14618
14619 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14620 do_misaligned, not misaligned8.
14621
14622 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14623
14624 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14625 Add memcpy_thunderx2.
14626 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14627 Increment to 4.
14628 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14629 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14630 and IS_THUNDERX2PA checks.
14631 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14632 Use macro to set name appropriately.
14633 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14634 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14635 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14636 New macro.
14637 (IS_THUNDERX2): New macro.
14638
14639 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14640
14641 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14642
14643 2018-02-21 Zack Weinberg <zackw@panix.com>
14644
14645 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14646 Define here, unconditionally.
14647 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14648 * libio/libioP.h: Remove #if 0 blocks.
14649 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14650 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14651 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14652
14653 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14654 Assume weak_alias is always defined.
14655
14656 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14657 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14658 Remove #if 0 and #ifdef TODO blocks.
14659 Assume text_set_element is always defined.
14660
14661 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14662 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14663 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14664
14665 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14666 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14667 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14668 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14669 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14670 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14671 Reformat bit flags for _flags field to make occupancy clearer.
14672 Update commentary.
14673 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14674 Keep definitions consistent with those in libio/libio.h.
14675
14676 * libio/libio.h (_IO_file_flags): Remove macro.
14677 All uses changed to _flags.
14678
14679 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14680 (__HAVE_COLUMN, _IO_BE): Don't define.
14681 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14682 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14683 * libio/libioP.h (EOF): Don't define.
14684 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14685 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14686 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14687 testing _IO_UNIFIED_JUMPTABLES.
14688
14689 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14690 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14691 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14692 (_IO_size_t): Delete; all uses changed to size_t.
14693 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14694 (_IO_off_t): Delete; all uses changed to off_t.
14695 (_IO_off64_t): Delete; all uses changed to off64_t.
14696 (_IO_pid_t): Delete; all uses changed to pid_t.
14697 (_IO_uid_t): Delete; all uses changed to uid_t.
14698 (_IO_wint_t): Delete; all uses changed to wint_t.
14699 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14700 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14701 (_IO_cookie_io_functions_t): Delete; all uses changed to
14702 cookie_io_functions_t.
14703 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14704 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14705 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14706 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14707
14708 * libio/iofopncook.c: Remove unnecessary forward declarations.
14709 * libio/iolibio.h: Correct outdated commentary.
14710 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14711 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14712 Remove unnecessary casts.
14713 * stdio-common/getline.c: Use _IO_getdelim directly.
14714 Don't redefine ssize_t.
14715 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14716 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14717 Remove outdated comments.
14718 * stdio-common/vfscanf.c: Don't redefine va_list.
14719
14720 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14721 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14722 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14723 which are always true, and __cplusplus, which is always false.
14724
14725 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14726
14727 [BZ #15105]
14728 [BZ #19463]
14729 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14730 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14731 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14732 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14733 libc_hidden_proto.
14734 [!_ISOMAC] (putc_unlocked): Likewise.
14735 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14736 define inline if [__USE_EXTERN_INLINES].
14737 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14738 putc_unlocked.
14739
14740 [BZ #15105]
14741 [BZ #19463]
14742 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14743 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14744 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14745 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14746 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14747 getc_unlocked.
14748 * time/tzfile.c (__tzfile_read): Likewise.
14749
14750 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14751
14752 [BZ #22517]
14753 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14754
14755 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14756
14757 * io/fcntl.h: Fix a typo in a comment.
14758
14759 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14760
14761 [BZ #22862]
14762 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14763 define _DEFAULT_SOURCE.
14764 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14765
14766 2018-02-21 Florian Weimer <fweimer@redhat.com>
14767
14768 [BZ #20890]
14769 * elf/cache.c (save_cache): Call fsync on temporary file before
14770 renaming it.
14771 (save_aux_cache): Call fdatasync on temporary file before renaming
14772 it.
14773
14774 2018-02-21 Florian Weimer <fweimer@redhat.com>
14775
14776 [BZ #22787]
14777 * include/caller.h: Remove file.
14778 * elf/dl-caller.c: Likewise.
14779 * elf/Makefile (dl-routines): Remove dl-caller.
14780 (shared-only-routines): Do not add dl-caller.
14781 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14782 __check_caller.
14783 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14784 member.
14785 (dl_open_worker): Do not call __check_caller.
14786 (_dl_open): Do not set caller_dl_open member.
14787 * elf/rtld.c (_rtld_global_ro): Do not initialize
14788 _dl_check_caller member.
14789 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14790 _dl_check_caller member.
14791 (_dl_check_caller): Remove declaration.
14792 * sysdeps/unix/sysv/linux/dl-execstack.c
14793 (_dl_make_stack_executable): Do not call __check_caller.
14794
14795 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14796
14797 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14798 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14799
14800 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14801
14802 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14803 description.
14804
14805 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14806
14807 [BZ #16335]
14808 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14809 of 199606L, 200112L, and 200809L.
14810 (_XOPEN_SOURCE): Document special values of 600 and 700.
14811 (_ISOC11_SOURCE): Document macro.
14812 (_ATFILE_SOURCE): Likewise.
14813 (_FORTIFY_SOURCE): Likewise.
14814
14815 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14816
14817 [BZ #15105]
14818 [BZ #19463]
14819 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14820 and define as weak alias of __ferror_unlocked. Use
14821 libc_hidden_weak.
14822 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14823 libc_hidden_proto.
14824 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14825 function if [__USE_EXTERN_INLINES].
14826 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14827 ferror_unlocked.
14828
14829 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14830
14831 [BZ #6889]
14832 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14833
14834 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14835
14836 [BZ #22818]
14837 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14838 the GLIBC_2.1 version.
14839
14840 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14841
14842 [BZ #21508]
14843 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14844 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14845 intl/tst-gettext-de.po from po/de.po by removing the
14846 POT-Creation-Date line.
14847 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14848 ../po/de.po.
14849 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14850 ../po/de.po.
14851
14852 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14853
14854 * mach/Makefile (headers): Add mach/param.h.
14855 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14856 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14857 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14858 (__ptsname_r): Move implementation to...
14859 (__ptsname_internal): ... new function. Add filling the STP
14860 structure.
14861
14862 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14863
14864 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
14865 idouble to 1 ULP.
14866
14867 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
14868
14869 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
14870 syntax.
14871
14872 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
14873
14874 * nptl/Makefile (tst-mutex8-ENV): Delete.
14875 * nptl/tst-mutex8.c (check_type):
14876 Add runtime check if mutex will be elided.
14877
14878 2018-02-15 Joseph Myers <joseph@codesourcery.com>
14879
14880 [BZ #20980]
14881 [BZ #21234]
14882 * manual/install.texi (Configuring and compiling): Describe
14883 passing CC and CFLAGS on configure command line, not as
14884 environment variables. Use @code markup on those variables.
14885 Specify what options go in CC and what go in CFLAGS. Note the
14886 requirement to compile with optimization.
14887 * INSTALL: Regenerated.
14888
14889 [BZ #18124]
14890 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
14891 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
14892 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
14893 __sigprocmask instead of sigprocmask.
14894 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
14895 Likewise.
14896 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
14897 __sigsetjmp and sigprocmask.
14898
14899 [BZ #15105]
14900 * include/argz.h (argz_next): Use libc_hidden_proto.
14901 (__argz_next): Likewise.
14902 * string-argz-next.c (__argz_next): Use libc_hidden_def.
14903 (argz_next): Use libc_hidden_weak.
14904
14905 [BZ #15105]
14906 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
14907 libc_hidden_proto.
14908 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
14909 libc_hidden_def.
14910
14911 [BZ #15105]
14912 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
14913 libc_hidden_proto.
14914 * libio/iofputs.c (fputs): Use libc_hidden_weak.
14915
14916 [BZ #15105]
14917 [BZ #19463]
14918 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
14919 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
14920 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
14921 (__feof_unlocked): New declaration, and inline function if
14922 [__USE_EXTERN_INLINES].
14923 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
14924 instead of feof_unlocked.
14925 * intl/localealias.c [_LIBC] (FEOF): Likewise.
14926 * nss/nsswitch.c (nss_parse_file): Likewise.
14927 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
14928 Likewise.
14929 * time/getdate.c (__getdate_r): Likewise.
14930 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
14931 Define as macro to call __feof_unlocked.
14932
14933 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
14934
14935 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
14936
14937 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
14938
14939 * math/Makefile: Remove mpexp.c and mplog.c
14940 * sysdeps/i386/fpu/mpexp.c: Delete file.
14941 * sysdeps/i386/fpu/mplog.c: Likewise.
14942 * sysdeps/ia64/fpu/mpexp.c: Likewise.
14943 * sysdeps/ia64/fpu/mplog.c: Likewise.
14944 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
14945 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
14946 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
14947 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
14948 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
14949 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
14950 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
14951 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
14952 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
14953 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14954 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
14955 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
14956 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14957 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
14958 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
14959 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14960
14961 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
14962
14963 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14964
14965 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14966
14967 * sysdeps/sh/libm-test-ulps: Update.
14968
14969 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14970
14971 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
14972 idouble to 1 ULP.
14973
14974 2018-02-12 Zack Weinberg <zackw@panix.com>
14975
14976 [BZ #19239]
14977 * posix/sys/types.h: Don't include sys/sysmacros.h.
14978 * misc/sys/sysmacros.h: Remove the conditional deprecation
14979 warnings for the macros defined by this header.
14980
14981 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
14982
14983 * manual/probes.texi: Remove slowexp probes.
14984 * math/Makefile: Remove slowexp.
14985 * sysdeps/generic/math_private.h (__slowexp): Remove.
14986 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
14987 document error bounds.
14988 * sysdeps/i386/fpu/slowexp.c: Remove.
14989 * sysdeps/ia64/fpu/slowexp.c: Remove.
14990 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
14991 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
14992 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
14993 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
14994 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
14995 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
14996 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
14997 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
14998 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
14999 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15000 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15001
15002 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15003
15004 [BZ #13932]
15005 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15006 * benchtests/pow-inputs: Update comment for slow path cases.
15007 * manual/probes.texi (slowpow_p10): Delete removed probe.
15008 (slowpow_p10): Likewise.
15009 * math/Makefile: Remove halfulp.c and slowpow.c.
15010 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15011 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15012 (__halfulp): Remove.
15013 (__slowpow): Remove.
15014 * sysdeps/i386/fpu/halfulp.c: Delete file.
15015 * sysdeps/i386/fpu/slowpow.c: Likewise.
15016 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15017 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15018 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15019 improve comments and add error analysis.
15020 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15021 (power1): Remove function:
15022 (log1): Remove error argument, add error analysis.
15023 (my_log2): Remove function.
15024 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15025 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15026 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15027 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15028 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15029 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15030 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15031 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15032 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15033 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15034 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15035 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15036 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15037 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15038
15039 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15040
15041 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15042 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15043
15044 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15045
15046 [BZ #22433]
15047 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15048 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15049 and PTRACE_SETHBPREGS.
15050
15051 2018-02-10 Zack Weinberg <zackw@panix.com>
15052
15053 [BZ #22830]
15054 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15055 correctly.
15056 * malloc/tst-malloc-stats-cancellation.c: New test case.
15057 * malloc/Makefile: Add new test case.
15058
15059 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15060
15061 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15062
15063 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15064
15065 * math/Makefile (libm-narrow-fns): Add add.
15066 (libm-test-funcs-narrow): Likewise.
15067 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15068 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15069 * math/gen-auto-libm-tests.c (test_functions): Add add.
15070 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15071 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15072 (NARROW_ADD_TRIVIAL): Likewise.
15073 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15074 macro.
15075 (__daddl): Likewise.
15076 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15077 dadd.
15078 (CFLAGS-nldbl-dadd.c): New variable.
15079 (CFLAGS-nldbl-fadd.c): Likewise.
15080 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15081 __nldbl_daddl.
15082 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15083 prototype.
15084 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15085 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15086 * math/auto-libm-test-in: Add tests of add.
15087 * math/auto-libm-test-out-narrow-add: New generated file.
15088 * math/libm-test-narrow-add.inc: New file.
15089 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15090 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15091 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15092 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15093 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15094 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15095 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15096 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15097 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15098 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15099 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15100 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15101 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15102 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15103 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15104 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15105 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15106 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15107 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15108 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15109 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15110 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15111 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15112 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15113 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15114 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15115 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15116 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15117 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15118 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15119 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15120 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15121 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15123 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15125 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15126 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15127 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15128 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15129 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15130 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15131 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15132 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15133 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15134 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15135
15136 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15137 (f128-pairs): New variable.
15138 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15139 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15140 to CFLAGS.
15141 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15142 Also make tests add $(f128-loader-link) to gnulib-tests.
15143
15144 2018-02-09 DJ Delorie <dj@redhat.com>
15145
15146 [BZ #22827]
15147 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15148 64-bit ELF type for 64-bit ELF objects.
15149
15150 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15151
15152 * math/libm-test-driver.c (snan_tests_arg): New variable.
15153 * math/libm-test-support.h (snan_tests_arg): New declaration.
15154 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15155
15156 * math/Makefile (test-type-pairs): New variable.
15157 (test-type-pairs-f64xf128-yes): Likewise.
15158 (tests): Add test-narrow-macros.
15159 (libm-test-funcs-narrow): New variable.
15160 (libm-test-c-narrow): Likewise.
15161 (generated): Add $(libm-test-c-narrow).
15162 (libm-tests-base-narrow): New variable.
15163 (libm-tests-narrow): Likewise.
15164 (libm-tests): Add $(libm-tests-narrow).
15165 (libm-tests-for-type): Handle $(libm-tests-narrow).
15166 (libm-test-c-narrow-obj): New variable.
15167 ($(libm-test-c-narrow-obj)): New rule.
15168 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15169 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15170 $(o-iterator) to set dependencies and CFLAGS.
15171 * math/gen-auto-libm-tests.c: Document use for narrowing
15172 functions.
15173 (output_for_one_input_case): Take argument NARROW.
15174 (generate_output): Likewise. Update call to
15175 output_for_one_input_case.
15176 (main): Take --narrow option. Update call to generate_output.
15177 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15178 (apply_lit): Update call to _apply_lit.
15179 (apply_arglit): New function.
15180 (parse_args): Handle "a" arguments.
15181 (parse_auto_input): Handle format names using ":".
15182 * math/README.libm-test: Document "a" parameter type.
15183 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15184 (ARG_TYPE_TRUE_MIN): Likewise.
15185 (ARG_TYPE_MAX): Likwise.
15186 (ARG_MIN_EXP): Likewise.
15187 (ARG_MAX_EXP): Likewise.
15188 (ARG_MANT_DIG): Likewise.
15189 (TEST_COND_arg_ibm128): Likewise.
15190 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15191 (TEST_COND_arg_fmt): New macro.
15192 (init_max_error): Update prototype.
15193 * math/libm-test-support.c (test_ibm128): New variable.
15194 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15195 instead of using [TEST_COND_ibm128] conditional.
15196 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15197 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15198 [TEST_NARROW] (TEST_MSG): New definition.
15199 (arg_plus_zero): New macro.
15200 (arg_minus_zero): Likewise.
15201 (arg_plus_infty): Likewise.
15202 (arg_minus_infty): Likewise.
15203 (arg_qnan_value_pl): Likewise.
15204 (arg_qnan_value): Likewise.
15205 (arg_snan_value_pl): Likewise.
15206 (arg_snan_value): Likewise.
15207 (arg_max_value): Likewise.
15208 (arg_min_value): Likewise.
15209 (arg_min_subnorm_value): Likewise.
15210 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15211 (RUN_TEST_LOOP_aa_f): New macro.
15212 (TEST_SUFF): New macro.
15213 (TEST_SUFF_STR): Likewise.
15214 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15215 (TEST_COND_any_ibm128): New macro.
15216 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15217 this_func. Update call to init_max_error.
15218 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15219 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15220 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15221 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15222 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15223 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15224 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15225 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15226 * math/test-math-vector.h (TEST_NARROW): Likewise.
15227 * math/test-arg-double.h: New file.
15228 * math/test-arg-float128.h: Likewise.
15229 * math/test-arg-float32x.h: Likewise.
15230 * math/test-arg-float64.h: Likewise.
15231 * math/test-arg-float64x.h: Likewise.
15232 * math/test-arg-ldouble.h: Likewise.
15233 * math/test-math-narrow.h: Likewise.
15234 * math/test-narrow-macros.c: Likewise.
15235 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15236 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15237 test-narrow-macros-ldbl-64.
15238 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15239
15240 * math/bits/mathcalls-narrow.h: New file.
15241 * include/bits/mathcalls-narrow.h: Likewise.
15242 * math/math-narrow.h: Likewise.
15243 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15244 (__MATHCALL_NARROW_ARGS_2): Likewise.
15245 (__MATHCALL_NARROW_ARGS_3): Likewise.
15246 (__MATHCALL_NARROW_NORMAL): Likewise.
15247 (__MATHCALL_NARROW_REDIR): Likewise.
15248 (__MATHCALL_NARROW): Likewise.
15249 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15250 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15251 defined.
15252 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15253 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15254 (libm-narrow-fns): New variable.
15255 (libm-narrow-types-basic): Likewise.
15256 (libm-narrow-types-ldouble-yes): Likewise.
15257 (libm-narrow-types-float128-yes): Likewise.
15258 (libm-narrow-types-float128-alias-yes): Likewise.
15259 (libm-narrow-types): Likewise.
15260 (libm-routines): Add narrowing functions.
15261 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15262 (libc_feholdexcept_setroundf128): New macro.
15263 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15264 * sysdeps/ieee754/float128/float128_private.h: Include
15265 <math/math-narrow.h>.
15266 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15267 Undefine and redefine.
15268 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15269 (libm_alias_float_ldouble): Undefine and redefine.
15270 (libm_alias_double_ldouble): Likewise.
15271
15272 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15273
15274 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15275
15276 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15277 FPCR/FPSR.
15278
15279 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15280
15281 * manual/creature.texi: Convert references to gcc.info to gcc.
15282 * manual/stdio.texi: Likewise.
15283 * manual/string.texi: Likewise.
15284
15285 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15286
15287 [BZ #17979]
15288 * posix/bits/types.h (__int_least8_t): New typedef.
15289 (__uint_least8_t): Likewise.
15290 (__int_least16_t): Likewise.
15291 (__uint_least16_t): Likewise.
15292 (__int_least32_t): Likewise.
15293 (__uint_least32_t): Likewise.
15294 (__int_least64_t): Likewise.
15295 (__uint_least64_t): Likewise.
15296 * sysdeps/generic/stdint.h (int_least8_t): Define using
15297 __int_least8_t.
15298 (int_least16_t): Define using __int_least16_t.
15299 (int_least32_t): Define using __int_least32_t.
15300 (int_least64_t): Define using __int_least64_t.
15301 (uint_least8_t): Define using __uint_least8_t.
15302 (uint_least16_t): Define using __uint_least16_t.
15303 (uint_least32_t): Define using __uint_least32_t.
15304 (uint_least64_t): Define using __uint_least64_t.
15305 * wcsmbs/uchar.h: Include <bits/types.h>.
15306 (char16_t): Define using __uint_least16_t conditional only on
15307 [!__USE_ISOCXX11].
15308 (char32_t): Define using __uint_least32_t conditional only on
15309 [!__USE_ISOCXX11].
15310 * wcsmbs/test-char-types.c: New file.
15311 * wcsmbs/Makefile (tests): Add test-char-types.
15312
15313 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15314 version to 4.0.1.
15315
15316 2018-02-07 Zack Weinberg <zackw@panix.com>
15317
15318 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15319 Delete all contents except for definitions of _G_HAVE_MMAP and
15320 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15321 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15322 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15323 change as above.
15324
15325 * libio/libio.h: Don't include bits/_G_config.h here.
15326 Include stddef.h with __need_wchar_t defined. Include
15327 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15328 Define _IO_iconv_t here, directly.
15329 Don't define _IO_HAVE_ST_BLKSIZE.
15330 * libio/libioP.h: Include _G_config.h here. Move include of
15331 shlib-compat.h up with rest of includes. Simplify conditionals
15332 controlling definition of _IO_JUMPS_OFFSET.
15333
15334 * csu/init.c: Remove always-true #if around entire file.
15335 Don't include stdio.h. Set _IO_stdin_used to hardwired
15336 constant 0x20001, and update commentary.
15337 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15338 Replace all uses of _G_va_list with __gnuc_va_list.
15339 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15340 instead of #if _IO_HAVE_ST_BLKSIZE.
15341 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15342 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15343 not #ifdef.
15344
15345 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15346 multiple-include guard to match.
15347 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15348 into this file.
15349 Remove preprocessor conditionals that are always true and/or
15350 redundant to other preprocessor conditionals in the same nest.
15351 Include shlib-compat.h unconditionally.
15352 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15353 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15354 defined after including stdio.h.
15355 Use __BEGIN_DECLS/__END_DECLS.
15356
15357 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15358 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15359 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15360
15361 2018-02-07 Zack Weinberg <zackw@panix.com>
15362
15363 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15364 New single-type headers split from _G_config.h.
15365 * libio/bits/types/cookie_io_functions_t.h
15366 * libio/bits/types/struct_FILE.h
15367 New single-type headers split from libio.h.
15368
15369 * libio/Makefile: Install the above new headers. Don't install
15370 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15371 bits/libio-ldbl.h.
15372 * libio/_G_config.h, libio/libio.h: Delete file.
15373
15374 * libio/bits/libio.h: Remove improper-inclusion guard.
15375 Include stdio.h and don't repeat anything that it does.
15376 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15377 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15378 __io_read_fn as cookie_read_function_t,
15379 __io_write_fn as cookie_write_function_t,
15380 __io_seek_fn as cookie_seek_function_t,
15381 __io_close_fn as cookie_close_function_t,
15382 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15383 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15384 here, in the "compatibility defines" section. Remove an #if 0
15385 block. Use the "body" macros from bits/types/struct_FILE.h to
15386 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15387 and _IO_ferror_unlocked.
15388 Move prototypes of __uflow and __overflow...
15389
15390 * libio/stdio.h: ...here. Don't include bits/libio.h.
15391 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15392 directly from stdarg.h. Include bits/types/__fpos_t.h,
15393 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15394 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15395 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15396 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15397 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15398 __ssize_t, not _IO_ssize_t. Unconditionally define
15399 BUFSIZ as 8192 and EOF as (-1).
15400
15401 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15402 macros from bits/types/struct_FILE.h instead of _IO_* macros
15403 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15404 instead of _IO_ssize_t.
15405 * libio/bits/stdio2.h: Similarly.
15406
15407 * libio/iolibio.h: Add multiple-include guard.
15408 Include bits/libio.h after stdio.h.
15409 * libio/libioP.h: Add multiple-include guard.
15410 Include stdio.h and bits/libio.h before iolibio.h.
15411
15412 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15413 * include/bits/types/cookie_io_functions_t.h
15414 * include/bits/types/struct_FILE.h: New wrappers.
15415
15416 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15417 Get definitions of _G_fpos_t and _G_fpos64_t from
15418 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15419 respectively. Remove improper-inclusion guards.
15420
15421 * conform/data/stdio.h-data: Update expectations of va_list.
15422 * scripts/check-installed-headers.sh: Remove special case for
15423 libio.h and _G_config.h.
15424
15425 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15426
15427 [BZ #15105]
15428 [BZ #19463]
15429 * include/sys/sysmacros.h [!_ISOMAC]
15430 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15431 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15432 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15433 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15434 libc_hidden_proto.
15435 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15436 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15437 Likewise.
15438 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15439 Undefine and redefine to add use __gnu_dev_ prefix.
15440 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15441 Likewise.
15442 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15443 and define as hidden inline function.
15444 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15445 Likewise.
15446 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15447 Likewise.
15448 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15449 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15450 (gnu_dev_minor): Likewise.
15451 (gnu_dev_makedev): Likewise.
15452 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15453 makedev.
15454 * posix/wordexp.c (exec_comm_child): Likewise.
15455 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15456 instead of minor and __gnu_dev_major instead of major.
15457 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15458 __gnu_dev_major instead of major.
15459 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15460 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15461 instead of gnu_dev_minor.
15462 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15463 (SLAVE_P): Likewise.
15464 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15465 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15466 instead of major.
15467
15468 [BZ #21313]
15469 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15470 in another place.
15471 * locale/weightwc.h (findidx): Likewise.
15472
15473 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15474
15475 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15476 (slowlog_inexact): Likewise
15477 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15478 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15479
15480 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15481
15482 [BZ #22797]
15483 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15484 missing second underscore to parameter name.
15485
15486 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15487
15488 [BZ #14508]
15489 [BZ #15512]
15490 [BZ #17082]
15491 [BZ #20530]
15492 * bits/byteswap.h: Update file comment. Do not include
15493 <bits/byteswap-16.h>.
15494 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15495 constant.
15496 (__bswap_16): Define as inline function.
15497 (__bswap_constant_32): Reformat definition.
15498 (__bswap_32): Always define as inline function, not macro, using
15499 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15500 otherwise __bswap_constant_32.
15501 (__bswap_constant_64): Reformat definition. Do not use
15502 __extension__ here.
15503 (__bswap_64): Always define as inline function, not macro. Use
15504 __extension__ on function definition. Use __builtin_bswap64 if
15505 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15506 * string/test-endian-file-scope.c: New file.
15507 * string/test-endian-sign-conversion.c: Likewise.
15508 * string/Makefile (headers): Remove bits/byteswap-16.h.
15509 (tests): Add test-endian-file-scope and
15510 test-endian-sign-conversion.
15511 (CFLAGS-test-endian-sign-conversion.c): New variable.
15512 * bits/byteswap-16.h: Remove file.
15513 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15514 * sysdeps/ia64/bits/byteswap.h: Likewise.
15515 * sysdeps/m68k/bits/byteswap.h: Likewise.
15516 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15517 * sysdeps/s390/bits/byteswap.h: Likewise.
15518 * sysdeps/tile/bits/byteswap.h: Likewise.
15519 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15520 * sysdeps/x86/bits/byteswap.h: Likewise.
15521
15522 [BZ #17721]
15523 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15524 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15525 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15526 199901L] (__restrict): Define to restrict.
15527
15528 [BZ #19667]
15529 * string/testcopy.c: Include <support/support.h>. Do not include
15530 <malloc.h>. Use <support/test-driver.c>.
15531 (main): Rename to do_test. Make static. Use xmalloc instead of
15532 malloc.
15533
15534 [BZ #13575]
15535 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15536 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15537 (SSIZE_MAX): Define to INT_MAX.
15538 * posix/test-ssize-max.c: New file.
15539 * posix/Makefile (tests): Add test-ssize-max.
15540
15541 [BZ #19668]
15542 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15543 <support/support.h>. Do not include <malloc.h>.
15544 (query_auxv): Use xmalloc instead of malloc.
15545
15546 [BZ #14553]
15547 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15548 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15549 instead of loff_t.
15550
15551 2018-02-06 Florian Weimer <fweimer@redhat.com>
15552
15553 [BZ #18023]
15554 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15555 Use scratch_buffer instead of extend_alloca.
15556
15557 2018-02-06 Zack Weinberg <zackw@panix.com>
15558
15559 * libio/stdio.h: Don't define getc or putc as macros.
15560 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15561 not _IO_getc and _IO_putc.
15562
15563 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15564 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15565
15566 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15567
15568 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15569 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15570
15571 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15572
15573 [BZ #14890]
15574 * elf/elf.h (NT_PRFPREG): New macro.
15575 (NT_S390_VXRS_LOW): Likewise.
15576 (NT_S390_VXRS_HIGH): Likewise.
15577 (NT_S390_GS_CB): Likewise.
15578 (NT_S390_GS_BC): Likewise.
15579 (NT_S390_RI_CB): Likewise.
15580
15581 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15582 (MAP_SYNC): New macro.
15583 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15584 Likewise.
15585 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15586 (MAP_SYNC): Likewise.
15587 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15588 (MAP_SYNC): Likewise.
15589 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15590 (MAP_SYNC): Likewise.
15591 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15592 (MAP_SYNC): Likewise.
15593 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15594 (MAP_SYNC): Likewise.
15595 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15596 (MAP_SYNC): Likewise.
15597 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15598 Likewise.
15599 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15600 Likewise.
15601
15602 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15603 (MAP_SHARED_VALIDATE): New macro.
15604 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15605 (MAP_SHARED_VALIDATE): Likewise.
15606
15607 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15608
15609 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15610 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15611 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15612
15613 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15614
15615 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15616 (DT_NUM): Updated to 35.
15617
15618 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15619
15620 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15621 __builtin_expect with __glibc_likely and __glibc_unlikely.
15622 (elf_machine_rela): Likewise.
15623 (elf_machine_lazy_rel): Likewise.
15624
15625 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15626
15627 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15628 __builtin_expect with __glibc_likely and __glibc_unlikely.
15629 (elf_machine_lazy_rel): Likewise.
15630
15631 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15632
15633 [BZ #22638]
15634 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15635 SHARED.
15636 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15637
15638 2018-02-05 Andreas Schwab <schwab@suse.de>
15639
15640 [BZ #22761]
15641 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15642 string.
15643
15644 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15645
15646 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15647 not check against PTHREAD_STACK_MIN.
15648
15649 2018-02-02 Sean McKean <smckean83@gmail.com>
15650
15651 [BZ #22735]
15652 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15653
15654 2018-02-02 Florian Weimer <fweimer@redhat.com>
15655
15656 [BZ #22753]
15657 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15658 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15659 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15660 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15661 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15662 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15663 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15664 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15665 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15666 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15667 * misc/tst-preadvwritev2.c (do_test): Call it.
15668 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15669
15670 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15671
15672 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15673
15674 * benchtests/bench-memcmp.c: Print json instead of plain text.
15675
15676 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15677 every test run.
15678
15679 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15680
15681 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15682 version to 4.15.
15683 (s390_sthyi): New syscall.
15684
15685 * sysdeps/generic/ldbl-classify-compat.h: New file.
15686 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15687 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15688 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15689 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15690 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15691 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15692 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15693 <ldbl-classify-compat.h>.
15694 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15695 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15696 <ldbl-classify-compat.h>.
15697 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15698 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15699 <ldbl-classify-compat.h>.
15700 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15701 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15702 <ldbl-classify-compat.h>.
15703 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15704 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15705 <ldbl-classify-compat.h>.
15706 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15707 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15708 <ldbl-classify-compat.h>.
15709 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15710 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15711 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15712 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15713 * sysdeps/microblaze/math_private.h: Likewise.
15714 * sysdeps/nios2/math_private.h: Likewise.
15715 * sysdeps/sh/math_private.h: Likewise.
15716
15717 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15718 * sysdeps/m68k/coldfire/math_private.h: ... here.
15719 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15720 * sysdeps/tile/math_private.h: Likewise.
15721 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15722 Remove macro.
15723 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15724 Likewise.
15725
15726 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15727 Remove macro.
15728 (libc_fetestexcept): Likewise.
15729 (libc_feupdateenv_test): Likewise.
15730 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15731 (libc_fetestexcept): Likewise.
15732 (libc_feupdateenv_test): Likewise.
15733 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15734 (libc_fetestexcept): Likewise.
15735 (libc_feupdateenv_test): Likewise.
15736 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15737 (libc_fetestexcept): Likewise.
15738 (libc_feupdateenv_test): Likewise.
15739
15740 * sysdeps/generic/math_private.h
15741 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15742 New inline function.
15743 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15744 Likewise.
15745
15746 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15747 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15748 * sysdeps/generic/math_private.h
15749 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15750 inline function.
15751 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15752 Likewise.
15753 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15754 Likewise.
15755 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15756 Likewise.
15757 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15758 Likewise.
15759 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15760 Likewise.
15761 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15762 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15763 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15764 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15765 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15766 (__fegetenv): Likewise.
15767 (fesetenv): Likewise.
15768 (__fesetenv): Likewise.
15769 (feupdateenv): Likewise.
15770 (__feupdateenv): Likewise.
15771 (fegetround): Likewise.
15772 (__fegetround): Likewise.
15773 (fesetround): Likewise.
15774 (__fesetround): Likewise.
15775
15776 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15777 (feraiseexcept): New macro.
15778 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15779 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15780 Remove macro.
15781 (__feraiseexcept): Likewise.
15782 (feclearexcept): Likewise.
15783 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15784 (__feraiseexcept): Likewise.
15785 (feclearexcept): Likewise.
15786 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15787 (__feraiseexcept): Likewise.
15788 (feclearexcept): Likewise.
15789 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15790 (__feraiseexcept): Likewise.
15791 (feclearexcept): Likewise.
15792 (fetestexcept): Likewise.
15793
15794 * sysdeps/m68k/coldfire/math-tests.h: New file.
15795
15796 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15797 * sysdeps/m68k/bits/fenv.h: ... here.
15798 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15799 not define.
15800 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15801 Likewise.
15802 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15803 Likewise.
15804 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15805 Likewise.
15806 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15807 Likewise.
15808 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15809 Define to 0.
15810 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15811 (__FE_UNDEFINED): New enum constant.
15812 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15813 Do not define.
15814 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15815 Likewise.
15816 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15817 Likewise.
15818 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15819 to match generic bits/fenv.h.
15820 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15821 Do not define.
15822
15823 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15824 packed on bits.
15825 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15826 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15827 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15828 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15829
15830 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15831 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15832 Joseph Myers <joseph@codesourcery.com>
15833
15834 [BZ #21314]
15835 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15836 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15837 computation using c.
15838 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15839 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15840 computation using c.
15841
15842 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15843
15844 * version.h (RELEASE): Set to "development".
15845 (VERSION): Set to "2.27.9000".
15846 * NEWS (2.28): New section.
15847
15848 * version.h (RELEASE): Set to "stable".
15849 (VERSION): Set to "2.27".
15850 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15851
15852 * NEWS: Add the list of bugs fixed in 2.27.
15853
15854 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15855
15856 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15857 against PTHREAD_STACK_MIN.
15858
15859 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15860
15861 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15862 New entries.
15863 (Rafal Luzynski, Andreas Schwab): Update.
15864
15865 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
15866
15867 [BZ #10871]
15868 * NEWS: List the languages which actually use the alternative
15869 months feature in this release. Also explain that "alt_mon" and
15870 "ab_alt_mon" are optional.
15871
15872 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
15873
15874 [BZ #22765]
15875 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
15876
15877 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
15878
15879 * manual/install.texi (Tools for Compilation): Update the newest
15880 versions of gcc, binutils, texinfo, gawk, bison, and sed.
15881 * INSTALL: Regenerated.
15882
15883 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
15884
15885 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
15886 instead of __builtin_expect.
15887
15888 2018-01-30 Florian Weimer <fweimer@redhat.com>
15889
15890 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
15891 data.
15892 * nss/tst-nss-getpwent.c (do_test): Likewise.
15893
15894 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
15895
15896 [BZ #10871]
15897 * localedata/locales/hr_HR (mon): Rename to...
15898 (alt_mon): This.
15899 (mon): Import from CLDR (genitive case).
15900 (d_t_fmt): Update the comment.
15901
15902 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
15903
15904 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
15905 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
15906 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
15907
15908 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
15909
15910 * mach/Versions: Fix version when __mach_host_self_ was added.
15911 * hurd/Versions: Fix version when _hurd_exec_paths was added.
15912 * sysdeps/mach/hurd/i386/ld.abilist: New file.
15913 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
15914 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
15915 * sysdeps/mach/hurd/i386/libc.abilist: New file.
15916 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
15917 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
15918 * sysdeps/mach/hurd/i386/libm.abilist: New file.
15919 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
15920 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
15921 * sysdeps/mach/hurd/i386/librt.abilist: New file.
15922 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
15923 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
15924 || to respect codestyle.
15925 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
15926 (do_test_bz20181): Rename accordingly.
15927 * malloc/malloc.c: Include <assert.h>.
15928 (assert): Do not define.
15929 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
15930 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
15931 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
15932 * sysdeps/mach/hurd/hp-timing.h: New file.
15933 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
15934
15935 2018-01-29 Darius Rad <darius@bluespec.com>
15936
15937 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
15938
15939 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
15940
15941 * sysdeps/init_array/crti.S (.section .init_array): Add
15942 PREINIT_FUNCTION when defined.
15943 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
15944 * config.h.in: Regenerate.
15945 * manual/platform.texi: Add RISC-V documenation for
15946 __riscv_flush_icache.
15947 * sysdeps/riscv/__longjmp.S: New file.
15948 * sysdeps/riscv/backtrace.c: Likewise.
15949 * sysdeps/riscv/bits/endian.h: Likewise.
15950 * sysdeps/riscv/bits/setjmp.h: Likewise.
15951 * sysdeps/riscv/bits/wordsize.h: Likewise.
15952 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
15953 * sysdeps/riscv/bsd-setjmp.c: Likewise.
15954 * sysdeps/riscv/dl-trampoline.S: Likewise.
15955 * sysdeps/riscv/gccframe.h: Likewise.
15956 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
15957 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
15958 * sysdeps/riscv/machine-gmon.h: Likewise.
15959 * sysdeps/riscv/memusage.h: Likewise.
15960 * sysdeps/riscv/setjmp.S: Likewise.
15961 * sysdeps/riscv/sys/asm.h: Likewise.
15962 * sysdeps/riscv/tls-macros.h: Likewise.
15963 * sysdeps/riscv/dl-tls.h: New file.
15964 * sysdeps/riscv/libc-tls.c: Likewise.
15965 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
15966 * sysdeps/riscv/nptl/tls.h: Likewise.
15967 * sysdeps/riscv/stackinfo.h: Likewise.
15968 * sysdeps/riscv/bits/fenv.h: New file.
15969 * sysdeps/riscv/e_sqrtl.c: Likewise.
15970 * sysdeps/riscv/fpu_control.h: Likewise.
15971 * sysdeps/riscv/math-tests.h: Likewise.
15972 * sysdeps/riscv/nofpu/Implies: Likewise.
15973 * sysdeps/riscv/sfp-machine.h: Likewise.
15974 * sysdeps/riscv/tininess.h: Likewise.
15975 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
15976 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
15977 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
15978 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
15979 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
15980 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
15981 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
15982 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
15983 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
15984 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
15985 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
15986 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
15987 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
15988 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
15989 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
15990 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
15991 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
15992 * sysdeps/riscv/rvd/s_finite.c: Likewise.
15993 * sysdeps/riscv/rvd/s_fma.c: Likewise.
15994 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
15995 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
15996 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
15997 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
15998 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
15999 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16000 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16001 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16002 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16003 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16004 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16005 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16006 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16007 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16008 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16009 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16010 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16011 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16012 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16013 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16014 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16015 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16016 * sysdeps/riscv/rvf/math_private.h: Likewise.
16017 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16018 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16019 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16020 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16021 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16022 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16023 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16024 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16025 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16026 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16027 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16028 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16029 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16030 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16031 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16032 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16033 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16034 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16035 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16036 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16037 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16038 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16039 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16040 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16041 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16042 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16043 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16044 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16045 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16046 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16047 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16048 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16049 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16050 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16051 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16052 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16053 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16054 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16055 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16056 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16057 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16058 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16059 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16060 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16061 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16062 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16063 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16064 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16065 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16066 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16067 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16068 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16069 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16070 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16071 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16072 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16073 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16074 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16075 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16076 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16077 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16078 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16079 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16080 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16081 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16082 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16083 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16084 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16085 * sysdeps/riscv/Implies: New file.
16086 * sysdeps/riscv/Makefile: Likewise.
16087 * sysdeps/riscv/configure: Likewise.
16088 * sysdeps/riscv/configure.ac: Likewise.
16089 * sysdeps/riscv/nptl/Makefile: Likewise.
16090 * sysdeps/riscv/preconfigure: Likewise.
16091 * sysdeps/riscv/rv64/Implies-after: Likewise.
16092 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16093 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16094 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16095 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16096 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16097 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16098 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16099 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16100 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16101 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16102 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16103 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16104 (Config): Likewise.
16105
16106 2018-01-29 Florian Weimer <fweimer@redhat.com>
16107
16108 [BZ #22701]
16109 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16110 libnsl_hidden_proto.
16111 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16112 libnsl_hidden_proto.
16113 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16114 * nis/Makefile (libnsl-routines): Add nss-default only for
16115 build-obsolete-nsl.
16116 * nis/nis_defaults.c (__nis_default_ttl): Add
16117 libnsl_hidden_nolink_def.
16118 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16119 declaration.
16120 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16121 * nis/ypclnt.c (yp_maplist): Likewise.
16122
16123 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16124
16125 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16126 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16127
16128 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16129
16130 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16131 clean -dxfq for git updates when replacing sources.
16132
16133 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16134 --disable-libcilkrts unconditionally, not just for the final GCC
16135 build for Hurd.
16136
16137 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16138 version to 4.15.
16139
16140 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16141
16142 [BZ #10871]
16143 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16144 case).
16145
16146 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16147
16148 [BZ #10871]
16149 * localedata/locales/be_BY (mon): Rename to...
16150 (alt_mon): This, then synchronize with CLDR (nominative case).
16151 (abmon): Rename to...
16152 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16153 (mon): Import from CLDR (genitive case).
16154 (abmon): Likewise.
16155 * localedata/locales/be_BY@latin (mon): Rename to...
16156 (alt_mon): This.
16157 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16158
16159 * localedata/locales/be_BY@latin (lang_name): Reworded to
16160 "biełaruskaja mova".
16161
16162 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16163
16164 [BZ #10871]
16165 * localedata/locales/el_CY (mon): Renamed to...
16166 (alt_mon): This.
16167 (mon): Import from CLDR (genitive case).
16168 * localedata/locales/el_GR: Likewise.
16169
16170 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16171
16172 [BZ #10871]
16173 * localedata/locales/ru_RU (mon): Rename to...
16174 (alt_mon): This.
16175 (abmon): Rename to...
16176 (ab_alt_mon): This.
16177 (mon): Import from CLDR (genitive case).
16178 (abmon): Copy from the old content except the 5th month which is
16179 now in the genitive case, even when abbreviated.
16180 * localedata/locales/ru_UA: Likewise.
16181 * time/tst-strptime.c (day_tests): Add an actual example of
16182 a difference between %b and %Ob in Russian.
16183
16184 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16185
16186 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16187 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16188 a `c' variable.
16189 * resolv/res-close.c: Include <stdlib.h>.
16190 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16191 <sys/wait.h>, <time.h>, <sys/uio.h>.
16192 (NOT_CANCEL_H): Add inclusion guard.
16193 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16194 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16195 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16196 return 0.
16197 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16198 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16199 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16200 instead of void *.
16201 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16202 timer_ptr2id to cast struct timer_node * to void *.
16203 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16204 --disable-libcilkrts to gcc configure.
16205 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16206 and make them the default for now.
16207 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16208 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16209 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16210 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16211 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16212 MACH_IPC_COMPAT.
16213 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16214 __task_terminate would ever return successfully.
16215 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16216 to global scope.
16217 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16218 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16219 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16220 critical section to make code simpler and avoid warning.
16221 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16222 critical section to make code simpler and avoid warning.
16223 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16224 const char * instead of char *.
16225 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16226 __hurd_file_name_split, hurd_file_name_split,
16227 __hurd_directory_name_split, hurd_directory_name_split,
16228 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16229 hurd_file_name_path_lookup): Make lookup function parameter take a
16230 const char *name instead of char *name.
16231 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16232 __hurd_directory_name_split): Likewise.
16233 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16234 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16235 * sysdeps/mach/hurd/check_native.c: New file.
16236 * sysdeps/mach/hurd/check_pf.c: New file.
16237 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16238 (__freeifaddrs): Define macro to freeifaddrs.
16239 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16240 * sysdeps/mach/libmachuser.abilist: New file.
16241 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16242 (do_test_bz20181): Rename accordingly.
16243 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16244 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16245 <sys/mount.h>.
16246 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16247 version only if __USE_EXTERN_INLINES is defined.
16248 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16249 __hurd_sockfail): Likewise.
16250 (_hurd_fd_get): Always declare functions, and provide inline versions
16251 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16252 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16253 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16254 _hurd_port_set): Always declare functions, and provide inline versions
16255 only if __USE_EXTERN_INLINES and _LIBC are defined and
16256 IS_IN(libc).
16257 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16258 _hurd_critical_section_unlock): Likewise.
16259 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16260 * __hurd_threadvar_location): Likewise.
16261 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16262 _hurd_userlink_clear): Likewise.
16263 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16264 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16265 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16266 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16267 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16268 __spin_lock_locked): Likewise.
16269 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16270 __spin_lock_locked): Likewise.
16271 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16272 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16273 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16274 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16275 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16276 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16277 _POSIX_NO_TRUNC): Define to 0.
16278 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16279 check size against PTHREAD_STACK_MIN.
16280 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16281 IS_IN(libpthread)]: Include <sigsetops.h>.
16282 * mach/Makefile (user-interfaces): Add mach/gnumach.
16283 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16284 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16285 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16286 instead of invalid -1.
16287 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16288 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16289 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16290 <net/ppp_defs.h>.
16291
16292 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16293
16294 * hurd/fcntl-internal.h: New file.
16295
16296 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16297
16298 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16299
16300 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16301
16302 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16303
16304 [BZ #22701]
16305 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16306 Build only shared objects.
16307
16308 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16309
16310 * README: Update for hppa.
16311
16312 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16313
16314 * sysdeps/sparc/fpu/libm-test-ulps: Update
16315 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16316
16317 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16318
16319 Revert:
16320
16321 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16322
16323 [BZ #22563]
16324 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16325 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16326 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16327 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16328 to feature_1.
16329
16330 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16331
16332 [BZ #22563]
16333 * bits/types/__cancel_jmp_buf_tag.h: New file.
16334 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16335 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16336 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16337 * nptl/Makefile (headers): Add
16338 bits/types/__cancel_jmp_buf_tag.h.
16339 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16340 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16341 * sysdeps/nptl/pthread.h: Include
16342 <bits/types/__cancel_jmp_buf_tag.h>.
16343 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16344 __cancel_jmp_buf.
16345 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16346
16347 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16348
16349 [BZ #10871]
16350 * localedata/locales/uk_UA (mon): Renamed to...
16351 (alt_mon): This.
16352 (alt_digits): "0" removed and then renamed to...
16353 (mon): This.
16354 (date_fmt): Definition changed not to use the alternative
16355 digits hack.
16356
16357 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16358
16359 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16360 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16361 * elf/elf.h (EF_RISCV_RVC): New define.
16362 (EF_RISCV_FLOAT_ABI): Likewise.
16363 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16364 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16365 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16366 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16367 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16368 define.
16369 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16370
16371 2018-01-25 Andreas Schwab <schwab@suse.de>
16372
16373 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16374 single quotes.
16375 * sysdeps/gnu/configure: Regenerate.
16376 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16377 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16379 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16380 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16381 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16382 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16383 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16384
16385 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16386
16387 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16388 URL, and run autoconf, make it the default for now.
16389
16390 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16391
16392 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16393 soft-float ColdFire configuration.
16394
16395 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16396 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16397 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16398
16399 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16400 MicroBlaze file.
16401
16402 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16403 ....
16404 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16405 ... here.
16406 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16407 New file.
16408
16409 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16410 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16411 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16412 file.
16413
16414 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16415
16416 [BZ #22742]
16417 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16418 Rename to __reserved and add comment.
16419 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16420 Rename to __reserved.
16421
16422 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16423
16424 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16425 i686-gnu configurations.
16426 (Context.run_builds): Include mig, gnumach and hurd in components
16427 considered.
16428 (Context.checkout): Add mig, gnumach and hurd to components.
16429 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16430 hurd.
16431 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16432 (Config.build): Install gnumach headers, build mig and install
16433 hurd headers for 'gnu' OS.
16434 (Config.install_gnumach_headers): New function.
16435 (Config.install_hurd_headers): Likewise.
16436 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16437 when building for 'gnu' OS.
16438
16439 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16440
16441 * manual/tunables.texi (Hardware Capability Tunables): Fix
16442 spelling.
16443
16444 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16445
16446 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16447 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16448 (ALTMON_11, ALTMON_12): Improve documentation.
16449 * manual/time.texi (strftime): Likewise.
16450
16451 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16452
16453 [BZ #10871]
16454 * localedata/locales/pl_PL: Alternative month names added,
16455 primary month names are genitive now.
16456 * time/tst-strptime.c (day_tests): Actually use a genitive case
16457 of a month name in Polish language.
16458
16459 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16460
16461 [BZ #10871]
16462 * manual/locale.texi: Document ALTMON_1..12 constants for
16463 nl_langinfo. Specify when to use ALTMON instead of MON.
16464 * manual/time.texi (strftime, strptime): Document GNU extension
16465 permitting O modifier with %B and %b. Specify when to use
16466 %OB instead of %B.
16467
16468 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16469
16470 [BZ #10871]
16471 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16472 names, define them as the same as abbreviated month names explicitly.
16473 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16474 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16475 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16476 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16477 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16478 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16479 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16480 _NL_WABALTMON_12): New enum constants.
16481 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16482 wab_alt_mon, and ab_alt_mon_defined members.
16483 (time_output): Output ab_alt_mon and wab_alt_mon members.
16484 (time_read): Read them, initialize them as copies of abmon and wabmon
16485 respectively if they are missing, initialize ab_alt_mon_defined.
16486 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16487 * locale/programs/locfile-kw.h: Regenerate.
16488 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16489 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16490 and ru_RU.UTF-8.
16491 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16492 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16493 (__strftime_internal): Handle %Ob and %Oh formats.
16494 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16495 (__strptime_internal): Handle %Ob and %Oh formats.
16496 * time/tst-strptime.c (day_tests): Add more tests to parse different
16497 forms of month names including the new %Ob format specifier.
16498
16499 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16500
16501 [BZ #10871]
16502 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16503 define them as the same as primary full month names explicitly.
16504 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16505 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16506 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16507 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16508 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16509 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16510 _NL_WALTMON_12): New enum constants.
16511 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16512 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16513 macros.
16514 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16515 walt_mon, and alt_mon_defined members.
16516 (time_output): Output alt_mon and walt_mon members.
16517 (time_read): Read them, initialize them as copies of mon and wmon
16518 respectively if they are missing, initialize alt_mon_defined.
16519 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16520 * locale/programs/locfile-kw.h: Regenerate.
16521 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16522 * localedata/tst-langinfo.c (map): Add tests for the new constants
16523 ALTMON_1 .. ALTMON_12.
16524 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16525 and pl_PL.UTF-8.
16526 * time/strftime_l.c (f_altmonth): New macro.
16527 (__strftime_internal): Handle %OB format.
16528 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16529 (__strptime_internal): Handle %OB format.
16530 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16531 of month names including the new %OB format specifier.
16532
16533 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16534
16535 [BZ #22685]
16536 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16537 from ABORT_TRANSACTION.
16538 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16539 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16540 ABORT_TRANSACTION_IMPL): Likewise.
16541 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16542 Linux code, but remove the code that aborts transactions.
16543
16544 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16545
16546 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16547
16548 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16549
16550 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16551 in date: "2004-14-09" should be "2004-09-14".
16552 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16553 "2003-15-09" should be "2003-09-15".
16554
16555 2018-01-18 Arjun Shankar <arjun@redhat.com>
16556
16557 [BZ #22343]
16558 [BZ #22774]
16559 CVE-2018-6485
16560 CVE-2018-6551
16561 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16562 after padding.
16563 (_int_memalign): check for integer overflow before calling
16564 _int_malloc.
16565 * malloc/tst-malloc-too-large.c: New test.
16566 * malloc/Makefile: Add tst-malloc-too-large.
16567
16568 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16569
16570 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16571 in date: "2017-24-07" should be "2017-07-24".
16572 * localedata/locales/mai_IN: Likewise.
16573 * localedata/locales/mai_NP: Likewise.
16574
16575 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16576
16577 * po/ru.po: Update translations.
16578
16579 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16580
16581 [BZ #22719]
16582 * sysdeps/hppa/backtrace.c: New file.
16583
16584 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16585
16586 [BZ #22715]
16587 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16588 align La_x86_64_retval to VEC_SIZE.
16589
16590 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16591
16592 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16593 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16594
16595 2018-01-16 Florian Weimer <fweimer@redhat.com>
16596
16597 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16598 Move tst-thread-exit-clobber ...
16599 [$(CXX)] (tests-unsupported): ... to here.
16600
16601 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16602
16603 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16604 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16605 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16606 (_dl_aarch64_cap_flags): Update.
16607 (_DL_HWCAP_COUNT): Update.
16608
16609 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16610
16611 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16612 (_DL_HWCAP_LAST): Remove.
16613 (_DL_HWCAP_COUNT): Move to ...
16614 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16615 (_DL_HWCAP_COUNT): ... here.
16616
16617 2018-01-16 Florian Weimer <fweimer@redhat.com>
16618
16619 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16620 mode with GNU extensions.
16621
16622 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16623
16624 * elf/elf.h (NT_ARM_SVE): Define.
16625
16626 2018-01-15 Florian Weimer <fweimer@redhat.com>
16627
16628 [BZ #22636]
16629 * nptl/tst-minstack-throw.cc: New file.
16630 * nptl/Makefile (tests): Add tst-minstack-throw.
16631 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16632 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16633
16634 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16635
16636 * scripts/build-many-glibcs.py (Context.checkout): Default
16637 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16638 version to 1.1.0.
16639
16640 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16641
16642 [BZ #22707]
16643 * elf/elf.h (DF_1_STUB): Define.
16644 (DF_1_PIE): Define.
16645
16646 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16647
16648 [BZ #22697]
16649 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16650 Do not add 0.5 to integer or out-of-range arguments.
16651
16652 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16653
16654 * po/bg.po: Update translations.
16655 * po/cs.po: Likewise.
16656 * po/de.po: Likewise.
16657 * po/ko.po: Likewise.
16658 * po/pl.po: Likewise.
16659 * po/sv.po: Likewise.
16660 * po/uk.po: Likewise.
16661 * po/vi.po: Likewise.
16662
16663 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16664
16665 * aarch64/start.S (_start): Use __wrap_main.
16666 (__wrap_main): New local symbol.
16667
16668 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16669
16670 [BZ #22679]
16671 CVE-2018-1000001
16672 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16673 generic_getcwd if the path returned by getcwd syscall is not absolute.
16674 * io/tst-getcwd-abspath.c: New test.
16675 * io/Makefile (tests): Add tst-getcwd-abspath.
16676
16677 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16678
16679 * malloc/malloc.c (malloc_consolidate): Add size check.
16680
16681 2018-01-12 Florian Weimer <fweimer@redhat.com>
16682
16683 * support/write_message.c (write_message): Preserve errno.
16684 * support/check.c (print_failure): Likewise.
16685 * support/support_test_verify_impl.c (support_test_verify_impl):
16686 Likewise.
16687 * support/support_test_compare_failure.c
16688 (support_test_compare_failure): Likewise.
16689
16690 2018-01-12 Florian Weimer <fweimer@redhat.com>
16691
16692 [BZ #22701]
16693 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16694 Prevent installation of libnsl.so.
16695 (libnsl-inhibit-o): Do not build (or install) static libraries.
16696
16697 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16698
16699 [BZ #22657]
16700 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16701 before the day number which may produce a double space.
16702 (date_fmt): Likewise.
16703
16704 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16705
16706 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16707 instead of fegetenv.
16708
16709 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16710
16711 [BZ #22702]
16712 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16713 comment to say exceptions are discarded.
16714 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16715 __fegetenv.
16716 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16717 be enabled.
16718
16719 2018-01-11 Florian Weimer <fweimer@redhat.com>
16720
16721 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16722 and error message.
16723
16724 2018-01-11 Florian Weimer <fweimer@redhat.com>
16725
16726 [BZ #22636]
16727 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16728 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16729
16730 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16731
16732 [BZ #22693]
16733 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16734 negative arguments in test for NaN or infinity argument.
16735
16736 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16737
16738 * po/libc.pot: Regenerate.
16739
16740 2018-01-10 Florian Weimer <fweimer@redhat.com>
16741
16742 [BZ #22636]
16743 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16744 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16745
16746 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16747
16748 * hurd/hurd/fd.h: Include <fcntl.h>
16749 (__hurd_at_flags): New function.
16750 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16751 with call to __hurd_at_flags.
16752 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16753 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16754 __faccessat
16755 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16756 (__access_noerrno): Use __faccessat_common instead of access_common.
16757 (__access): Likewise.
16758 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16759 with a call to __faccessat.
16760 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16761 (__faccessat_common): ... this. Move implementation of __access into it when
16762 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16763 reauthenticate_cwdir_at helper to implement AT mechanism.
16764 (__faccessat_noerrno): New function, just calls __faccessat_common.
16765 (__faccessat): New function, just calls __faccessat_common.
16766 (faccessat): Define weak alias.
16767
16768 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16769
16770 [BZ #22691]
16771 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16772 (CFLAGS-s_fmaxmagl.c): New variable.
16773 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16774
16775 [BZ #22690]
16776 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16777 long int for arguments of possibly overflowing addition or
16778 subtraction.
16779 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16780
16781 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16782
16783 [BZ #22688]
16784 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16785 (CFLAGS-e_remainderl.c): New variable.
16786
16787 [BZ #22687]
16788 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16789 variable.
16790 (CFLAGS-s_cacoshl.c): Likewise.
16791 (CFLAGS-s_casinhl.c): Likewise.
16792 (CFLAGS-s_catanl.c): Likewise.
16793 (CFLAGS-s_catanhl.c): Likewise.
16794 (CFLAGS-s_cexpl.c): Likewise.
16795 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16796 (CFLAGS-s_csinhl.c): Likewise.
16797 (CFLAGS-s_clogl.c): Likewise.
16798 (CFLAGS-s_clog10l.c): Likewise.
16799 (CFLAGS-s_csinl.c): Likewise.
16800 (CFLAGS-s_csqrtl.c): Likewise.
16801
16802 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16803 2017-01-09 Svante Signell <svante.signell@gmail.com>
16804
16805 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16806 (_hurd_exec_paths): New function.
16807 * hurd/hurd.h (_hurd_exec): Deprecate function.
16808 (_hurd_exec_paths): Declare function.
16809 * hurd/Versions: Export _hurd_exec_paths.
16810 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16811 (__execve): Use __getcwd to build absolute path, and use
16812 _hurd_exec_paths instead of _hurd_exec.
16813 * sysdeps/mach/hurd/spawni.c: Likewise.
16814 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16815 _hurd_exec.
16816
16817 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16818
16819 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16820 test instead of failing in case of ENOENT returned by posix_openpt.
16821
16822 2018-01-08 Florian Weimer <fweimer@redhat.com>
16823
16824 resolv: Support binary labels in test framework.
16825 * support/resolv_test.c (struct to_be_freed): Remove.
16826 (struct compressed_name): New.
16827 (allocate_compressed_name, ascii_tolower)
16828 (compare_compressed_name): New functions.
16829 (struct resolv_response_builder): Update type of
16830 compression_offsets for use with tsearch. Rempve to_be_freed.
16831 (response_push_pointer_to_free): Remove function.
16832 (resolv_response_add_name): Rewrite using struct compressed_name
16833 and tsearch instead of hsearch_r.
16834 (response_builder_allocate): Remove initialization of
16835 compression_offsets.
16836 (response_builder_free): Update for removal of to_be_freed. Use
16837 tdestroy instead of hdestroy_r.
16838 * resolv/Makefile (tests): Add tst-resolv-binary.
16839 (tst-resolv-binary): Link with -lresolv -lpthread.
16840
16841 2018-01-08 Florian Weimer <fweimer@redhat.com>
16842
16843 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16844 time. Pass positive flag instead of negative flag to
16845 support_test_compare_failure.
16846 (support_test_compare_failure): Change negative parameter to
16847 positive.
16848 * support/support_test_compare_failure.c (report)
16849 (support_test_compare_failure): Likewise.
16850 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16851 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16852
16853 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16854
16855 [BZ #22637]
16856 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16857 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16858 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16859 stacksize.
16860 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16861
16862 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16863
16864 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16865 Add s_sincosf-sse2 and s_sincosf-fma.
16866 (CFLAGS-s_sincosf-fma.c): New.
16867 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
16868 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
16869 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
16870 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
16871 __sincosf is defined.
16872
16873 2018-01-08 Florian Weimer <fweimer@redhat.com>
16874
16875 * nptl/tst-thread-exit-clobber.cc: New file.
16876 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
16877 C++11 mode.
16878 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
16879 (tests): Add tst-thread-exit-clobber.
16880 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
16881
16882 2018-01-08 Florian Weimer <fweimer@redhat.com>
16883
16884 * support/check.h (support_static_assert): Define.
16885 (TEST_COMPARE): Use it.
16886
16887 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
16888
16889 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
16890 [!__RLIM_T_MATCHES_RLIM64_T]
16891 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
16892 __getrlimit64. Add libc_hidden_weak.
16893
16894 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
16895
16896 * elf/elf.h (R_RISCV_NONE): New define.
16897 (R_RISCV_32): Likewise.
16898 (R_RISCV_64): Likewise.
16899 (R_RISCV_RELATIVE): Likewise.
16900 (R_RISCV_COPY): Likewise.
16901 (R_RISCV_JUMP_SLOT): Likewise.
16902 (R_RISCV_TLS_DTPMOD32): Likewise.
16903 (R_RISCV_TLS_DTPMOD64): Likewise.
16904 (R_RISCV_TLS_DTPREL32): Likewise.
16905 (R_RISCV_TLS_DTPREL64): Likewise.
16906 (R_RISCV_TLS_TPREL32): Likewise.
16907 (R_RISCV_TLS_TPREL64): Likewise.
16908 * Makerules (make-link-multidir): Make directories before linking into
16909 them.
16910 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
16911 define.
16912 (VDSO_HASH_LINUX_4_15): Likewise.
16913 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
16914 in subdirectories of lib.
16915 * nptl/Makefile (/librt.so): Always depend on
16916 "$(shared-thread-library)".
16917
16918 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16919
16920 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
16921 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
16922 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
16923 (___tls_get_addr).
16924 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
16925 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
16926 "-O2 -march=i686".
16927 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
16928 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
16929 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
16930 * sysdeps/gnu/glob-lstat-compat.c: New file.
16931 * sysdeps/gnu/glob64-lstat-compat.c: New file.
16932 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
16933
16934 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16935
16936 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
16937 Reserve 16 chars to reloc_addr before calling _itoa_word.
16938
16939 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16940
16941 [BZ #22678]
16942 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
16943 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
16944
16945 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
16946 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
16947
16948 * resource/tst-getrlimit.c: Add copyright header.
16949
16950 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16951 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16952
16953 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
16954 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
16955 Define __GI_getrlimit64 as weak alias of __getrlimit64.
16956 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
16957 instead.
16958 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
16959 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
16960 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
16961 RLIM64_INFINITY): Fix values to match the kernel ones.
16962 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
16963 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
16964 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
16965 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
16966 getrlimit64@@GLIBC_2_27.
16967 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
16968 and setrlimit64.
16969 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
16970 getrlimit, setrlimit, getrlimit64 and setrlimit64.
16971 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
16972 setrlimit, getrlimit64 and setrlimit64.
16973
16974 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16975
16976 [BZ #22648]
16977 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
16978 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
16979
16980 2018-01-04 Joseph Myers <joseph@codesourcery.com>
16981
16982 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
16983 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
16984 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
16985
16986 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16987
16988 [BZ #15479]
16989 [BZ #22666]
16990 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
16991 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
16992
16993 [BZ #15479]
16994 [BZ #22665]
16995 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
16996 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
16997 * sysdeps/alpha/fpu/s_floor.c: Likewise.
16998 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
16999
17000 2018-01-04 Florian Weimer <fweimer@redhat.com>
17001
17002 [BZ #22667]
17003 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17004 Align the stack before calling exit.
17005 * stdlib/tst-makecontext-align.c: New file.
17006 * stdlib/Makefile (tests): Add tst-makecontext-align.
17007
17008 2018-01-04 Florian Weimer <fweimer@redhat.com>
17009
17010 Add support for calling dlvsym from libc.so.
17011 * include/dlfcn.h (__libc_dlvsym): Declare.
17012 * elf/Makefile (tests-static-internal): Add
17013 tst-libc_dlvsym-static.
17014 (tests-internal): Add tst-libc_dlvsym.
17015 (modules-names): Add tst-libc_dlvsym-dso.
17016 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17017 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17018 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17019 object tst-libc_dlvsym-dso.so needs to be built before running
17020 these tests.
17021 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17022 * elf/Versions: Export __libc_dlvsym.
17023 * elf/dl-libc.c (struct do_dlvsym_args): New.
17024 (do_dlvsym, __libc_dlvsym): New functions.
17025 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17026 (_dl_open_hook2): New variable.
17027 (__libc_register_dl_open_hook): Set it.
17028 * elf/tst-libc_dlvsym-dso.c: New file.
17029 * elf/tst-libc_dlvsym-static.c: Likewise.
17030 * elf/tst-libc_dlvsym.c: Likewise.
17031 * elf/tst-libc_dlvsym.h: Likewise.
17032
17033 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17034
17035 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17036 include <sys/mount.h>.
17037
17038 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17039
17040 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17041 Add __NO_MATH_ERRNO__ check.
17042
17043 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17044
17045 * sysdeps/mips/mips32/libm-test-ulps: Update.
17046 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17047
17048 2018-01-02 Florian Weimer <fweimer@redhat.com>
17049
17050 * misc/tst-pselect.c: Add copyright header.
17051
17052 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17053
17054 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17055 comment.
17056 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17057 comment.
17058 (settrlimit): Rename into setrlimit.
17059 (__sttrlimit): Rename into __setrlimit.
17060
17061 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17062 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17063 never defined in that case.
17064
17065 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17066
17067 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17068
17069 * sysdeps/arm/libm-test-ulps: Update.
17070
17071 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17072 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17073
17074 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17075
17076 * NEWS: Add cosf and sincosf to list of optimized functions.
17077
17078 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17079
17080 [BZ #22660]
17081 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17082 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17083 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17084 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17085
17086 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17087
17088 [BZ #22433]
17089 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17090
17091 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17092 making a copy of it.
17093
17094 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17095
17096 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17097 trailing whitespace removed.
17098 * scripts/config.guess: Update to version 2018-01-01.
17099 * scripts/config.sub: Update to version 2018-01-01.
17100 * scripts/move-if-change: Update from gnulib.
17101
17102 * NEWS: Update copyright dates.
17103 * catgets/gencat.c (print_version): Likewise.
17104 * csu/version.c (banner): Likewise.
17105 * debug/catchsegv.sh: Likewise.
17106 * debug/pcprofiledump.c (print_version): Likewise.
17107 * debug/xtrace.sh (do_version): Likewise.
17108 * elf/ldconfig.c (print_version): Likewise.
17109 * elf/ldd.bash.in: Likewise.
17110 * elf/pldd.c (print_version): Likewise.
17111 * elf/sotruss.sh: Likewise.
17112 * elf/sprof.c (print_version): Likewise.
17113 * iconv/iconv_prog.c (print_version): Likewise.
17114 * iconv/iconvconfig.c (print_version): Likewise.
17115 * locale/programs/locale.c (print_version): Likewise.
17116 * locale/programs/localedef.c (print_version): Likewise.
17117 * login/programs/pt_chown.c (print_version): Likewise.
17118 * malloc/memusage.sh (do_version): Likewise.
17119 * malloc/memusagestat.c (print_version): Likewise.
17120 * malloc/mtrace.pl: Likewise.
17121 * manual/libc.texinfo: Likewise.
17122 * nptl/version.c (banner): Likewise.
17123 * nscd/nscd.c (print_version): Likewise.
17124 * nss/getent.c (print_version): Likewise.
17125 * nss/makedb.c (print_version): Likewise.
17126 * posix/getconf.c (main): Likewise.
17127 * scripts/test-installation.pl: Likewise.
17128 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17129
17130 * All files with FSF copyright notices: Update copyright dates
17131 using scripts/update-copyrights.
17132 * locale/programs/charmap-kw.h: Regenerated.
17133 * locale/programs/locfile-kw.h: Likewise.
17134
17135 2017-12-31 Zack Weinberg <zackw@panix.com>
17136
17137 * libio/bits/libio-ldbl.h: Correct check for improper
17138 inclusion. Add own multiple include guard.
17139
17140 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17141 Dmitry V. Levin <ldv@altlinux.org>
17142
17143 [BZ #22625]
17144 CVE-2017-16997
17145 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17146 string token expansion. Check for NULL pointer or empty string possibly
17147 returned by expand_dynamic_string_token.
17148 (decompose_rpath): Check for empty path after dynamic string
17149 token expansion.
17150
17151 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17152
17153 [BZ #22433]
17154 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17155
17156 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17157 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17158 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17159 and PTRACE_SYSCALL.
17160 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17161 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17162 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17163 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17164 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17165 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17166
17167 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17168 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17169 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17170 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17171 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17172 bits/ptrace-shared.h.
17173 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17174 <bits/ptrace-shared.h>.
17175 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17176 __ptrace_peeksiginfo_flags, ptrace): Remove.
17177 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17178 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17179 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17180 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17181 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17182
17183 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17184
17185 [BZ #17804]
17186 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17187 end of the loop. Improve comments.
17188
17189 2017-12-29 Zack Weinberg <zackw@panix.com>
17190
17191 [BZ #22615]
17192 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17193 might be set on success.
17194
17195 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17196
17197 [BZ #22611]
17198 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17199 is unchanged on success.
17200
17201 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17202
17203 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17204 updated.
17205 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17206 expand_dynamic_string_token): Likewise.
17207 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17208 is_path argument.
17209
17210 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17211 contains ':'.
17212
17213 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17214 is set and name contains ':', and all code depending on these checks.
17215
17216 2017-12-24 Zack Weinberg <zackw@panix.com>
17217
17218 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17219 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17220 respectively.
17221 * libio/libio.h: Rename the original version of this file to
17222 libio/bits/libio.h. Error out if not included by stdio.h or the
17223 stub libio.h.
17224 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17225 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17226 if not included by bits/libio.h or the stub _G_config.h.
17227 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17228 sysdeps/unix/sysv/linux/bits. Error out if not included by
17229 bits/libio.h or the stub _G_config.h.
17230 * libio/stdio.h: Include bits/libio.h, not libio.h.
17231 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17232 well as libio.h and _G_config.h.
17233
17234 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17235 * libio/strfile.h, stdio-common/vfscanf.c
17236 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17237 Include stdio.h, not _G_config.h nor libio.h.
17238 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17239 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17240
17241 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17242
17243 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17244
17245 [BZ #22347]
17246 * stdlib/getrandom.c (getrandom): Fix comment.
17247 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17248
17249 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17250
17251 [BZ #21161]
17252 * manual/arith.texi (strtoul): Fix a typo.
17253
17254 [BZ #22596]
17255 * manual/arith.texi (finite): Fix the description of the return
17256 value.
17257
17258 2017-12-22 Eric Blake <ebb9@byu.net>
17259
17260 Avoid gcc warnings on cygwin
17261 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17262 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17263 Avoid unused variable.
17264
17265 2017-12-22 Florian Weimer <fweimer@redhat.com>
17266
17267 * io/Makefile (routines): Add copy_file_range.
17268 (tests): Add tst-copy_file_range.
17269 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17270 * io/Versions (GLIBC_2.27): Export copy_file_range.
17271 * io/copy_file_range-compat.c: New file.
17272 * io/copy_file_range.c: Likewise.
17273 * io/tst-copy_file_range-compat.c: Likewise.
17274 * io/tst-copy_file_range.c: Likewise.
17275 * manual/llio.texi (Copying File Data): New section.
17276 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17277 * support/Makefile (libsupport-routines): Add support-xfstat,
17278 xftruncate, xlseek.
17279 * support/support-xfstat.c: New file.
17280 * support/xftruncate.c: Likewise.
17281 * support/xlseek.c: Likewise.
17282 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17283 * sysdeps/unix/sysv/linux/**.abilist: Update.
17284 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17285
17286 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17287
17288 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17289 disable-multi-arch variant to aarch64-linux-gnu.
17290
17291 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17292
17293 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17294 trailing whitespace removed.
17295 * scripts/config.guess: Update to version 2017-12-17.
17296 * scripts/config.sub: Update to version 2017-11-23.
17297 * scripts/install-sh: Update to version 2017-09-23.17.
17298 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17299
17300 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17301
17302 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17303 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17304 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17305 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17306 * sysdeps/tile/crtn.S: Likewise.
17307 * sysdeps/tile/dl-start.S (_start): Likewise.
17308 * sysdeps/tile/dl-trampoline.S: Likewise.
17309 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17310 * sysdeps/tile/start.S (_start): Likewise.
17311 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17312 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17313 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17314 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17315 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17316 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17317 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17318
17319 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17320 comment.
17321 * sysdeps/tile/preconfigure: Remove tilegx folder.
17322 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17323 * sysdeps/tile/Implies: ... here.
17324 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17325 * sysdeps/tile/Makefile: ... here.
17326 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17327 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17328 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17329 * sysdeps/tile/bits/wordsize.h: ... here.
17330 * sysdeps/tile/tilegx/*: Move to ...
17331 * sysdeps/tile/*: ... here.
17332 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17333 * sysdeps/tile/tilegx32/Implies: ... here.
17334 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17335 * sysdeps/tile/tilegx64/Implies: ... here.
17336 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17337 to ...
17338 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17339 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17340 * sysdeps/unix/sysv/linux/tile/*: ... here.
17341 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17342 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17343 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17344 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17345
17346 * README: Remove tilepro-*-linux-gnu from supported architecture.
17347 * scripts/build-many-glibcs.py: Likewise.
17348 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17349 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17350 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17351 elf_machine_matches_host, elf_machine_dynamic,
17352 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17353 howto, elf_machine_rela): Likewise.
17354 * sysdeps/tile/dl-start.S (_start): Likewise.
17355 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17356 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17357 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17358 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17359 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17360 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17361 Likewise.
17362 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17363 * sysdeps/tile/preconfigure: Likewise.
17364 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17365 POINTER_CHK_GUARD): Likewise.
17366 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17367 * sysdeps/tile/start.S (_start): Likewise.
17368 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17369 Likewise.
17370 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17371 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17372 CMOVNEZ): Remove.
17373 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17374 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17375 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17376 Likewise.
17377 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17378 * sysdeps/tile/tilepro/Implies: Remove file.
17379 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17380 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17381 * sysdeps/tile/tilepro/memchr.c: Likewise.
17382 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17383 * sysdeps/tile/tilepro/memset.c: Likewise.
17384 * sysdeps/tile/tilepro/memusage.h: Likewise.
17385 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17386 * sysdeps/tile/tilepro/strchr.c: Likewise.
17387 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17388 * sysdeps/tile/tilepro/strlen.c: Likewise.
17389 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17390 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17391 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17392 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17393 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17394 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17395 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17396 Likewise.
17397 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17398 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17399 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17400 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17401 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17402 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17403 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17404 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17405 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17406 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17407 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17408 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17409 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17410 tilepro mention in comment.
17411
17412 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17413 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17414 * nptl/pthread_join_common.c: New file: common function used on
17415 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17416 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17417 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17418 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17419 (cleanup): Move definition to pthread_join_common.c.
17420 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17421 Remove superflous checks.
17422 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17423 Likewise.
17424
17425 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17426
17427 * sysdeps/aarch64/libm-test-ulps: Update.
17428
17429 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17430
17431 * sysdeps/aarch64/memset.S (MEMSET): Define.
17432
17433 2017-12-20 Florian Weimer <fweimer@redhat.com>
17434
17435 [BZ #22635]
17436 nptl: Provide full implementation of pthread_self in libc.so.
17437 * nptl/Makefile (routines): Add pthread_self.
17438 (libpthread-routines): Replace pthread_self with
17439 compat-pthread_self.
17440 * nptl/forward.c (pthread_self): Remove.
17441 * nptl/nptl-init.c (pthread_functions): Do not initialize
17442 ptr_pthread_self.
17443 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17444 * nptl/compat-pthread_self.c: New file.
17445 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17446 Remove ptr_pthread_self.
17447
17448 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17449
17450 * posix/regcomp.c: Fix spelling in comments.
17451 * posix/regex.h: Likewise.
17452 * posix/regex_internal.c: Likewise.
17453 * posix/regexec.c: Likewise.
17454
17455 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17456
17457 [BZ #22377]
17458 * math/Makefile [C++] (tests): Add test for iseqsig.
17459 * math/math.h [C++] (iseqsig): New implementation, which does
17460 not rely on __MATH_TG/__builtin_types_compatible_p.
17461 * math/test-math-iseqsig.cc: New file.
17462 * sysdeps/powerpc/powerpc64le/Makefile
17463 (CFLAGS-test-math-iseqsig.cc): New variable.
17464
17465 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17466
17467 * elf/dl-load.c (is_trusted_path): Remove.
17468 (fillin_rpath): Remove check_trusted argument and its use,
17469 all callers changed.
17470
17471 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17472
17473 [BZ #22630]
17474 * Makeconfig (link-pie-before-libc): Replace -pie with
17475 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17476 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17477 (tst-dlopen-aout-no-pie): New.
17478 (LDFLAGS-tst-prelink): Removed.
17479 (tst-prelink-no-pie): New.
17480 (LDFLAGS-tst-main1): Removed.
17481 (tst-main1-no-pie): New.
17482 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17483 (tst-gmon-no-pie): New.
17484
17485 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17486
17487 * manual/install.texi: Document that --enable-static-pie
17488 implies PIE.
17489 * INSTALL: Regenerated.
17490
17491 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17492
17493 [BZ #21309]
17494 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17495 unsigned.
17496
17497 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17498
17499 Revert:
17500
17501 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17502
17503 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17504
17505 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17506
17507 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17508 <errno.h>. Include "eexp.tbl".
17509 (half): New constant.
17510 (one): Likewise.
17511 (__ieee754_exp): Rewrite.
17512 (__slowexp): Remove prototype.
17513 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17514 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17515 * sysdeps/i386/fpu/slowexp.c: Likewise.
17516 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17517 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17518 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17519 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17520 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17521 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17522 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17523 comment.
17524 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17525 (CPPFLAGS-slowexp.c): Remove variable.
17526 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17527 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17528 (CFLAGS-slowexp-fma.c): Remove variable.
17529 (CFLAGS-slowexp-fma4.c): Likewise.
17530 (CFLAGS-slowexp-avx.c): Likewise.
17531 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17532 define as macro.
17533 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17534 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17535 * math/Makefile (type-double-routines): Remove slowexp.
17536 * manual/probes.texi (slowexp_p6): Remove.
17537 (slowexp_p32): Likewise.
17538
17539 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17540
17541 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17542 arithmetic.
17543
17544 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17545
17546 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17547
17548 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17549
17550 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17551
17552 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17553 <errno.h>. Include "eexp.tbl".
17554 (half): New constant.
17555 (one): Likewise.
17556 (__ieee754_exp): Rewrite.
17557 (__slowexp): Remove prototype.
17558 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17559 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17560 * sysdeps/i386/fpu/slowexp.c: Likewise.
17561 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17562 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17563 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17564 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17565 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17566 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17567 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17568 comment.
17569 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17570 (CPPFLAGS-slowexp.c): Remove variable.
17571 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17572 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17573 (CFLAGS-slowexp-fma.c): Remove variable.
17574 (CFLAGS-slowexp-fma4.c): Likewise.
17575 (CFLAGS-slowexp-avx.c): Likewise.
17576 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17577 define as macro.
17578 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17579 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17580 * math/Makefile (type-double-routines): Remove slowexp.
17581 * manual/probes.texi (slowexp_p6): Remove.
17582 (slowexp_p32): Likewise.
17583
17584 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17585 James Clarke <jrtc27@jrtc27.com>
17586
17587 [BZ #22603]
17588 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17589 addition.
17590
17591 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17592
17593 [BZ #22605]
17594 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17595 code.
17596
17597 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17598
17599 [BZ #22563]
17600 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17601 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17602 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17603 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17604 to feature_1.
17605
17606 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17607
17608 [BZ #22563]
17609 * bits/types/__cancel_jmp_buf_tag.h: New file.
17610 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17611 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17612 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17613 * nptl/Makefile (headers): Add
17614 bits/types/__cancel_jmp_buf_tag.h.
17615 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17616 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17617 * sysdeps/nptl/pthread.h: Include
17618 <bits/types/__cancel_jmp_buf_tag.h>.
17619 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17620 __cancel_jmp_buf.
17621 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17622
17623 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17624
17625 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17626 --enable-static-pie variants to x86_64, x32 and i686.
17627
17628 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17629
17630 [BZ #22631]
17631 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17632 argument for attrubutes. All callers changed.
17633 (__inline_mathop1): Likewise. All callers changed.
17634 (__inline_mathop): Likewise. All callers changed.
17635 [__USE_MISC] (scalbn): Use __inline_forward instead of
17636 __inline_forward_c.
17637 [__USE_ISOC99] (scalbln): Likewise.
17638 [__USE_ISOC99] (nearbyint): Likewise.
17639 [__USE_ISOC99] (lrint): Likewise.
17640 [__USE_MISC] (scalbnf): Likewise.
17641 [__USE_ISOC99] (scalblnf): Likewise.
17642 [__USE_ISOC99] (nearbyintf): Likewise.
17643 [__USE_ISOC99] (lrintf): Likewise.
17644 [__USE_MISC] (scalbnl): Likewise.
17645 [__USE_ISOC99] (scalblnl): Likewise.
17646 [__USE_ISOC99] (nearbyintl): Likewise.
17647 [__USE_ISOC99] (lrintl): Likewise.
17648 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17649 __inline_mathop and __m81_defun changed.
17650
17651 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17652 CPU or FPU for ARM hard-float configurations.
17653
17654 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17655
17656 * nptl/tst-attr3.c: Include <libc-diag.h>.
17657 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17658
17659 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17660
17661 * string/tester.c (test_strncat): Also disable -Warray-bounds
17662 warnings for two tests.
17663
17664 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17665
17666 [BZ #22614]
17667 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17668 $(cc-pie-default) == yes.
17669 * config.make.in (cc-pie-default): New.
17670 * configure.ac (libc_cv_pie_default): Renamed to ...
17671 (libc_cv_cc_pie_default): This.
17672 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17673 * configure: Regenerated.
17674
17675 2017-12-18 Florian Weimer <fweimer@redhat.com>
17676
17677 [BZ #20204]
17678 ld.so: Harden dl-libc/libdl hooks.
17679 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17680 (rtld_active): New function.
17681 * dlfcn/dladdr.c (__dladdr): Call it.
17682 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17683 * dlfcn/dlclose.c (__dlcose): Likewise.
17684 * dlfcn/dlerror.c (__dlerror): Likewise.
17685 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17686 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17687 * dlfcn/dlopen.c (__dlopen): Likewise.
17688 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17689 * dlfcn/dlsym.c (__dlsym): Likewise.
17690 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17691 * libio/vtables.c (_IO_vtable_check): Likewise.
17692 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17693 (__libc_dlclose): Likewise.
17694 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17695 assignment.
17696
17697 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17698
17699 [BZ #22446]
17700 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17701 buffers for readlink input and output.
17702
17703 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17704
17705 [BZ #22624]
17706 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17707 inhibit_stack_protector.
17708
17709 [BZ #22624]
17710 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17711 inhibit_stack_protector.
17712
17713 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17714
17715 [BZ #22627]
17716 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17717 code and invocation.
17718
17719 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17720
17721 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17722
17723 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17724
17725 [BZ #22505]
17726 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17727
17728 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17729
17730 * sysdeps/s390/fpu/libm-test-ulps: Update.
17731
17732 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17733
17734 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17735
17736 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17737
17738 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17739 constants to s_sincosf.h file.
17740 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17741 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17742 implementation.
17743 * sysdeps/ieee754/flt-32/s_sincosf.h:
17744 New file.
17745
17746 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17747
17748 [BZ #14681]
17749 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17750 before mtrace.
17751
17752 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17753
17754 [BZ #19574]
17755 * INSTALL: Regenerated.
17756 * Makeconfig (real-static-start-installed-name): New.
17757 (pic-default): Updated for --enable-static-pie.
17758 (pie-default): New for --enable-static-pie.
17759 (default-pie-ldflag): Likewise.
17760 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17761 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17762 Replace $(static-start-installed-name) with
17763 $(real-static-start-installed-name).
17764 (+prectorT): Updated for --enable-static-pie.
17765 (+postctorT): Likewise.
17766 (CFLAGS-.o): Add $(pie-default).
17767 (CFLAGS-.op): Likewise.
17768 * NEWS: Mention --enable-static-pie.
17769 * config.h.in (ENABLE_STATIC_PIE): New.
17770 * configure.ac (--enable-static-pie): New configure option.
17771 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17772 (have-static-pie): Likewise.
17773 Enable static PIE if linker supports --no-dynamic-linker.
17774 (ENABLE_STATIC_PIE): New AC_DEFINE.
17775 (enable-static-pie): New LIBC_CONFIG_VAR.
17776 * configure: Regenerated.
17777 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17778 gr$(start-installed-name) for --enable-static-pie.
17779 (extra-objs): Likewise.
17780 (install-lib): Likewise.
17781 (extra-objs): Add static-reloc.o and static-reloc.os
17782 ($(objpfx)$(start-installed-name)): Also depend on
17783 $(objpfx)static-reloc.o.
17784 ($(objpfx)r$(start-installed-name)): New.
17785 ($(objpfx)g$(start-installed-name)): Also depend on
17786 $(objpfx)static-reloc.os.
17787 ($(objpfx)gr$(start-installed-name)): New.
17788 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17789 in libc.a.
17790 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17791 initimage.
17792 * csu/static-reloc.c: New file.
17793 * elf/Makefile (routines): Add dl-reloc-static-pie.
17794 (elide-routines.os): Likewise.
17795 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17796 (tst-tls1-static-non-pie-no-pie): New.
17797 * elf/dl-reloc-static-pie.c: New file.
17798 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17799 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17800 STATIC_PIE_BOOTSTRAP.
17801 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17802 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17803 (tests-static): Likewise.
17804 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17805 (tst-gmon-static-no-pie): New.
17806 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17807 (CRT-tst-gmon-static-pie): Likewise.
17808 (tst-gmon-static-pie-ENV): Likewise.
17809 (tests-special): Likewise.
17810 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17811 (clean-tst-gmon-static-pie-data): Likewise.
17812 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17813 * gmon/tst-gmon-static-pie.c: New file.
17814 * manual/install.texi: Document --enable-static-pie.
17815 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17816 (_dl_get_dl_main_map): Likewise.
17817 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17818 * sysdeps/x86_64/configure.ac: Likewise.
17819 * sysdeps/i386/configure: Regenerated.
17820 * sysdeps/x86_64/configure: Likewise.
17821 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17822 (ASFLAGS-.op): Likewise.
17823
17824 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17825
17826 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17827 * posix/tst-mmap-offset.c (fname): Use /tmp.
17828 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17829
17830 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17831
17832 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17833
17834 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17835
17836 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17837 errno.
17838
17839 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17840
17841 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17842 --with-float=hard for arm-linux-gnueabihf configurations.
17843
17844 [BZ #14121]
17845 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17846 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17847 ($(mo-installed)): Use $(objpfx)%.mo.
17848 (realclean): Remove rule.
17849
17850 * po/Makefile (linguas): Remove rule and dependencies.
17851 (linguas.mo): Likewise.
17852 (.PHONY): Do not depend on linguas and linguas.mo.
17853 (podir): Remove variable.
17854 (pofiles): Likewise.
17855 [$(pofiles)] (%.po): Remove rule.
17856
17857 * sysdeps/sparc/sparc32/Makefile
17858 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17859 start-of-line whitespace in argument of echo.
17860 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17861 with whitespace. Generate __wrap_.udiv alias.
17862 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17863 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17864 * sysdeps/sparc/sparc32/udiv.S: Likewise.
17865 * sysdeps/sparc/sparc32/urem.S: Likewise.
17866
17867 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17868
17869 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
17870 for aligned inputs.
17871
17872 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17873
17874 * benchtests/bench-strcmp.c: Print output in JSON format.
17875
17876 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
17877
17878 2017-12-14 Florian Weimer <fweimer@redhat.com>
17879
17880 [BZ #22607]
17881 CVE-2017-1000409
17882 * elf/dl-load.c (_dl_init_paths): Compute number of components in
17883 the expanded path string.
17884
17885 2017-12-14 Florian Weimer <fweimer@redhat.com>
17886
17887 [BZ #22606]
17888 CVE-2017-1000408
17889 * elf/dl-load.c (system_dirs): Update comment.
17890 (nsystem_dirs_len): Use array_length.
17891 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
17892
17893 2017-12-14 Florian Weimer <fweimer@redhat.com>
17894
17895 Simplify compiling most of support/ outside of glibc.
17896 * support/check_addrinfo.c: Include <string.h>.
17897 * support/check_dns_packet.c: Likewise.
17898 * support/check_hostent.c: Likewise.
17899 * support/support_can_chroot.c: Include <support/xunistd.h>.
17900 * support/support_format_addrinfo.c: Include <stdlib.h>
17901 * support/support_format_dns_packet.c: Include <stdbool.h>.
17902 * support/support_format_hostent.c: Include <stdlib.h>.
17903 * support/support_format_netent.c: Likewise.
17904 * support/support_write_string.c: Include <support/xunistd.h>.
17905 * support/xdlfcn.c: Include <stddef.h>.
17906
17907 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
17908
17909 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
17910
17911 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17912 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17913
17914 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17915 (sysdeps_routines): Add memset-niagara7.
17916 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
17917 Likewise.
17918 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
17919 file.
17920 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
17921 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17922 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
17923 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
17924 Add niagara7 option.
17925 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
17926 memset.
17927
17928 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17929 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
17930 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
17931 Likewise.
17932 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
17933 New file.
17934 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
17935 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
17936 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17937 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
17938 and __memmove_niagara7.
17939 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
17940 Add niagara7 option.
17941 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
17942 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
17943 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
17944 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
17945 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
17946
17947 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
17948
17949 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
17950 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
17951 * sysdeps/sparc/sparc64/memmove.S: Likewise.
17952 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
17953
17954 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
17955 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
17956 _dl_sparc_cap_flags array.
17957 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
17958
17959 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
17960
17961 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
17962 time whenever possible.
17963
17964 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17965
17966 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
17967 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
17968
17969 2017-12-12 Joseph Myers <joseph@codesourcery.com>
17970
17971 * soft-fp/fmadf4.c: Move to ....
17972 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
17973 * soft-fp/fmasf4.c: Move to ....
17974 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
17975 * soft-fp/fmatf4.c: Move to ....
17976 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
17977 * sysdeps/ieee754/soft-fp/Makefile: New file.
17978 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
17979 * sysdeps/arm/preconfigure: Regenerated.
17980 * sysdeps/arm/nofpu/Implies: New file.
17981 * sysdeps/arm/s_fma.c: Remove file.
17982 * sysdeps/arm/s_fmaf.c: Likewise.
17983 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
17984 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
17985 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
17986 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
17987 * sysdeps/microblaze/s_fma.c: Remove file.
17988 * sysdeps/microblaze/s_fmaf.c: Likewise.
17989 * sysdeps/mips/mips32/nofpu/Implies: New file.
17990 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
17991 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
17992 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
17993 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
17994 * sysdeps/mips/ieee754/s_fma.c: Remove file.
17995 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
17996 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
17997 implementation.
17998 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
17999 * sysdeps/nios2/s_fma.c: Remove file.
18000 * sysdeps/nios2/s_fmaf.c: Likewise.
18001 * sysdeps/sh/nofpu/Implies: New file.
18002 * sysdeps/sh/s_fma.c: Remove file.
18003 * sysdeps/sh/s_fmaf.c: Likewise.
18004 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18005 * sysdeps/tile/s_fma.c: Remove file.
18006 * sysdeps/tile/s_fmaf.c: Likewise.
18007
18008 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18009
18010 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18011 Add s_cosf-sse2 and s_cosf-fma.
18012 (CFLAGS-s_cosf-fma.c): New.
18013 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18014 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18015 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18016
18017 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18018
18019 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18020
18021 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18022
18023 * libio/Makefile (tests): Add tst-bz22415.
18024 (tst-bz22415-ENV): New rule.
18025 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18026 (tests-special): Add tst-bz22415-mem.out.
18027 ($(objpfx)tst-bz22415-mem.out): New rule.
18028 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18029 in case of a successful seek operation.
18030 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18031 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18032 buffer is required.
18033 * libio/tst-bz22415.c: New test.
18034
18035 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18036
18037 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18038
18039 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18040 __IPC_64 to 0 to avoid IPC_64 being set.
18041
18042 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18043
18044 [BZ #22593]
18045 * math/bits/mathcalls.h (nextafter): Remove const.
18046 (nexttoward): Likewise.
18047
18048 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18049
18050 * configure.ac (--with-fp): Remove configure option.
18051 (with_fp_cond): New variable.
18052 (libc_cv_with_fp): New configure test. Use this variable instead
18053 of with_fp.
18054 * configure: Regenerated.
18055 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18056 * manual/install.texi (Configuring and compiling): Remove
18057 --without-fp.
18058 * INSTALL: Regenerated.
18059 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18060 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18061 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18062 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18063 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18064 use --without-fp to configure glibc.
18065
18066 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18067
18068 * manual/locale.texi (nl_langinfo): Fix a typo.
18069
18070 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18071
18072 [BZ #22588]
18073 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18074
18075 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18076
18077 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18078 (CFLAGS-argp-parse.c): Likewise.
18079 (CFLAGS-argp-fmtstream.c): Likewise.
18080 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18081 (CPPFLAGS-sha512-crypt.c): Likewise.
18082 (CPPFLAGS-md5-crypt.c): Likewise.
18083 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18084 (CFLAGS-stack_chk_fail_local.c): Likewise.
18085 (CFLAGS-backtrace.c): Likewise.
18086 (CFLAGS-sprintf_chk.c): Likewise.
18087 (CFLAGS-snprintf_chk.c): Likewise.
18088 (CFLAGS-vsprintf_chk.c): Likewise.
18089 (CFLAGS-vsnprintf_chk.c): Likewise.
18090 (CFLAGS-asprintf_chk.c): Likewise.
18091 (CFLAGS-vasprintf_chk.c): Likewise.
18092 (CFLAGS-obprintf_chk.c): Likewise.
18093 (CFLAGS-dprintf_chk.c): Likewise.
18094 (CFLAGS-vdprintf_chk.c): Likewise.
18095 (CFLAGS-printf_chk.c): Likewise.
18096 (CFLAGS-fprintf_chk.c): Likewise.
18097 (CFLAGS-vprintf_chk.c): Likewise.
18098 (CFLAGS-vfprintf_chk.c): Likewise.
18099 (CFLAGS-gets_chk.c): Likewise.
18100 (CFLAGS-fgets_chk.c): Likewise.
18101 (CFLAGS-fgets_u_chk.c): Likewise.
18102 (CFLAGS-fread_chk.c): Likewise.
18103 (CFLAGS-fread_u_chk.c): Likewise.
18104 (CFLAGS-swprintf_chk.c): Likewise.
18105 (CFLAGS-vswprintf_chk.c): Likewise.
18106 (CFLAGS-wprintf_chk.c): Likewise.
18107 (CFLAGS-fwprintf_chk.c): Likewise.
18108 (CFLAGS-vwprintf_chk.c): Likewise.
18109 (CFLAGS-vfwprintf_chk.c): Likewise.
18110 (CFLAGS-fgetws_chk.c): Likewise.
18111 (CFLAGS-fgetws_u_chk.c): Likewise.
18112 (CFLAGS-read_chk.c): Likewise.
18113 (CFLAGS-pread_chk.c): Likewise.
18114 (CFLAGS-pread64_chk.c): Likewise.
18115 (CFLAGS-recv_chk.c): Likewise.
18116 (CFLAGS-recvfrom_chk.c): Likewise.
18117 (CFLAGS-tst-longjmp_chk.c): Likewise.
18118 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18119 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18120 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18121 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18122 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18123 (CFLAGS-tst-chk1.c): Likewise.
18124 (CFLAGS-tst-chk2.c): Likewise.
18125 (CFLAGS-tst-chk3.c): Likewise.
18126 (CFLAGS-tst-chk4.cc): Likewise.
18127 (CFLAGS-tst-chk5.cc): Likewise.
18128 (CFLAGS-tst-chk6.cc): Likewise.
18129 (CFLAGS-tst-lfschk1.c): Likewise.
18130 (CFLAGS-tst-lfschk2.c): Likewise.
18131 (CFLAGS-tst-lfschk3.c): Likewise.
18132 (CFLAGS-tst-lfschk4.cc): Likewise.
18133 (CFLAGS-tst-lfschk5.cc): Likewise.
18134 (CFLAGS-tst-lfschk6.cc): Likewise.
18135 (CFLAGS-tst-ssp-1.c): Likewise.
18136 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18137 (CFLAGS-scandir64.c): Likewise.
18138 (CFLAGS-scandir-tail.c): Likewise.
18139 (CFLAGS-scandir64-tail.c): Likewise.
18140 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18141 (CFLAGS-dl-tunables.c): Likewise.
18142 (CFLAGS-dl-runtime.c): Likewise.
18143 (CFLAGS-dl-lookup.c): Likewise.
18144 (CFLAGS-dl-iterate-phdr.c): Likewise.
18145 (CFLAGS-vismain.c): Likewise.
18146 (CFLAGS-tst-linkall-static.c): Likewise.
18147 (CFLAGS-tst-linkall-static.c): Likewise.
18148 (CPPFLAGS-dl-load.c): Likewise.
18149 (CFLAGS-ldconfig.c): Likewise.
18150 (CFLAGS-dl-cache.c): Likewise.
18151 (CFLAGS-cache.c): Likewise.
18152 (CFLAGS-rtld.c): Likewise.
18153 (CFLAGS-multiload.c): Likewise.
18154 (CFLAGS-filtmod1.c): Likewise.
18155 (CFLAGS-tst-align.c): Likewise.
18156 (CFLAGS-tst-align2.c): Likewise.
18157 (CFLAGS-tst-alignmod.c): Likewise.
18158 (CFLAGS-tst-alignmod2.c): Likewise.
18159 (CPPFLAGS-tst-execstack.c): Likewise.
18160 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18161 (CFLAGS-tst-latepthreadmod.c): Likewise.
18162 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18163 (CFLAGS-getgrnam_r.c): Likewise.
18164 (CFLAGS-getgrent_r.c): Likewise.
18165 (CFLAGS-getgrent.c): Likewise.
18166 (CFLAGS-fgetgrent.c): Likewise.
18167 (CFLAGS-fgetgrent_r.c): Likewise.
18168 (CFLAGS-putgrent.c): Likewise.
18169 (CFLAGS-initgroups.c): Likewise.
18170 (CFLAGS-getgrgid.c): Likewise.
18171 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18172 (CFLAGS-getsgent.c): Likewise.
18173 (CFLAGS-fgetsgent.c): Likewise.
18174 (CFLAGS-fgetsgent_r.c): Likewise.
18175 (CFLAGS-putsgent.c): Likewise.
18176 (CFLAGS-getsgnam.c): Likewise.
18177 (CFLAGS-getsgnam_r.c): Likewise.
18178 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18179 (CFLAGS-iconv_charmap.c): Likewise.
18180 (CFLAGS-dummy-repertoire.c): Likewise.
18181 (CFLAGS-charmap.c): Likewise.
18182 (CFLAGS-linereader.c): Likewise.
18183 (CFLAGS-simple-hash.c): Likewise.
18184 (CFLAGS-gconv_conf.c): Likewise.
18185 (CFLAGS-iconvconfig.c): Likewise.
18186 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18187 (CFLAGS-gethstbyad.c): Likewise.
18188 (CFLAGS-gethstbynm_r.c): Likewise.
18189 (CFLAGS-gethstbynm.c): Likewise.
18190 (CFLAGS-gethstbynm2_r.c): Likewise.
18191 (CFLAGS-gethstbynm2.c): Likewise.
18192 (CFLAGS-gethstent_r.c): Likewise.
18193 (CFLAGS-gethstent.c): Likewise.
18194 (CFLAGS-rcmd.c): Likewise.
18195 (CFLAGS-getnetbynm_r.c): Likewise.
18196 (CFLAGS-getnetbynm.c): Likewise.
18197 (CFLAGS-getnetbyad_r.c): Likewise.
18198 (CFLAGS-getnetbyad.c): Likewise.
18199 (CFLAGS-getnetent_r.c): Likewise.
18200 (CFLAGS-getnetent.c): Likewise.
18201 (CFLAGS-getaliasent_r.c): Likewise.
18202 (CFLAGS-getaliasent.c): Likewise.
18203 (CFLAGS-getrpcent_r.c): Likewise.
18204 (CFLAGS-getrpcent.c): Likewise.
18205 (CFLAGS-getservent_r.c): Likewise.
18206 (CFLAGS-getservent.c): Likewise.
18207 (CFLAGS-getprtent_r.c): Likewise.
18208 (CFLAGS-getprtent.c): Likewise.
18209 (CFLAGS-either_ntoh.c): Likewise.
18210 (CFLAGS-either_hton.c): Likewise.
18211 (CFLAGS-getnetgrent.c): Likewise.
18212 (CFLAGS-getnetgrent_r.c): Likewise.
18213 (CFLAGS-tst-checks-posix.c): Likewise.
18214 (CFLAGS-tst-sockaddr.c): Likewise.
18215 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18216 (CFLAGS-tst-translit.c): Likewise.
18217 (CFLAGS-tst-gettext2.c): Likewise.
18218 (CFLAGS-tst-codeset.c): Likewise.
18219 (CFLAGS-tst-gettext3.c): Likewise.
18220 (CFLAGS-tst-gettext4.c): Likewise.
18221 (CFLAGS-tst-gettext5.c): Likewise.
18222 (CFLAGS-tst-gettext6.c): Likewise.
18223 * io/Makefile (CFLAGS-open.c): Likewise.
18224 (CFLAGS-open64.c): Likewise.
18225 (CFLAGS-creat.c): Likewise.
18226 (CFLAGS-creat64.c): Likewise.
18227 (CFLAGS-fcntl.c): Likewise.
18228 (CFLAGS-poll.c): Likewise.
18229 (CFLAGS-ppoll.c): Likewise.
18230 (CFLAGS-lockf.c): Likewise.
18231 (CFLAGS-statfs.c): Likewise.
18232 (CFLAGS-fstatfs.c): Likewise.
18233 (CFLAGS-statvfs.c): Likewise.
18234 (CFLAGS-fstatvfs.c): Likewise.
18235 (CFLAGS-fts.c): Likewise.
18236 (CFLAGS-fts64.c): Likewise.
18237 (CFLAGS-ftw.c): Likewise.
18238 (CFLAGS-ftw64.c): Likewise.
18239 (CFLAGS-lockf.c): Likewise.
18240 (CFLAGS-posix_fallocate.c): Likewise.
18241 (CFLAGS-posix_fallocate64.c): Likewise.
18242 (CFLAGS-fallocate.c): Likewise.
18243 (CFLAGS-fallocate64.c): Likewise.
18244 (CFLAGS-read.c): Likewise.
18245 (CFLAGS-write.c): Likewise.
18246 (CFLAGS-test-stat.c): Likewise.
18247 (CFLAGS-test-lfs.c): Likewise.
18248 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18249 (CFLAGS-fputc.c): Likewise.
18250 (CFLAGS-fputwc.c): Likewise.
18251 (CFLAGS-freopen64.c): Likewise.
18252 (CFLAGS-freopen.c): Likewise.
18253 (CFLAGS-fseek.c): Likewise.
18254 (CFLAGS-fseeko64.c): Likewise.
18255 (CFLAGS-fseeko.c): Likewise.
18256 (CFLAGS-ftello64.c): Likewise.
18257 (CFLAGS-ftello.c): Likewise.
18258 (CFLAGS-fwide.c): Likewise.
18259 (CFLAGS-genops.c): Likewise.
18260 (CFLAGS-getc.c): Likewise.
18261 (CFLAGS-getchar.c): Likewise.
18262 (CFLAGS-getwc.c): Likewise.
18263 (CFLAGS-getwchar.c): Likewise.
18264 (CFLAGS-iofclose.c): Likewise.
18265 (CFLAGS-iofflush.c): Likewise.
18266 (CFLAGS-iofgetpos64.c): Likewise.
18267 (CFLAGS-iofgetpos.c): Likewise.
18268 (CFLAGS-iofgets.c): Likewise.
18269 (CFLAGS-iofgetws.c): Likewise.
18270 (CFLAGS-iofputs.c): Likewise.
18271 (CFLAGS-iofputws.c): Likewise.
18272 (CFLAGS-iofread.c): Likewise.
18273 (CFLAGS-iofsetpos64.c): Likewise.
18274 (CFLAGS-iofsetpos.c): Likewise.
18275 (CFLAGS-ioftell.c): Likewise.
18276 (CFLAGS-iofwrite.c): Likewise.
18277 (CFLAGS-iogetdelim.c): Likewise.
18278 (CFLAGS-iogetline.c): Likewise.
18279 (CFLAGS-iogets.c): Likewise.
18280 (CFLAGS-iogetwline.c): Likewise.
18281 (CFLAGS-ioputs.c): Likewise.
18282 (CFLAGS-ioseekoff.c): Likewise.
18283 (CFLAGS-ioseekpos.c): Likewise.
18284 (CFLAGS-iosetbuffer.c): Likewise.
18285 (CFLAGS-iosetvbuf.c): Likewise.
18286 (CFLAGS-ioungetc.c): Likewise.
18287 (CFLAGS-ioungetwc.c): Likewise.
18288 (CFLAGS-oldfileops.c): Likewise.
18289 (CFLAGS-oldiofclose.c): Likewise.
18290 (CFLAGS-oldiofgetpos64.c): Likewise.
18291 (CFLAGS-oldiofgetpos.c): Likewise.
18292 (CFLAGS-oldiofsetpos64.c): Likewise.
18293 (CFLAGS-oldiofsetpos.c): Likewise.
18294 (CFLAGS-peekc.c): Likewise.
18295 (CFLAGS-putc.c): Likewise.
18296 (CFLAGS-putchar.c): Likewise.
18297 (CFLAGS-putwc.c): Likewise.
18298 (CFLAGS-putwchar.c): Likewise.
18299 (CFLAGS-rewind.c): Likewise.
18300 (CFLAGS-wfileops.c): Likewise.
18301 (CFLAGS-wgenops.c): Likewise.
18302 (CFLAGS-oldiofopen.c): Likewise.
18303 (CFLAGS-iofopen.c): Likewise.
18304 (CFLAGS-iofopen64.c): Likewise.
18305 (CFLAGS-oldtmpfile.c): Likewise.
18306 (CFLAGS-tst_putwc.c): Likewise.
18307 * locale/Makefile (CFLAGS-md5.c): Likewise.
18308 (CFLAGS-charmap.c): Likewise.
18309 (CFLAGS-locfile.c): Likewise.
18310 (CFLAGS-charmap-dir.c): Likewise.
18311 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18312 (CFLAGS-getpt.c): Likewise.
18313 (CFLAGS-pt_chown.c): Likewise.
18314 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18315 (CFLAGS-obstack.c): Likewise.
18316 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18317 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18318 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18319 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18320 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18321 (CFLAGS-test-tgmath.c): Likewise.
18322 (CFLAGS-test-tgmath2.c): Likewise.
18323 (CFLAGS-test-tgmath-ret.c): Likewise.
18324 (CFLAGS-test-powl.c): Likewise.
18325 (CFLAGS-test-snan.c): Likewise.
18326 (CFLAGS-test-signgam-finite.c): Likewise.
18327 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18328 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18329 (CFLAGS-test-signgam-uchar.c): Likewise.
18330 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18331 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18332 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18333 (CFLAGS-test-signgam-uint.c): Likewise.
18334 (CFLAGS-test-signgam-uint-init.c): Likewise.
18335 (CFLAGS-test-signgam-uint-static.c): Likewise.
18336 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18337 (CFLAGS-test-signgam-ullong.c): Likewise.
18338 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18339 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18340 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18341 (CFLAGS-test-math-cxx11.cc): Likewise.
18342 (CFLAGS-test-math-isinff.cc): Likewise.
18343 (CFLAGS-test-math-iszero.cc): Likewise.
18344 (CFLAGS-test-math-issignaling.cc): Likewise.
18345 (CFLAGS-test-math-iscanonical.cc): Likewise.
18346 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18347 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18348 (CFLAGS-test-flt-eval-method.c): Likewise.
18349 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18350 (CFLAGS-test-finite-macros.c): Likewise.
18351 * misc/Makefile (CFLAGS-select.c): Likewise.
18352 (CFLAGS-tsearch.c): Likewise.
18353 (CFLAGS-lsearch.c): Likewise.
18354 (CFLAGS-pselect.c): Likewise.
18355 (CFLAGS-readv.c): Likewise.
18356 (CFLAGS-writev.c): Likewise.
18357 (CFLAGS-preadv.c): Likewise.
18358 (CFLAGS-preadv64.c): Likewise.
18359 (CFLAGS-pwritev.c): Likewise.
18360 (CFLAGS-pwritev64.c): Likewise.
18361 (CFLAGS-preadv2.c): Likewise.
18362 (CFLAGS-preadv64v2.c): Likewise.
18363 (CFLAGS-pwritev2.c): Likewise.
18364 (CFLAGS-pwritev64v2.c): Likewise.
18365 (CFLAGS-usleep.c): Likewise.
18366 (CFLAGS-syslog.c): Likewise.
18367 (CFLAGS-error.c): Likewise.
18368 (CFLAGS-getpass.c): Likewise.
18369 (CFLAGS-mkstemp.c): Likewise.
18370 (CFLAGS-mkstemp64.c): Likewise.
18371 (CFLAGS-getsysstats.c): Likewise.
18372 (CFLAGS-getusershell.c): Likewise.
18373 (CFLAGS-err.c): Likewise.
18374 (CFLAGS-tst-tsearch.c): Likewise.
18375 (CFLAGS-msync.c): Likewise.
18376 (CFLAGS-fdatasync.c): Likewise.
18377 (CFLAGS-fsync.c): Likewise.
18378 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18379 (CFLAGS-unwind.c): Likewise.
18380 (CFLAGS-unwind-forcedunwind.c): Likewise.
18381 (CFLAGS-pthread_cancel.c): Likewise.
18382 (CFLAGS-pthread_setcancelstate.c): Likewise.
18383 (CFLAGS-pthread_setcanceltype.c): Likewise.
18384 (CFLAGS-cancellation.c): Likewise.
18385 (CFLAGS-libc-cancellation.c): Likewise.
18386 (CFLAGS-pthread_exit.c): Likewise.
18387 (CFLAGS-forward.c): Likewise.
18388 (CFLAGS-pthread_testcancel.c): Likewise.
18389 (CFLAGS-pthread_join.c): Likewise.
18390 (CFLAGS-pthread_timedjoin.c): Likewise.
18391 (CFLAGS-pthread_once.c): Likewise.
18392 (CFLAGS-pthread_cond_wait.c): Likewise.
18393 (CFLAGS-sem_wait.c): Likewise.
18394 (CFLAGS-sem_timedwait.c): Likewise.
18395 (CFLAGS-fcntl.c): Likewise.
18396 (CFLAGS-lockf.c): Likewise.
18397 (CFLAGS-pread.c): Likewise.
18398 (CFLAGS-pread64.c): Likewise.
18399 (CFLAGS-pwrite.c): Likewise.
18400 (CFLAGS-pwrite64.c): Likewise.
18401 (CFLAGS-wait.c): Likewise.
18402 (CFLAGS-waitpid.c): Likewise.
18403 (CFLAGS-sigwait.c): Likewise.
18404 (CFLAGS-msgrcv.c): Likewise.
18405 (CFLAGS-msgsnd.c): Likewise.
18406 (CFLAGS-tcdrain.c): Likewise.
18407 (CFLAGS-open.c): Likewise.
18408 (CFLAGS-open64.c): Likewise.
18409 (CFLAGS-pause.c): Likewise.
18410 (CFLAGS-recv.c): Likewise.
18411 (CFLAGS-send.c): Likewise.
18412 (CFLAGS-accept.c): Likewise.
18413 (CFLAGS-sendto.c): Likewise.
18414 (CFLAGS-connect.c): Likewise.
18415 (CFLAGS-recvfrom.c): Likewise.
18416 (CFLAGS-recvmsg.c): Likewise.
18417 (CFLAGS-sendmsg.c): Likewise.
18418 (CFLAGS-close.c): Likewise.
18419 (CFLAGS-read.c): Likewise.
18420 (CFLAGS-write.c): Likewise.
18421 (CFLAGS-nanosleep.c): Likewise.
18422 (CFLAGS-sigsuspend.c): Likewise.
18423 (CFLAGS-msync.c): Likewise.
18424 (CFLAGS-fdatasync.c): Likewise.
18425 (CFLAGS-fsync.c): Likewise.
18426 (CFLAGS-pt-system.c): Likewise.
18427 (CFLAGS-tst-cleanup2.c): Likewise.
18428 (CFLAGS-tst-cleanupx2.c): Likewise.
18429 (CFLAGS-flockfile.c): Likewise.
18430 (CFLAGS-ftrylockfile.c): Likewise.
18431 (CFLAGS-funlockfile.c): Likewise.
18432 (CFLAGS-tst-initializers1.c): Likewise.
18433 (CFLAGS-tst-initializers1-c89.c): Likewise.
18434 (CFLAGS-tst-initializers1-c99.c): Likewise.
18435 (CFLAGS-tst-initializers1-c11.c): Likewise.
18436 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18437 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18438 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18439 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18440 (CFLAGS-nscd_getgr_r.c): Likewise.
18441 (CFLAGS-nscd_gethst_r.c): Likewise.
18442 (CFLAGS-nscd_getai.c): Likewise.
18443 (CFLAGS-nscd_initgroups.c): Likewise.
18444 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18445 (CFLAGS-pause.c): Likewise.
18446 (CFLAGS-pread.c): Likewise.
18447 (CFLAGS-pread64.c): Likewise.
18448 (CFLAGS-pwrite.c): Likewise.
18449 (CFLAGS-pwrite64.c): Likewise.
18450 (CFLAGS-sleep.c): Likewise.
18451 (CFLAGS-wait.c): Likewise.
18452 (CFLAGS-waitid.c): Likewise.
18453 (CFLAGS-waitpid.c): Likewise.
18454 (CFLAGS-getopt.c): Likewise.
18455 (CFLAGS-wordexp.c): Likewise.
18456 (CFLAGS-sysconf.c): Likewise.
18457 (CFLAGS-pathconf.c): Likewise.
18458 (CFLAGS-fpathconf.c): Likewise.
18459 (CFLAGS-spawn.c): Likewise.
18460 (CFLAGS-spawnp.c): Likewise.
18461 (CFLAGS-spawni.c): Likewise.
18462 (CFLAGS-glob.c): Likewise.
18463 (CFLAGS-glob64.c): Likewise.
18464 (CFLAGS-getconf.c): Likewise.
18465 (CFLAGS-nanosleep.c): Likewise.
18466 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18467 (CFLAGS-getpwent.c): Likewise.
18468 (CFLAGS-getpw.c): Likewise.
18469 (CFLAGS-fgetpwent_r.c): Likewise.
18470 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18471 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18472 (CFLAGS-mq_timedreceive.c): Likewise.
18473 (CFLAGS-mq_timedsend.c): Likewise.
18474 (CFLAGS-clock_nanosleep.c): Likewise.
18475 (CFLAGS-librt-cancellation.c): Likewise.
18476 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18477 (CFLAGS-getspent.c): Likewise.
18478 (CFLAGS-fgetspent.c): Likewise.
18479 (CFLAGS-fgetspent_r.c): Likewise.
18480 (CFLAGS-putspent.c): Likewise.
18481 (CFLAGS-getspnam.c): Likewise.
18482 (CFLAGS-getspnam_r.c): Likewise.
18483 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18484 (CFLAGS-sigsuspend.c): Likewise.
18485 (CFLAGS-sigtimedwait.c): Likewise.
18486 (CFLAGS-sigwait.c): Likewise.
18487 (CFLAGS-sigwaitinfo.c): Likewise.
18488 (CFLAGS-sigreturn.c): Likewise.
18489 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18490 (CFLAGS-vfwprintf.c): Likewise.
18491 (CFLAGS-tmpfile.c): Likewise.
18492 (CFLAGS-tmpfile64.c): Likewise.
18493 (CFLAGS-tempname.c): Likewise.
18494 (CFLAGS-psignal.c): Likewise.
18495 (CFLAGS-vprintf.c): Likewise.
18496 (CFLAGS-cuserid.c): Likewise.
18497 (CFLAGS-errlist.c): Likewise.
18498 (CFLAGS-siglist.c): Likewise.
18499 (CFLAGS-scanf15.c): Likewise.
18500 (CFLAGS-scanf17.c): Likewise.
18501 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18502 (CFLAGS-msort.c): Likewise.
18503 (CFLAGS-qsort.c): Likewise.
18504 (CFLAGS-system.c): Likewise.
18505 (CFLAGS-fmtmsg.c): Likewise.
18506 (CFLAGS-strfmon.c): Likewise.
18507 (CFLAGS-strfmon_l.c): Likewise.
18508 (CFLAGS-strfromd.c): Likewise.
18509 (CFLAGS-strfromf.c): Likewise.
18510 (CFLAGS-strfroml.c): Likewise.
18511 (CFLAGS-tst-bsearch.c): Likewise.
18512 (CFLAGS-tst-qsort.c): Likewise.
18513 (CFLAGS-tst-makecontext2.c): Likewise.
18514 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18515 (CFLAGS-xnlm_prot.c): Likewise.
18516 (CFLAGS-xrstat.c): Likewise.
18517 (CFLAGS-xyppasswd.c): Likewise.
18518 (CFLAGS-xklm_prot.c): Likewise.
18519 (CFLAGS-xrex.c): Likewise.
18520 (CFLAGS-xsm_inter.c): Likewise.
18521 (CFLAGS-xmount.c): Likewise.
18522 (CFLAGS-xrusers.c): Likewise.
18523 (CFLAGS-xspray.c): Likewise.
18524 (CFLAGS-xnfs_prot.c): Likewise.
18525 (CFLAGS-xrquota.c): Likewise.
18526 (CFLAGS-xkey_prot.c): Likewise.
18527 (CFLAGS-auth_unix.c): Likewise.
18528 (CFLAGS-key_call.c): Likewise.
18529 (CFLAGS-pmap_rmt.c): Likewise.
18530 (CFLAGS-clnt_perr.c): Likewise.
18531 (CFLAGS-openchild.c): Likewise.
18532 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18533 (CFLAGS-msgsnd.c): Likewise.
18534 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18535 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18536 (CFLAGS-tzset.c): Likewise.
18537 (CFLAGS-getdate.c): Likewise.
18538 (CFLAGS-test_time.c): Likewise.
18539 (CPPFLAGS-tst-tzname.c): Likewise.
18540 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18541 (CFLAGS-zic.c): Likewise.
18542 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18543 (CFLAGS-wcswidth.c): Likewise.
18544 (CFLAGS-wcstol.c): Likewise.
18545 (CFLAGS-wcstoul.c): Likewise.
18546 (CFLAGS-wcstoll.c): Likewise.
18547 (CFLAGS-wcstoull.c): Likewise.
18548 (CFLAGS-wcstod.c): Likewise.
18549 (CFLAGS-wcstold.c): Likewise.
18550 (CFLAGS-wcstof128.c): Likewise.
18551 (CFLAGS-wcstof.c): Likewise.
18552 (CFLAGS-wcstol_l.c): Likewise.
18553 (CFLAGS-wcstoul_l.c): Likewise.
18554 (CFLAGS-wcstoll_l.c): Likewise.
18555 (CFLAGS-wcstoull_l.c): Likewise.
18556 (CFLAGS-wcstod_l.c): Likewise.
18557 (CFLAGS-wcstold_l.c): Likewise.
18558 (CFLAGS-wcstof128_l.c): Likewise.
18559 (CFLAGS-wcstof_l.c): Likewise.
18560 (CPPFLAGS-tst-wchar-h.c): Likewise.
18561 (CPPFLAGS-wcstold_l.c): Likewise.
18562
18563 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18564
18565 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18566
18567 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18568 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18569
18570 * manual/tunables.texi (Hardware Capability Tunables): Document
18571 glibc.tune.cached_memopt.
18572 * sysdeps/powerpc/cpu-features.c: New file.
18573 * sysdeps/powerpc/cpu-features.h: New file.
18574 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18575 _dl_powerpc_cpu_features.
18576 * sysdeps/powerpc/dl-tunables.list: New file.
18577 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18578 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18579 (INIT_ARCH): Initialize use_aligned_memopt.
18580 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18581 IS_IN(rtld))]: Restrict dl_platform_init availability and
18582 initialize CPU features used by tunables.
18583 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18584 Add memcpy-power8-cached.
18585 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18586 __memcpy_power8_cached.
18587 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18588 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18589 New file.
18590
18591 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18592
18593 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18594 (CFLAGS-noinl-tester.c): Likewise.
18595 (CFLAGS-tst-strlen.c): Likewise.
18596 (CFLAGS-stratcliff.c): Likewise.
18597 (CFLAGS-test-ffs.c): Likewise.
18598 (CFLAGS-tst-inlcall.c): Likewise.
18599 (CFLAGS-tst-xbzero-opt.c): Likewise.
18600 (CFLAGS-memcpy.c): Likewise.
18601 (CFLAGS-wordcopy.c): Likewise.
18602
18603 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18604
18605 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18606 Store r15 on stack and add cfi rule.
18607 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18608 Likewise.
18609
18610 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18611
18612 [BZ #22577]
18613 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18614 call.
18615
18616 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18617
18618 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18619 Add s_sinf-sse2 and s_sinf-fma.
18620 (CFLAGS-s_sinf-fma.c): New.
18621 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18622 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18623 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18624
18625 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18626
18627 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18628
18629 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18630
18631 [BZ #22568]
18632 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18633 part of result to imaginary part of argument if it is zero and the
18634 real part of the argument is not finite.
18635 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18636 of result to real part of argument if it is zero and the imaginary
18637 part of the argument is not finite.
18638
18639 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18640
18641 [BZ #22524]
18642 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18643 and to the list of locales to be built for testing.
18644 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18645 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18646 and build the collation rules upon that.
18647
18648 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18649
18650 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18651 * manual/math.texi (Mathematics): Document support for _Float32.
18652 * math/Makefile (test-types): Add float32.
18653 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18654 * stdlib/Versions (GLIBC_2.27): Likewise.
18655 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18656 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18657 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18658 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18659 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18660 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18661 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18662 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18663 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18664 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18665 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18666 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18667 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18668 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18669 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18670 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18671 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18672 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18673 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18674 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18675 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18676 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18677 Likewise.
18678 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18679 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18680 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18681 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18682 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18684 Likewise.
18685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18686 Likewise.
18687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18688 Likewise.
18689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18690 Likewise.
18691
18692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18693 Likewise.
18694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18695 Likewise.
18696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18697 Likewise.
18698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18699 Likewise.
18700 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18701 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18702 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18703 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18704 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18705 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18706 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18707 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18708 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18709 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18710 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18711 Likewise.
18712 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18713 Likewise.
18714 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18715 Likewise.
18716 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18717 Likewise.
18718 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18719 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18720 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18721 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18722 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18723 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18724 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18725 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18726
18727 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18728
18729 * stdlib/strtof.c: Include <bits/floatn.h>
18730 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18731 and later undefine as macro. Define as weak alias if
18732 [!USE_WIDE_CHAR].
18733 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18734 and later undefine as macro. Define as weak alias if
18735 [USE_WIDE_CHAR].
18736 * stdlib/strtof_l.c: Include <bits/floatn.h>
18737 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18738 and later undefine as macro. Define as weak alias if
18739 [!USE_WIDE_CHAR].
18740 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18741 and later undefine as macro. Define as weak alias if
18742 [USE_WIDE_CHAR].
18743
18744 * stdlib/strfromf.c: Include <bits/floatn.h>.
18745 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18746 and later undefine as macro and define as weak alias.
18747
18748 * math/test-float32.h: New file.
18749
18750 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18751 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18752 (libm_alias_float_other_r): Create f32 alias.
18753 (libm_alias_float_r): Use semicolon before call to
18754 libm_alias_float_other_r.
18755
18756 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18757 second argument to libm_alias_float_other.
18758 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18759 second argument to libm_alias_float_other.
18760 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18761 argument to libm_alias_float_other.
18762
18763 [BZ #22561]
18764 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18765 real part of result for argument 0 + i * NaN.
18766 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18767 results for tests of 0 + i * NaN.
18768
18769 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18770
18771 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18772
18773 2017-12-06 David S. Miller <davem@davemloft.net>
18774
18775 * sysdeps/sparc/fpu/libm-test-ulps: Update
18776 exp_{downward,towardzero,upward} ulps.
18777
18778 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18779
18780 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18781 variables static.
18782
18783 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18784 (Y0_2D): Likewise.
18785 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18786 (Y0_2D): Likewise.
18787 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18788 (Y0_2D): Likewise.
18789 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18790 (Y0_2D): Likewise.
18791
18792 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18793
18794 [BZ #22515]
18795 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18796 and to the list of locales to be built for testing.
18797 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18798 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18799 and build the collation rules upon that.
18800
18801 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18802
18803 * NEWS: Add sinf to list of optimized functions.
18804
18805 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18806
18807 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18808 (__HAVE_FLOAT32X): Likewise.
18809 * manual/math.texi (Mathematics): Document support for _Float64
18810 and _Float32x.
18811 * math/Makefile (test-types): Add float64 and float32x.
18812 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18813 functions.
18814 * stdlib/Versions (GLIBC_2.27): Likewise.
18815 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18816 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18817 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18818 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18819 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18820 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18821 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18822 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18823 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18824 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18825 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18826 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18827 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18828 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18829 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18830 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18831 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18832 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18833 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18834 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18835 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18836 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18837 Likewise.
18838 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18839 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18840 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18841 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18842 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18844 Likewise.
18845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18846 Likewise.
18847 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18848 Likewise.
18849 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18850 Likewise.
18851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18852 Likewise.
18853 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18854 Likewise.
18855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18856 Likewise.
18857 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18858 Likewise.
18859 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18860 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18861 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18862 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18863 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18864 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18865 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18866 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18867 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18868 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18869 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18870 Likewise.
18871 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18872 Likewise.
18873 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18874 Likewise.
18875 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18876 Likewise.
18877 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18878 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18879 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18880 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18881 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18882 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18883 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18884 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18885
18886 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18887
18888 * bits/floatn-common.h: Include <bits/long-double.h>.
18889 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18890 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
18891 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18892 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
18893 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18894 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
18895 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18896 (__builtin_huge_valf64): Use __builtin_huge_vall.
18897 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18898 (__builtin_inff64): Use __builtin_infl.
18899 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18900 (__builtin_nanf64): Use __builtin_nanl.
18901 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18902 (__builtin_nansf64): Use __builtin_nansl.
18903
18904 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
18905 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
18906 Carlos O'Donnell <carlos@redhat.com>
18907
18908 * elf/dl-tunables.list: Add elision parameters.
18909 * manual/tunables.texi: Add entries about elision tunable.
18910 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
18911 Add callback functions to dynamically enable/disable elision.
18912 Add multiple callbacks functions to set elision parameters.
18913 Deleted __libc_enable_secure check.
18914 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
18915 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
18916 * configure: Regenerated.
18917 * configure.ac: Option enable_lock_elision was deleted.
18918 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
18919 * config.make.in: Remove references to enable_lock_elision.
18920 * manual/install.texi: Elision configure option was removed.
18921 * INSTALL: Regenerated to remove enable_lock_elision.
18922 * nptl/Makefile:
18923 Disable elision so it can verify error case for destroying a mutex.
18924 * sysdeps/powerpc/nptl/elide.h:
18925 Cleanup ENABLE_LOCK_ELISION check.
18926 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
18927 * sysdeps/s390/configure: Regenerated.
18928 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
18929 * nptl/tst-mutex8.c:
18930 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
18931 * sysdeps/powerpc/powerpc32/sysdep.h:
18932 Deleted all ENABLE_LOCK_ELISION checks.
18933 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
18934 * sysdeps/powerpc/sysdep.h: Likewise.
18935 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
18936 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
18937 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
18938 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
18939 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
18940 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
18941 enable-lock-elision.
18942
18943 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18944
18945 * stdlib/strtod.c: Include <bits/floatn.h>.
18946 (BUILD_DOUBLE): New macro.
18947 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18948 (strtof64): Define and later undefine as macro. Define as weak
18949 alias if [!USE_WIDE_CHAR].
18950 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18951 (wcstof64): Define and later undefine as macro. Define as weak
18952 alias if [USE_WIDE_CHAR].
18953 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18954 (strtof32x): Define and later undefine as macro. Define as weak
18955 alias if [!USE_WIDE_CHAR].
18956 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18957 (wcstof32x): Define and later undefine as macro. Define as weak
18958 alias if [USE_WIDE_CHAR].
18959 * stdlib/strtod_l.c: Include <bits/floatn.h>.
18960 (BUILD_DOUBLE): New macro.
18961 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18962 (strtof64_l): Define and later undefine as macro. Define as weak
18963 alias if [!USE_WIDE_CHAR].
18964 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18965 (wcstof64_l): Define and later undefine as macro. Define as weak
18966 alias if [USE_WIDE_CHAR].
18967 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18968 (strtof32x_l): Define and later undefine as macro. Define as weak
18969 alias if [!USE_WIDE_CHAR].
18970 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18971 (wcstof32x_l): Define and later undefine as macro. Define as weak
18972 alias if [USE_WIDE_CHAR].
18973
18974 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18975
18976 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
18977 (reduced): Use ones as double instead of integer.
18978
18979 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
18980
18981 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
18982
18983 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18984
18985 * stdlib/strfromd.c: Include <bits/floatn.h>.
18986 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
18987 and later undefine as macro and define as weak alias.
18988 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
18989 Likewise.
18990
18991 * math/test-float32x.h: New file.
18992 * math/test-float64.h: Likewise.
18993
18994 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
18995 (libm_alias_double_other_r_f64): New macro.
18996 (libm_alias_double_other_r_f32x): Likewise.
18997 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
18998 libm_alias_double_other_r_f32x.
18999 (libm_alias_double_r): Use semicolon before call to
19000 libm_alias_double_other_r.
19001 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19002 <bits/floatn.h>.
19003 (libm_alias_double_other_r_f64): New macro.
19004 (libm_alias_double_other_r_f32x): Likewise.
19005 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19006 libm_alias_double_other_r_f32x.
19007
19008 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19009
19010 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19011 int.
19012 (SINF_FUNC): Likewise. Replace floor with simple casts.
19013
19014 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19015
19016 [BZ #22517]
19017 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19018 and to the list of locales to be built for testing.
19019 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19020 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19021 and build the collation rules upon that.
19022
19023 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19024
19025 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19026 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19027 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19028 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19029 instead of __insn__xxx.
19030 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19031 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19032 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19033 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19034 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19035 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19036
19037 2017-12-05 Florian Weimer <fweimer@redhat.com>
19038
19039 Linux: Implement interfaces for memory protection keys
19040 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19041 xsignal, xsysconf.
19042 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19043 * support/xunistd.h (xsysconf): Declare.
19044 * support/xraise.c: New file.
19045 * support/xsigaction.c: Likewise.
19046 * support/xsignal.c: Likewise.
19047 * support/xsysconf.c: Likewise.
19048 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19049 pkey_set, pkey_get, pkey_mprotect.
19050 [misc] (tests): Add tst-pkey.
19051 (tst-pkey): Link with -lpthread.
19052 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19053 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19054 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19055 (PKEY_DISABLE_WRITE): Define.
19056 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19057 Declare.
19058 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19059 (SEGV_PKUERR): Add.
19060 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19061 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19062 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19063 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19064 Add.
19065 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19066 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19067 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19068 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19069 * sysdeps/unix/sysv/linux/**.abilist: Update.
19070
19071 2017-12-05 Florian Weimer <fweimer@redhat.com>
19072
19073 * support/tst-test_compare.c (subprocess): Use long long instead
19074 of long argument for consistent type width across 32-bit and
19075 64-bit architectures.
19076 (do_test): Adjust expected output.
19077
19078 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19079
19080 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19081 (cosf): Define using libm_alias_float.
19082 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19083 (fabsf): Define using libm_alias_float.
19084 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19085 (fmaf): Define using libm_alias_float.
19086 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19087 (rintf): Define using libm_alias_float.
19088 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19089 (sinf): Define using libm_alias_float.
19090 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19091 <libm-alias-float.h>.
19092 (modff): Define using libm_alias_float.
19093 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19094 <libm-alias-float.h>.
19095 (logbf): Define using libm_alias_float.
19096 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19097 <libm-alias-float.h>.
19098 (ceilf): Define using libm_alias_float.
19099 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19100 <libm-alias-float.h>.
19101 (copysignf): Define using libm_alias_float.
19102 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19103 <libm-alias-float.h>.
19104 (floorf): Define using libm_alias_float.
19105 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19106 <libm-alias-float.h>.
19107 (llrintf): Define using libm_alias_float.
19108 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19109 <libm-alias-float.h>.
19110 (llroundf): Define using libm_alias_float.
19111 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19112 <libm-alias-float.h>.
19113 (lrintf): Define using libm_alias_float.
19114 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19115 <libm-alias-float.h>.
19116 (lroundf): Define using libm_alias_float.
19117 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19118 <libm-alias-float.h>.
19119 (nearbyintf): Define using libm_alias_float.
19120 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19121 <libm-alias-float.h>.
19122 (rintf): Define using libm_alias_float.
19123 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19124 <libm-alias-float.h>.
19125 (roundf): Define using libm_alias_float.
19126 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19127 <libm-alias-float.h>.
19128 (truncf): Define using libm_alias_float.
19129 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19130 Include <libm-alias-float.h>.
19131 (ceilf): Define using libm_alias_float.
19132 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19133 Include <libm-alias-float.h>.
19134 (copysignf): Define using libm_alias_float.
19135 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19136 Include <libm-alias-float.h>.
19137 (floorf): Define using libm_alias_float.
19138 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19139 Include <libm-alias-float.h>.
19140 (llrintf): Define using libm_alias_float.
19141 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19142 Include <libm-alias-float.h>.
19143 (llroundf): Define using libm_alias_float.
19144 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19145 Include <libm-alias-float.h>.
19146 (logbf): Define using libm_alias_float.
19147 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19148 Include <libm-alias-float.h>.
19149 (lrintf): Define using libm_alias_float.
19150 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19151 Include <libm-alias-float.h>.
19152 (lroundf): Define using libm_alias_float.
19153 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19154 Include <libm-alias-float.h>.
19155 (modff): Define using libm_alias_float.
19156 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19157 Include <libm-alias-float.h>.
19158 (roundf): Define using libm_alias_float.
19159 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19160 Include <libm-alias-float.h>.
19161 (truncf): Define using libm_alias_float.
19162 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19163 <libm-alias-float.h>.
19164 (llrintf): Define using libm_alias_float.
19165 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19166 <libm-alias-float.h>.
19167 (llroundf): Define using libm_alias_float.
19168 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19169 <libm-alias-float.h>.
19170 (ceilf): Define using libm_alias_float.
19171 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19172 <libm-alias-float.h>.
19173 (floorf): Define using libm_alias_float.
19174 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19175 <libm-alias-float.h>.
19176 (llroundf): Define using libm_alias_float.
19177 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19178 <libm-alias-float.h>.
19179 (lroundf): Define using libm_alias_float.
19180 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19181 <libm-alias-float.h>.
19182 (roundf): Define using libm_alias_float.
19183 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19184 <libm-alias-float.h>.
19185 (truncf): Define using libm_alias_float.
19186 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19187 <libm-alias-float.h>.
19188 (copysignf): Define using libm_alias_float.
19189 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19190 <libm-alias-float.h>.
19191 (llrintf): Define using libm_alias_float.
19192 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19193 <libm-alias-float.h>.
19194 (llroundf): Define using libm_alias_float.
19195 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19196 <libm-alias-float.h>.
19197 (lrintf): Define using libm_alias_float.
19198 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19199 <libm-alias-float.h>.
19200 (lroundf): Define using libm_alias_float.
19201 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19202 <libm-alias-float.h>.
19203 (ceilf): Define using libm_alias_float.
19204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19205 <libm-alias-float.h>.
19206 (copysignf): Define using libm_alias_float.
19207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19208 <libm-alias-float.h>.
19209 (cosf): Define using libm_alias_float.
19210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19211 <libm-alias-float.h>.
19212 (floorf): Define using libm_alias_float.
19213 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19214 <libm-alias-float.h>.
19215 (llrintf): Define using libm_alias_float.
19216 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19217 <libm-alias-float.h>.
19218 (llroundf): Define using libm_alias_float.
19219 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19220 <libm-alias-float.h>.
19221 (logbf): Define using libm_alias_float.
19222 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19223 <libm-alias-float.h>.
19224 (modff): Define using libm_alias_float.
19225 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19226 <libm-alias-float.h>.
19227 (roundf): Define using libm_alias_float.
19228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19229 <libm-alias-float.h>.
19230 (sinf): Define using libm_alias_float.
19231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19232 <libm-alias-float.h>.
19233 (truncf): Define using libm_alias_float.
19234 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19235 <libm-alias-float.h>.
19236 (ceilf): Define using libm_alias_float.
19237 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19238 <libm-alias-float.h>.
19239 (copysignf): Define using libm_alias_float.
19240 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19241 <libm-alias-float.h>.
19242 (floorf): Define using libm_alias_float.
19243 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19244 <libm-alias-float.h>.
19245 (llrintf): Define using libm_alias_float.
19246 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19247 <libm-alias-float.h>.
19248 (llroundf): Define using libm_alias_float.
19249 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19250 <libm-alias-float.h>.
19251 (nearbyintf): Define using libm_alias_float.
19252 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19253 <libm-alias-float.h>.
19254 (rintf): Define using libm_alias_float.
19255 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19256 <libm-alias-float.h>.
19257 (roundf): Define using libm_alias_float.
19258 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19259 <libm-alias-float.h>.
19260 (truncf): Define using libm_alias_float.
19261 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19262 <libm-alias-float.h>.
19263 (ceilf): Define using libm_alias_float.
19264 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19265 <libm-alias-float.h>.
19266 (floorf): Define using libm_alias_float.
19267 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19268 <libm-alias-float.h>.
19269 (llroundf): Define using libm_alias_float.
19270 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19271 <libm-alias-float.h>.
19272 (roundf): Define using libm_alias_float.
19273 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19274 <libm-alias-float.h>.
19275 (truncf): Define using libm_alias_float.
19276 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19277 <libm-alias-float.h>.
19278 (copysignf): Define using libm_alias_float.
19279 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19280 <libm-alias-float.h>.
19281 (llrintf): Define using libm_alias_float.
19282 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19283 <libm-alias-float.h>.
19284 (llroundf): Define using libm_alias_float.
19285 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19286 <libm-alias-float.h>.
19287 (cosf): Define using libm_alias_float.
19288 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19289 <libm-alias-float.h>.
19290 (llrintf): Define using libm_alias_float.
19291 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19292 <libm-alias-float.h>.
19293 (llroundf): Define using libm_alias_float.
19294 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19295 <libm-alias-float.h>.
19296 (sinf): Define using libm_alias_float.
19297
19298 2017-12-04 Florian Weimer <fweimer@redhat.com>
19299
19300 * support/check.h (TEST_COMPARE): Define.
19301 (support_test_compare_failure): Declare.
19302 * support/Makefile (libsupport-routines): Add
19303 support_test_compare_failure.
19304 (tests): Add tst-test_compare.
19305 * support /support_test_compare_failure.c: New file.
19306 * support/tst-test_compare.c: Likewise.
19307
19308 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19309
19310 [BZ #22527]
19311 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19312 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19313 available, this rewrite of the collation rules does reproduce
19314 the test file in the same order.
19315
19316 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19317
19318 [BZ #10580]
19319 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19320 digraphs in the month and day names. Using single code points for
19321 digraphs is deprecated. While there are dedicated Unicode
19322 codepoints, for the digraphs, these are included for backwards
19323 compatibility and modern texts use a sequence of Basic Latin
19324 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19325 This makes the month and day names agree exactly with CLDR now,
19326 CLDR does not use the single code points for the digraphs either.
19327
19328 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19329
19330 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19331
19332 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19333
19334 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19335 of floor.
19336
19337 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19338
19339 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19340 Define only for libc.so.
19341
19342 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19343
19344 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19345 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19346 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19347 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19348 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19349
19350 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19351
19352 [BZ #5997]
19353 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19354
19355 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19356
19357 [BZ libc/19170]
19358 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19359 PREINIT_FUNCTION_WEAK is nonzero.
19360 (gmon_initializer): New function. Put procedure label for it in
19361 .init_array section.
19362 (_init): Don't call PREINIT_FUNCTION.
19363 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19364 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19365 value when map argument is null.
19366
19367 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19368 depi instruction from PIC pc-relative sequence.
19369 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19370 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19371 (elf_machine_load_address): Likewise.
19372 (elf_machine_runtime_setup): Likewise.
19373
19374 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19375
19376 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19377 <libm-alias-double.h>.
19378 (logb): Define using libm_alias_double.
19379 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19380 <libm-alias-double.h>.
19381 (copysign): Define using libm_alias_double.
19382 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19383 <libm-alias-double.h>.
19384 (llrint): Define using libm_alias_double.
19385 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19386 <libm-alias-double.h>.
19387 (llround): Define using libm_alias_double.
19388 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19389 <libm-alias-double.h>.
19390 (lrint): Define using libm_alias_double.
19391 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19392 <libm-alias-double.h>.
19393 (lround): Define using libm_alias_double.
19394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19395 Include <libm-alias-double.h>.
19396 (copysign): Define using libm_alias_double.
19397 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19398 Include <libm-alias-double.h>.
19399 (llrint): Define using libm_alias_double.
19400 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19401 Include <libm-alias-double.h>.
19402 (llround): Define using libm_alias_double.
19403 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19404 <libm-alias-double.h>.
19405 (logb): Define using libm_alias_double.
19406 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19407 Include <libm-alias-double.h>.
19408 (lrint): Define using libm_alias_double.
19409 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19410 Include <libm-alias-double.h>.
19411 (lround): Define using libm_alias_double.
19412 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19413 <libm-alias-double.h>.
19414 (llrint): Define using libm_alias_double.
19415 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19416 <libm-alias-double.h>.
19417 (llround): Define using libm_alias_double.
19418 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19419 <libm-alias-double.h>.
19420 (llround): Define using libm_alias_double.
19421 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19422 <libm-alias-double.h>.
19423 (lround): Define using libm_alias_double.
19424 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19425 <libm-alias-double.h>.
19426 (copysign): Define using libm_alias_double.
19427 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19428 <libm-alias-double.h>.
19429 (llrint): Define using libm_alias_double.
19430 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19431 <libm-alias-double.h>.
19432 (llround): Define using libm_alias_double.
19433 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19434 <libm-alias-double.h>.
19435 (lrint): Define using libm_alias_double.
19436 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19437 <libm-alias-double.h>.
19438 (lround): Define using libm_alias_double.
19439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19440 <libm-alias-double.h>.
19441 (copysign): Define using libm_alias_double.
19442 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19443 <libm-alias-double.h>.
19444 (llrint): Define using libm_alias_double.
19445 (lrint): Likewise.
19446 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19447 <libm-alias-double.h>.
19448 (llround): Define using libm_alias_double.
19449 (lround): Likewise.
19450 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19451 <libm-alias-double.h>.
19452 (logb): Define using libm_alias_double.
19453 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19454 <libm-alias-double.h>.
19455 (copysign): Define using libm_alias_double.
19456 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19457 <libm-alias-double.h>.
19458 (llrint): Define using libm_alias_double.
19459 (lrint): Likewise.
19460 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19461 <libm-alias-double.h>.
19462 (llround): Define using libm_alias_double.
19463 (lround): Likewise.
19464 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19465 <libm-alias-double.h>.
19466 (llround): Define using libm_alias_double.
19467 (lround): Likewise.
19468 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19469 <libm-alias-double.h>.
19470 (copysign): Define using libm_alias_double.
19471 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19472 <libm-alias-double.h>.
19473 (llrint): Define using libm_alias_double.
19474 (lrint): Likewise.
19475 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19476 <libm-alias-double.h>.
19477 (llround): Define using libm_alias_double.
19478 (lround): Likewise.
19479 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19480 <libm-alias-double.h>.
19481 (llrint): Define using libm_alias_double.
19482 (lrint): Likewise.
19483 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19484 <libm-alias-double.h>.
19485 (llround): Define using libm_alias_double.
19486 (lround): Likewise.
19487
19488 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19489
19490 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19491 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19492 compat symbol based on llround.
19493
19494 * sysdeps/powerpc/power7/fpu/s_logb.c
19495 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19496 symbol based on __logb, not on logb.
19497 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19498 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19499 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19500 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19501
19502 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19503 (rint): Define using libm_alias_double.
19504 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19505 <libm-alias-double.h>.
19506 (modf): Define using libm_alias_double.
19507 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19508 <libm-alias-double.h>.
19509 (ceil): Define using libm_alias_double.
19510 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19511 <libm-alias-double.h>.
19512 (floor): Define using libm_alias_double.
19513 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19514 <libm-alias-double.h>.
19515 (nearbyint): Define using libm_alias_double.
19516 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19517 <libm-alias-double.h>.
19518 (rint): Define using libm_alias_double.
19519 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19520 <libm-alias-double.h>.
19521 (round): Define using libm_alias_double.
19522 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19523 <libm-alias-double.h>.
19524 (trunc): Define using libm_alias_double.
19525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19526 <libm-alias-double.h>.
19527 (ceil): Define using libm_alias_double.
19528 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19529 Include <libm-alias-double.h>.
19530 (floor): Define using libm_alias_double.
19531 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19532 <libm-alias-double.h>.
19533 (modf): Define using libm_alias_double.
19534 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19535 Include <libm-alias-double.h>.
19536 (round): Define using libm_alias_double.
19537 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19538 Include <libm-alias-double.h>.
19539 (trunc): Define using libm_alias_double.
19540 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19541 <libm-alias-double.h>.
19542 (ceil): Define using libm_alias_double.
19543 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19544 <libm-alias-double.h>.
19545 (floor): Define using libm_alias_double.
19546 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19547 <libm-alias-double.h>.
19548 (round): Define using libm_alias_double.
19549 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19550 <libm-alias-double.h>.
19551 (trunc): Define using libm_alias_double.
19552 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19553 <libm-alias-double.h>.
19554 (ceil): Define using libm_alias_double.
19555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19556 <libm-alias-double.h>.
19557 (floor): Define using libm_alias_double.
19558 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19559 <libm-alias-double.h>.
19560 (modf): Define using libm_alias_double.
19561 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19562 <libm-alias-double.h>.
19563 (round): Define using libm_alias_double.
19564 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19565 <libm-alias-double.h>.
19566 (trunc): Define using libm_alias_double.
19567 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19568 <libm-alias-double.h>.
19569 (ceil): Define using libm_alias_double.
19570 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19571 <libm-alias-double.h>.
19572 (floor): Define using libm_alias_double.
19573 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19574 <libm-alias-double.h>.
19575 (nearbyint): Define using libm_alias_double.
19576 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19577 <libm-alias-double.h>.
19578 (rint): Define using libm_alias_double.
19579 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19580 <libm-alias-double.h>.
19581 (round): Define using libm_alias_double.
19582 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19583 <libm-alias-double.h>.
19584 (trunc): Define using libm_alias_double.
19585 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19586 <libm-alias-double.h>.
19587 (ceil): Define using libm_alias_double.
19588 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19589 <libm-alias-double.h>.
19590 (floor): Define using libm_alias_double.
19591 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19592 <libm-alias-double.h>.
19593 (round): Define using libm_alias_double.
19594 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19595 <libm-alias-double.h>.
19596 (trunc): Define using libm_alias_double.
19597
19598 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19599 (fabs): Define using libm_alias_double.
19600 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19601 (fma): Define using libm_alias_double.
19602 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19603 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19604 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19605 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19606
19607 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19608
19609 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19610
19611 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19612 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19613 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19614
19615 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19616 due redirect macro.
19617
19618 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19619
19620 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19621
19622 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19623
19624 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19625 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19626 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19627 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19628
19629 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19630 (libm-sysdep_routines): Add s_nearbyintf-generic and
19631 s_nearbyint-generic.
19632 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19633 New file.
19634 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19635 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19636 Likewise.
19637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19638 Likewise.
19639 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19640 file.
19641 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19642 Likewise.
19643
19644 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19645 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19646 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19647 file.
19648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19649 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19650 Likewise.
19651 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19652 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19653 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19654
19655 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19656 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19657 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19658 file.
19659 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19660 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19661 Likewise.
19662 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19663 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19664 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19665
19666 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19667 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19668 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19669 file.
19670 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19671 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19672 Likewise.
19673 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19675 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19676
19677 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19678 (sysdep_calls): New rule.
19679 (sysdep_routines): Use sysdep_calls as base.
19680 (libm-sysdep_routines): Add generic rule for symbols shared with
19681 libc. Add s_copysign-generic and s_copysign-generic objects.
19682 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19683 New file.
19684 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19685 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19686 Likewise.
19687 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19688 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19689 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19690
19691 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19692
19693 [BZ #22519]
19694 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19695 the list of locales to be built for testing.
19696 * localedata/is_IS.UTF-8.in: New file.
19697 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19698 on iso14651_t1.
19699
19700 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19701
19702 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19703 <libm-alias-float.h>.
19704 (fabsf): Define using libm_alias_float.
19705
19706 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19707
19708 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19709
19710 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19711
19712 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19713 <libm-alias-float.h>.
19714 (fabsf): Define using libm_alias_float.
19715 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19716 <libm-alias-float.h>.
19717 (lrintf): Define using libm_alias_float.
19718 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19719 <libm-alias-float.h>.
19720 (rintf): Define using libm_alias_float.
19721
19722 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19723 <libm-alias-double.h>.
19724 (fabs): Define using libm_alias_double.
19725 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19726 <libm-alias-double.h>.
19727 (lrint): Define using libm_alias_double.
19728 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19729 <libm-alias-double.h>.
19730 (rint): Define using libm_alias_double.
19731
19732 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19733 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19734 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19735 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19736 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19737 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19738 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19739 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19740 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19741 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19742 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19743 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19744 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19745 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19746 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19747 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19748 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19749 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19750 s_atan_template.c.
19751 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19752 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19753 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19754 s_ceil_template.c.
19755 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19756 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19757 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19758 s_cos_template.c.
19759 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19760 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19761 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19762 s_expm1_template.c.
19763 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19764 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19765 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19766 s_fabs_template.c.
19767 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19768 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19769 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19770 s_floor_template.c.
19771 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19772 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19773 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19774 s_frexp_template.c.
19775 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19776 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19777 s_lrint_template.c.
19778 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19779 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19780 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19781 s_modf_template.c.
19782 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19783 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19784 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19785 s_nearbyint_template.c.
19786 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19787 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19788 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19789 s_remquo_template.c.
19790 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19791 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19792 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19793 s_rint_template.c.
19794 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19795 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19796 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19797 s_sin_template.c.
19798 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19799 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19800 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19801 s_sincos_template.c.
19802 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19803 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19804 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19805 s_tan_template.c.
19806 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19807 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19808 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19809 s_tanh_template.c.
19810 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19811 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19812 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19813 s_trunc_template.c.
19814 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19815 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19816 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19817 s_atan.c instead of including s_atan.c.
19818 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19819 s_atanf.c instead of including s_atanf.c.
19820 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19821 s_atanl.c instead of including s_atanl.c.
19822 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19823 instead of s_atan.c.
19824 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19825 instead of s_atanf.c.
19826 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19827 instead of s_atanl.c.
19828
19829 * scripts/update-copyrights: Do not handle intl/plural.c
19830 specially.
19831
19832 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19833
19834 [BZ #22432]
19835 * configure.ac (BISON): Require to be present.
19836 * configure: Regenerated.
19837 * intl/Makefile (generated): Add plural.c.
19838 [$(BISON) != no]: Make code unconditional.
19839 (plural.c): Change rule to $(objpfx)plural.c.
19840 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19841 * intl/plural.c: Remove.
19842 * manual/install.texi (Tools for Compilation): Document bison as
19843 required.
19844 * INSTALL: Regenerated.
19845
19846 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19847
19848 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19849 <libm-alias-double.h>.
19850 (llrint): Define using libm_alias_double.
19851 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19852 <libm-alias-float.h>.
19853 (llrintf): Define using libm_alias_float.
19854 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19855 <libm-alias-ldouble.h>.
19856 (llrintl): Define using libm_alias_ldouble.
19857
19858 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19859 declare_mgen_alias instead of weak_alias.
19860 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19861 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19862 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19863
19864 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19865
19866 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19867 Add add_n-generic.
19868 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
19869 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
19870 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
19871
19872 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19873 Add submul_1-generic.
19874 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
19875 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
19876 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
19877
19878 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19879 Add addmul_1-generic.
19880 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
19881 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
19882 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
19883
19884 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19885 Add sub_n-generic.
19886 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
19887 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
19888 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
19889
19890 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19891 Add mul_1-generic.
19892 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
19893 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
19894 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
19895
19896 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19897
19898 According to CLDR, collation rules for Serbian and Bosnian
19899 should be the same as for Croatian.
19900
19901 [BZ #22534]
19902 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
19903 and to the list of locales to be built for testing.
19904 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19905 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19906 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
19907 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
19908
19909 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19910
19911 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
19912 to make test case pass.
19913 * localedata/hr_HR.UTF-8.in: Add more test strings.
19914
19915 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19916
19917 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
19918
19919 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19920
19921 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
19922 the list of locales to built for testing.
19923 * localedata/hr_HR.UTF-8.in: New file.
19924
19925 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19926
19927 [BZ #10580]
19928 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
19929 iso14651_t1.
19930 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
19931 CLDR (except use ligatures for the digraphs, CLDR does not use
19932 the ligatures), add first_workday, some fixes in the date and time
19933 formats.
19934 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
19935 for Đ and đ.
19936 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
19937 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
19938 Add int_p_cs_precedes and int_n_cs_precedes.
19939 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
19940 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
19941 LC_MONETARY now).
19942 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
19943 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
19944 name_miss.
19945 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
19946 and lang_lib. Change postal_fmt.
19947
19948 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19949
19950 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
19951 <setjmp.h>.
19952 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
19953 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
19954 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
19955 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
19956 * sysdeps/generic/setjmpP.h: New file.
19957 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
19958 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
19959 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
19960 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
19961 Add jmp_buf-ssp.sym.
19962 (tests): Add tst-saved_mask-1.
19963
19964 2017-11-30 Arjun Shankar <arjun@redhat.com>
19965
19966 [BZ #22375]
19967 CVE-2017-17426
19968 * malloc/malloc.c (__libc_malloc): Use checked_request2size
19969 instead of request2size.
19970
19971 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19972
19973 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
19974 (__lllrint): Remove alias.
19975 (lllrint): Likewise.
19976 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
19977 (__lllrintf): Likewise.
19978 (lllrintf): Likewise.
19979
19980 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
19981 <libm-alias-float.h>.
19982 (copysignf): Define using libm_alias_float.
19983 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
19984 <libm-alias-float.h>.
19985 (fabsf): Define using libm_alias_float.
19986 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
19987 Include <libm-alias-float.h>.
19988 (copysignf): Define using libm_alias_float.
19989 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
19990 <libm-alias-float.h>.
19991 (fabsf): Define using libm_alias_float.
19992 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
19993 <libm-alias-float.h>.
19994 (fdimf): Define using libm_alias_float.
19995 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
19996 <libm-alias-float.h>.
19997 (fmaf): Define using libm_alias_float.
19998 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
19999 <libm-alias-float.h>.
20000 (llrintf): Define using libm_alias_float.
20001 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20002 Include <libm-alias-float.h>.
20003 (nearbyintf): Define using libm_alias_float.
20004 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20005 <libm-alias-float.h>.
20006 (rintf): Define using libm_alias_float.
20007 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20008 <libm-alias-float.h>.
20009 (llrintf): Define using libm_alias_float.
20010 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20011 <libm-alias-float.h>.
20012 (lrintf): Define using libm_alias_float.
20013 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20014 <libm-alias-float.h>.
20015 (nearbyintf): Define using libm_alias_float.
20016 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20017 <libm-alias-float.h>.
20018 (rintf): Define using libm_alias_float.
20019 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20020 <libm-alias-float.h>.
20021 (ceilf): Define using libm_alias_float.
20022 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20023 <libm-alias-float.h>.
20024 (floorf): Define using libm_alias_float.
20025 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20026 <libm-alias-float.h>.
20027 (fmaf): Define using libm_alias_float.
20028 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20029 <libm-alias-float.h>.
20030 (lrintf): Define using libm_alias_float.
20031 (llrintf): Likewise.
20032 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20033 <libm-alias-float.h>.
20034 (nearbyintf): Define using libm_alias_float.
20035 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20036 <libm-alias-float.h>.
20037 (rintf): Define using libm_alias_float.
20038 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20039 <libm-alias-float.h>.
20040 (truncf): Define using libm_alias_float.
20041 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20042 <libm-alias-float.h>.
20043 (copysignf): Define using libm_alias_float.
20044 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20045 <libm-alias-float.h>.
20046 (fabsf): Define using libm_alias_float.
20047 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20048 <libm-alias-float.h>.
20049 (lrintf): Define using libm_alias_float.
20050 (llrintf): Likewise.
20051 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20052 <libm-alias-float.h>.
20053 (nearbyintf): Define using libm_alias_float.
20054 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20055 <libm-alias-float.h>.
20056 (rintf): Define using libm_alias_float.
20057
20058 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20059
20060 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20061 <libm-alias-double.h>.
20062 (copysign): Define using libm_alias_double.
20063 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20064 <libm-alias-double.h>.
20065 (fabs): Define using libm_alias_double.
20066 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20067 Include <libm-alias-double.h>.
20068 (copysign): Define using libm_alias_double.
20069 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20070 <libm-alias-double.h>.
20071 (fabs): Define using libm_alias_double.
20072 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20073 <libm-alias-double.h>.
20074 (fdim): Define using libm_alias_double.
20075 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20076 <libm-alias-double.h>.
20077 (fma): Define using libm_alias_double.
20078 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20079 <libm-alias-double.h>.
20080 (llrint): Define using libm_alias_double.
20081 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20082 Include <libm-alias-double.h>.
20083 (nearbyint): Define using libm_alias_double.
20084 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20085 <libm-alias-double.h>.
20086 (rint): Define using libm_alias_double.
20087 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20088 <libm-alias-double.h>.
20089 (fabs): Define using libm_alias_double.
20090 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20091 <libm-alias-double.h>.
20092 (llrint): Define using libm_alias_double.
20093 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20094 <libm-alias-double.h>.
20095 (nearbyint): Define using libm_alias_double.
20096 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20097 <libm-alias-double.h>.
20098 (rint): Define using libm_alias_double.
20099 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20100 <libm-alias-double.h>.
20101 (ceil): Define using libm_alias_double.
20102 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20103 <libm-alias-double.h>.
20104 (floor): Define using libm_alias_double.
20105 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20106 <libm-alias-double.h>.
20107 (fma): Define using libm_alias_double.
20108 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20109 <libm-alias-double.h>.
20110 (lrint): Define using libm_alias_double.
20111 (llrint): Likewise.
20112 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20113 <libm-alias-double.h>.
20114 (nearbyint): Define using libm_alias_double.
20115 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20116 <libm-alias-double.h>.
20117 (rint): Define using libm_alias_double.
20118 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20119 <libm-alias-double.h>.
20120 (trunc): Define using libm_alias_double.
20121 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20122 <libm-alias-double.h>.
20123 (copysign): Define using libm_alias_double.
20124 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20125 <libm-alias-double.h>.
20126 (fabs): Define using libm_alias_double.
20127 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20128 <libm-alias-double.h>.
20129 (lrint): Define using libm_alias_double.
20130 (llrint): Likewise.
20131 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20132 <libm-alias-double.h>.
20133 (nearbyint): Define using libm_alias_double.
20134 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20135 <libm-alias-double.h>.
20136 (rint): Define using libm_alias_double.
20137
20138 [BZ #22229]
20139 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20140 <math_ldbl_opt.h>.
20141 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20142
20143 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20144 SPARC --disable-multi-arch glibc variants.
20145
20146 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20147 <libm-alias-float.h>.
20148 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20149 if [SHARED].
20150 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20151 <libm-alias-float.h>.
20152 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20153 if [SHARED].
20154 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20155 <libm-alias-float.h>.
20156 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20157 if [SHARED].
20158 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20159 <libm-alias-float.h>.
20160 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20161 if [SHARED].
20162 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20163 <libm-alias-float.h>.
20164 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20165 if [SHARED].
20166 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20167 <libm-alias-float.h>.
20168 (ceilf): Define using libm_alias_float.
20169 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20170 <libm-alias-float.h>.
20171 (floorf): Define using libm_alias_float.
20172 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20173 <libm-alias-float.h>.
20174 (fmaf): Define using libm_alias_float.
20175 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20176 <libm-alias-float.h>.
20177 (nearbyintf): Define using libm_alias_float.
20178 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20179 <libm-alias-float.h>.
20180 (rintf): Define using libm_alias_float.
20181 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20182 <libm-alias-float.h>.
20183 (truncf): Define using libm_alias_float.
20184 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20185 (copysignf): Define using libm_alias_float.
20186 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20187 (cosf): Define using libm_alias_float.
20188 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20189 (fabsf): Define using libm_alias_float.
20190 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20191 (fmaxf): Define using libm_alias_float.
20192 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20193 (fminf): Define using libm_alias_float.
20194 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20195 (llrintf): Define using libm_alias_float.
20196 [!__ILP32__] (lrintf): Likewise.
20197 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20198 (sincosf): Define using libm_alias_float.
20199 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20200 (sinf): Define using libm_alias_float.
20201 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20202 (lrintf): Define using libm_alias_float.
20203
20204 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20205 <libm-alias-double.h>.
20206 (atan): Define using libm_alias_double.
20207 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20208 <libm-alias-double.h>.
20209 (ceil): Define using libm_alias_double.
20210 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20211 <libm-alias-double.h>.
20212 (floor): Define using libm_alias_double.
20213 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20214 <libm-alias-double.h>.
20215 (fma): Define using libm_alias_double.
20216 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20217 <libm-alias-double.h>.
20218 (nearbyint): Define using libm_alias_double.
20219 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20220 <libm-alias-double.h>.
20221 (rint): Define using libm_alias_double.
20222 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20223 <libm-alias-double.h>.
20224 (sin): Define using libm_alias_double.
20225 (cos): Likewise.
20226 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20227 <libm-alias-double.h>.
20228 (tan): Define using libm_alias_double.
20229 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20230 <libm-alias-double.h>.
20231 (trunc): Define using libm_alias_double.
20232 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20233 (copysign): Define using libm_alias_double.
20234 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20235 (fabs): Define using libm_alias_double.
20236 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20237 (fmax): Define using libm_alias_double.
20238 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20239 (fmin): Define using libm_alias_double.
20240 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20241 (llrint): Define using libm_alias_double.
20242 [!__ILP32__] (lrint): Likewise.
20243 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20244 (lrint): Define using libm_alias_double.
20245
20246 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20247
20248 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20249 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20250 objects.
20251 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20252 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20253 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20254 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20255 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20256 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20257
20258 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20259 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20260 objects.
20261 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20262 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20263 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20264 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20265 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20266 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20267
20268 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20269 (libm-sysdep_routines): Add s_nearbyint-generic and
20270 s_nearbyintf-generic objects.
20271 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20272 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20273 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20274 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20275 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20276 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20277
20278 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20279 Add s_finitef-generic and s_finite-generic objects.
20280 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20281 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20282 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20283 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20284 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20285 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20286
20287 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20288 Add s_isinff-generic and s_isinf-generic objects.
20289 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20290 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20291 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20292 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20293 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20294 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20295
20296 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20297 Add s_isnanf-generic and s_isnan-generic objects.
20298 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20299 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20300 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20301 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20302 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20303 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20304
20305 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20306 macro.
20307 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20308 rule.
20309 (sysdep_routines): Use sysdep_calls as base.
20310 (libm-sysdep_routines): Add generic rule for symbols shared with
20311 libc. Add s_signbit-generic and s_signbitf-generic objects.
20312 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20313 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20314 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20315 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20316 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20317 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20318
20319 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20320
20321 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20322 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20323 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20324 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20325 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20326 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20327 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20328 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20329 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20330 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20331 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20332 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20333 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20334 libm_alias_float_r.
20335 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20336 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20337 (logf): Likewise.
20338 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20339 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20340 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20341 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20342 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20343 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20344 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20345 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20346 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20347 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20348 libm_alias_float.
20349 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20350 (cosf): Likewise.
20351 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20352 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20353 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20354 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20355 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20356 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20357 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20358 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20359 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20360 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20361 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20362 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20363 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20364 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20365 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20366 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20367 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20368 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20369 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20370 libm_alias_float.
20371 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20372 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20373 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20374 * sysdeps/ia64/fpu/w_lgammaf_main.c
20375 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20376 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20377
20378 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20379 Alexandre Oliva <aoliva@redhat.com>
20380
20381 [BZ #17750]
20382 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20383 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20384 accents sorting.
20385 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20386 sorting.
20387 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20388 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20389 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20390 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20391 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20392 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20393 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20394 instead of “ifdef DIACRIT_BACKWARD”.
20395
20396 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20397
20398 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20399 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20400 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20401 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20402 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20403 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20404 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20405 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20406 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20407 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20408 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20409 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20410 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20411 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20412 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20413 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20414 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20415 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20416 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20417 ($(have-as-vis3) == yes): Remove conditional.
20418 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20419 Likewise.
20420 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20421 file.
20422 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20423 file.
20424 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20425 file.
20426 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20427 file.
20428 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20429 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20430 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20431 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20432 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20433 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20434 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20435 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20436
20437 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20438
20439 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20440 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20441 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20442 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20443 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20444 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20445 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20446 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20447 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20448 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20449 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20450 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20451 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20452 libm_alias_double_r.
20453 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20454 (log): Likewise.
20455 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20456 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20457 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20458 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20459 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20460 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20461 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20462 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20463 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20464 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20465 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20466 libm_alias_double.
20467 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20468 (cos): Likewise.
20469 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20470 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20471 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20472 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20473 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20474 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20475 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20476 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20477 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20478 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20479 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20480 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20481 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20482 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20483 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20484 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20485 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20486 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20487 libm_alias_double.
20488 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20489 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20490 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20491 * sysdeps/ia64/fpu/w_lgamma_main.c
20492 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20493 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20494
20495 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20496
20497 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20498 address of $global$ into %dp register earlier. Use pc-relative
20499 instruction sequence for PIC case.
20500
20501 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20502
20503 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20504 (asinhf): Define using libm_alias_float.
20505 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20506 (atanf): Define using libm_alias_float.
20507 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20508 (cbrtf): Define using libm_alias_float.
20509 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20510 (ceilf): Define using libm_alias_float.
20511 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20512 (copysignf): Define using libm_alias_float.
20513 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20514 (expm1f): Define using libm_alias_float.
20515 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20516 (fabsf): Define using libm_alias_float.
20517 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20518 (floorf): Define using libm_alias_float.
20519 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20520 (fmaxf): Define using libm_alias_float.
20521 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20522 (fminf): Define using libm_alias_float.
20523 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20524 (frexpf): Define using libm_alias_float.
20525 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20526 (llrintf): Define using libm_alias_float.
20527 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20528 (logbf): Define using libm_alias_float.
20529 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20530 (lrintf): Define using libm_alias_float.
20531 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20532 (nearbyintf): Define using libm_alias_float.
20533 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20534 (remquof): Define using libm_alias_float.
20535 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20536 (rintf): Define using libm_alias_float.
20537 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20538 (truncf): Define using libm_alias_float.
20539 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20540 <libm-alias-float.h>.
20541 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20542 if [SHARED].
20543 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20544 <libm-alias-float.h>.
20545 (expf): Define using libm_alias_float, or libm_alias_float_other
20546 if [SHARED].
20547 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20548 <libm-alias-float.h>.
20549 (log2f): Define using libm_alias_float, or libm_alias_float_other
20550 if [SHARED].
20551 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20552 <libm-alias-float.h>.
20553 (logf): Define using libm_alias_float, or libm_alias_float_other
20554 if [SHARED].
20555 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20556 <libm-alias-float.h>.
20557 (powf): Define using libm_alias_float, or libm_alias_float_other
20558 if [SHARED].
20559 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20560 <libm-alias-float.h>.
20561 (cosf): Define using libm_alias_float.
20562 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20563 <libm-alias-float.h>.
20564 (sincosf): Define using libm_alias_float.
20565 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20566 <libm-alias-float.h>.
20567 (sinf): Define using libm_alias_float.
20568 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20569 (fmaxf): Define using libm_alias_float.
20570 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20571 (fminf): Define using libm_alias_float.
20572 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20573 <libm-alias-float.h>.
20574 (fmaf): Define using libm_alias_float.
20575
20576 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20577 (asinh): Define using libm_alias_double.
20578 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20579 (atan): Define using libm_alias_double.
20580 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20581 (cbrt): Define using libm_alias_double.
20582 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20583 (ceil): Define using libm_alias_double.
20584 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20585 (copysign): Define using libm_alias_double.
20586 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20587 (expm1): Define using libm_alias_double.
20588 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20589 (fabs): Define using libm_alias_double.
20590 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20591 (fdim): Define using libm_alias_double.
20592 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20593 (floor): Define using libm_alias_double.
20594 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20595 (fmax): Define using libm_alias_double.
20596 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20597 (fmin): Define using libm_alias_double.
20598 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20599 (frexp): Define using libm_alias_double.
20600 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20601 (llrint): Define using libm_alias_double.
20602 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20603 (logb): Define using libm_alias_double.
20604 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20605 (lrint): Define using libm_alias_double.
20606 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20607 (nearbyint): Define using libm_alias_double.
20608 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20609 (remquo): Define using libm_alias_double.
20610 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20611 (rint): Define using libm_alias_double.
20612 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20613 (trunc): Define using libm_alias_double.
20614 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20615 (fmax): Define using libm_alias_double.
20616 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20617 (fmin): Define using libm_alias_double.
20618 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20619 (fma): Define using libm_alias_double.
20620
20621 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20622
20623 [BZ #22370]
20624 * elf/dl-hwcaps.c (ROUND): Removed.
20625 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20626 and ELF_NOTE_NEXT_OFFSET.
20627 * elf/dl-load.c (ROUND): Removed.
20628 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20629 * elf/readelflib.c (ROUND): Removed.
20630 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20631 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20632 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20633 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20634
20635 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20636
20637 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20638 [!__fmaf] (fmaf): Define using libm_alias_float.
20639
20640 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20641 [!__fma] (fma): Define using libm_alias_double.
20642 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20643
20644 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20645
20646 [BZ #22336]
20647 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20648 and implement the collation rules for cs from CLDR on top of that.
20649 * Makefile: Add cs_CZ.UTF-8 to test-input.
20650 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20651
20652 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20653
20654 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20655
20656 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20657 Icarus Sparry <icarus.w.sparry@intel.com>
20658
20659 * benchtests/Makefile:Add BENCHSET to allow subsets of
20660 benchmarks to be run.
20661 * benchtests/README: Add documentation for: Running subsets of
20662 benchmarks.
20663
20664 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20665
20666 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20667 range of tests names.
20668
20669 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20670 result from property and remove "max", min" and "mean" from
20671 required properties based on benchtests/bench-skeleton.c.
20672
20673 2017-11-28 Florian Weimer <fweimer@redhat.com>
20674
20675 [BZ #20826]
20676 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20677 due to Internet requirement.
20678 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20679 tst-getaddrinfo5.
20680 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20681
20682 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20683
20684 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20685 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20686 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20687 (sysdep_routines): Add memset-ultra1.
20688 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20689 file.
20690 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20691 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20692 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20693 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20694 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20695 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20696 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20697 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20698
20699 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20700 file.
20701 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20702 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20703 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20704 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20705 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20706 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20707 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20708 macro.
20709 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20710 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20711 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20712 (sysdep_routines): Add memcpy-ultra1.
20713 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20714 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20715
20716 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20717
20718 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20719 (cfloat_versions): Take function argument without trailing 'f'.
20720 Call libm_alias_float_other.
20721 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20722 * sysdeps/alpha/fpu/cargf.c: Likewise.
20723 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20724 * sysdeps/alpha/fpu/conjf.c: Likewise.
20725 * sysdeps/alpha/fpu/crealf.c: Likewise.
20726 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20727 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20728 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20729 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20730 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20731 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20732 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20733 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20734 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20735 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20736 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20737 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20738 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20739 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20740 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20741 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20742 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20743 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20744 (clog10f): Use libm_alias_float_other.
20745 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20746 (ceilf): Define using libm_alias_float.
20747 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20748 (copysignf): Define using libm_alias_float.
20749 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20750 (fabsf): Define using libm_alias_float.
20751 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20752 (floorf): Define using libm_alias_float.
20753 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20754 (fmaxf): Define using libm_alias_float.
20755 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20756 (fminf): Define using libm_alias_float.
20757 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20758 (lrintf): Define using libm_alias_float.
20759 (llrintf): Likewise.
20760 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20761 (lroundf): Define using libm_alias_float.
20762 (llroundf): Likewise.
20763 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20764 (rintf): Define using libm_alias_float.
20765 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20766 (truncf): Define using libm_alias_float.
20767
20768 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20769 (ceilf): Define using libm_alias_float.
20770 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20771 (floorf): Define using libm_alias_float.
20772 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20773 (fmaf): Define using libm_alias_float.
20774 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20775 (fmaxf): Define using libm_alias_float.
20776 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20777 (fminf): Define using libm_alias_float.
20778 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20779 (llrintf): Define using libm_alias_float.
20780 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20781 (llroundf): Define using libm_alias_float.
20782 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20783 (lrintf): Define using libm_alias_float.
20784 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20785 (lroundf): Define using libm_alias_float.
20786 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20787 <libm-alias-float.h>.
20788 (nearbyintf): Define using libm_alias_float.
20789 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20790 (rintf): Define using libm_alias_float.
20791 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20792 (roundf): Define using libm_alias_float.
20793 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20794 (truncf): Define using libm_alias_float.
20795
20796 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20797 (ceil): Define using libm_alias_double.
20798 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20799 (copysign): Define using libm_alias_double.
20800 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20801 (fabs): Define using libm_alias_double.
20802 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20803 (floor): Define using libm_alias_double.
20804 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20805 (fmax): Define using libm_alias_double.
20806 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20807 (fmin): Define using libm_alias_double.
20808 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20809 (lrint): Define using libm_alias_double.
20810 (llrint): Likewise.
20811 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20812 (lround): Define using libm_alias_double.
20813 (llround): Likewise.
20814 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20815 (rint): Define using libm_alias_double.
20816 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20817 (trunc): Define using libm_alias_double.
20818
20819 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20820 (libm_alias_double_r): Add semicolon after weak_alias call.
20821
20822 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20823
20824 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20825 (ceil): Define using libm_alias_double.
20826 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20827 (floor): Define using libm_alias_double.
20828 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20829 (fma): Define using libm_alias_double.
20830 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20831 (fmax): Define using libm_alias_double.
20832 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20833 (fmin): Define using libm_alias_double.
20834 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20835 (llrint): Define using libm_alias_double.
20836 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20837 (llround): Define using libm_alias_double.
20838 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20839 (lrint): Define using libm_alias_double.
20840 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20841 (lround): Define using libm_alias_double.
20842 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20843 (nearbyint): Define using libm_alias_double.
20844 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20845 (rint): Define using libm_alias_double.
20846 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20847 (round): Define using libm_alias_double.
20848 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20849 (trunc): Define using libm_alias_double.
20850
20851 2017-11-27 Florian Weimer <fweimer@redhat.com>
20852
20853 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20854 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20855 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20856 (tests): Add tst-mlock2.
20857 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20858 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20859 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20860 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20861 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20862 for mlock. Document mlock2.
20863
20864 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20865
20866 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
20867 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
20868 Likewise.
20869 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
20870 Likewise.
20871 * sysdeps/x86/Makeconfig: New file.
20872 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
20873 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20874 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
20875 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20876 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20877 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20878 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
20879 Likewise.
20880 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20881 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20882 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20883 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20884 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20885 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20886 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20887 * manual/math.texi (Mathematics): Document support for _Float64x.
20888 * math/Versions (GLIBC_2.27): Add _Float64x functions.
20889 * stdlib/Versions (GLIBC_2.27): Likewise.
20890 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20891 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20892 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20893 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20894 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20895 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20896 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20897 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20898 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20899 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20900 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20901 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20903 Likewise.
20904 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20905 Likewise.
20906 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20907 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20908 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20909 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20910 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20911 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20912 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20913 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20914 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20915 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20916 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20917 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20918 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20919 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20920
20921 2017-11-27 Andreas Schwab <schwab@suse.de>
20922
20923 * elf/Makefile (dl-routines): Add dl-sort-maps.
20924 * elf/dl-sort-maps.c: New file.
20925 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
20926 (_dl_sort_maps): Declare.
20927 * elf/dl-fini.c (_dl_sort_fini): Remove.
20928 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
20929 * elf/dl-close.c (_dl_close_worker): Likewise.
20930 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
20931 open-coding it.
20932 * elf/dl-open.c (dl_open_worker): Likewise.
20933
20934 2017-11-24 Joseph Myers <joseph@codesourcery.com>
20935
20936 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
20937 using libm_alias_float128.
20938 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
20939 Likewise.
20940 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
20941 Likewise.
20942 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
20943 (setpayloadsigf128): Likewise.
20944 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
20945 Likewise.
20946 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
20947 Likewise.
20948
20949 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
20950 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
20951 -mfloat128 to CFLAGS.
20952 ($(foreach
20953 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
20954 Likewise.
20955 (CFLAGS-libm-test-support-float64x.c): New variable.
20956 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
20957 $(f128-loader-link) to gnulib-tests.
20958
20959 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
20960 (libm_alias_float128_other_r): If
20961 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
20962 alias.
20963 (libm_alias_float128_r): Add semicolon after weak_alias call.
20964 * sysdeps/generic/libm-alias-ldouble.h
20965 (libm_alias_ldouble_other_r_f128): New macro.
20966 (libm_alias_ldouble_other_r_f64x): Likewise.
20967 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
20968 and libm_alias_ldouble_other_r_f64x.
20969 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
20970 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
20971 (libm_alias_ldouble_other_r_f128): New macro.
20972 (libm_alias_ldouble_other_r_f64x): Likewise.
20973 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
20974 and libm_alias_ldouble_other_r_f64x.
20975
20976 * stdlib/strfroml.c: Always include <stdlib.h>.
20977 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
20978 undefine as macro and define as weak alias.
20979 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
20980 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
20981 <stdlib.h>.
20982 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
20983 Define and later undefine as macro and define as weak alias.
20984
20985 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
20986 Define and later undefine as macro. Define as weak alias if
20987 [!USE_WIDE_CHAR].
20988 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
20989 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20990 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
20991 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
20992 Define and later undefine as macro. Define as weak alias if
20993 [!USE_WIDE_CHAR].
20994 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
20995 Define and later undefine as macro. Define as weak alias if
20996 [USE_WIDE_CHAR].
20997 * sysdeps/ieee754/float128/strtof128_l.c
20998 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
20999 Define and later undefine as macro. Define as weak alias if
21000 [!USE_WIDE_CHAR].
21001 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21002 Define and later undefine as macro. Define as weak alias if
21003 [USE_WIDE_CHAR].
21004 * sysdeps/ieee754/ldbl-128/strtold_l.c
21005 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21006 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21007 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21008 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21009 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21010 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21011 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21012 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21013 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21014 * sysdeps/ieee754/ldbl-96/strtold_l.c
21015 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21016 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21017 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21018 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21019
21020 * math/test-float64x.h: New file.
21021 * math/Makefile (type-float64x-yes): New variable.
21022 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21023
21024 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21025 function-like macro.
21026 (min_of_type_): Likewise.
21027 (min_of_type_l): Likewise.
21028 (min_of_type_f128): Likewise.
21029 (min_of_type): Pass () as last argument of __MATH_TG.
21030
21031 * stdlib/tst-strtod-round-skeleton.c
21032 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21033 headers.
21034
21035 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21036 for combinations of long double with _Float64 and _Float64x.
21037
21038 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21039 (__DECL_SIMD_cosf32): Likewise.
21040 (__DECL_SIMD_cosf64): Likewise.
21041 (__DECL_SIMD_cosf32x): Likewise.
21042 (__DECL_SIMD_cosf64x): Likewise.
21043 (__DECL_SIMD_cosf128x): Likewise.
21044 (__DECL_SIMD_sinf16): Likewise.
21045 (__DECL_SIMD_sinf32): Likewise.
21046 (__DECL_SIMD_sinf64): Likewise.
21047 (__DECL_SIMD_sinf32x): Likewise.
21048 (__DECL_SIMD_sinf64x): Likewise.
21049 (__DECL_SIMD_sinf128x): Likewise.
21050 (__DECL_SIMD_sincosf16): Likewise.
21051 (__DECL_SIMD_sincosf32): Likewise.
21052 (__DECL_SIMD_sincosf64): Likewise.
21053 (__DECL_SIMD_sincosf32x): Likewise.
21054 (__DECL_SIMD_sincosf64x): Likewise.
21055 (__DECL_SIMD_sincosf128x): Likewise.
21056 (__DECL_SIMD_logf16): Likewise.
21057 (__DECL_SIMD_logf32): Likewise.
21058 (__DECL_SIMD_logf64): Likewise.
21059 (__DECL_SIMD_logf32x): Likewise.
21060 (__DECL_SIMD_logf64x): Likewise.
21061 (__DECL_SIMD_logf128x): Likewise.
21062 (__DECL_SIMD_expf16): Likewise.
21063 (__DECL_SIMD_expf32): Likewise.
21064 (__DECL_SIMD_expf64): Likewise.
21065 (__DECL_SIMD_expf32x): Likewise.
21066 (__DECL_SIMD_expf64x): Likewise.
21067 (__DECL_SIMD_expf128x): Likewise.
21068 (__DECL_SIMD_powf16): Likewise.
21069 (__DECL_SIMD_powf32): Likewise.
21070 (__DECL_SIMD_powf64): Likewise.
21071 (__DECL_SIMD_powf32x): Likewise.
21072 (__DECL_SIMD_powf64x): Likewise.
21073 (__DECL_SIMD_powf128x): Likewise.
21074
21075 * stdlib/Versions (libc): Move entries for wcstof128 and
21076 wcstof128_l to ....
21077 * wcsmbs/Versions (libc): ... here.
21078 Include <float128-abi.h>.
21079
21080 2017-11-24 Florian Weimer <fweimer@redhat.com>
21081
21082 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21083 bits/mman-shared.h.
21084 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21085 <bits/mman-shared.h>.
21086 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21087 to ...
21088 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21089 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21090 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21091 <bits/mman-shared.h>.
21092
21093 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21094
21095 [BZ #22457]
21096 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21097 posix_memalign/free.
21098 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21099
21100 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21101
21102 [BZ #22469]
21103 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21104 and implement the collation rules for pl from CLDR on top of that.
21105 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21106 of locales to be built for testing.
21107 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21108
21109 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21110
21111 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21112 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21113 libm_alias_ldouble_other.
21114 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21115 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21116 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21117 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21118 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21119 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21120 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21121 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21122 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21123 libm_alias_ldouble_r.
21124 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21125 libm_alias_ldouble_other.
21126 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21127 (log10l): Likewise.
21128 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21129 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21130 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21131 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21132 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21133 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21134 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21135 (atan2l): Likewise.
21136 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21137 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21138 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21139 libm_alias_ldouble.
21140 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21141 (cosl): Likewise.
21142 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21143 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21144 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21145 (expl): Likewise.
21146 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21147 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21148 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21149 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21150 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21151 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21152 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21153 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21154 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21155 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21156 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21157 libm_alias_ldouble.
21158 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21159 libm_alias_ldouble_other.
21160 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21161 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21162 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21163 libm_alias_ldouble.
21164 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21165 libm_alias_ldouble_other.
21166 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21167 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21168 * sysdeps/ia64/fpu/w_lgammal_main.c
21169 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21170 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21171
21172 2017-11-23 Florian Weimer <fweimer@redhat.com>
21173
21174 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21175 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21176 alike. Remove freeres marker.
21177 * malloc/arena.c (arena_thread_freeres): Call
21178 tcache_thread_shutdown.
21179
21180 2017-11-23 Florian Weimer <fweimer@redhat.com>
21181
21182 [BZ #22459]
21183 Export nscd hash function as __nss_hash.
21184 * include/nss.h (__nss_hash): Declare.
21185 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21186 symbol.
21187 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21188 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21189 of __nscd_hash.
21190 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21191 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21192 * nss/Makefiles (routines): Add nss_hash.
21193 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21194 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21195 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21196 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21197
21198 2017-11-23 Florian Weimer <fweimer@redhat.com>
21199
21200 [BZ #22478]
21201 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21202 Return error code, not -1.
21203 * signal/tst-sigwait-eintr.c: New file.
21204 * signal/Makefile (tests): Add tst-sigwait-eintr.
21205
21206 2017-11-23 Florian Weimer <fweimer@redhat.com>
21207
21208 Linux: Add memfd_create system call wrapper
21209 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21210 tst-memfd_create.
21211 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21212 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21213 [__USE_GNU] (memfd_create): Declare.
21214 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21215 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21216 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21217 * sysdeps/unix/sysv/linux/**.abilist: Update.
21218 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21219
21220 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21221
21222 * localedata/gen-locale.sh: Fix typo in variable name.
21223
21224 * resolv/res_debug.c (p_secstodate): Condition definition on
21225 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21226 directly as __p_secstodate, and as a compat symbol. Do not use
21227 libresolv_hidden_def.
21228 * resolv/resolv.h (p_secstodate): Remove macro and function
21229 declaration.
21230 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21231 using p_secstodate.
21232 * include/resolv.h (__p_secstodate): Do not use
21233 libresolv_hidden_proto.
21234 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21235 (tests-internal): ... here.
21236 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21237 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21238 and declare and use __p_secstodate and use compat_symbol_reference
21239 in that case.
21240 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21241 implementation returning 77.
21242
21243 [BZ #22463]
21244 * resolv/res_debug.c: Include <libc-diag.h>.
21245 (p_secstodate): Assert time_t at least as wide as u_long. On
21246 overflow, use integer seconds since the epoch as output, or use
21247 "<overflow>" as output and set errno to EOVERFLOW if integer
21248 seconds since the epoch would be 14 or more characters.
21249 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21250 for sprintf call.
21251 * resolv/tst-p_secstodate.c: New file.
21252 * resolv/Makefile (tests): Add tst-p_secstodate.
21253 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21254
21255 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21256 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21257 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21258
21259 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21260
21261 * posix/regcomp.c (init_word_char): Add comments.
21262
21263 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21264
21265 [BZ #22447]
21266 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21267 strlen to compute length of ut_user and set trailing NUL byte of
21268 result explicitly.
21269
21270 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21271
21272 [BZ #15537]
21273 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21274 using “copy "iso14651_t1"” and then implementing the
21275 collation rules for lv from CLDR on top of that.
21276 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21277 of locales to be built for testing.
21278 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21279 sorting.
21280
21281 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21282
21283 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21284 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21285 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21286 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21287 [__USE_MISC] (MADV_HWPOISON): New macro.
21288 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21289
21290 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21291
21292 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21293 -Wmissing-braces on GCC 4.9.
21294
21295 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21296
21297 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21298 * sysdeps/s390/s390-32/start.S (_start): Likewise
21299 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21300 (thread_start): Likewise.
21301 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21302 (thread_start): Likewise.
21303 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21304 (__makecontext_ret): Likewise.
21305 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21306 (__makecontext_ret): Likewise.
21307
21308 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21309
21310 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21311 __wcschrnul): Remove attribute_hidden.
21312
21313 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21314
21315 regex: don't assume uint64_t or uint32_t
21316 This avoids -Werror=overflow errors for 32-bit systems in
21317 the 64-bit case. Problem reported by Joseph Myers in:
21318 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21319 Also, when this code is used in Gnulib it ports to platforms
21320 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21321 them, and on some 32-bit compilers there is no uint64_t.
21322 Problem reported by Gianluigi Tiesi in:
21323 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21324 * posix/regcomp.c (init_word_char): Don't assume that the types
21325 uint64_t and uint32_t exist. Adapted from Gnulib patch
21326 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21327 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21328
21329 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21330
21331 * sysdeps/aarch64/memset-reg.h: New file.
21332 * sysdeps/aarch64/memset.S: Use it.
21333 (__memset): Rename to MEMSET macro.
21334 [ZVA_MACRO]: Use zva_macro.
21335 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21336 Add memset_generic and memset_falkor.
21337 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21338 (__libc_ifunc_impl_list): Add memset ifuncs.
21339 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21340 local variable zva_size.
21341 * sysdeps/aarch64/multiarch/memset.c: New file.
21342 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21343 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21344 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21345 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21346 (DCZID_DZP_MASK): New macro.
21347 (DCZID_BS_MASK): Likewise.
21348 (init_cpu_features): Read and set zva_size.
21349 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21350 (struct cpu_features): New member zva_size.
21351
21352 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21353 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21354 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21355
21356 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21357 backwards. Fix timing computation.
21358 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21359 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21360 on memset by N at a time. Fix timing computation.
21361
21362 2017-11-20 Florian Weimer <fweimer@redhat.com>
21363
21364 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21365 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21366
21367 2017-11-19 Florian Weimer <fweimer@redhat.com>
21368
21369 manual: Document mprotect
21370 * manual/memory.texi (Memory Protection): New section.
21371 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21372 documentation of PROT_* flags and reference the Memory Protection
21373 section instead.
21374
21375 2017-11-19 Florian Weimer <fweimer@redhat.com>
21376
21377 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21378 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21379 (Scatter-Gather): ... to here. Remove misleading comment.
21380
21381 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21382
21383 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21384 style.
21385
21386 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21387 when /proc/<pid>/setgroups does not exist.
21388
21389 2017-11-18 Florian Weimer <fweimer@redhat.com>
21390
21391 * sysdeps/unix/sysv/linux/tst-ttyname.c
21392 (become_root_in_mount_ns): Remove.
21393 (do_in_chroot_1): Call support_enter_mount_namespace.
21394 (do_in_chroot_2): Likewise.
21395 (do_test): Call support_become_root early.
21396
21397 2017-11-18 Florian Weimer <fweimer@redhat.com>
21398
21399 * support/namespace.h (support_enter_mount_namespace): Declare.
21400 * support/support_enter_mount_namespace.c: New file.
21401 * support/Makefile (libsupport-routines): Add
21402 support_enter_mount_namespace.
21403
21404 2017-11-18 Florian Weimer <fweimer@redhat.com>
21405
21406 * support/temp_file.c (support_create_temp_directory): Use
21407 test_dir and do not rely on the presence of the XXXXXX suffix.
21408 * support/temp_file.h (support_create_temp_directory): Update
21409 comment.
21410 * support/tst-xreadlink.c (do_test): Adjust.
21411 * support/support_chroot.c (support_chroot_create): Likewise.
21412
21413 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21414
21415 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21416 macro.
21417 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21418 htm-no-suspend.
21419
21420 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21421
21422 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21423 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21424 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21425 (ceill): Define using libm_alias_ldouble.
21426 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21427 <libm-alias-ldouble.h>.
21428 (copysignl): Define using libm_alias_ldouble.
21429 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21430 (fabsl): Define using libm_alias_ldouble.
21431 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21432 (floorl): Define using libm_alias_ldouble.
21433 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21434 (fmaxl): Define using libm_alias_ldouble.
21435 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21436 (fminl): Define using libm_alias_ldouble.
21437 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21438 (llrintl): Define using libm_alias_ldouble.
21439 (lrintl): Likewise.
21440 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21441 <libm-alias-ldouble.h>.
21442 (nearbyintl): Define using libm_alias_ldouble.
21443 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21444 (truncl): Define using libm_alias_ldouble.
21445 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21446 <libm-alias-ldouble.h>.
21447 (lrintl): Define using libm_alias_ldouble.
21448
21449 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21450 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21451 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21452 (asinhl): Define using libm_alias_ldouble.
21453 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21454 (atanl): Define using libm_alias_ldouble.
21455 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21456 (cbrtl): Define using libm_alias_ldouble.
21457 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21458 (ceill): Define using libm_alias_ldouble.
21459 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21460 (copysignl): Define using libm_alias_ldouble.
21461 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21462 (fabsl): Define using libm_alias_ldouble.
21463 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21464 (floorl): Define using libm_alias_ldouble.
21465 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21466 (fmaxl): Define using libm_alias_ldouble.
21467 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21468 (fminl): Define using libm_alias_ldouble.
21469 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21470 (frexpl): Define using libm_alias_ldouble.
21471 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21472 (llrintl): Define using libm_alias_ldouble.
21473 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21474 (logbl): Define using libm_alias_ldouble.
21475 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21476 (lrintl): Define using libm_alias_ldouble.
21477 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21478 (nearbyintl): Define using libm_alias_ldouble.
21479 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21480 (nextafterl): Define using libm_alias_ldouble.
21481 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21482 (remquol): Define using libm_alias_ldouble.
21483 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21484 (rintl): Define using libm_alias_ldouble.
21485 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21486 (truncl): Define using libm_alias_ldouble.
21487 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21488 (fmaxl): Define using libm_alias_ldouble.
21489 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21490 (fminl): Define using libm_alias_ldouble.
21491
21492 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21493 to C syntax instead of availability and properties of types.
21494 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21495 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21496 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21497 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21498 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21499 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21500
21501 2017-11-17 Florian Weimer <fweimer@redhat.com>
21502
21503 support_become_root: Enable file creation in namespaces.
21504 * support/support_become_root.c (setup_mapping): New function.
21505 (support_become_root): Call it.
21506
21507 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21508
21509 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21510 macro.
21511
21512 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21513
21514 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21515 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21516
21517 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21518
21519 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21520
21521 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21522 version to 4.14.
21523
21524 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21525
21526 * INSTALL: Fix botched up regeneration.
21527
21528 * NEWS: Update sourceare link to https.
21529 * configure.ac: Likewise.
21530 * crypt/md5test-giant.c: Likewise.
21531 * dlfcn/bug-atexit1.c: Likewise.
21532 * dlfcn/bug-atexit2.c: Likewise.
21533 * localedata/README: Likewise.
21534 * malloc/tst-mallocfork.c: Likewise.
21535 * manual/install.texi: Likewise.
21536 * nptl/tst-pthread-getattr.c: Likewise.
21537 * stdio-common/tst-fgets.c: Likewise.
21538 * stdio-common/tst-fwrite.c: Likewise.
21539 * sunrpc/Makefile: Likewise.
21540 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21541 * wcsmbs/tst-mbrtowc2.c: Likewise.
21542 * configure: Regenerate.
21543 * INSTALL: Regenerate.
21544
21545 2017-11-15 Martin Sebor <msebor@redhat.com>
21546
21547 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21548 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21549 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21550
21551 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21552
21553 [BZ #22145]
21554 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21555 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21556
21557 [BZ #22145]
21558 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21559 Defer is_pty check until end of the function.
21560 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21561
21562 [BZ #22145]
21563 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21564 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21565 (ttyname): Likewise.
21566 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21567 (__ttyname_r): Likewise.
21568
21569 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21570 int to bool.
21571
21572 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21573
21574 * manual/terminal.texi (Is It a Terminal):
21575 Mention ENODEV for ttyname and ttyname_r.
21576
21577 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21578
21579 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21580 constant and macro.
21581
21582 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21583 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21584 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21585 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21586 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21587 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21588
21589 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21590
21591 * signal/sigrelse.c (sigrelse): Optimize implementation.
21592
21593 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21594 (__sigpause): Rely on __sigsuspend to implement single thread
21595 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21596
21597 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21598
21599 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21600 kernel version to 4.14.
21601
21602 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21603
21604 [BZ #22442]
21605 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21606 Check if ifname is too long.
21607
21608 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21609
21610 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21611
21612 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21613
21614 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21615 was accidentally lost.
21616
21617 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21618
21619 * localedata/locales/az_IR: Add standard copyright header.
21620
21621 2017-11-15 Florian Weimer <fweimer@redhat.com>
21622
21623 [BZ #22439]
21624 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21625 not just the top one. Output a new "subheaps" statistic.
21626
21627 2017-11-15 Florian Weimer <fweimer@redhat.com>
21628
21629 [BZ #22408]
21630 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21631 under the per-arena lock.
21632 * malloc/Makefile (tests): Add tst-malloc_info.
21633 (tst-malloc_info): Link with libpthread.
21634 * malloc/tst-malloc_info.c: New file.
21635
21636 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21637
21638 [BZ #21660]
21639 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21640 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21641 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21642 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21643 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21644 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21645 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21646 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21647 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21648 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21649 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21650 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21651 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21652 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21653 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21654 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21655 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21656 (__floating_type): Likewise.
21657 (__real_integer_type): Likewise.
21658 (__complex_integer_type): Likewise.
21659 (__expr_is_real): Likewise.
21660 (__tgmath_real_type_sub): Likewise.
21661 (__tgmath_real_type): Likewise.
21662 (__tgmath_complex_type_sub): Likewise.
21663 (__tgmath_complex_type): Likewise.
21664 (__TGMATH_F128): Likewise.
21665 (__TGMATH_CF128): Likewise.
21666 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21667 new macros.
21668 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21669 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21670 Likewise.
21671 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21672 Likewise.
21673 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21674 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21675 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21676 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21677 Likewise.
21678 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21679 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21680 Likewise.
21681 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21682 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21683 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21684 Likewise.
21685 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21686 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21687 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21688 (cimag): Likewise.
21689 (creal): Likewise.
21690
21691 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21692
21693 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21694 for stpncpy calls for GCC 8.
21695 (test_strncat): Disable -Wstringop-truncation warning for strncat
21696 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21697 strncat call for GCC 7.
21698 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21699 calls for GCC 8.
21700 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21701 trailing NUL.
21702
21703 * string/bug-strncat1.c: Include <libc-diag.h>.
21704 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21705
21706 2017-11-13 Claude Paroz <claude@2xlibre.net>
21707
21708 [BZ #22387]
21709 * localedata/locales/aa_DJ: Improved readibility by replacing
21710 <Uxxxx> sequences in the ASCII printable range by their ASCII
21711 character equivalents.
21712 * localedata/locales/aa_ER: Likewise.
21713 * localedata/locales/aa_ER@saaho: Likewise.
21714 * localedata/locales/aa_ET: Likewise.
21715 * localedata/locales/af_ZA: Likewise.
21716 * localedata/locales/agr_PE: Likewise.
21717 * localedata/locales/ak_GH: Likewise.
21718 * localedata/locales/am_ET: Likewise.
21719 * localedata/locales/anp_IN: Likewise.
21720 * localedata/locales/ar_AE: Likewise.
21721 * localedata/locales/ar_BH: Likewise.
21722 * localedata/locales/ar_DZ: Likewise.
21723 * localedata/locales/ar_EG: Likewise.
21724 * localedata/locales/ar_IN: Likewise.
21725 * localedata/locales/ar_IQ: Likewise.
21726 * localedata/locales/ar_JO: Likewise.
21727 * localedata/locales/ar_KW: Likewise.
21728 * localedata/locales/ar_LB: Likewise.
21729 * localedata/locales/ar_LY: Likewise.
21730 * localedata/locales/ar_MA: Likewise.
21731 * localedata/locales/ar_OM: Likewise.
21732 * localedata/locales/ar_QA: Likewise.
21733 * localedata/locales/ar_SA: Likewise.
21734 * localedata/locales/ar_SD: Likewise.
21735 * localedata/locales/ar_SS: Likewise.
21736 * localedata/locales/ar_SY: Likewise.
21737 * localedata/locales/ar_TN: Likewise.
21738 * localedata/locales/ar_YE: Likewise.
21739 * localedata/locales/as_IN: Likewise.
21740 * localedata/locales/ast_ES: Likewise.
21741 * localedata/locales/ayc_PE: Likewise.
21742 * localedata/locales/az_AZ: Likewise.
21743 * localedata/locales/az_IR: Likewise.
21744 * localedata/locales/be_BY: Likewise.
21745 * localedata/locales/be_BY@latin: Likewise.
21746 * localedata/locales/bem_ZM: Likewise.
21747 * localedata/locales/ber_DZ: Likewise.
21748 * localedata/locales/ber_MA: Likewise.
21749 * localedata/locales/bg_BG: Likewise.
21750 * localedata/locales/bhb_IN: Likewise.
21751 * localedata/locales/bho_IN: Likewise.
21752 * localedata/locales/bi_VU: Likewise.
21753 * localedata/locales/bn_BD: Likewise.
21754 * localedata/locales/bn_IN: Likewise.
21755 * localedata/locales/bo_CN: Likewise.
21756 * localedata/locales/bo_IN: Likewise.
21757 * localedata/locales/br_FR: Likewise.
21758 * localedata/locales/brx_IN: Likewise.
21759 * localedata/locales/bs_BA: Likewise.
21760 * localedata/locales/byn_ER: Likewise.
21761 * localedata/locales/ca_AD: Likewise.
21762 * localedata/locales/ca_ES: Likewise.
21763 * localedata/locales/ca_FR: Likewise.
21764 * localedata/locales/ca_IT: Likewise.
21765 * localedata/locales/ce_RU: Likewise.
21766 * localedata/locales/chr_US: Likewise.
21767 * localedata/locales/cmn_TW: Likewise.
21768 * localedata/locales/crh_UA: Likewise.
21769 * localedata/locales/cs_CZ: Likewise.
21770 * localedata/locales/csb_PL: Likewise.
21771 * localedata/locales/cv_RU: Likewise.
21772 * localedata/locales/cy_GB: Likewise.
21773 * localedata/locales/da_DK: Likewise.
21774 * localedata/locales/de_AT: Likewise.
21775 * localedata/locales/de_BE: Likewise.
21776 * localedata/locales/de_CH: Likewise.
21777 * localedata/locales/de_DE: Likewise.
21778 * localedata/locales/de_IT: Likewise.
21779 * localedata/locales/de_LI: Likewise.
21780 * localedata/locales/de_LU: Likewise.
21781 * localedata/locales/doi_IN: Likewise.
21782 * localedata/locales/dv_MV: Likewise.
21783 * localedata/locales/dz_BT: Likewise.
21784 * localedata/locales/el_CY: Likewise.
21785 * localedata/locales/el_GR: Likewise.
21786 * localedata/locales/en_AG: Likewise.
21787 * localedata/locales/en_AU: Likewise.
21788 * localedata/locales/en_BW: Likewise.
21789 * localedata/locales/en_CA: Likewise.
21790 * localedata/locales/en_DK: Likewise.
21791 * localedata/locales/en_GB: Likewise.
21792 * localedata/locales/en_HK: Likewise.
21793 * localedata/locales/en_IE: Likewise.
21794 * localedata/locales/en_IL: Likewise.
21795 * localedata/locales/en_IN: Likewise.
21796 * localedata/locales/en_NG: Likewise.
21797 * localedata/locales/en_NZ: Likewise.
21798 * localedata/locales/en_PH: Likewise.
21799 * localedata/locales/en_SG: Likewise.
21800 * localedata/locales/en_US: Likewise.
21801 * localedata/locales/en_ZA: Likewise.
21802 * localedata/locales/en_ZM: Likewise.
21803 * localedata/locales/en_ZW: Likewise.
21804 * localedata/locales/eo: Likewise.
21805 * localedata/locales/es_AR: Likewise.
21806 * localedata/locales/es_BO: Likewise.
21807 * localedata/locales/es_CL: Likewise.
21808 * localedata/locales/es_CO: Likewise.
21809 * localedata/locales/es_CR: Likewise.
21810 * localedata/locales/es_CU: Likewise.
21811 * localedata/locales/es_DO: Likewise.
21812 * localedata/locales/es_EC: Likewise.
21813 * localedata/locales/es_ES: Likewise.
21814 * localedata/locales/es_GT: Likewise.
21815 * localedata/locales/es_HN: Likewise.
21816 * localedata/locales/es_MX: Likewise.
21817 * localedata/locales/es_NI: Likewise.
21818 * localedata/locales/es_PA: Likewise.
21819 * localedata/locales/es_PE: Likewise.
21820 * localedata/locales/es_PR: Likewise.
21821 * localedata/locales/es_PY: Likewise.
21822 * localedata/locales/es_SV: Likewise.
21823 * localedata/locales/es_US: Likewise.
21824 * localedata/locales/es_UY: Likewise.
21825 * localedata/locales/es_VE: Likewise.
21826 * localedata/locales/et_EE: Likewise.
21827 * localedata/locales/eu_ES: Likewise.
21828 * localedata/locales/eu_ES@euro: Likewise.
21829 * localedata/locales/fa_IR: Likewise.
21830 * localedata/locales/ff_SN: Likewise.
21831 * localedata/locales/fi_FI: Likewise.
21832 * localedata/locales/fil_PH: Likewise.
21833 * localedata/locales/fo_FO: Likewise.
21834 * localedata/locales/fr_BE: Likewise.
21835 * localedata/locales/fr_CA: Likewise.
21836 * localedata/locales/fr_CH: Likewise.
21837 * localedata/locales/fr_FR: Likewise.
21838 * localedata/locales/fr_LU: Likewise.
21839 * localedata/locales/fur_IT: Likewise.
21840 * localedata/locales/fy_DE: Likewise.
21841 * localedata/locales/fy_NL: Likewise.
21842 * localedata/locales/ga_IE: Likewise.
21843 * localedata/locales/gd_GB: Likewise.
21844 * localedata/locales/gez_ER: Likewise.
21845 * localedata/locales/gez_ET: Likewise.
21846 * localedata/locales/gl_ES: Likewise.
21847 * localedata/locales/gu_IN: Likewise.
21848 * localedata/locales/gv_GB: Likewise.
21849 * localedata/locales/ha_NG: Likewise.
21850 * localedata/locales/hak_TW: Likewise.
21851 * localedata/locales/he_IL: Likewise.
21852 * localedata/locales/hi_IN: Likewise.
21853 * localedata/locales/hif_FJ: Likewise.
21854 * localedata/locales/hne_IN: Likewise.
21855 * localedata/locales/hr_HR: Likewise.
21856 * localedata/locales/hsb_DE: Likewise.
21857 * localedata/locales/ht_HT: Likewise.
21858 * localedata/locales/hu_HU: Likewise.
21859 * localedata/locales/hy_AM: Likewise.
21860 * localedata/locales/i18n: Likewise.
21861 * localedata/locales/ia_FR: Likewise.
21862 * localedata/locales/id_ID: Likewise.
21863 * localedata/locales/ig_NG: Likewise.
21864 * localedata/locales/ik_CA: Likewise.
21865 * localedata/locales/is_IS: Likewise.
21866 * localedata/locales/it_CH: Likewise.
21867 * localedata/locales/it_IT: Likewise.
21868 * localedata/locales/iu_CA: Likewise.
21869 * localedata/locales/ja_JP: Likewise.
21870 * localedata/locales/ka_GE: Likewise.
21871 * localedata/locales/kk_KZ: Likewise.
21872 * localedata/locales/kl_GL: Likewise.
21873 * localedata/locales/kn_IN: Likewise.
21874 * localedata/locales/ko_KR: Likewise.
21875 * localedata/locales/kok_IN: Likewise.
21876 * localedata/locales/ks_IN: Likewise.
21877 * localedata/locales/ks_IN@devanagari: Likewise.
21878 * localedata/locales/ku_TR: Likewise.
21879 * localedata/locales/kw_GB: Likewise.
21880 * localedata/locales/ky_KG: Likewise.
21881 * localedata/locales/lb_LU: Likewise.
21882 * localedata/locales/lg_UG: Likewise.
21883 * localedata/locales/li_BE: Likewise.
21884 * localedata/locales/li_NL: Likewise.
21885 * localedata/locales/lij_IT: Likewise.
21886 * localedata/locales/ln_CD: Likewise.
21887 * localedata/locales/lo_LA: Likewise.
21888 * localedata/locales/lt_LT: Likewise.
21889 * localedata/locales/lv_LV: Likewise.
21890 * localedata/locales/lzh_TW: Likewise.
21891 * localedata/locales/mag_IN: Likewise.
21892 * localedata/locales/mai_IN: Likewise.
21893 * localedata/locales/mg_MG: Likewise.
21894 * localedata/locales/mhr_RU: Likewise.
21895 * localedata/locales/mi_NZ: Likewise.
21896 * localedata/locales/mk_MK: Likewise.
21897 * localedata/locales/ml_IN: Likewise.
21898 * localedata/locales/mn_MN: Likewise.
21899 * localedata/locales/mni_IN: Likewise.
21900 * localedata/locales/mr_IN: Likewise.
21901 * localedata/locales/ms_MY: Likewise.
21902 * localedata/locales/mt_MT: Likewise.
21903 * localedata/locales/my_MM: Likewise.
21904 * localedata/locales/nan_TW: Likewise.
21905 * localedata/locales/nan_TW@latin: Likewise.
21906 * localedata/locales/nb_NO: Likewise.
21907 * localedata/locales/nds_DE: Likewise.
21908 * localedata/locales/nds_NL: Likewise.
21909 * localedata/locales/ne_NP: Likewise.
21910 * localedata/locales/nhn_MX: Likewise.
21911 * localedata/locales/niu_NU: Likewise.
21912 * localedata/locales/niu_NZ: Likewise.
21913 * localedata/locales/nl_AW: Likewise.
21914 * localedata/locales/nl_BE: Likewise.
21915 * localedata/locales/nl_NL: Likewise.
21916 * localedata/locales/nn_NO: Likewise.
21917 * localedata/locales/nr_ZA: Likewise.
21918 * localedata/locales/nso_ZA: Likewise.
21919 * localedata/locales/oc_FR: Likewise.
21920 * localedata/locales/om_ET: Likewise.
21921 * localedata/locales/om_KE: Likewise.
21922 * localedata/locales/or_IN: Likewise.
21923 * localedata/locales/os_RU: Likewise.
21924 * localedata/locales/pa_IN: Likewise.
21925 * localedata/locales/pa_PK: Likewise.
21926 * localedata/locales/pap_AW: Likewise.
21927 * localedata/locales/pap_CW: Likewise.
21928 * localedata/locales/pl_PL: Likewise.
21929 * localedata/locales/ps_AF: Likewise.
21930 * localedata/locales/pt_BR: Likewise.
21931 * localedata/locales/pt_PT: Likewise.
21932 * localedata/locales/quz_PE: Likewise.
21933 * localedata/locales/raj_IN: Likewise.
21934 * localedata/locales/ro_RO: Likewise.
21935 * localedata/locales/ru_RU: Likewise.
21936 * localedata/locales/ru_UA: Likewise.
21937 * localedata/locales/rw_RW: Likewise.
21938 * localedata/locales/sa_IN: Likewise.
21939 * localedata/locales/sat_IN: Likewise.
21940 * localedata/locales/sc_IT: Likewise.
21941 * localedata/locales/sd_IN: Likewise.
21942 * localedata/locales/sd_IN@devanagari: Likewise.
21943 * localedata/locales/se_NO: Likewise.
21944 * localedata/locales/sgs_LT: Likewise.
21945 * localedata/locales/shs_CA: Likewise.
21946 * localedata/locales/si_LK: Likewise.
21947 * localedata/locales/sid_ET: Likewise.
21948 * localedata/locales/sk_SK: Likewise.
21949 * localedata/locales/sl_SI: Likewise.
21950 * localedata/locales/sm_WS: Likewise.
21951 * localedata/locales/so_DJ: Likewise.
21952 * localedata/locales/so_ET: Likewise.
21953 * localedata/locales/so_KE: Likewise.
21954 * localedata/locales/so_SO: Likewise.
21955 * localedata/locales/sq_AL: Likewise.
21956 * localedata/locales/sq_MK: Likewise.
21957 * localedata/locales/sr_ME: Likewise.
21958 * localedata/locales/sr_RS: Likewise.
21959 * localedata/locales/sr_RS@latin: Likewise.
21960 * localedata/locales/ss_ZA: Likewise.
21961 * localedata/locales/st_ZA: Likewise.
21962 * localedata/locales/sv_FI: Likewise.
21963 * localedata/locales/sv_SE: Likewise.
21964 * localedata/locales/sw_KE: Likewise.
21965 * localedata/locales/sw_TZ: Likewise.
21966 * localedata/locales/szl_PL: Likewise.
21967 * localedata/locales/ta_IN: Likewise.
21968 * localedata/locales/ta_LK: Likewise.
21969 * localedata/locales/tcy_IN: Likewise.
21970 * localedata/locales/te_IN: Likewise.
21971 * localedata/locales/tg_TJ: Likewise.
21972 * localedata/locales/th_TH: Likewise.
21973 * localedata/locales/the_NP: Likewise.
21974 * localedata/locales/ti_ER: Likewise.
21975 * localedata/locales/ti_ET: Likewise.
21976 * localedata/locales/tig_ER: Likewise.
21977 * localedata/locales/tk_TM: Likewise.
21978 * localedata/locales/tl_PH: Likewise.
21979 * localedata/locales/tn_ZA: Likewise.
21980 * localedata/locales/to_TO: Likewise.
21981 * localedata/locales/tpi_PG: Likewise.
21982 * localedata/locales/tr_CY: Likewise.
21983 * localedata/locales/tr_TR: Likewise.
21984 * localedata/locales/ts_ZA: Likewise.
21985 * localedata/locales/tt_RU: Likewise.
21986 * localedata/locales/tt_RU@iqtelif: Likewise.
21987 * localedata/locales/ug_CN: Likewise.
21988 * localedata/locales/uk_UA: Likewise.
21989 * localedata/locales/unm_US: Likewise.
21990 * localedata/locales/ur_IN: Likewise.
21991 * localedata/locales/ur_PK: Likewise.
21992 * localedata/locales/uz_UZ: Likewise.
21993 * localedata/locales/uz_UZ@cyrillic: Likewise.
21994 * localedata/locales/ve_ZA: Likewise.
21995 * localedata/locales/vi_VN: Likewise.
21996 * localedata/locales/wa_BE: Likewise.
21997 * localedata/locales/wae_CH: Likewise.
21998 * localedata/locales/wal_ET: Likewise.
21999 * localedata/locales/wo_SN: Likewise.
22000 * localedata/locales/xh_ZA: Likewise.
22001 * localedata/locales/yi_US: Likewise.
22002 * localedata/locales/yo_NG: Likewise.
22003 * localedata/locales/yue_HK: Likewise.
22004 * localedata/locales/yuw_PG: Likewise.
22005 * localedata/locales/zh_CN: Likewise.
22006 * localedata/locales/zh_HK: Likewise.
22007 * localedata/locales/zh_SG: Likewise.
22008 * localedata/locales/zh_TW: Likewise.
22009 * localedata/locales/zu_ZA: Likewise.
22010
22011 2017-11-13 Florian Weimer <fweimer@redhat.com>
22012
22013 * support/next_to_fault.h, support/next_to_fault.c: New files.
22014 * support/Makefile (libsupport-routines): Add next_to_fault.
22015 * resolv/tst-inet_pton.c (struct next_to_fault)
22016 (next_to_fault_allocate, next_to_fault_free): Remove.
22017 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22018
22019 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22020
22021 * elf/dl-support.c: Include <dl-procruntime.c>.
22022 * include/link.h: Include <link_map.h>.
22023 * sysdeps/generic/dl-procruntime.c: New file.
22024 * sysdeps/generic/link_map.h: Likewise.
22025 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22026 the writable ld.so namespace.
22027
22028 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22029
22030 timezone: pacify GCC -Wstringop-truncation
22031 Problem reported by Martin Sebor in:
22032 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22033 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22034
22035 2017-11-12 Florian Weimer <fweimer@redhat.com>
22036
22037 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22038 tst-xreadlink.
22039 (tests): Add tst-xreadlink.
22040 * support/support.h (xstrndup): Declare.
22041 * support/xunistd.h (xunlink, xreadlink): Declare.
22042 * support/temp_file.h (support_create_temp_directory): Declare.
22043 * support/temp_file.c (support_create_temp_directory): New function.
22044 * support/support_chroot.c (support_chroot_create): Use it.
22045 * support/xreadlink.c: New file.
22046 * support/xstrndup.c: Likewise.
22047 * support/xunlink.c: Likewise.
22048 * support/tst-xreadlink.c: Likewise.
22049
22050 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22051
22052 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22053
22054 2017-11-11 Florian Weimer <fweimer@redhat.com>
22055
22056 [BZ #22409]
22057 [BZ #22412]
22058 * resolv/res_comp.c (printable_string, binary_hnok)
22059 (binary_leading_dash): New functions.
22060 (res_hnok): Reimplement using these functions and ns_name_pton.
22061 (res_ownok): Likewise.
22062 (res_mailok): Reimplement using printable_string, ns_name_pton and
22063 binary_hnok.
22064 (res_dnok): Reimplement using printable_string and ns_name_pton.
22065 * resolv/tst-res_hnok.c (tests): Add additional tests.
22066 (LETTERDIGITS, PRINTABLE): Define.
22067 (do_test): Adjust one_char results.
22068
22069 2017-11-11 Florian Weimer <fweimer@redhat.com>
22070
22071 [BZ #22413]
22072 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22073 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22074
22075 2017-11-11 Florian Weimer <fweimer@redhat.com>
22076
22077 * resolv/tst-ns_name_pton.c: New file.
22078 * resolv/Makefile (tests): Add tst-ns_name_pton.
22079 (tst-ns_name_pton): Link against libresolv.
22080
22081 2017-11-11 Florian Weimer <fweimer@redhat.com>
22082
22083 * resolv/tst-res_hnok.c: New file.
22084 * resolv/Makefile (tests): Add tst-res_hnok.
22085 (tst-res_hnok): Link against libresolv.
22086
22087 2017-11-11 Florian Weimer <fweimer@redhat.com>
22088
22089 * resolv/tst-resolv-network.c: Use test framework instead explicit
22090 main function.
22091
22092 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22093
22094 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22095 <jmp_buf-macros.h>.
22096 [!_ISOMAC] (STR_HELPER): New.
22097 [!_ISOMAC] (STR): Likewise.
22098 [!_ISOMAC] (TEST_SIZE): Likewise.
22099 [!_ISOMAC] (TEST_ALIGN): Likewise.
22100 [!_ISOMAC] (TEST_OFFSET): Likewise.
22101 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22102 field offsets of jmp_buf as well as sigjmp_buf.
22103 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22104 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22105 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22106 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22107 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22108 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22109 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22110 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22111 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22112 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22113 Likewise.
22114 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22115 Likewise.
22116 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22118 Likewise.
22119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22120 Likewise.
22121 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22122 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22123 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22124 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22125 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22126 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22127 Likewise.
22128 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22129 Likewise.
22130 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22131 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22132 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22133
22134 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22135
22136 * include/float.h
22137 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22138 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22139 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22140 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22141 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22142 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22143 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22144 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22145 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22146 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22147 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22148 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22149 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22150 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22151 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22152 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22153 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22154 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22155 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22156 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22157 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22158 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22159 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22160 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22161 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22162 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22163 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22164 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22165 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22166 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22167 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22168 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22169 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22170 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22171 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22172 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22173 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22174 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22175 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22176 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22177 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22178 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22179 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22180 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22181 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22182 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22183 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22184 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22185 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22186 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22187 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22188 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22189 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22190 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22191 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22192 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22193 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22194 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22195 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22196 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22197 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22198 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22199 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22200 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22201 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22202 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22203 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22204 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22205 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22206 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22207 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22208 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22209 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22210 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22211 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22212 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22213 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22214 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22215 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22216 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22217 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22218 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22219 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22220 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22221 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22222 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22223 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22224 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22225
22226 * stdlib/tst-strtod.h (F16): New macro.
22227 (F32): Likewise.
22228 (F64): Likewise.
22229 (F32X): Likewise.
22230 (F64X): Likewise.
22231 (F128X): Likewise.
22232 (IF_FLOAT16): Likewise.
22233 (IF_FLOAT32): Likewise.
22234 (IF_FLOAT64): Likewise.
22235 (IF_FLOAT32X): Likewise.
22236 (IF_FLOAT64X): Likewise.
22237 (IF_FLOAT128X): Likewise.
22238 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22239 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22240 (STRTOD_TEST_FOREACH): Likewise.
22241 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22242 (CHOOSE_f64): Likewise.
22243 (CHOOSE_f32x): Likewise.
22244 (CHOOSE_f64x): Likewise.
22245
22246 2017-11-07 Andreas Schwab <schwab@suse.de>
22247
22248 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22249
22250 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22251
22252 [BZ #22403]
22253 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22254 to be escaped.
22255 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22256 to be escaped.
22257
22258 2017-11-07 Claude Paroz <claude@2xlibre.net>
22259
22260 [BZ #22403]
22261 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22262 to be escaped.
22263 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22264 to be escaped.
22265 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22266 to be escaped.
22267
22268 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22269
22270 [BZ #22298]
22271 * nptl/allocatestack.c (allocate_stack): Check if
22272 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22273 __PTHREAD_MUTEX_HAVE_PREV is defined.
22274 * nptl/descr.h (pthread): Likewise.
22275 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22276 Likewise.
22277 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22278 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22279 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22280 * sysdeps/nptl/bits/thread-shared-types.h
22281 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22282 defines.
22283 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22284 of __WORDSIZE for internal layout.
22285 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22286 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22287 instead of __WORDSIZE whether to use an union for __spins and __list
22288 fields.
22289 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22290 case.
22291 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22292 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22293 defines.
22294 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22295 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22296 Likewise.
22297 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22298 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22299 Likewise.
22300 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22301 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22302 Likewise.
22303 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22304 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22305 Likewise.
22306 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22307 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22308 Likewise.
22309 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22310 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22311 Likewise.
22312 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22313 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22314 Likewise.
22315 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22316 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22317 Likewise.
22318 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22319 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22320 Likewise.
22321 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22322 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22323 Likewise.
22324 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22325 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22326 Likewise.
22327 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22328 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22329 Likewise.
22330 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22331 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22332 Likewise.
22333 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22334 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22335 Likewise.
22336
22337 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22338 New macros.
22339 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22340 checks for expected input type size.
22341 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22342 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22343 Likewise.
22344 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22345 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22346 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22347 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22348 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22349 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22350 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22351 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22352 superflous runtime assert check.
22353 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22354 Likewise.
22355 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22356 Likewise.
22357 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22358 Likewise.
22359 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22360 Likewise.
22361 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22362 Likewise.
22363 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22364 Likewise.
22365 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22366 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22367 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22368 Likewise.
22369 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22370 Likewise.
22371 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22372 Likewise.
22373 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22374 Likewise.
22375 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22376 Likewise.
22377 * nptl/pthread_attr_setinheritsched.c
22378 (__pthread_attr_setinheritsched): Likewise.
22379 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22380 Likewise.
22381 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22382 Likewise.
22383 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22384 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22385 __old_pthread_attr_setstack): Likewise.
22386 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22387 Likewise.
22388 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22389 Likewise.
22390 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22391 Likewise.
22392 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22393 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22394 Likewise.
22395 * nptl/tst-typesizes.c: Remove file.
22396
22397 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22398 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22399 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22400 checks for internal pthread_mutex_t offsets.
22401 * sysdeps/aarch64/nptl/pthread-offsets.h
22402 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22403 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22404 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22405 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22406 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22407 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22408 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22409 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22410 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22411 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22412 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22413 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22414 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22415 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22416 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22417 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22418 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22419 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22420
22421 2017-11-07 Florian Weimer <fweimer@redhat.com>
22422
22423 * bits/mman-linux.h: Move ...
22424 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22425 comment.
22426 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22427 outdated comment.
22428
22429 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22430
22431 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22432 Redefine STRNLEN as __strnlen_power8.
22433
22434 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22435
22436 * signal/sighold.c (sighold): Optimize implementation.
22437
22438 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22439 __NR_rt_sigqueueinfo.
22440
22441 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22442 __sigtimedwait.
22443 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22444 assume __NR_rt_sigtimedwait.
22445 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22446 and add LIBC_CANCEL_HANDLED for cancellation marking.
22447 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22448
22449 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22450 (sysdeps_routines): Add memchr_noneon.
22451 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22452 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22453 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22454 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22455 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22456 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22457 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22458
22459 * sysdeps/arm/arm-ifunc.h: New file.
22460 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22461 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22462 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22463 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22464 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22465 (__memcpy_neon): Avoid create hidden alias.
22466 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22467 (__memcpy_vfp): Likewise.
22468 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22469 (sysdep_routines): Add memcpy_arm.
22470 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22471
22472 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22473
22474 [BZ #22362]
22475 * Makerules (make-link-multidir): New.
22476 * config.make.in (multidir): New.
22477 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22478 * configure: Regenerated.
22479 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22480 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22481 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22482 New target.
22483
22484 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22485
22486 [BZ #22402]
22487 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22488 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22489
22490 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22491
22492 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22493 to be escaped.
22494
22495 2017-11-04 Florian Weimer <fweimer@redhat.com>
22496
22497 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22498
22499 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22500
22501 * math/math.h [__HAVE_DISTINCT_FLOAT16
22502 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22503 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22504 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22505 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22506 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22507 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22508 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22509 (__MATH_TG_F32): New macro.
22510 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22511 (__MATH_TG_F64X): Likewise.
22512 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22513 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22514
22515 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22516
22517 * po/de.po: Update translations.
22518 * po/ru.po: Likewise.
22519
22520 2017-11-03 Florian Weimer <fweimer@redhat.com>
22521
22522 * manual/filesys.texi (Hard Links): Document linkat.
22523
22524 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22525
22526 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22527 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22528 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22529 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22530 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22531 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22532 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22533 the same as _Float128.
22534 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22535 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22536 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22537
22538 * stdlib/stdlib.h
22539 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22540 Declare.
22541 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22542 Likewise.
22543 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22544 Likewise.
22545 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22546 (strtof32x): Likewise.
22547 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22548 (strtof64x): Likewise.
22549 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22550 (strtof128x): Likewise.
22551 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22552 (strfromf16): Likewise.
22553 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22554 (strfromf32): Likewise.
22555 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22556 (strfromf64): Likewise.
22557 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22558 (strfromf32x): Likewise.
22559 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22560 (strfromf64x): Likewise.
22561 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22562 (strfromf128x): Likewise.
22563 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22564 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22565 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22566 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22567 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22568 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22569
22570 2017-11-03 Richard Henderson <rth@twiddle.net>
22571
22572 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22573
22574 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22575
22576 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22577
22578 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22579
22580 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22581 DT_TLSDESC_GOT initialization.
22582 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22583 (_dl_tlsdesc_resolve_hold): Likewise.
22584 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22585 (_dl_tlsdesc_resolve_hold): Likewise.
22586 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22587 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22588
22589 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22590
22591 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22592
22593 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22594
22595 [BZ #18572]
22596 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22597 non-lazily for R_ARM_TLS_DESC.
22598
22599 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22600
22601 [BZ #17078]
22602 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22603 R_ARM_TLS_DESC case.
22604 (elf_machine_lazy_rel): Remove the prelink check.
22605
22606 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22607
22608 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22609 DT_TLSDESC_GOT initialization.
22610 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22611 (_dl_tlsdesc_resolve_rela): Likewise.
22612 (_dl_tlsdesc_resolve_hold): Likewise.
22613 (_dl_tlsdesc_undefweak): Remove ldar.
22614 (_dl_tlsdesc_dynamic): Likewise.
22615 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22616 (_dl_tlsdesc_resolve_rela): Likewise.
22617 (_dl_tlsdesc_resolve_hold): Likewise.
22618 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22619 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22620 (_dl_tlsdesc_resolve_rela): Likewise.
22621 (_dl_tlsdesc_resolve_hold): Likewise.
22622
22623 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22624
22625 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22626 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22627
22628 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22629
22630 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22631 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22632
22633 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22634
22635 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22636 Declare.
22637 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22638 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22639 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22640 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22641 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22642 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22643 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22644 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22645 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22646 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22647 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22648
22649 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22650
22651 [BZ #22382]
22652 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22653 * localedata/locales/tpi_PG: Add standard header.
22654
22655 2017-11-02 Florian Weimer <fweimer@redhat.com>
22656
22657 test-errno-linux: quotactl can fail with EPERM in containers.
22658 * sysdeps/unix/sysv/linux/test-errno-linux.c
22659 (LIST, LIST_FORWARD): New macros.
22660 (check_error_in_list): New function.
22661 (test_wrp_rv): Accept list of permitted error codes.
22662 (test_wrp_rv2): Remove.
22663 (test_wrp): Call test_wrp_rv with list of error codes.
22664 (test_wrp2): Accept list of error codes.
22665 (do_test): Adjust. Allow EPERM for quotactl.
22666
22667 2017-11-02 Florian Weimer <fweimer@redhat.com>
22668
22669 * stdio-common/bug16.c (do_test): Use array_length.
22670 * stdio-common/errlist.c (_sys_nerr): Likewise.
22671 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22672 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22673 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22674 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22675 (do_test): Use array_length.
22676 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22677 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22678 * stdio-common/tst-printf-round.c (do_test): Likewise.
22679 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22680 (CHECK): Use array_length.
22681 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22682 * stdio-common/tstscanf.c (main): Likewise.
22683 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22684
22685 2017-11-02 Florian Weimer <fweimer@redhat.com>
22686
22687 Add array_length and array_end macros.
22688 * include/array_length.h: New file.
22689
22690 2017-11-02 Florian Weimer <fweimer@redhat.com>
22691
22692 [BZ #22332]
22693 * posix/tst-glob-tilde.c (do_noescape): New variable.
22694 (one_test): Process it.
22695 (do_test): Set do_noescape. Add unescaping test case.
22696
22697 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22698
22699 * math/complex.h
22700 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22701 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22702 with appropriate macros defined and undefined.
22703 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22704 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22705 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22706 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22707 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22708 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22709 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22710 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22711 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22712 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22713
22714 * math/complex.h
22715 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22716 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22717 that for long double. Do not condition define and undefine of
22718 _Mdouble_complex_ on [__CFLOAT128].
22719
22720 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22721
22722 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22723 of <sysdeps/generic/sysdep.h>.
22724 (ALIGNARG): Removed.
22725 (ASM_SIZE_DIRECTIVE): Likewise.
22726 (ENTRY): Likewise.
22727 (END): Likewise.
22728 (ENTRY_CHK): Likewise.
22729 (END_CHK): Likewise.
22730 (syscall_error): Likewise.
22731 (mcount): Likewise.
22732 (PSEUDO_END): Likewise.
22733 (L): Likewise.
22734 (atom_text_section): Likewise.
22735 * sysdeps/x86/sysdep.h: New file.
22736 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22737 of <sysdeps/generic/sysdep.h>.
22738 (ALIGNARG): Removed.
22739 (ASM_SIZE_DIRECTIVE): Likewise.
22740 (ENTRY): Likewise.
22741 (END): Likewise.
22742 (ENTRY_CHK): Likewise.
22743 (END_CHK): Likewise.
22744 (syscall_error): Likewise.
22745 (mcount): Likewise.
22746 (PSEUDO_END): Likewise.
22747 (L): Likewise.
22748 (atom_text_section): Likewise.
22749
22750 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22751
22752 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22753 category of LC_CTYPE set to "i18n:2012".
22754 * localedata/locales/i18n_ctype: Regenerate.
22755
22756 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22757
22758 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22759 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22760 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22761 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22762
22763 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22764 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22765 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22766 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22767
22768 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22769
22770 * math/complex.h
22771 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22772 New macro.
22773 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22774 Likewise.
22775 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22776 Likewise.
22777 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22778 (CMPLXF32X): Likewise.
22779 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22780 (CMPLXF64X): Likewise.
22781 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22782 (CMPLXF128X): Likewise.
22783
22784 * math/math.h
22785 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22786 (__MATH_EVAL_FMT2): Define to add 0.0f.
22787
22788 2017-10-31 Alan Modra <amodra@gmail.com>
22789
22790 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22791 include sysdep.h.
22792 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22793 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22794 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22795 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22796 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22800 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22801 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22804 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22805 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22806 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22807 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22808 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22809 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22810 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22811 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22812 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22813 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22814 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22815 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22816 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22817 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22818 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22819 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22820 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22821 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22822 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22823 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22824 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22825 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22826 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22827 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22828 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22829 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22830 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22831 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22832 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22833 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22834 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22835 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22836 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22837 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22838 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22839 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22840 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22841 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22842 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22843 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22844 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22845 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22846 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22847 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22848 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22849 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22850 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22851 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22852 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22853 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22854 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22855 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22856 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22857 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22858 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22859 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22860 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22861
22862 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22863 include sysdep.h and math_ldbl_opt.h.
22864
22865 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
22866 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
22867 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
22868 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
22869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
22870 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
22871 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
22872 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
22873 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
22874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
22875 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
22876 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
22877 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
22878 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
22879 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
22880 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
22881 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
22882 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
22883 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
22884 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
22885 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
22886 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
22887 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
22888 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
22889 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
22890 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
22891
22892 2017-10-31 Alan Modra <amodra@gmail.com>
22893
22894 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
22895 string/strncase_l.c, not string/strncase.c.
22896 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
22897 (libc_hidden_def): Redefine.
22898
22899 2017-10-31 Alan Modra <amodra@gmail.com>
22900
22901 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
22902 (__STRCMP, STRCMP, __strcasecmp_l): Define.
22903 (__strcasecmp): Don't define.
22904
22905 2017-10-31 Alan Modra <amodra@gmail.com>
22906
22907 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
22908 IS_IN (libc).
22909 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22910 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22911 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22912
22913 2017-10-31 Alan Modra <amodra@gmail.com>
22914
22915 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
22916 USE_AS_STPNCPY.
22917
22918 2017-10-31 Alan Modra <amodra@gmail.com>
22919
22920 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
22921 Redefine only when SHARED.
22922
22923 2017-10-30 Joseph Myers <joseph@codesourcery.com>
22924
22925 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
22926 Include <bits/math-finite.h> with appropriate macros defined and
22927 undefined.
22928 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
22929 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
22930 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
22931 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
22932 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
22933
22934 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
22935 [!_Mlong_double_] (_Mlong_double_): Likewise.
22936 [!_Mfloat16_] (_Mfloat16_): Likewise.
22937 [!_Mfloat32_] (_Mfloat32_): Likewise.
22938 [!_Mfloat64_] (_Mfloat64_): Likewise.
22939 [!_Mfloat128_] (_Mfloat128_): Likewise.
22940 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
22941 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
22942 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
22943 (_Mdouble_): Define without indirection through those macros.
22944 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
22945 [!_Mfloat128_] (_Mfloat128_): Likewise.
22946 [_Mlong_double_] (_Mlong_double_): Likewise.
22947 (_Mdouble_): Define without indirection through those macros.
22948 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
22949 not add -D_Mlong_double_=double.
22950 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
22951 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
22952
22953 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22954
22955 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
22956
22957 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22958
22959 * sysdeps/x86/libc-start.c: Reformat.
22960
22961 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22962
22963 [BZ #22353]
22964 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
22965 (1): Renamed to ...
22966 (L(Src0)): This.
22967 (L(Src1)): New.
22968 (L(Src2)): Likewise.
22969 (L(1)): Renamed to ...
22970 (L(Src3)): This.
22971
22972 2017-10-30 Joseph Myers <joseph@codesourcery.com>
22973
22974 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
22975 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
22976 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
22977 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
22978 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
22979 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
22980 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
22981 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
22982 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
22983 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
22984 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
22985 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
22986 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
22987 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
22988 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
22989 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
22990 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
22991 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
22992 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
22993 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
22994 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
22995 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
22996 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
22997 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
22998 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
22999 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23000 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23001 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23002 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23003 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23004 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23005 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23006 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23007 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23008 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23009 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23010 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23011 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23012 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23013 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23014 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23015 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23016 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23017 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23018 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23019 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23020 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23021 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23022 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23023 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23024 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23025 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23026 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23027 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23028 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23029 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23030 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23031 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23032 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23033 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23034 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23035 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23036 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23037 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23038 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23039 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23040
23041 2017-10-30 Florian Weimer <fweimer@redhat.com>
23042
23043 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23044 always defined.
23045 * io/tst-mkdirat.c (do_test): Likewise.
23046 * io/tst-mkfifoat.c (do_test): Likewise.
23047 * io/tst-mknodat.c (do_test): Likewise.
23048 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23049 * locale/programs/locale.c (select_dirs): Likewise.
23050 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23051 * posix/bug-glob2.c (my_readdir): Likewise.
23052 * posix/tst-dir.c (main): Likewise.
23053 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23054 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23055
23056 2017-10-30 Florian Weimer <fweimer@redhat.com>
23057
23058 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23059 just __USE_GNU.
23060
23061 2017-10-30 Florian Weimer <fweimer@redhat.com>
23062
23063 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23064 Convert to support/test-driver.c.
23065 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23066 New macro parameters.
23067 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23068 * posix/tst-gnuglob.c: New file.
23069 * posix/tst-gnuglob64.c: Likewise.
23070 * posix/Makefile (tests): Add tst-gnuglob64.
23071
23072 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23073
23074 [BZ #19485]
23075 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23076 and use a better translation for March in “mon”.
23077 * localedata/locales/csb_PL: Use more ASCII to improve the
23078 readability of the source.
23079
23080 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23081
23082 [BZ #13953]
23083 * localedata/locales/km_KH: Use ASCII as much
23084 as possible for better readability of the source and
23085 remove useless comments.
23086 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23087 was commented out and apparently wrong anyway because it was
23088 using Lao characters. If Buddhist era should be used
23089 for km_KH, a native speaker should write the correct formaat
23090 for Khmer.
23091 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23092 (According to CLDR, the first weekday for Cambodia is Sunday).
23093 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23094 (These were using Lao characters which must be wrong. If we get
23095 the correct data from a native speaker, we could add it back, until
23096 then it is better not to have name_mr and name_mrs at all than
23097 having it wrong).
23098
23099 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23100
23101 * locale/loadlocale.c: Correct size of
23102 _nl_value_type_LC_<category> arrays.
23103
23104 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23105
23106 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23107 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23108 with appropriate macros defined and undefined.
23109 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23110 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23111 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23112 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23113 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23114
23115 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23116
23117 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23118 "-O2 -march=i586".
23119
23120 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23121
23122 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23123 with lowercase letters to make it agree with CLDR.
23124
23125 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23126
23127 [BZ #15260]
23128 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23129 first letters of yesstr and nostr in yesexpr and noexpr,
23130 not for the full words.
23131 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23132 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23133 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23134 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23135 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23136 first letters of yesstr and nostr in yesexpr and noexpr,
23137 until now only English was matched in yesexpr and noexpr.
23138 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23139 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23140 fil but not for tl. As tl and fil are very similar, using fil
23141 is probably better than using English.
23142
23143 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23144
23145 [BZ #21706]
23146 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23147 in yesstr and nostr.
23148
23149 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23150
23151 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23152 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23153 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23154 Likewise.
23155 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23156 Likewise.
23157 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23158 Likewise.
23159 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23160 Likewise.
23161 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23162 (SNANF128X): Likewise.
23163
23164 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23165 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23166 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23167 (HUGE_VAL_F32): Likewise.
23168 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23169 (HUGE_VAL_F64): Likewise.
23170 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23171 (HUGE_VAL_F32X): Likewise.
23172 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23173 (HUGE_VAL_F64X): Likewise.
23174 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23175 (HUGE_VAL_F128X): Likewise.
23176
23177 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23178
23179 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23180 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23181 for the br_FR locale.
23182
23183 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23184
23185 [BZ #21706]
23186 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23187
23188 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23189
23190 * locale/programs/record-status.h: Define globals, and function
23191 prototypes. Move function bodies...
23192 * locale/programs/record-status.c: ... to here. New file.
23193 * iconv/Makefile (iconv_prog-modules): Add record-status.
23194 * locale/Makefile (lib-modules): Likewise.
23195 * iconv/iconv_prog.c: Remove verbose.
23196 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23197 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23198 record a warning about ASCII compatibility.
23199 * locale/programs/ld-monetary.c (monetary_finish): If
23200 warn_int_curr_symbol is true then record a warning about the symbol
23201 not being in our ISO 4217 list.
23202 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23203 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23204 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23205 (OPT_NO_WARN): Define.
23206 (OPT_WARN): Define.
23207 (options): Add entry for --no-warnings, and --warnings.
23208 (set_warnings): New function to enable/disable warnings.
23209 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23210 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23211 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23212 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23213 Pass flags to generate_locale.
23214 (generate_locale): Accept new flag argument and pass it to localedef
23215 invocation.
23216 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23217 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23218
23219 * localedata/Makefile (test-input-data): Use full file name.
23220 * localedata/da_DK.in: Rename to...
23221 * localedata/da_DK.ISO-8859-1.in: ...this.
23222 * localedata/de_DE.in: Rename to...
23223 * localedata/de_DE.ISO-8859-1.in: ...this.
23224 * localedata/en_US.in: Rename to...
23225 * localedata/en_US.ISO-8859-1.in: ...this.
23226 * localedata/fr_FR.in: Rename to...
23227 * localedata/fr_FR.UTF-8.in: ... this.
23228 * localedata/hr_HR.in: Rename to...
23229 * localedata/hr_HR.ISO-8859-2.in: ...this.
23230 * localedata/hu_HU.in: Rename to...
23231 * localedata/hu_HU.UTF-8.in: ...this.
23232 * localedata/si_LK.in: Rename to...
23233 * localedata/si_LK.UTF-8.in: ...this.
23234 * localedata/sv_SE.in: Rename to...
23235 * localedata/sv_SE.ISO-8859-1.in: ...this.
23236 * localedata/tr_TR.in: Rename to...
23237 * localedata/tr_TR.UTF-8.in: ...this.
23238 * localedata/uk_UA.in: Rename to...
23239 * localedata/uk_UA.UTF-8.in: ...this.
23240 * localedata/sort-test.sh: Test file is locale name with the
23241 suffix.
23242
23243 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23244 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23245 file.
23246 * localedata/locales/i18n_ctype: Regenerate.
23247 * localedata/locales/tr_TR: Likewise.
23248 * localedata/locales/translit_circle: Likewise.
23249 * localedata/locales/translit_cjk_compat: Likewise.
23250 * localedata/locales/translit_combining: Likewise.
23251 * localedata/locales/translit_compat: Likewise.
23252 * localedata/locales/translit_font: Likewise.
23253 * localedata/locales/translit_fraction: Likewise.
23254
23255 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23256
23257 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23258 lxvd2x/stxvd2x with lvx/stvx.
23259 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23260
23261 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23262
23263 * include/alloc_buffer.h: Replace "if if " with "if " in
23264 comments.
23265 * sysdeps/mips/memcpy.S: Likkewise.
23266 * sysdeps/mips/memset.S: Likewise.
23267 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23268 Likewise.
23269 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23270 Likewise.
23271 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23272 Likewise.
23273
23274 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23275
23276 [BZ #15261]
23277 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23278 yesexpr and noexpr.
23279 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23280 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23281 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23282 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23283 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23284 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23285 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23286
23287 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23288
23289 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23290 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23291 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23292 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23293 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23294 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23295 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23296 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23297 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23298 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23299 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23300 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23301
23302 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23303
23304 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23305 as possible for better readability of the source.
23306 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23307 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23308 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23309 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23310 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23311 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23312 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23313 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23314 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23315 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23316 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23317 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23318 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23319 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23320 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23321 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23322 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23323 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23324 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23325 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23326 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23327 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23328 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23329 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23330 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23331 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23332 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23333 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23334 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23335 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23336 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23337 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23338 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23339 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23340 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23341 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23342 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23343 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23344 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23345 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23346 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23347 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23348 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23349 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23350 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23351 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23352 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23353 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23354 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23355 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23356 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23357 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23358 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23359 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23360 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23361 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23362 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23363 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23364 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23365 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23366 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23367 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23368 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23369 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23370 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23371 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23372 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23373 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23374 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23375 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23376 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23377 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23378 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23379 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23380 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23381 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23382 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23383 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23384 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23385 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23386 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23387 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23388 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23389 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23390 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23391 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23392 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23393 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23394 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23395 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23396 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23397 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23398 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23399 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23400 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23401 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23402 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23403 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23404 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23405 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23406 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23407 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23408 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23409 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23410 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23411 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23412 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23413 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23414 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23415 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23416 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23417 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23418 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23419 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23420 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23421 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23422 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23423 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23424 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23425 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23426 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23427 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23428 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23429 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23430 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23431 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23432 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23433 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23434 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23435 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23436 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23437 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23438 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23439 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23440 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23441 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23442 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23443 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23444 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23445 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23446 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23447 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23448 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23449 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23450 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23451 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23452 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23453 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23454 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23455 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23456 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23457 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23458 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23459 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23460 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23461 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23462 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23463 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23464 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23465 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23466 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23467 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23468 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23469 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23470 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23471 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23472 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23473 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23474 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23475 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23476 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23477 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23478 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23479 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23480
23481 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23482
23483 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23484 (Use first letters of yesstr and nostr correctly instead of using
23485 full words).
23486
23487 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23488
23489 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23490 (Use first letters of yesstr and nostr correctly).
23491
23492 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23493
23494 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23495 also check for the first characters of yesstr and nostr.
23496 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23497 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23498
23499 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23500
23501 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23502 also check for Chinese characters.
23503
23504 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23505
23506 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23507 match also for the contents of yesstr and nostr. As the first letter
23508 of yesstr and nostr is equal, checking only for the first letter
23509 is not enough.
23510
23511 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23512
23513 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23514 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23515
23516 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23517
23518 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23519 of main contributor.
23520
23521 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23522
23523 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23524 instead of using English.
23525
23526 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23527
23528 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23529 by including the first letters of nostr and yesexpr in the regexp.
23530 Also make it more readable by using ASCII where possible.
23531
23532 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23533
23534 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23535 the first letter of nostr in the regexp. It agrees with CLDR now.
23536 Also make it more readable by using ASCII where possible.
23537
23538 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23539
23540 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23541 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23542 these strings contain a U+17D6 (which somewhat looks like a colon)
23543 instead of a real colon to separate the full words for “yes”
23544 and “no” from the single letter responses.
23545
23546 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23547
23548 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23549 it agree with CLDR (include the first letter of yesstr).
23550 Also make it more readable by using ASCII where possible.
23551
23552 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23553
23554 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23555 and improve yesexpr and noexpr. The yesstr and nostr apparently
23556 came from CLDR. And CLDR has a bug there: these strings contain
23557 a U+0903 (which looks like a colon) instead of a real colon
23558 to separate the full words for “yes” and “no” from the single
23559 letter responses.
23560
23561 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23562
23563 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23564 letters of the full yesstr and nostr in yesexpr and noexpr.
23565
23566 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23567
23568 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23569 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23570 * localedata/locales/an_ES: Make source more readable by using ASCII
23571 where possible.
23572
23573 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23574
23575 [BZ #20952]
23576 * localedata/locales/yuw_PG: New file.
23577 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23578 * locale/iso-639.def: Add Yau (Uruwa).
23579
23580 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23581
23582 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23583
23584 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23585
23586 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23587 (__libc_realloc): Likewise.
23588 (_mid_memalign): Likewise.
23589 (__libc_calloc): Likewise.
23590
23591 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23592
23593 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23594 by adding the generic +1 and -0 as in all other locales.
23595 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23596 day names and make it more readable by using ASCII where possible.
23597
23598 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23599
23600 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23601 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23602
23603 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23604
23605 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23606 WNOHANG in waitpid call.
23607
23608 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23609
23610 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23611 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23612
23613 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23614 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23615 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23616 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23617 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23618 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23619 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23620 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23621 variables.
23622
23623 2017-10-23 Michael Collison <michael.collison@arm.com>
23624
23625 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23626 with __builtin_sqrt.
23627 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23628 with __builtin_sqrtf.
23629 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23630 with __builtin_ceil.
23631 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23632 with __builtin_ceilf.
23633 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23634 with __builtin_floor.
23635 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23636 with __builtin_floorf.
23637 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23638 with __builtin_fma.
23639 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23640 with __builtin_fmaf.
23641 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23642 with __builtin_fmax.
23643 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23644 with __builtin_fmaxf.
23645 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23646 with __builtin_fmin.
23647 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23648 with __builtin_fminf.
23649 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23650 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23651 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23652 with builtin_rint and conversion to int.
23653 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23654 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23655 with builtin_llround.
23656 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23657 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23658 with builtin_rint and conversion to long int.
23659 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23660 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23661 with builtin_lround.
23662 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23663 with builtin_lroundf.
23664 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23665 statements with __builtin_nearbyint.
23666 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23667 statements with __builtin_nearbyintf.
23668 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23669 with __builtin_rint.
23670 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23671 with __builtin_rintf.
23672 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23673 with __builtin_round.
23674 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23675 with __builtin_roundf.
23676 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23677 with __builtin_trunc.
23678 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23679 with __builtin_truncf.
23680 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23681 and s_l[l]round[f].c too.
23682
23683 2017-10-23 Alan Modra <amodra@gmail.com>
23684
23685 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23686 Adjust stack after restoring regs. Add missing LR cfi_restore.
23687
23688 2017-10-23 Alan Modra <amodra@gmail.com>
23689
23690 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23691 Move LR save and frame setup/teardown and LR restore to
23692 immediately around memset call. Provide cfi.
23693
23694 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23695
23696 * sysdeps/i386/fpu/e_powf.S: Removed.
23697 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23698 * sysdeps/i386/fpu/w_powf.c: Likewise.
23699 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23700 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23701 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23702 Add e_powf-sse2.
23703 (CFLAGS-e_powf-sse2.c): New.
23704 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23705 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23706
23707 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23708
23709 * sysdeps/i386/fpu/e_log2f.S: Removed.
23710 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23711 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23712 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23713 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23714 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23715 Add e_log2f-sse2.
23716 (CFLAGS-e_log2f-sse2.c): New.
23717 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23718 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23719
23720 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23721
23722 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23723 Add e_powf-fma.
23724 (CFLAGS-e_powf-fma.c): New.
23725 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23726 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23727
23728 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23729
23730 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23731 Add e_log2f-fma.
23732 (CFLAGS-e_log2f-fma.c): New.
23733 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23734 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23735
23736 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23737
23738 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23739 Add e_logf-fma.
23740 (CFLAGS-e_logf-fma.c): New.
23741 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23742 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23743
23744 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23745
23746 * sysdeps/i386/fpu/e_logf.S: Removed.
23747 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23748 * sysdeps/i386/fpu/w_logf.c: Likewise.
23749 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23750 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23751 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23752 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23753 Add e_logf-sse2.
23754 (CFLAGS-e_logf-sse2.c): New.
23755 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23756 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23757
23758 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23759
23760 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23761 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23762 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23763 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23764 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23765 Add e_exp2f-sse2.
23766 (CFLAGS-e_exp2f-sse2.c): New.
23767 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23768 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23769
23770 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23771
23772 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23773 Add e_exp2f-fma.
23774 (CFLAGS-e_exp2f-fma.c): New.
23775 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23776 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23777
23778 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23779
23780 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23781 * sysdeps/i386/fpu/e_expf.S: Likewise.
23782 * sysdeps/i386/fpu/math_errf.c: Likewise.
23783 * sysdeps/i386/fpu/w_expf.c: Likewise.
23784 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23785 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23786 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23787 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23788 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23789 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23790 Remove e_expf-ia32.
23791 (CFLAGS-e_expf-sse2.c): New.
23792 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23793 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23794
23795 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23796
23797 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23798 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23799 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23800 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23801 e_expf.c.
23802 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23803 New.
23804 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23805 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23806 Renamed to ...
23807 (__redirect_expf): This.
23808 (SYMBOL_NAME): Changed to expf.
23809 (__ieee754_expf): Renamed to ...
23810 (__expf): This.
23811 (__GI___expf): This.
23812 (__ieee754_expf): Add strong_alias.
23813 (__expf_finite): Likewise.
23814 (__expf): New.
23815 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23816
23817 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23818
23819 [BZ #22332]
23820 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23821 unescaping.
23822
23823 2017-10-21 Florian Weimer <fweimer@redhat.com>
23824
23825 * posix/Makefile (tests): Add tst-glob-tilde.
23826 (tests-special): Add tst-glob-tilde-mem.out
23827 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23828 (tst-glob-tilde-mem.out): Add mtrace check.
23829 * posix/tst-glob-tilde.c: New file.
23830
23831 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23832
23833 * bits/floatn-common.h: New file.
23834 * math/Makefile (headers): Add bits/floatn-common.h.
23835 * bits/floatn.h: Include <bits/floatn-common.h>.
23836 * sysdeps/ia64/bits/floatn.h: Likewise.
23837 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23838 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23839 * sysdeps/powerpc/bits/floatn.h: Likewise.
23840 * sysdeps/x86/bits/floatn.h: Likewise.
23841
23842 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23843
23844 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23845 indicates whether compiler emits an warning for alias for
23846 functions with incompatible types.
23847
23848 [BZ #22273]
23849 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23850 the auxiliary process is terminated by a signal before calling _exit
23851 or execve.
23852
23853 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23854
23855 [BZ #21265]
23856 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23857 New.
23858 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23859 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23860 and bit_arch_XSAVEC_Usable if needed.
23861 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23862 and bit_arch_Use_dl_runtime_resolve_opt.
23863 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23864 Removed.
23865 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
23866 (bit_arch_Prefer_No_AVX512): Updated.
23867 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
23868 (bit_arch_XSAVEC_Usable): New.
23869 (STATE_SAVE_OFFSET): Likewise.
23870 (STATE_SAVE_MASK): Likewise.
23871 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
23872 (cpu_features): Add xsave_state_size and xsave_state_full_size.
23873 (index_arch_Use_dl_runtime_resolve_opt): Removed.
23874 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
23875 (index_arch_XSAVEC_Usable): New.
23876 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23877 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
23878 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
23879 is enabled.
23880 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
23881 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
23882 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
23883 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
23884 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
23885 _dl_runtime_resolve_xsavec.
23886 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
23887 Removed.
23888 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
23889 instead of VEC_SIZE.
23890 (REGISTER_SAVE_BND0): Removed.
23891 (REGISTER_SAVE_BND1): Likewise.
23892 (REGISTER_SAVE_BND3): Likewise.
23893 (REGISTER_SAVE_RAX): Always defined to 0.
23894 (VMOV): Removed.
23895 (_dl_runtime_resolve_avx): Likewise.
23896 (_dl_runtime_resolve_avx_slow): Likewise.
23897 (_dl_runtime_resolve_avx_opt): Likewise.
23898 (_dl_runtime_resolve_avx512): Likewise.
23899 (_dl_runtime_resolve_avx512_opt): Likewise.
23900 (_dl_runtime_resolve_sse): Likewise.
23901 (_dl_runtime_resolve_sse_vex): Likewise.
23902 (USE_FXSAVE): New.
23903 (_dl_runtime_resolve_fxsave): Likewise.
23904 (USE_XSAVE): Likewise.
23905 (_dl_runtime_resolve_xsave): Likewise.
23906 (USE_XSAVEC): Likewise.
23907 (_dl_runtime_resolve_xsavec): Likewise.
23908 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
23909 Removed.
23910 (_dl_runtime_resolve_avx512_opt): Likewise.
23911 (_dl_runtime_resolve_avx): Likewise.
23912 (_dl_runtime_resolve_avx_opt): Likewise.
23913 (_dl_runtime_resolve_sse): Likewise.
23914 (_dl_runtime_resolve_sse_vex): Likewise.
23915 (_dl_runtime_resolve_fxsave): New.
23916 (_dl_runtime_resolve_xsave): Likewise.
23917 (_dl_runtime_resolve_xsavec): Likewise.
23918
23919 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
23920
23921 [BZ #22320]
23922 CVE-2017-15670
23923 * posix/glob.c (__glob): Fix one-byte overflow.
23924
23925 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23926
23927 * malloc/malloc.c (sysdep-cancel.h): Add include.
23928
23929 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23930
23931 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
23932
23933 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
23934
23935 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
23936 (tests): Remove $(objpfx)ga_test depdendency.
23937 * resolv/ga_test.c: Remove file.
23938
23939 2017-10-20 Mike FABIAN <mfabian@redhat.com>
23940
23941 [BZ #18812]
23942 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
23943 * localedata/locales/kab_DZ: New file.
23944
23945 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23946
23947 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
23948 _dl_relocate_static_pie instead of _dl_start to compute load
23949 address in static PIE.
23950
23951 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23952
23953 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
23954
23955 2017-10-20 Mike FABIAN <mfabian@redhat.com>
23956
23957 [BZ #13605]
23958 * localedata/SUPPORTED: Add shn_MM/UTF-8.
23959 * localedata/locales/shn_MM: New file.
23960
23961 2017-10-20 Florian Weimer <fweimer@redhat.com>
23962
23963 [BZ #22321]
23964 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
23965 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
23966 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
23967 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
23968 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
23969 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
23970
23971 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
23972
23973 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
23974
23975 2017-10-19 Joseph Myers <joseph@codesourcery.com>
23976
23977 * sysdeps/mips/ieee754/bits/floatn.h: New file.
23978
23979 [BZ #22322]
23980 * sysdeps/mips/bits/long-double.h: Move to ....
23981 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
23982
23983 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
23984
23985 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
23986
23987 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
23988 H.J. Lu <hongjiu.lu@intel.com>
23989
23990 [BZ #22299]
23991 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
23992 GLRO(dl_platform) to NULL.
23993 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
23994 (modules-names): Add tst-platformmod-1 and
23995 x86_64/tst-platformmod-2.
23996 (CFLAGS-tst-platform-1.c): New.
23997 (CFLAGS-tst-platformmod-1.c): Likewise.
23998 (CFLAGS-tst-platformmod-2.c): Likewise.
23999 (LDFLAGS-tst-platformmod-2.so): Likewise.
24000 ($(objpfx)tst-platform-1): Likewise.
24001 ($(objpfx)tst-platform-1.out): Likewise.
24002 (tst-platform-1-ENV): Likewise.
24003 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24004 * sysdeps/x86_64/tst-platform-1.c: New file.
24005 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24006 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24007
24008 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24009
24010 [BZ #13994]
24011 * locale/iso-639.def: Add Karbi.
24012 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24013 * localedata/locales/mjw_IN: New file.
24014
24015 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24016
24017 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24018 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24019 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24020 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24021 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24022 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24023 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24024 <bits/floatn.h>.
24025 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24026 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24027 * manual/math.texi (Mathematics): Document additional architecture
24028 support for _Float128.
24029 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24030 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24031 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24032 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24033 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24034 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24035 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24036 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24037 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24038 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24039 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24040 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24041 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24042 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24043 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24044
24045 2017-10-18 Renlin Li <renlin.li@arm.com>
24046
24047 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24048 _DYNAMIC symbol to calculate load address.
24049
24050 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24051
24052 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24053 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24054 summary bits.
24055 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24056 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24057
24058 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24059
24060 [BZ #16777]
24061 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24062 and improve readability by using more ASCII.
24063 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24064 and improve readability by using more ASCII.
24065
24066 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24067
24068 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24069 not all targets support atomics on bool.
24070
24071 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24072
24073 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24074 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24075 __f128.
24076 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24077 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24078 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24079 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24080 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24081 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24082
24083 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24084
24085 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24086 defines.
24087
24088 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24089
24090 [BZ #22159]
24091 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24092 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24093 (do_check_remalloced_chunk): Fix build bug.
24094 (do_check_malloc_state): Add assert that checks arena->top.
24095 (malloc_consolidate): Remove initialization.
24096 (int_mallinfo): Remove call to malloc_consolidate.
24097 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24098
24099 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24100
24101 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24102 (have_fastchunks): Remove.
24103 (clear_fastchunks): Remove.
24104 (set_fastchunks): Remove.
24105 (malloc_state): Add have_fastchunks.
24106 (malloc_init_state): Use have_fastchunks.
24107 (do_check_malloc_state): Remove incorrect invariant checks.
24108 (_int_malloc): Use have_fastchunks.
24109 (_int_free): Likewise.
24110 (malloc_consolidate): Likewise.
24111
24112 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24113
24114 * malloc/malloc.c (tcache_put): Inline.
24115 (tcache_get): Inline.
24116
24117 2017-10-17 Jordi Mallach <jordi@gnu.org>
24118
24119 Aurelien Jarno <aurelien@aurel32.net>
24120 [BZ #2522]
24121 * localedata/locales/ca_ES@valencia: New file.
24122 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24123
24124 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24125
24126 [BZ #22296]
24127 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24128 < 6.x
24129
24130 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24131
24132 * scripts/build-many-glibcs.py (Context.add_all_configs):
24133 Add arm-linux-gnueabihf multiarch extra_glibcs.
24134
24135 * sysdeps/generic/ifunc-init.h: New file.
24136 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24137
24138 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24139
24140 [BZ #22019]
24141 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24142 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24143 * stdlib/tst-strfmon_l.c: adapt test case.
24144
24145 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24146
24147 * sysdeps/generic/float128-abi.h: New file.
24148 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24149 non-__prefixed symbols to ....
24150 * math/Versions: ... here. Include <float128-abi.h>.
24151 * stdlib/Versions ... and here. Include <float128-abi.h>
24152
24153 2017-10-16 Florian Weimer <fweimer@redhat.com>
24154
24155 * version.h (VERSION): Switch to ".9000" as the development
24156 version suffix.
24157
24158 2017-10-16 Florian Weimer <fweimer@redhat.com>
24159
24160 [BZ #22050]
24161 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24162 compat_symbol_reference to access non-default version.
24163
24164 2017-10-16 Florian Weimer <fweimer@redhat.com>
24165
24166 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24167
24168 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24169
24170 * include/shlib-compat.h (compat_symbol_reference): Update
24171 comment.
24172
24173 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24174
24175 * math/Makefile (test-types): Add
24176 $(type-float128-$(float128-alias-fcts)).
24177 * math/test-float128.h (TYPE_STR): Define conditional on
24178 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24179 (ULP_IDX): Likewise.
24180 (ULP_I_IDX): Likewise.
24181
24182 * stdlib/strtold.c: Include <bits/floatn.h>
24183 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24184 and later undefine as macro. Define as weak alias if
24185 [!USE_WIDE_CHAR].
24186 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24187 and later undefine as macro. Define as weak alias if
24188 [USE_WIDE_CHAR].
24189 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24190 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24191 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24192 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24193 Define and later undefine as macro. Define as weak alias if
24194 [USE_WIDE_CHAR].
24195 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24196 <bits/floatn.h>.
24197 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24198 Define and later undefine as macro. Define as weak alias if
24199 [!USE_WIDE_CHAR].
24200 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24201 Define and later undefine as macro. Define as weak alias if
24202 [USE_WIDE_CHAR].
24203
24204 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24205
24206 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24207 record_verbose messages.
24208
24209 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24210
24211 [BZ #22052]
24212 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24213 to silence -O3 -Wall warning with GCC 7.
24214
24215 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24216
24217 * Makeconfig (+link-static-before-libc): Use the first of
24218 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24219 * gmon/Makefile (tests): Add tst-gmon-static.
24220 (tests-static): Likewise.
24221 (CFLAGS-tst-gmon-static.c): New.
24222 (CRT-tst-gmon-static): Likewise.
24223 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24224 (tst-gmon-static-ENV): Likewise.
24225 (tests-special): Likewise.
24226 ($(objpfx)tst-gmon-static.out): Likewise.
24227 (clean-tst-gmon-static-data): Likewise.
24228 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24229 * gmon/tst-gmon-static-gprof.sh: New file.
24230 * gmon/tst-gmon-static.c: Likewise.
24231
24232 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24233
24234 [BZ #22295]
24235 * locale/programs/linereader.c (get_string): Don't warn on
24236 non-symbolic character.
24237
24238 [BZ #22294]
24239 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24240 int_curr_symbol.
24241
24242 [BZ #22292]
24243 * locale/programs/record-status.h: New file
24244 * locale/programs/locale.c: Add comment.
24245 * locale/programs/charmap-dir.c: Don't include error.h.
24246 (charmap_opendir): Use record_error.
24247 * locale/programs/charmap.c: Don't include error.h.
24248 (charmap_read): Use record_error, and record_warning.
24249 (parse_charmap): Likewise.
24250 * locale/programs/ld-address.c: Don't include error.h.
24251 (address_finish): Use record_error, and record_warning.
24252 * locale/programs/ld-collate.c: Don't include error.h.
24253 (collate_finish): Use record_error, and record_error_at_line.
24254 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24255 (ctype_class_new): Likewise.
24256 (ctype_map_new): Likewise.
24257 (set_one_default): Likewise.
24258 (set_class_defaults): Likewise.
24259 (translit_flatten): Likewise.
24260 (allocate_arrays): Use record_error, and record_verbose.
24261 * locale/programs/ld-identification.c: Don't include error.h.
24262 (indentation_finish): Use record_error and record_warning.
24263 * locale/programs/ld-measurement.c: Don't include error.h.
24264 (measurement_finish): Use record_error.
24265 * locale/programs/ld-messages.c
24266 (message_finish): Likewise.
24267 * locale/programs/ld-monetary.c
24268 (monetary_finish): Likewise.
24269 * locale/programs/ld-name.c (name_finish): Use record_error
24270 and record_warning.
24271 * locale/programs/ld-numeric.c
24272 (numeric_finish): Use record_error.
24273 * locale/programs/ld-paper.c: Don't include error.h.
24274 (paper_finish): Use record_error.
24275 * locale/programs/ld-telephone.c: Don't include error.h.
24276 (telephone_finish): Use record_error.
24277 * locale/programs/ld-time.c (time_finish): Likewise.
24278 * locale/programs/linereader.h (lr_error): Make inline func.
24279 * locale/programs/localedef.c: Define recorded_warning_count,
24280 and recorded_error_count.
24281 (main): Use record_error. Use recorded_error_count and
24282 recorded_warning_count to issue correct error returns.
24283 (add_to_readlist): Use record_error.
24284 (find_locale): Likewise.
24285 (load_locale): Likewise.
24286 * locale/programs/localedef.h: Remove be_quiet
24287 and WITH_CUR_LOCALE.
24288 * locale/programs/locarchive.c (compare_from_file): Use
24289 record_error.
24290 * locale/programs/locfile.c (write_locale_data): Use
24291 record_error.
24292 * locale/programs/repertoire.c: Dont include error.h.
24293 (repertoire_complain): Use record_error.
24294 * localedata/tst-fmon.sh: Expect failures from localedef.
24295 * localedata/tst-locale.sh: Likewise.
24296 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24297
24298 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24299 (REPORTS): Likewise.
24300 (check): Likewise.
24301 (i18n): Rename to...
24302 (i18n_ctype): ...this.
24303 (i18n-report): Rename to...
24304 (i18n_ctype-report): ...this.
24305 * localedata/locales/i18n_ctype: Regenerate.
24306 * localedata/locales/i18n: copy i18n_ctype.
24307
24308 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24309
24310 * stdlib/strfroml.c: Include <bits/floatn.h>.
24311 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24312 Define before include of <stdlib.h> and undefine afterwards, then
24313 define as weak alias.
24314
24315 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24316 Undefine and restore default definition. Use
24317 libm_alias_ldouble_other.
24318
24319 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24320
24321 [BZ #22153]
24322 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24323 in coredumps.
24324
24325 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24326
24327 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24328 Assign sym_map to be map for local symbols, as TLS relocations
24329 use sym_map to determine whether the symbol is defined and to
24330 extract the TLS information.
24331 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24332 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24333
24334 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24335
24336 [BZ #22189]
24337 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24338 (math_force_eval): Add powerpc version.
24339
24340 [BZ #22142]
24341 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24342 -DBL_MAX.
24343 (do_test): Likewise.
24344 * stdio-common/tst-printf.sh: Likewise.
24345 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24346 ifdef clause in order to set the carry bit right. Replace r0 by
24347 0 without changing the behavior.
24348
24349 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24350
24351 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24352 <libm-alias-ldouble.h>.
24353 (fabsl): Define using libm_alias_ldouble.
24354 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24355 <libm-alias-ldouble.h>.
24356 (fabsl): Define using libm_alias_ldouble.
24357
24358 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24359 Remove conditional code.
24360
24361 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24362 Rename to __clog10_internal_l.
24363 (__clog10_internal_l): Define aliases using
24364 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24365 with __clog10.
24366
24367 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24368
24369 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24370 * benchtests/sincosf-inputs: New file.
24371 * benchtests/cosf-inputs: New file.
24372 * benchtests/sinf-inputs: New file.
24373
24374 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24375
24376 * posix/tst-spawn.c (do_test): Wait for both children.
24377
24378 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24379
24380 [BZ #22284]
24381 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24382 tests-pie): Add tst-gmon-pie.
24383 (CFLAGS-tst-gmon-pie.c): New.
24384 (CRT-tst-gmon-pie): Likewise.
24385 (tst-gmon-pie-ENV): Likewise.
24386 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24387 ($(objpfx)tst-gmon-pie.out): Likewise.
24388 (clean-tst-gmon-pie-data): Likewise.
24389 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24390 * gmon/gmon.c [PIC]: Include <link.h>.
24391 [PIC] (callback): New function.
24392 (write_hist): Add an argument for load address. Subtract load
24393 address from PCs.
24394 (write_call_graph): Likewise.
24395 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24396 it to write_hist and write_call_graph.
24397 * gmon/tst-gmon-pie.c: New file.
24398
24399 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24400
24401 * math/Makefile (test-types-basic): New variable.
24402 (test-types): Likewise.
24403 (libm-test-support): Use $(test-types) instead of $(types).
24404 (libm-tests-base-normal): Likewise.
24405 (libm-tests-base-finite): Likewise.
24406 (libm-tests-base-inline): Likewise.
24407 (generated): Likewise.
24408 ($(objpfx)libm-test-support-$(t).c): Likewise.
24409 (libm-tests-for-type iterator): Likewise.
24410 (libm-test-support iterator): Likewise.
24411 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24412 (ulp_idx): Use ULP_IDX.
24413 * math/test-ldouble.h: Include <float.h>.
24414 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24415 (ULP_IDX): New macro.
24416 (ULP_I_IDX): Likewise.
24417 * math/test-double.h (ULP_IDX): Likewise.
24418 (ULP_I_IDX): Likewise.
24419 * math/test-float.h (ULP_IDX): Likewise.
24420 (ULP_I_IDX): Likewise.
24421 * math/test-float128.h (ULP_IDX): Likewise.
24422 (ULP_I_IDX): Likewise.
24423
24424 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24425
24426 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24427 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24428 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24429 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24430 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24431 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24432 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24433 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24434 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24435 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24436 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24437 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24438 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24439 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24440 (SINGLE_THREAD_BY_GLOBAL): Define.
24441 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24442 Likewise.
24443 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24444 Likewise.
24445 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24446 Likewise.
24447 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24448 Likewise.
24449 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24450 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24451 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24452 Likewise.
24453
24454 2017-10-11 Andreas Schwab <schwab@suse.de>
24455
24456 * nis/Makefile (aux): Remove.
24457 * nscd/Makefile (aux): Add nscd_hash.
24458 (nscd-modules): Likewise.
24459 ($(objpfx)nscd): Don't depend on libnsl.
24460 * nscd/nscd_hash.c: New file.
24461 * nscd/nscd_hash.h: Likewise.
24462 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24463 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24464 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24465 instead of <nis/rpcsvc/nis.h>.
24466 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24467
24468 2017-10-11 Florian Weimer <fweimer@redhat.com>
24469
24470 [BZ #22078]
24471 Avoid large NSS buffers with many addresses, aliases.
24472 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24473 using dynarrays and struct alloc_buffer.
24474 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24475 (tst-nss-files-hosts-multi): Link with -ldl.
24476 * nss/tst-nss-files-hosts-multi.c: New file.
24477
24478 2017-10-11 Florian Weimer <fweimer@redhat.com>
24479
24480 [BZ #18023]
24481 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24482 scratch_buffer. Eliminate gotos.
24483
24484 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24485
24486 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24487 libm_alias_ldouble_other.
24488 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24489 undefine and redefine.
24490 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24491 (exp10l): Do not define here.
24492 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24493 (weak_alias): Undefine and redefine.
24494 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24495 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24496 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24497 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24498
24499 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24500 [!__fma] (fma): Define using libm_alias_double.
24501 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24502 [!__fmaf] (fmaf): Define using libm_alias_float.
24503 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24504 (fmal): Define using libm_alias_ldouble.
24505
24506 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24507
24508 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24509 New macro.
24510 (libm_alias_double_other): Likewise.
24511 (libm_alias_double_r): Use libm_alias_double_other_r.
24512 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24513 New macro.
24514 (libm_alias_float_other): Likewise.
24515 (libm_alias_float_r): Use libm_alias_float_other_r.
24516 * sysdeps/generic/libm-alias-float128.h
24517 (libm_alias_float128_other_r): New macro.
24518 (libm_alias_float128_other): Likewise.
24519 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24520 * sysdeps/generic/libm-alias-ldouble.h
24521 (libm_alias_ldouble_other_r): New macro.
24522 (libm_alias_ldouble_other): Likewise.
24523 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24524 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24525 (libm_alias_double_other_r): New macro.
24526 (libm_alias_double_other): Likewise.
24527 (libm_alias_double_r): Use libm_alias_double_other_r.
24528 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24529 (libm_alias_ldouble_other_r): New macro.
24530 (libm_alias_ldouble_other): Likewise.
24531 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24532 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24533 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24534 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24535 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24536 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24537 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24538 * math/w_exp2f.c: Use libm_alias_float_other.
24539 * math/w_expf.c: Likewise.
24540 * math/w_log2f.c: Likewise.
24541 * math/w_logf.c: Likewise.
24542 * math/w_powf.c: Likewise.
24543 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24544 [!__exp2f]: Use libm_alias_float_other.
24545 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24546 [!__expf]: Use libm_alias_float_other.
24547 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24548 [!__log2f]: Use libm_alias_float_other.
24549 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24550 [!__logf]: Use libm_alias_float_other.
24551 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24552 [!__powf]: Use libm_alias_float_other.
24553
24554 2017-10-10 Florian Weimer <fweimer@redhat.com>
24555
24556 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24557 function.
24558 (_nss_files_gethostbyname3_r): Call it.
24559
24560 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24561
24562 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24563 error. Remove default definition of declare_mgen_alias.
24564 [!declare_mgen_alias_r]: Likewise.
24565 * sysdeps/generic/math-type-macros-double.h
24566 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24567 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24568 (declare_mgen_alias_r): Likewise.
24569 * sysdeps/generic/math-type-macros-float128.h
24570 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24571 * sysdeps/generic/math-type-macros-ldouble.h
24572 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24573 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24574 macro.
24575 (declare_mgen_alias_r_s): Likewise.
24576 (declare_mgen_alias_r): Likewise.
24577 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24578 (lgamma_r): Define using libm_alias_double_r.
24579 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24580 (lgammaf_r): Define using libm_alias_float_r.
24581 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24582 (lgammal_r): Define using libm_alias_ldouble_r.
24583 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24584 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24585
24586 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24587
24588 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24589 extern declaration.
24590
24591 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24592
24593 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24594
24595 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24596
24597 [BZ #21326]
24598 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24599 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24600 * math/Makefile (test-math-cxx11): New test.
24601 * math/test-math-cxx11.cc: New file.
24602
24603 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24604
24605 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24606
24607 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24608 call to allocate the slave pty file descriptor.
24609
24610 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24611
24612 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24613 [!__fma] (fma): Define using libm_alias_double.
24614 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24615 [!__fma] (fma): Define using libm_alias_double.
24616
24617 * sysdeps/ieee754/float128/float128_private.h: Include
24618 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24619 (libm_alias_ldouble_r): Undefine and redefine.
24620 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24621 <libm-alias-ldouble.h>.
24622 (asinhl): Define using libm_alias_ldouble.
24623 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24624 <libm-alias-ldouble.h>.
24625 (atanl): Define using libm_alias_ldouble.
24626 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24627 <libm-alias-ldouble.h>.
24628 (cbrtl): Define using libm_alias_ldouble.
24629 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24630 <libm-alias-ldouble.h>.
24631 (ceill): Define using libm_alias_ldouble.
24632 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24633 <libm-alias-ldouble.h>.
24634 (copysignl): Define using libm_alias_ldouble.
24635 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24636 <libm-alias-ldouble.h>.
24637 (cosl): Define using libm_alias_ldouble.
24638 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24639 <libm-alias-ldouble.h>.
24640 (erfl): Define using libm_alias_ldouble.
24641 (erfcl): Likewise.
24642 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24643 <libm-alias-ldouble.h>.
24644 (expm1l): Define using libm_alias_ldouble.
24645 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24646 <libm-alias-ldouble.h>.
24647 (fabsl): Define using libm_alias_ldouble.
24648 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24649 <libm-alias-ldouble.h>.
24650 (floorl): Define using libm_alias_ldouble.
24651 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24652 <libm-alias-ldouble.h>.
24653 (fmal): Define using libm_alias_ldouble.
24654 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24655 <libm-alias-ldouble.h>.
24656 (frexpl): Define using libm_alias_ldouble.
24657 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24658 libm_alias_ldouble.
24659 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24660 <libm-alias-ldouble.h>.
24661 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24662 libm_alias_ldouble.
24663 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24664 <libm-alias-ldouble.h>.
24665 (getpayloadl): Define using libm_alias_ldouble.
24666 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24667 <libm-alias-ldouble.h>.
24668 (llrintl): Define using libm_alias_ldouble.
24669 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24670 <libm-alias-ldouble.h>.
24671 (llroundl): Define using libm_alias_ldouble.
24672 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24673 <libm-alias-ldouble.h>.
24674 (logbl): Define using libm_alias_ldouble.
24675 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24676 <libm-alias-ldouble.h>.
24677 (lrintl): Define using libm_alias_ldouble.
24678 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24679 <libm-alias-ldouble.h>.
24680 (lroundl): Define using libm_alias_ldouble.
24681 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24682 <libm-alias-ldouble.h>.
24683 (modfl): Define using libm_alias_ldouble.
24684 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24685 <libm-alias-ldouble.h>.
24686 (nearbyintl): Define using libm_alias_ldouble.
24687 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24688 <libm-alias-ldouble.h>.
24689 (nextafterl): Define using libm_alias_ldouble.
24690 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24691 <libm-alias-ldouble.h>.
24692 (nextupl): Define using libm_alias_ldouble.
24693 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24694 <libm-alias-ldouble.h>.
24695 (remquol): Define using libm_alias_ldouble.
24696 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24697 <libm-alias-ldouble.h>.
24698 (rintl): Define using libm_alias_ldouble.
24699 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24700 <libm-alias-ldouble.h>.
24701 (roundevenl): Define using libm_alias_ldouble.
24702 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24703 <libm-alias-ldouble.h>.
24704 (roundl): Define using libm_alias_ldouble.
24705 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24706 using libm_alias_ldouble.
24707 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24708 <libm-alias-ldouble.h>.
24709 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24710 Define using libm_alias_ldouble.
24711 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24712 <libm-alias-ldouble.h>.
24713 (sincosl): Define using libm_alias_ldouble.
24714 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24715 <libm-alias-ldouble.h>.
24716 (sinl): Define using libm_alias_ldouble.
24717 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24718 <libm-alias-ldouble.h>.
24719 (tanhl): Define using libm_alias_ldouble.
24720 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24721 <libm-alias-ldouble.h>.
24722 (tanl): Define using libm_alias_ldouble.
24723 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24724 <libm-alias-ldouble.h>.
24725 (totalorderl): Define using libm_alias_ldouble.
24726 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24727 <libm-alias-ldouble.h>.
24728 (totalordermagl): Define using libm_alias_ldouble.
24729 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24730 <libm-alias-ldouble.h>.
24731 (truncl): Define using libm_alias_ldouble.
24732 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24733 libm_alias_ldouble.
24734 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24735 libm_alias_ldouble.
24736 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24737 <libm-alias-ldouble.h>.
24738 (weak_alias): Do not undefine and redefine.
24739 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24740 (copysignl): Define with long_double_symbol only if [IS_IN
24741 (libc)].
24742 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24743 <libm-alias-ldouble.h>.
24744 (weak_alias): Do not undefine and redefine.
24745 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24746 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24747 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24748 <libm-alias-ldouble.h>.
24749 (weak_alias): Do not undefine and redefine.
24750 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24751 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24752 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24753 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24754 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24755 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24756 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24757 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24758 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24759 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24760 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24761 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24762 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24763 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24764 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24765 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24766 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24767 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24768 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24769 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24770 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24771 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24772 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24773 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24774 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24775 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24776
24777 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24778
24779 [BZ #22111]
24780 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24781 (tcache_thread_freeres): Set tcache_shutting_down before
24782 freeing the tcache.
24783 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24784 * malloc/tst-malloc-tcache-leak.c: New file.
24785
24786 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24787
24788 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24789 back to powerpc32 file.
24790 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24791 (memrchr): Add __memrchr_power8 to ifunc list.
24792 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24793 extra bytes for unaligned inputs.
24794
24795 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24796
24797 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24798 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24799 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24800 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24801 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24802
24803 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24804
24805 * sysdeps/arm/libm-test-ulps: Update.
24806
24807 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24808 <libm-alias-ldouble.h>.
24809 (asinhl): Define using libm_alias_ldouble.
24810 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24811 <libm-alias-ldouble.h>.
24812 (cbrtl): Define using libm_alias_ldouble.
24813 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24814 <libm-alias-ldouble.h>.
24815 (copysignl): Define using libm_alias_ldouble.
24816 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24817 <libm-alias-ldouble.h>.
24818 (cosl): Define using libm_alias_ldouble.
24819 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24820 <libm-alias-ldouble.h>.
24821 (erfl): Define using libm_alias_ldouble.
24822 (erfcl): Likewise.
24823 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24824 <libm-alias-ldouble.h>.
24825 (fmal): Define using libm_alias_ldouble.
24826 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24827 <libm-alias-ldouble.h>.
24828 (frexpl): Define using libm_alias_ldouble.
24829 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24830 libm_alias_ldouble.
24831 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24832 <libm-alias-ldouble.h>.
24833 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24834 libm_alias_ldouble.
24835 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24836 <libm-alias-ldouble.h>.
24837 (getpayloadl): Define using libm_alias_ldouble.
24838 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24839 <libm-alias-ldouble.h>.
24840 (llrintl): Define using libm_alias_ldouble.
24841 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24842 <libm-alias-ldouble.h>.
24843 (llroundl): Define using libm_alias_ldouble.
24844 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24845 <libm-alias-ldouble.h>.
24846 (lrintl): Define using libm_alias_ldouble.
24847 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24848 <libm-alias-ldouble.h>.
24849 (lroundl): Define using libm_alias_ldouble.
24850 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24851 <libm-alias-ldouble.h>.
24852 (modfl): Define using libm_alias_ldouble.
24853 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24854 <libm-alias-ldouble.h>.
24855 (nextupl): Define using libm_alias_ldouble.
24856 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24857 <libm-alias-ldouble.h>.
24858 (remquol): Define using libm_alias_ldouble.
24859 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24860 <libm-alias-ldouble.h>.
24861 (roundevenl): Define using libm_alias_ldouble.
24862 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24863 <libm-alias-ldouble.h>.
24864 (roundl): Define using libm_alias_ldouble.
24865 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
24866 using libm_alias_ldouble.
24867 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
24868 <libm-alias-ldouble.h>.
24869 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
24870 <libm-alias-ldouble.h>.
24871 (setpayloadsigl): Define using libm_alias_ldouble.
24872 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
24873 <libm-alias-ldouble.h>.
24874 (sincosl): Define using libm_alias_ldouble.
24875 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
24876 <libm-alias-ldouble.h>.
24877 (sinl): Define using libm_alias_ldouble.
24878 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
24879 <libm-alias-ldouble.h>.
24880 (tanhl): Define using libm_alias_ldouble.
24881 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
24882 <libm-alias-ldouble.h>.
24883 (tanl): Define using libm_alias_ldouble.
24884 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
24885 <libm-alias-ldouble.h>.
24886 (totalorderl): Define using libm_alias_ldouble.
24887 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
24888 <libm-alias-ldouble.h>.
24889 (totalordermagl): Define using libm_alias_ldouble.
24890 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
24891 libm_alias_ldouble.
24892 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
24893 libm_alias_ldouble.
24894
24895 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
24896
24897 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24898 memmove_falkor.
24899 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24900 (__libc_ifunc_impl_list): Likewise.
24901 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
24902 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
24903
24904 * benchtests/bench-memmove-walk.c: New file.
24905 * benchtests/Makefile (string-benchset): Add it.
24906
24907 * benchtests/bench-memset-walk.c: New file.
24908 * benchtests/Makefile (string-benchset): Add it.
24909
24910 * benchtests/bench-memcpy-walk.c: New file.
24911 * benchtests/Makefile (string-benchset): Add it.
24912
24913 2017-10-05 Florian Weimer <fweimer@redhat.com>
24914
24915 nscd: Eliminate compilation time dependency in the build output.
24916 * nscd/nscd_stat.c (STATDATA_VERSION)
24917 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
24918 (STATDATA_VERSION_FULL): New macro definitions.
24919 (compilation): Remove.
24920 (struct statdata): Adjust version member.
24921 (send_stats): Set version from STATDATA_VERSION_FULL.
24922 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
24923
24924 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24925
24926 * configure.ac (--enable-add-ons): Remove option.
24927 (machine): Do not mention add-ons in comment.
24928 (LIBC_PRECONFIGURE): Likewise.
24929 (add_ons): Remove variable and sanity checks and logic to locate
24930 add-ons.
24931 (add_ons_automatic): Remove variable.
24932 (configured_add_ons): Likewise.
24933 (add_ons_sfx): Likewise.
24934 (add_ons_pfx): Likewise.
24935 (add_on_subdirs): Likewise.
24936 (sysnames_add_ons): Likewise. Remove loop over add-ons and
24937 consideration of add-ons in Implies handling.
24938 (sysdeps_add_ons): Likewise.
24939 * configure: Regenerated.
24940 * libidn/configure.ac: Remove.
24941 * libidn/configure: Likewise.
24942 * sysdeps/unix/inet/configure.ac: New file.
24943 * sysdeps/unix/inet/configure: New generated file.
24944 * sysdeps/unix/inet/Subdirs: Add libidn.
24945 * Makeconfig (sysdeps-srcdirs): Remove variable.
24946 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
24947 ($(common-objpfx)config.status): Do not depend on add-on files.
24948 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
24949 comment.
24950 (all-subdirs): Do not include $(add-on-subdirs).
24951 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
24952 * config.make.in (add-ons): Remove variable.
24953 (add-on-subdirs): Likewise.
24954 (sysdeps-add-ons): Likewise.
24955 * manual/Makefile (add-chapters): Remove.
24956 ($(objpfx)texis): Do not depend on $(add-chapters).
24957 (nonexamples): Do not handle $(add-chapters).
24958 (examples): Do not handle $(add-ons).
24959 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
24960 libc-texinfo.sh.
24961 * manual/install.texi (Installation): Do not mention add-ons.
24962 (--enable-add-ons): Do not document configure option.
24963 * INSTALL: Regenerated.
24964 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
24965 * manual/maint.texi (Hierarchy Conventions): Do not mention
24966 add-ons.
24967 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
24968 --enable-add-ons.
24969 * scripts/gen-sorted.awk: Do not handle Subdirs files from
24970 add-ons.
24971 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
24972 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
24973
24974 2017-10-05 Andreas Schwab <schwab@suse.de>
24975
24976 [BZ #15142]
24977 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
24978 (_IO_flush_all_lockp): Always lock list_all_lock.
24979 (_IO_flush_all_linebuffered): Likewise.
24980 (_IO_unbuffer_all): Likewise.
24981
24982 2017-10-05 Florian Weimer <fweimer@redhat.com>
24983
24984 [BZ #15436]
24985 Do not flush stdio streams on abort.
24986 * stdlib/abort.c (fflush): Remove macro definition.
24987 (abort): Remove stages related to stdio flushing.
24988
24989 2017-10-05 Florian Weimer <fweimer@redhat.com>
24990
24991 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
24992
24993 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
24994
24995 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
24996
24997 2017-10-05 Florian Weimer <fweimer@redhat.com>
24998
24999 * support/support_format_hostent.c (support_format_hostent): Add
25000 more error information for NETDB_INTERNAL.
25001
25002 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25003
25004 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25005 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25006 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25007 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25008 AC_DEFINE if multi-arch is enabled.
25009 * sysdeps/i386/configure: Regenerated.
25010
25011 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25012
25013 * Makeconfig (+link-static-before-libc): Use
25014 $(DEFAULT-LDFLAGS-$(@F)).
25015 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25016 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25017 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25018
25019 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25020
25021 * elf/Makefile (tests): Add tst-main1.
25022 (modules-names): Add tst-main1mod.
25023 ($(objpfx)tst-main1): New.
25024 (CRT-tst-main1): Likewise.
25025 (LDFLAGS-tst-main1): Likewise.
25026 (LDLIBS-tst-main1): Likewise.
25027 (tst-main1mod.so-no-z-defs): Likewise.
25028 * elf/tst-main1.c: New file.
25029 * elf/tst-main1mod.c: Likewise.
25030
25031 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25032
25033 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25034
25035 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25036
25037 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25038 (fma): Define using libm_alias_double.
25039 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25040 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25041 <math_ldbl_opt.h>.
25042 (fmal): Do not define as compat symbol here.
25043 * sysdeps/alpha/fpu/s_fma.c: New file.
25044
25045 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25046
25047 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25048
25049 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25050
25051 [BZ #22229]
25052 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25053 <math_ldbl_opt.h>
25054 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25055 and libc.
25056 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25057 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25058 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25059 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25060 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25061 Include <math_ldbl_opt.h>
25062 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25063 and libc.
25064 (compat_symbol): Undefine and redefine.
25065 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25066 <math_ldbl_opt.h>
25067 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25068 (compat_symbol): Undefine and redefine.
25069 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25070 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25071 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25072 GLIBC_2_1 for libm.
25073 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25074 GLIBC_2.0 copysignl symbol.
25075 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25076 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25077
25078 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25079
25080 2017-10-04 Florian Weimer <fweimer@redhat.com>
25081
25082 * scripts/check-local-headers.sh: Ignore nspr4 header file
25083 directory in addition to nspr.
25084
25085 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25086
25087 [BZ #17956]
25088 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25089 * configure: Regenerate.
25090 * crypt/Makefile (nss-cpp-flags): New variable.
25091 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25092 (CPPFLAGS-md5-crypt.c): Use it.
25093 * scripts/check-local-headers.sh: Ignore nspr header file
25094 directory.
25095
25096 2017-10-04 Andreas Schwab <schwab@suse.de>
25097
25098 * nis/Makefile (services): Remove compat.
25099 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25100 ($(objpfx)libnss_compat.so): Remove rule.
25101 * nis/Versions (libnss_compat): Remove.
25102 * nss/Makefile (services): Add compat.
25103 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25104 * nss/Versions (libnss_compat): Define.
25105 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25106 Don't include <rpc/types.h>. Replace bool_t by bool.
25107 * nss/nss_compat/compat-initgroups.c: Likewise.
25108 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25109 instead of <rpcsrv/ypclnt.h>.
25110 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25111 yp_get_default_domain.
25112 * nss/nss_compat/compat-pwd.c: Likewise.
25113 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25114 yp_get_default_domain.
25115 * nss/nss_compat/nisdomain.c: New file.
25116 * nss/nss_compat/nisdomain.h: Likewise.
25117
25118 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25119
25120 [BZ #22244]
25121 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25122 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25123
25124 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25125
25126 [BZ #22243]
25127 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25128 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25129
25130 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25131
25132 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25133 "movl main@GOTOFF(%ebx), %eax".
25134
25135 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25136
25137 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25138 allow undefined _DYNAMIC in PIE libc.a.
25139 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25140 Likewse.
25141
25142 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25143
25144 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25145 check _DYNAMIC.
25146
25147 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25148
25149 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25150 check _DYNAMIC.
25151
25152 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25153
25154 * math/test-math-iscanonical.cc (error): Replace bool with int.
25155
25156 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25157
25158 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25159 (modf): Define using libm_alias_double, only if [!__modf].
25160 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25161 <libm-alias-double.h>.
25162 (modf): Define using libm_alias_double, only if [!__modf].
25163 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25164 compat symbol here.
25165 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25166 (weak_alias): Do not undefine and redefine.
25167 (strong_alias): Likewise.
25168 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25169 (weak_alias): Likewise.
25170 (strong_alias): Likewise.
25171
25172 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25173 (logb): Define using libm_alias_double, only if [!__logb].
25174 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25175 <libm-alias-double.h>.
25176 (logb): Define using libm_alias_double, only if [!__logb].
25177 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25178 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25179 (weak_alias): Do not undefine and redefine.
25180 (strong_alias): Likewise.
25181 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25182 (weak_alias): Likewise.
25183 (strong_alias): Likewise.
25184
25185 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25186
25187 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25188 Check SHARED instead PIC.
25189
25190 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25191
25192 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25193 [!__fmaf] (fmaf): Define using libm_alias_float.
25194
25195 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25196 (frexp): Define using libm_alias_double.
25197 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25198 <libm-alias-double.h>.
25199 (frexp): Define using libm_alias_double.
25200 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25201 compat symbol here.
25202
25203 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25204
25205 [BZ #22235]
25206 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25207 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25208 (CFLAGS-test-math-iscanonical.cc): New variable.
25209 * math/test-math-iscanonical.cc: New file.
25210 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25211 Provide a C++ implementation based on function overloading,
25212 rather than using __MATH_TG, which uses C-only builtins.
25213 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25214 Likewise.
25215 * sysdeps/powerpc/powerpc64le/Makefile
25216 (CFLAGS-test-math-iscanonical.cc): New variable.
25217
25218 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25219
25220 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25221 (ceil): Define using libm_alias_double.
25222 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25223 (floor): Define using libm_alias_double.
25224 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25225 <libm-alias-double.h>.
25226 (llround): Define using libm_alias_double.
25227 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25228 <libm-alias-double.h>.
25229 (lround): Define using libm_alias_double.
25230 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25231 <libm-alias-double.h>.
25232 (nearbyint): Define using libm_alias_double.
25233 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25234 <libm-alias-double.h>.
25235 (remquo): Define using libm_alias_double.
25236 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25237 (rint): Define using libm_alias_double.
25238 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25239 (round): Define using libm_alias_double.
25240 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25241 (trunc): Define using libm_alias_double.
25242 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25243 <libm-alias-double.h>.
25244 (ceil): Define using libm_alias_double.
25245 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25246 <libm-alias-double.h>.
25247 (floor): Define using libm_alias_double.
25248 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25249 <libm-alias-double.h>.
25250 (llround): Define using libm_alias_double.
25251 [_LP64] (lround): Likewise.
25252 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25253 <libm-alias-double.h>.
25254 [!_LP64] (lround): Define using libm_alias_double.
25255 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25256 <libm-alias-double.h>.
25257 (nearbyint): Define using libm_alias_double.
25258 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25259 <libm-alias-double.h>.
25260 (remquo): Define using libm_alias_double.
25261 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25262 <libm-alias-double.h>.
25263 (rint): Define using libm_alias_double.
25264 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25265 <libm-alias-double.h>.
25266 (round): Define using libm_alias_double.
25267 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25268 <libm-alias-double.h>.
25269 (trunc): Define using libm_alias_double.
25270 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25271 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25272 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25273 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25274 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25275 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25276 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25277 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25278 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25279
25280 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25281
25282 * math/w_remainder.c: New file.
25283 * math/w_remainderf.c: New file.
25284 * math/w_remainderl.c: New file.
25285
25286 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25287
25288 * elf/rtld.c (BOOTSTRAP_MAP): New.
25289 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25290 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25291 Likewise.
25292 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25293 Likewise.
25294 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25295 Likewise.
25296
25297 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25298
25299 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25300 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25301 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25302 rtld_hidden_data_ver): Define to empty.
25303 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25304 __assert_perror_fail): Likewise.
25305 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25306 (__rewinddir): Likewise.
25307 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25308 (__profile_frequency): Likewise.
25309 * include/setjmp.h (__sigsetjmp): Likewise.
25310 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25311 __libc_sigaction): Likewise.
25312 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25313 not set hidden attribute.
25314 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25315 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25316 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25317 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25318 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25319 __fxstatat64): Likewise.
25320 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25321 (__uname): Likewise.
25322 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25323 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25324 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25325 (NO_RTLD_HIDDEN): Set.
25326 * sysdeps/mach/hurd/configure: Refresh.
25327 * config.h.in: Refresh.
25328
25329 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25330
25331 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25332 (atan): Define using libm_alias_double.
25333 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25334 (tan): Define using libm_alias_double.
25335 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25336 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25337
25338 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25339 define as weak alias of __atan. Do not define any aliases if
25340 [__atan].
25341 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25342 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25343 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25344 as weak alias of __tan. Do not define any aliases if [__tan].
25345 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25346 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25347 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25348 __atan.
25349 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25350 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25351 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25352 and define as weak alias of __atan.
25353 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25354 __atan.
25355 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25356 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25357 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25358 define as weak alias of __tan.
25359
25360 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25361
25362 * math/w_lgamma.c: New file.
25363 * math/w_lgammaf.c: New file.
25364 * math/w_lgammal.c: New file.
25365
25366 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25367
25368 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25369 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25370 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25371 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25372 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25373 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25374 * sysdeps/i386/fpu/w_log2f.c: New file.
25375 * sysdeps/i386/fpu/w_logf.c: New file.
25376 * sysdeps/i386/fpu/w_powf.c: New file.
25377 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25378 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25379 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25380
25381 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25382 H.J. Lu <hongjiu.lu@intel.com>
25383
25384 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25385 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25386 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25387 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25388 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25389 the new expf code.
25390 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25391 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25392 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25393 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25394 * sysdeps/i386/fpu/w_exp2f.c: New file.
25395 * sysdeps/i386/fpu/w_expf.c: New file.
25396 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25397 * sysdeps/x86_64/fpu/w_expf.c: New file.
25398
25399 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25400
25401 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25402 (log2f): Likewise.
25403 (powf): Likewise.
25404 * math/w_log2f.c: New file.
25405 * math/w_logf.c: New file.
25406 * math/w_powf.c: New file.
25407 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25408 * math/w_logf_compat.c (__logf_compat): Likewise.
25409 * math/w_powf_compat.c (__powf_compat): Likewise.
25410 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25411 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25412 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25413 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25414 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25415 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25416 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25417 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25418 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25419 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25420 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25421 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25422 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25423 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25424 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25426 Likewise.
25427 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25428 Likewise.
25429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25430 Likewise.
25431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25432 Likewise.
25433 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25434 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25435 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25436 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25437 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25438 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25439 Likewise.
25440 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25441 Likewise.
25442 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25443 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25444 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25445
25446 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25447
25448 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25449 (sysdep_routines): Add memrchr_power8.
25450 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25451 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25452 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25453 New file.
25454 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25455 (memrchr): Add __memrchr_power8 to ifunc list.
25456 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25457
25458 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25459
25460 [BZ #18822]
25461 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25462 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25463 libc_hidden_def.
25464 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25465 (__posix_fallocate64_l64): Likewise.
25466
25467 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25468
25469 [BZ #18822]
25470 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25471 (__sched_setaffinity_new): Add libc_hidden_proto and
25472 libc_hidden_def.
25473
25474 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25475
25476 [BZ #18822]
25477 * include/glob.h (__glob64): Add libc_hidden_proto.
25478 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25479 libc_hidden_def.
25480
25481 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25482
25483 [BZ #18822]
25484 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25485 attribute_hidden.
25486
25487 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25488
25489 [BZ #18822]
25490 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25491
25492 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25493
25494 [BZ #18822]
25495 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25496 libc_hidden_def.
25497
25498 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25499
25500 [BZ #18822]
25501 * csu/version.c (__libc_print_version): Add attribute_hidden.
25502
25503 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25504
25505 [BZ #18822]
25506 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25507
25508 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25509
25510 [BZ #18822]
25511 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25512
25513 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25514
25515 [BZ #18822]
25516 * nscd/nscd_helper.c (__nis_hash): New prototype.
25517
25518 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25519
25520 [BZ #18822]
25521 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25522 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25523 libc_hidden_def.
25524 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25525 * termios/tcgetattr.c (__tcgetattr): Likewise.
25526
25527 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25528
25529 [BZ #18822]
25530 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25531 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25532 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25533 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25534 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25535
25536 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25537
25538 [BZ #18822]
25539 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25540
25541 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25542
25543 [BZ #18822]
25544 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25545 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25546
25547 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25548
25549 [BZ #18822]
25550 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25551
25552 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25553
25554 [BZ #18822]
25555 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25556 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25557
25558 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25559
25560 [BZ #18822]
25561 * include/ifreq.h: New file.
25562 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25563 (__ifreq): Likewise.
25564 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25565 (__ifreq): Likewise.
25566
25567 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25568
25569 [BZ #18822]
25570 * include/idna.h: New file.
25571 * inet/getnameinfo.c: Include <idna.h> instead of
25572 <libidn/idna.h>.
25573 (__idna_to_unicode_lzlz): Removed.
25574 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25575 <libidn/idna.h>.
25576 (__idna_to_ascii_lz): Removed.
25577 (__idna_to_unicode_lzlz): Likewise.
25578
25579 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25580
25581 [BZ #18822]
25582 * include/plural-exp.h: New file.
25583 * intl/plural-exp.c: Include <plural-exp.h> instead of
25584 "plural-exp.h".
25585
25586 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25587
25588 [BZ #18822]
25589 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25590 "getsourcefilter.h".
25591 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25592 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25593 "getsourcefilter.h".
25594 (__get_sol): Removed.
25595
25596 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25597
25598 [BZ #18822]
25599 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25600 to ...
25601 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25602
25603 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25604
25605 [BZ #18822]
25606 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25607 attribute_hidden.
25608
25609 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25610
25611 [BZ #18822]
25612 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25613
25614 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25615
25616 [BZ #18822]
25617 * include/search.h (__tdestroy): Add libc_hidden_proto.
25618 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25619
25620 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25621
25622 [BZ #18822]
25623 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25624
25625 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25626
25627 [BZ #18822]
25628 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25629 attribute_hidden.
25630
25631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25632
25633 [BZ #18822]
25634 * include/signal.h (__kill): Add libc_hidden_proto.
25635 (__sigblock): Likewise.
25636 (__sigprocmask): Likewise.
25637 (__sigaltstack): Likewise.
25638 * signal/kill.c (__kill): Add libc_hidden_def.
25639 * signal/sigblock.c (__sigblock): Likewise.
25640 * signal/sigprocmask.c (__sigprocmask): Likewise.
25641 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25642 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25643 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25644 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25645 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25646 Likewise.
25647 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25648 Likewise.
25649 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25650 (__sigprocmask): Likewise.
25651 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25652 Likewise.
25653 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25654 (__sigprocmask): Likewise.
25655 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25656 Likewise.
25657
25658 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25659
25660 [BZ #18822]
25661 * include/string.h (__strsep): Add libc_hidden_proto.
25662 * string/strsep.c (__strsep): Add libc_hidden_def.
25663
25664 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25665
25666 [BZ #18822]
25667 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25668 attribute_hidden.
25669 (__spawni): Likewise.
25670
25671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25672
25673 [BZ #18822]
25674 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25675 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25676 libc_hidden_def.
25677
25678 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25679
25680 [BZ #18822]
25681 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25682
25683 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25684
25685 [BZ #18822]
25686 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25687 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25688 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25689 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25690 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25691 Likewise.
25692 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25693 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25694
25695 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25696
25697 [BZ #18822]
25698 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25699 (__dcigettext): Likewise.
25700
25701 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25702
25703 [BZ #18822]
25704 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25705 libc_hidden_proto.
25706 (__get_nprocs): Likewise.
25707 (__get_phys_pages): Likewise.
25708 (__get_avphys_pages): Likewise.
25709 (__get_child_max): Add attribute_hidden.
25710 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25711 (__get_nprocs): Likewise.
25712 (__get_phys_pages): Likewise.
25713 (__get_avphys_pages): Likewise.
25714 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25715 libc_hidden_def.
25716 (__get_nprocs): Likewise.
25717 (__get_phys_pages): Likewise.
25718 (__get_avphys_pages): Likewise.
25719 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25720 libc_hidden_def.
25721 (__get_nprocs_conf): Likewise.
25722 (__get_phys_pages): Likewise.
25723 (__get_avphys_pages): Likewise.
25724
25725 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25726
25727 [BZ #18822]
25728 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25729 attribute_hidden.
25730 (__netlink_close): Likewise.
25731 (__netlink_free_handle): Likewise.
25732 (__netlink_request): Likewise.
25733
25734 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25735
25736 [BZ #18822]
25737 * include/rpc/rpc.h (__rpc_thread_variables): Add
25738 attribute_hidden.
25739 (__rpc_thread_svc_cleanup): Likewise.
25740 (__rpc_thread_clnt_cleanup): Likewise.
25741 (__rpc_thread_key_cleanup): Likewise.
25742
25743 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25744
25745 [BZ #18822]
25746 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25747 (__writev): Likewise.
25748 * misc/readv.c (__readv): Add libc_hidden_def.
25749 * misc/writev.c (__writev): Likewise.
25750 * sysdeps/posix/readv.c (__readv): Likewise.
25751 * sysdeps/posix/writev.c (__writev): Likewise.
25752 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25753 (__readv): Likewise.
25754 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25755 (__writev): Likewise.
25756
25757 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25758
25759 [BZ #18822]
25760 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25761 (__regcomp): Add libc_hidden_proto.
25762 (__regexec): Likewise.
25763 (__regfree): Likewise.
25764 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25765 (__regfree): Likewise.
25766 * posix/regexec.c (__regexec): Likewise.
25767
25768 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25769
25770 [BZ #18822]
25771 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25772 (__getutent): Likewise.
25773 (__getutid): Likewise.
25774 (__getutline): Likewise.
25775 (__pututline): Likewise.
25776 (__getutent_r): Likewise.
25777 (__getutid_r): Likewise.
25778 (__getutline_r): Likewise.
25779 (__utmpname): Add attribute_hidden.
25780 (__setutent): Likewise.
25781 (__endutent): Likewise.
25782 * login/getutent.c (__getutent): Add libc_hidden_def.
25783 * login/getutent_r.c (__getutent_r): Likewise.
25784 (__pututline): Likewise.
25785 * login/getutid.c (__getutid): Likewise.
25786 * login/getutid_r.c (__getutid_r): Likewise.
25787 * login/getutline.c (__getutline): Likewise.
25788 * login/getutline_r.c (__getutline_r): Likewise.
25789 * login/updwtmp.c (__updwtmp): Likewise.
25790
25791 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25792
25793 [BZ #18822]
25794 * include/dirent.h (__opendir): Always add attribute_hidden.
25795 (__fdopendir): Likewise.
25796 (__closedir): Likewise.
25797 (__readdir): Likewise.
25798 (__readdir64): Add libc_hidden_proto.
25799 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25800 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25801 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25802 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25803 New alias.
25804
25805 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25806
25807 [BZ #18822]
25808 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25809 * include/netdb.h (__gethostbyaddr_r): Likewise.
25810 (__gethostbyname_r): Likewise.
25811 (__gethostbyname2_r): Likewise.
25812 (__getnetbyaddr_r): Likewise.
25813 (__getnetbyname_r): Likewise.
25814 (__getservbyname_r): Likewise.
25815 (__getservbyport_r): Likewise.
25816 (__getprotobyname_r): Likewise.
25817 (__getprotobynumber_r): Likewise.
25818 (__getnetgrent_r): Likewise.
25819 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25820 (__getrpcbynumber_r): Likewise.
25821 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25822
25823 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25824
25825 [BZ #18822]
25826 * include/stdio.h (__fcloseall): Add attribute_hidden.
25827 (__getline): Likewise.
25828 (__path_search): Likewise.
25829 (__gen_tempname): Likewise.
25830 (__libc_message): Likewise.
25831 (__flockfile): Likewise.
25832 (__funlockfile): Likewise.
25833 (__fxprintf): Likewise.
25834 (__fxprintf_nocancel): Likewise.
25835
25836 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25837
25838 [BZ #18822]
25839 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25840 (__sgetsgent_r): Likewise.
25841
25842 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25843
25844 [BZ #18822]
25845 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25846 (__statfs64): Likewise.
25847 (__fstatfs64): Likewise.
25848 * include/sys/statvfs.h (__statvfs64): Likewise.
25849 (__fstatvfs64): Likewise.
25850 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25851 (__statfs_filesize_max): Likewise.
25852 (__statfs_symlinks): Likewise.
25853 (__statfs_chown_restricted): Likewise.
25854
25855 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25856
25857 [BZ #18822]
25858 * include/time.h (__tzstring): Add attribute_hidden.
25859 (__tzfile_read): Likewise.
25860 (__tzfile_compute): Likewise.
25861 (__tzfile_default): Likewise.
25862 (__tzset_parse_tz): Likewise.
25863 (__offtime): Likewise.
25864 (__asctime_r): Likewise.
25865 (__tzset): Likewise.
25866 (__tz_convert): Likewise.
25867 (__getdate_r): Likewise.
25868 (__getclktck): Likewise.
25869
25870 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25871
25872 [BZ #18822]
25873 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
25874 (__nscd_unmap): Likewise.
25875 (__nscd_cache_search): Likewise.
25876 (__nscd_get_nl_timestamp): Likewise.
25877 (__nscd_getpwnam_r): Likewise.
25878 (__nscd_getpwuid_r): Likewise.
25879 (__nscd_getgrnam_r): Likewise.
25880 (__nscd_getgrgid_r): Likewise.
25881 (__nscd_gethostbyname_r): Likewise.
25882 (__nscd_gethostbyname2_r): Likewise.
25883 (__nscd_gethostbyaddr_r): Likewise.
25884 (__nscd_getai): Likewise.
25885 (__nscd_getgrouplist): Likewise.
25886 (__nscd_getservbyname_r): Likewise.
25887 (__nscd_getservbyport_r): Likewise.
25888 (__nscd_innetgr): Likewise.
25889 (__nscd_setnetgrent): Likewise.
25890
25891 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25892
25893 [BZ #18822]
25894 * include/gmp.h: Declare internal functions only if _ISOMAC is
25895 undefined.
25896 (__mpn_extract_double): Add attribute_hidden.
25897 (__mpn_extract_long_double): Likewise.
25898 (__mpn_extract_float128): Likewise.
25899 (__mpn_construct_float): Likewise.
25900 (__mpn_construct_double): Likewise.
25901 (__mpn_construct_long_double): Likewise.
25902 (__mpn_construct_float128): Likewise.
25903 (mpn_add_1): Likewise.
25904 (mpn_addmul_1): Likewise.
25905 (mpn_add_n): Likewise.
25906 (mpn_cmp): Likewise.
25907 (mpn_divrem): Likewise.
25908 (mpn_lshift): Likewise.
25909 (mpn_mul): Likewise.
25910 (mpn_mul_1): Likewise.
25911 (mpn_rshift): Likewise.
25912 (mpn_sub_1): Likewise.
25913 (mpn_submul_1): Likewise.
25914 (mpn_sub_n): Likewise.
25915
25916 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25917
25918 [BZ #18822]
25919 * include/wchar.h (__wcsnlen): Add attribute_hidden.
25920 (__wcscat): Likewise.
25921 (__btowc): Likewise.
25922 (__wcrtomb): Likewise.
25923 (__mbsrtowcs): Likewise.
25924 (__wcsrtombs): Likewise.
25925 (__mbsnrtowcs): Likewise.
25926 (__wcsnrtombs): Likewise.
25927 (__wcsncpy): Likewise.
25928 (__wcpncpy): Likewise.
25929 (__wmemcpy): Likewise.
25930 (__wmempcpy): Likewise.
25931 (__wmemmove): Likewise.
25932 (__wcschrnul): Likewise.
25933 (__vfwscanf): Likewise.
25934 (__vswprintf): Likewise.
25935 (__fwprintf): Likewise.
25936 (__vfwprintf): Likewise.
25937
25938 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25939
25940 [BZ #18822]
25941 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
25942 (__getgrgid_r): Likewise.
25943 (__getgrnam_r): Likewise.
25944 * include/pwd.h (__getpwuid_r): Likewise.
25945 (__getpwnam_r): Likewise.
25946 (__fgetpwent_r): Likewise.
25947 * include/shadow.h (__getspnam_r): Likewise.
25948 (__sgetspent_r): Likewise.
25949 (__fgetspent_r): Likewise.
25950
25951 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25952
25953 [BZ #18822]
25954 * include/unistd.h (__access): Add attribute_hidden.
25955 (__lseek64): Likewise.
25956 (__libc_pread64): Likewise.
25957 (__pipe2): Likewise.
25958 (__sleep): Likewise.
25959 (__chdir): Likewise.
25960 (__fchdir): Likewise.
25961 (__getcwd): Likewise.
25962 (__rmdir): Likewise.
25963 (__execvpe): Likewise.
25964 (__execve): Likewise.
25965 (__setsid): Likewise.
25966 (__getuid): Likewise.
25967 (__geteuid): Likewise.
25968 (__getgid): Likewise.
25969 (__getegid): Likewise.
25970 (__getgroups): Likewise.
25971 (__group_member): Likewise.
25972 (__ttyname_r): Likewise.
25973 (__isatty): Likewise.
25974 (__readlink): Likewise.
25975 (__unlink): Likewise.
25976 (__gethostname): Likewise.
25977 (__profil): Likewise.
25978 (__getdtablesize): Likewise.
25979 (__brk): Likewise.
25980 (__ftruncate): Likewise.
25981 (__ftruncate64): Likewise.
25982
25983 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25984
25985 [BZ #18822]
25986 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
25987 * argp/argp-fs-xinl.c: Likewise.
25988 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
25989 * argp/argp-parse.c: Include <argp.h>.
25990 * argp/argp-xinl.c: Likewise.
25991 * include/argp-fmtstream.h: New file.
25992 * include/argp.h (__argp_error): Add attribute_hidden.
25993 (__argp_failure): Likewise.
25994 (__argp_input): Likewise.
25995 (__argp_state_help): Likewise.
25996
25997 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25998
25999 [BZ #18822]
26000 * include/wchar.h (____wcstof_l_internal): New prototype.
26001 (____wcstod_l_internal): Likewise.
26002 (____wcstold_l_internal): Likewise.
26003 (____wcstol_l_internal): Likewise.
26004 (____wcstoul_l_internal): Likewise.
26005 (____wcstoll_l_internal): Likewise.
26006 (____wcstoull_l_internal): Likewise.
26007 (____wcstof128_l_internal): Likewise.
26008 * sysdeps/ieee754/float128/wcstof128.c
26009 (____wcstof128_l_internal): Removed.
26010 * sysdeps/ieee754/float128/wcstof128_l.c
26011 (____wcstof128_l_internal): Likewise.
26012 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26013 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26014 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26015 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26016 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26017 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26018 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26019 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26020 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26021 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26022
26023 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26024
26025 [BZ #18822]
26026 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26027 instead of <sys/statvfs.h>.
26028 (__internal_statvfs): Removed.
26029 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26030 instead of <sys/statvfs.h>.
26031 (__internal_statvfs64): Removed.
26032 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26033 "internal_statvfs.h" instead of <sys/statvfs.h>.
26034 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26035 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26036 instead of <sys/statvfs.h>.
26037 (__internal_statvfs): Removed.
26038 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26039 instead of <sys/statvfs.h>.
26040 (__internal_statvfs64): Removed.
26041
26042 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26043
26044 [BZ #18822]
26045 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26046 (__gconv_close): Likewise.
26047 (__gconv): Likewise.
26048 (__gconv_find_transform): Likewise.
26049 (__gconv_lookup_cache): Likewise.
26050 (__gconv_compare_alias_cache): Likewise.
26051 (__gconv_load_cache): Likewise.
26052 (__gconv_get_path): Likewise.
26053 (__gconv_close_transform): Likewise.
26054 (__gconv_release_cache): Likewise.
26055 (__gconv_find_shlib): Likewise.
26056 (__gconv_release_shlib): Likewise.
26057 (__gconv_get_builtin_trans): Likewise.
26058 (__gconv_compare_alias): Likewise.
26059 * include/dlfcn.h (_dlerror_run): Likewise.
26060 * include/stdio.h (__fortify_fail_abort): Likewise.
26061 * include/time.h (__tz_compute): Likewise.
26062 (__strptime_internal): Likewise.
26063 * intl/gettextP.h (_nl_find_domain): Likewise.
26064 (_nl_load_domain): Likewise.
26065 (_nl_find_msg): Likewise.
26066 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26067 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26068 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26069 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26070 (__gai_find_request): Likewise.
26071 (__gai_remove_request): Likewise.
26072 (__gai_notify): Likewise.
26073 (__gai_notify_only): Likewise.
26074 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26075 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26076 (_dl_non_dynamic_init): Likewise.
26077 (_dl_aux_init): Likewise.
26078 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26079 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26080 Likewise.
26081 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26082 (__wcsmbs_clone_conv): Likewise.
26083 (__wcsmbs_named_conv): Likewise.
26084
26085 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26086
26087 [BZ #18822]
26088 * include/stdlib.h (__random): Add attribute_hidden.
26089 (__random_r): Likewise.
26090 (__srandom_r): Likewise.
26091 (__initstate_r): Likewise.
26092 (__setstate_r): Likewise.
26093 (__erand48_r): Likewise.
26094 (__nrand48_r): Likewise.
26095 (__jrand48_r): Likewise.
26096 (__srand48_r): Likewise.
26097 (__seed48_r): Likewise.
26098 (__lcong48_r): Likewise.
26099 (__drand48_iterate): Likewise.
26100 (__setenv): Likewise.
26101 (__unsetenv): Likewise.
26102 (__clearenv): Likewise.
26103 (__ptsname_r): Likewise.
26104 (__posix_openpt): Likewise.
26105 (__add_to_environ): Likewise.
26106 (__realpath): Add libc_hidden_proto.
26107 (__ecvt_r): Likewise.
26108 (__fcvt_r): Likewise.
26109 (__qecvt_r): Likewise.
26110 (__qfcvt_r): Likewise.
26111 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26112 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26113
26114 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26115
26116 [BZ #18822]
26117 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26118 * include/time.h (__mktime_internal): Likewise.
26119 * libio/iolibio.h (__fopen_internal): Likewise.
26120
26121 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26122
26123 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26124 pointer in frame.
26125 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26126 Correct offset used to restore PIC register.
26127
26128 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26129
26130 [BZ libc/22165]
26131 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26132 code to load address of __getcontext_ret when generating PIC code.
26133
26134 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26135
26136 * elf/Makefile (tests-static-internal): Add
26137 tst-tls1-static-non-pie.
26138 (LDFLAGS-tst-tls1-static-non-pie): New.
26139 * elf/tst-tls1-static-non-pie.c: New file.
26140
26141 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26142
26143 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26144 (asinh): Define using libm_alias_double.
26145 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26146 (cbrt): Define using libm_alias_double.
26147 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26148 <libm-alias-double.h>.
26149 (copysign): Define using libm_alias_double.
26150 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26151 (erf): Define using libm_alias_double.
26152 (erfc): Likewise.
26153 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26154 (expm1): Define using libm_alias_double.
26155 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26156 (fabs): Define using libm_alias_double.
26157 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26158 libm_alias_double.
26159 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26160 <libm-alias-double.h>.
26161 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26162 libm_alias_double.
26163 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26164 <libm-alias-double.h>.
26165 (getpayload): Define using libm_alias_double.
26166 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26167 <libm-alias-double.h>.
26168 (llrint): Define using libm_alias_double.
26169 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26170 (lrint): Define using libm_alias_double.
26171 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26172 <libm-alias-double.h>.
26173 (nextup): Define using libm_alias_double.
26174 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26175 <libm-alias-double.h>.
26176 (roundeven): Define using libm_alias_double.
26177 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26178 libm_alias_double.
26179 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26180 <libm-alias-double.h>.
26181 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26182 using libm_alias_double.
26183 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26184 (cos): Define using libm_alias_double.
26185 (sin): Likewise.
26186 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26187 <libm-alias-double.h>.
26188 (sincos): Define using libm_alias_double.
26189 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26190 (tanh): Define using libm_alias_double.
26191 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26192 <libm-alias-double.h>.
26193 (totalorder): Define using libm_alias_double.
26194 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26195 <libm-alias-double.h>.
26196 (totalordermag): Define using libm_alias_double.
26197 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26198 libm_alias_double.
26199 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26200 libm_alias_double.
26201 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26202 <libm-alias-double.h>.
26203 (getpayload): Define using libm_alias_double.
26204 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26205 <libm-alias-double.h>.
26206 (roundeven): Define using libm_alias_double.
26207 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26208 <libm-alias-double.h>.
26209 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26210 <libm-alias-double.h>.
26211 (totalorder): Define using libm_alias_double.
26212 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26213 <libm-alias-double.h>.
26214 (totalordermag): Define using libm_alias_double.
26215 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26216 libc compat symbol here.
26217 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26218 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26219 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26220 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26221 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26222 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26223 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26224 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26225 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26226 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26227
26228 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26229
26230 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26231 _dl_relocate_static_pie instead of _dl_start to compute load
26232 address in static PIE. Return 0 if _DYNAMIC is undefined for
26233 static executable.
26234
26235 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26236
26237 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26238 _DYNAMIC is undefined for static executable.
26239
26240 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26241
26242 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26243
26244 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26245
26246 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26247
26248 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26249
26250 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26251 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26252 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26253 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26254 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26255 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26256 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26257 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26258 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26259 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26260 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26261 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26262 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26263 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26264 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26265 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26266 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26267
26268 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26269
26270 * math/bits/cmathcalls.h (cimag): Remove inline.
26271 (creal): Remove inline.
26272 (conj): Remove inline.
26273
26274 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26275
26276 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26277 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26278 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26279 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26280 (issignalingf_inline): Likewise.
26281 (POWF_LOG2_TABLE_BITS): Likewise.
26282 (POWF_LOG2_POLY_ORDER): Likewise.
26283 (POWF_SCALE_BITS): Likewise.
26284 (POWF_SCALE): Likewise.
26285 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26286 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26287 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26288
26289 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26290
26291 * math/Makefile (type-float-routines): Add e_log2f_data.
26292 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26293 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26294 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26295 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26296 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26297 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26298 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26299
26300 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26301
26302 * math/Makefile (type-float-routines): Add e_logf_data.
26303 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26304 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26305 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26306 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26307 * sysdeps/i386/fpu/e_logf_data.c: New file.
26308 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26309 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26310
26311 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26312
26313 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26314 undefined _DYNAMIC in PIE libc.a.
26315 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26316 Likewse.
26317
26318 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26319
26320 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26321 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26322 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26323 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26324 (__signbit): Remove.
26325 (__signbitl): Remove.
26326 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26327 (__signbit): Remove.
26328 (__signbitl): Remove.
26329 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26330 (__signbit): Remove.
26331 (__signbitl): Remove.
26332 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26333 (__signbit): Remove.
26334 (__signbitl): Remove.
26335 * sysdeps/tile/bits/mathinline.h: Delete file.
26336 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26337 (__signbit): Remove.
26338 (__signbitl): Remove.
26339
26340 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26341
26342 * math/math.h: Improve handling of C99 isgreater macros.
26343 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26344 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26345 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26346 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26347 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26348
26349 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26350
26351 * sysdeps/aarch64/libm-test-ulps: Update.
26352
26353 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26354
26355 [BZ #22225]
26356 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26357 math_opt_barrier on argument when doing arithmetic on it.
26358 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26359 Likewise. Use math_force_eval not math_opt_barrier after
26360 arithmetic.
26361 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26362 math_opt_barrier on argument when doing arithmetic on it.
26363 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26364 Likewise.
26365
26366 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26367
26368 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26369 libc_hidden_def.
26370 (__freeifaddrs): Likewise.
26371
26372 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26373
26374 * include/dirent.h (__dirfd): New declaration.
26375 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26376 alias.
26377 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26378 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26379 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26380 * include/unistd.h (__revoke): New declaration.
26381 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26382 alias.
26383 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26384 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26385 revoke.
26386 * include/dirent.h (__seekdir): New declaration.
26387 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26388 redefine as weak alias.
26389 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26390 of seekdir.
26391 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26392 and use libc_hidden_def on them.
26393 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26394 them.
26395 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26396 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26397 instead of getifaddrs and freeifaddrs.
26398
26399 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26400
26401 [BZ #18822]
26402 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26403 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26404 (__dso_handle): Remove declaration.
26405 * dlfcn/tstatexit.c (__dso_handle): Removed.
26406 (main): Don't check __dso_handle.
26407 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26408 (main): Don't check __dso_handle.
26409 * include/dso_handle.h: New file.
26410 * malloc/mtrace.c: Include <dso_handle.h>.
26411 (mtrace): Pass __dso_handle directly.
26412 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26413 (__dso_handle): Remove declaration.
26414 (__pthread_atfork): Pass __dso_handle directly.
26415 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26416 (__dso_handle): Removed.
26417 * posix/wordexp-test.c: Include <dso_handle.h>.
26418 (__dso_handle): Remove declaration.
26419 (__app_register_atfork): Pass __dso_handle directly.
26420 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26421 (__dso_handle): Remove declaration.
26422 (at_quick_exit): Pass __dso_handle directly.
26423 * stdlib/atexit.c: Include <dso_handle.h>.
26424 (__dso_handle): Remove declaration.
26425 (atexit): Pass __dso_handle directly.
26426 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26427 (__dso_handle): Removed.
26428
26429 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26430
26431 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26432 using VDSO.
26433
26434 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26435
26436 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26437 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26438 values to correct default value for given type.
26439
26440 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26441
26442 [BZ #22101]
26443 * elf/Makefile (tests): Add tst-debug1.
26444 ($(objpfx)tst-debug1): New.
26445 ($(objpfx)tst-debug1.out): Likewise.
26446 ($(objpfx)tst-debug1mod1.so): Likewise.
26447 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26448 with p_filesz == 0.
26449 * elf/tst-debug1.c: New file.
26450
26451 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26452
26453 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26454 Define using __ifunc.
26455
26456 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26457
26458 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26459 exp2f() values.
26460
26461 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26462
26463 [BZ #22156]
26464 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26465
26466 2017-09-26 Florian Weimer <fweimer@redhat.com>
26467
26468 * resolv/Makefile (tests-internal): Fix typo in comment.
26469
26470 2017-09-26 Florian Weimer <fweimer@redhat.com>
26471
26472 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26473
26474 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26475
26476 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26477 Use an union instead of a max_align_t array for __space,
26478 so that __space is the same size on all platforms.
26479 * malloc/scratch_buffer_grow_preserve.c
26480 (__libc_scratch_buffer_grow_preserve): Likewise.
26481
26482 [BZ #22183]
26483 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26484 version to 2.
26485 * posix/Makefile (routines): Add glob-lstat-compat and
26486 glob64-lstat-compat.
26487 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26488 * posix/glob-lstat-compat.c: New file.
26489 * posix/glob64-lstat-compat.c: Likewise.
26490 * posix/tst-glob_lstat_compat.c: Likewise.
26491 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26492 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26493 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26494 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26495 Likewise.
26496 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26497 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26498 * posix/glob.c (glob_lstat): New function.
26499 (glob): Rename to __glob and add versioned symbol to 2.27.
26500 (glob_in_dir): Use glob_lstat.
26501 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26502 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26503 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26504 2.27.
26505 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26506 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26507 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26508 gl_lstat on glob call.
26509 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26510 and glob64 symbols.
26511 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26512 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26513 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26514 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26515 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26516 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26517 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26518 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26519 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26520 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26521 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26522 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26524 Likewise.
26525 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26527 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26528 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26529 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26530 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26531 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26532 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26533 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26534 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26535 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26536 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26537
26538 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26539
26540 * configure.ac (AS): Require binutils 2.25 or later.
26541 * configure: Regenerated.
26542
26543 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26544
26545 [BZ #22207]
26546 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26547 VM size.
26548
26549 2017-09-25 DJ Delorie <dj@redhat.com>
26550
26551 [BZ #22161]
26552 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26553 resetting timeout.
26554
26555 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26556
26557 * sysdeps/ieee754/dbl-64/sincos32.h
26558 [SINCCOS32_H]: Remove define.
26559 [SINCOS32_H]: Define.
26560
26561 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26562
26563 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26564 (exp2f): Likewise.
26565 * math/w_exp2f.c: New file.
26566 * math/w_expf.c: New file.
26567 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26568 * math/w_expf_compat.c (__expf_compat): Likewise.
26569 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26570 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26571 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26572 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26573 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26574 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26575 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26576 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26577 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26578 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26579 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26580 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26581 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26582 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26583 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26584 Likewise.
26585 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26586 Likewise.
26587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26588 Likewise.
26589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26590 Likewise.
26591 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26592 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26593 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26594 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26595 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26596 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26597 Likewise.
26598 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26599 Likewise.
26600 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26601 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26602 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26603
26604 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26605
26606 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26607 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26608 (roundtoint, converttoint): Likewise.
26609 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26610 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26611 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26612 * sysdeps/ieee754/flt-32/math_config.h: New file.
26613 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26614 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26615 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26616 * sysdeps/i386/fpu/math_errf.c: New file.
26617 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26618 * sysdeps/ia64/fpu/math_errf.c: New file.
26619 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26620 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26621
26622 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26623
26624 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26625 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26626 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26627 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26628 to make sure that these symbols are defined.
26629 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26630 of <limits.h>
26631 (__need_NULL): Do not define.
26632 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26633 alignment.
26634 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26635 CMGROUP_MAX, cmsgcred): Do not define.
26636 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26637 NULL.
26638 * bits/socket.h: Likewise.
26639 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26640 __gettimeofday instead of gettimeofday.
26641 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26642 instead of settimeofday.
26643
26644 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26645
26646 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26647 (asinhf): Define using libm_alias_float.
26648 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26649 (atanf): Define using libm_alias_float.
26650 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26651 (cbrtf): Define using libm_alias_float.
26652 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26653 (ceilf): Define using libm_alias_float.
26654 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26655 <libm-alias-float.h>.
26656 (copysignf): Define using libm_alias_float.
26657 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26658 (cosf): Define using libm_alias_float.
26659 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26660 (erff): Define using libm_alias_float.
26661 (erfcf): Likewise.
26662 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26663 (expm1f): Define using libm_alias_float.
26664 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26665 (fabsf): Define using libm_alias_float.
26666 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26667 (floorf): Define using libm_alias_float.
26668 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26669 (frexpf): Define using libm_alias_float.
26670 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26671 libm_alias_float.
26672 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26673 <libm-alias-float.h>.
26674 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26675 libm_alias_float.
26676 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26677 <libm-alias-float.h>.
26678 (getpayloadf): Define using libm_alias_float.
26679 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26680 <libm-alias-float.h>.
26681 (llrintf): Define using libm_alias_float.
26682 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26683 <libm-alias-float.h>.
26684 (llroundf): Define using libm_alias_float.
26685 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26686 (logbf): Define using libm_alias_float.
26687 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26688 (lrintf): Define using libm_alias_float.
26689 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26690 (lroundf): Define using libm_alias_float.
26691 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26692 (modff): Define using libm_alias_float.
26693 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26694 <libm-alias-float.h>.
26695 (nearbyintf): Define using libm_alias_float.
26696 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26697 <libm-alias-float.h>.
26698 (nextafterf): Define using libm_alias_float.
26699 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26700 <libm-alias-float.h>.
26701 (nextupf): Define using libm_alias_float.
26702 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26703 <libm-alias-float.h>.
26704 (remquof): Define using libm_alias_float.
26705 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26706 (rintf): Define using libm_alias_float.
26707 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26708 <libm-alias-float.h>.
26709 (roundevenf): Define using libm_alias_float.
26710 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26711 (roundf): Define using libm_alias_float.
26712 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26713 using libm_alias_float.
26714 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26715 <libm-alias-float.h>.
26716 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26717 Define using libm_alias_float.
26718 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26719 <libm-alias-float.h>.
26720 (sincosf): Define using libm_alias_float.
26721 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26722 (sinf): Define using libm_alias_float.
26723 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26724 (tanf): Define using libm_alias_float.
26725 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26726 (tanhf): Define using libm_alias_float.
26727 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26728 <libm-alias-float.h>.
26729 (totalorderf): Define using libm_alias_float.
26730 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26731 <libm-alias-float.h>.
26732 (totalordermagf): Define using libm_alias_float.
26733 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26734 (truncf): Define using libm_alias_float.
26735 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26736 libm_alias_float.
26737 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26738 libm_alias_float.
26739
26740 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26741
26742 [BZ #22146]
26743 math/math.h: Let fpclassify use the builtin in C++ mode, even
26744 when optimazing for size.
26745
26746 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26747
26748 * csu/Makefile (generated): Do not add version-info.h.
26749 (before-compile): Likewise.
26750 (all-Banner-files): Remove variable.
26751 ($(objpfx)version-info.h): Remove rule.
26752 * csu/version.c (banner): Do not include "version-info.h".
26753 * libidn/Banner: Remove.
26754 * manual/contrib.texi (Simon Josefsson): New entry.
26755
26756 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26757
26758 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26759 Remove conditionals on LDBL_MANT_DIG.
26760 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26761 (__ieee754_lgammal_r): Likewise.
26762
26763 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26764
26765 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26766 _Float128 and L().
26767 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26768 _Float128 and L(). Replace _Float128 with long double and L(x)
26769 with xL, throughout the file.
26770 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26771 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26772 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26773 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26774
26775 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26776
26777 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26778 sysdeps/ieee754/ldbl-128ibm.
26779 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26780 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26781 of including it. Keep _Float128 and L() intact. These will be
26782 reviewed by a separate patch.
26783 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26784 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26785 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26786 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26787
26788 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26789
26790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26791 (__finitef128): Define to __redirect___finitef128.
26792 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26793 (__isinff128): Define to __redirect___isinff128.
26794 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26795 (__isnanf128): Define to __redirect___isnanf128.
26796
26797 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26798
26799 * sysdeps/powerpc/powerpc64le/Makefile
26800 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26801 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26802
26803 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26804 Carlos O'Donell <carlos@redhat.com>
26805
26806 [BZ #22180]
26807 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26808 * stdlib/test-dlclose-exit-race.c: New file.
26809 * stdlib/test-dlclose-exit-race-helper.c: New file.
26810 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26811
26812 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26813
26814 * crypt/Banner: Remove file.
26815 * nptl/Banner: Likewise.
26816 * resolv/Banner: Likewise.
26817 * soft-fp/Banner: Likewise.
26818 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26819 ($(objpfx)version.d): Remove dependency on banner.h.
26820 ($(objpfx)version.os): Likewise.
26821 * nptl/version.c (banner): Do not include banner.h.
26822 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26823 Jelinek and BIND code.
26824
26825 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26826 Carlos O'Donell <carlos@redhat.com>
26827
26828 * support/xdlfcn.h: New file.
26829 * support/xdlfcn.c: New file.
26830 * support/Makefile (libsupport-routines): Add xdlfcn.
26831 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26832
26833 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26834
26835 [BZ #20142]
26836 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26837 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26838 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26839 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26840 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26841 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26842 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26843 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26844
26845 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26846 Ricky Zhou <rickyz@google.com>
26847 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26848
26849 [BZ #14333]
26850 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26851 Remove atomics.
26852 (__new_exitfn): Fail registration when we finished at_exit processing.
26853 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26854 * stdlib/on_exit.c (__on_exit): Likewise.
26855 * stdlib/exit.c (__exit_funcs_done): New variable.
26856 (__run_exit_handlers): Use __exit_funcs_lock.
26857 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26858 declarations.
26859 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26860 (test-cxa_atexit-race, test-on_exit-race): New tests.
26861 * stdlib/test-atexit-race-common.c: New file.
26862 * stdlib/test-atexit-race.c: New file.
26863 * stdlib/test-at_quick_exit-race.c: New file.
26864 * stdlib/test-cxa_atexit-race.c: New file.
26865 * stdlib/test-on_exit-race.c: New file.
26866
26867 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
26868
26869 * benchtests/Makefile: Add exp2f and log2f benchmarks.
26870 * benchtests/exp2f-inputs: Copy of expf-inputs.
26871 * benchtests/log2f-inputs: Copy of logf-inputs.
26872
26873 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26874
26875 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
26876 Explicitly take address of first element of array arguments in
26877 call to INLINE_SYSCALL.
26878
26879 2017-09-19 Andreas Schwab <schwab@suse.de>
26880
26881 [BZ #22134]
26882 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
26883 execveat first.
26884 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
26885 unimplemented.
26886 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
26887 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
26888 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
26889 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
26890 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26891 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26892 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26893 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26894 * posix/Makefile (tests): Add tst-fexecve.
26895 * posix/tst-fexecve.c: New file.
26896
26897 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26898
26899 * benchtests/Makefile: Add logf benchmark.
26900 * benchtests/logf-inputs: Add reduced trace from wrf_r.
26901
26902 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26903
26904 * benchtests/Makefile: Add expf benchmark.
26905 * benchtests/expf-inputs: Add reduced trace from wrf_r.
26906
26907 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26908
26909 * csu/Makefile: Add -funwind-tables to libc-start.c.
26910 * debug/Makefile: Add -funwind-tables to backtrace.c.
26911 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
26912 * sysdeps/arm/Makefile: Likewise.
26913 * sysdeps/i386/Makefile: Likewise.
26914 * sysdeps/m68k/Makefile: Likewise.
26915 * sysdeps/mips/Makefile: Likewise.
26916 * sysdeps/nios2/Makefile: Likewise.
26917 * sysdeps/sh/Makefile: Likewise.
26918 * sysdeps/sparc/Makefile: Likewise.
26919
26920 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26921
26922 * benchtests/Makefile (bench-math): Add trunc and truncf.
26923 (CFLAGS-bench-trunc.c): New variable.
26924 (CFLAGS-bench-truncf.c): Likewise.
26925 * benchtests/trunc-inputs: New file.
26926 * benchtests/truncf-inputs: Likewise.
26927
26928 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26929
26930 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
26931
26932 2017-09-18 Joseph Myers <joseph@codesourcery.com>
26933
26934 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
26935 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
26936 redefine.
26937 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
26938 (exp10l): Define as weak alias.
26939 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
26940 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
26941 and redefine.
26942 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
26943 (remainderl): Define as weak alias.
26944
26945 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
26946 (fmal): Define using libm_alias_ldouble.
26947 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
26948 (acoshl): Define using libm_alias_ldouble.
26949 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
26950 (acosl): Define using libm_alias_ldouble.
26951 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
26952 (asinl): Define using libm_alias_ldouble.
26953 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
26954 (atan2l): Define using libm_alias_ldouble.
26955 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
26956 (atanhl): Define using libm_alias_ldouble.
26957 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
26958 (coshl): Define using libm_alias_ldouble.
26959 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
26960 (exp10l): Define using libm_alias_ldouble.
26961 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
26962 (exp2l): Define using libm_alias_ldouble.
26963 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
26964 (expl): Define using libm_alias_ldouble.
26965 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
26966 (fmodl): Define using libm_alias_ldouble.
26967 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
26968 (hypotl): Define using libm_alias_ldouble.
26969 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
26970 (j0l): Define using libm_alias_ldouble.
26971 (y0l): Likewise.
26972 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
26973 (j1l): Define using libm_alias_ldouble.
26974 (y1l): Likewise.
26975 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
26976 (jnl): Define using libm_alias_ldouble.
26977 (ynl): Likewise.
26978 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
26979 (log10l): Define using libm_alias_ldouble.
26980 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
26981 (log2l): Define using libm_alias_ldouble.
26982 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
26983 (logl): Define using libm_alias_ldouble.
26984 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
26985 (powl): Define using libm_alias_ldouble.
26986 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
26987 (remainderl): Define using libm_alias_ldouble.
26988 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
26989 (sinhl): Define using libm_alias_ldouble.
26990 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
26991 (sqrtl): Define using libm_alias_ldouble.
26992 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
26993 (tgammal): Define using libm_alias_ldouble.
26994 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
26995 (exp10l): Do not use long_double_symbol here.
26996 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
26997 [LIBM_SVID_COMPAT] (remainderl): Likewise.
26998 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
26999 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27000 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27001 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27002 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27003 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27004 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27005 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27006 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27007 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27008 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27009 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27010 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27011 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27012 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27013 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27014 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27015 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27016 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27017 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27018
27019 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27020
27021 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27022 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27023
27024 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27025
27026 * io/read.c (read): Add libc_hidden_weak.
27027 * sysdeps/mach/hurd/read.c (read): Likewise.
27028 * io/write.c (write): Likewise.
27029 * sysdeps/mach/hurd/write.c (write): Likewise.
27030 * io/pread64.c (__pread64): Likewise.
27031 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27032 * posix/pread64.c (__pread64): Add libc_hidden_def.
27033
27034 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27035
27036 * benchtests/scripts/compare_strings.py: New option -g.
27037 (draw_graph): Print a message that a graph is being generated.
27038 (process_results): Generate graph only if -g is passed.
27039 (main): Process option -g.
27040
27041 * benchtests/scripts/compare_strings.py (process_results):
27042 Better spacing for output.
27043
27044 * benchtests/scripts/compare_strings.py: Use argparse.
27045 * benchtests/README: Document existence of compare_strings.py.
27046
27047 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27048
27049 * math/s_fma.c: Include <libm-alias-double.h>.
27050 (fma): Define using libm_alias_double.
27051 * math/s_nextafter.c: Include <libm-alias-double.h>.
27052 (nextafter): Define using libm_alias_double.
27053 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27054 (acos): Define using libm_alias_double.
27055 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27056 (aocsh): Define using libm_alias_double.
27057 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27058 (asin): Define using libm_alias_double.
27059 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27060 (atan2): Define using libm_alias_double.
27061 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27062 (atanh): Define using libm_alias_double.
27063 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27064 (cosh): Define using libm_alias_double.
27065 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27066 (exp10): Define using libm_alias_double.
27067 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27068 (exp2): Define using libm_alias_double.
27069 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27070 (exp): Define using libm_alias_double.
27071 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27072 (fmod): Define using libm_alias_double.
27073 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27074 (hypot): Define using libm_alias_double.
27075 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27076 (j0): Define using libm_alias_double.
27077 (y0): Likewise.
27078 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27079 (j1): Define using libm_alias_double.
27080 (y1): Likewise.
27081 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27082 (jn): Define using libm_alias_double.
27083 (yn): Likewise.
27084 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27085 (log10): Define using libm_alias_double.
27086 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27087 (log2): Define using libm_alias_double.
27088 * math/w_log_compat.c: Include <libm-alias-double.h>.
27089 (log): Define using libm_alias_double.
27090 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27091 (pow): Define using libm_alias_double.
27092 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27093 (remainder): Define using libm_alias_double.
27094 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27095 (sinh): Define using libm_alias_double.
27096 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27097 (sqrt): Define using libm_alias_double.
27098 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27099 (tgamma): Define using libm_alias_double.
27100 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27101 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27102 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27103 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27104 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27105 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27106 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27107 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27108 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27109 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27110 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27111 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27112 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27113 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27114 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27115 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27116 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27117 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27118 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27119 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27120 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27121 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27122 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27123 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27124 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27125
27126 * math/e_acoshl.c: Remove.
27127 * math/e_acosl.c: Likewise.
27128 * math/e_asinl.c: Likewise.
27129 * math/e_atan2l.c: Likewise.
27130 * math/e_atanhl.c: Likewise.
27131 * math/e_coshl.c: Likewise.
27132 * math/e_expl.c: Likewise.
27133 * math/e_fmodl.c: Likewise.
27134 * math/e_gammal_r.c: Likewise.
27135 * math/e_hypotl.c: Likewise.
27136 * math/e_j0l.c: Likewise.
27137 * math/e_j1l.c: Likewise.
27138 * math/e_jnl.c: Likewise.
27139 * math/e_lgammal_r.c: Likewise.
27140 * math/e_log10l.c: Likewise.
27141 * math/e_log2l.c: Likewise.
27142 * math/e_logl.c: Likewise.
27143 * math/e_powl.c: Likewise.
27144 * math/e_rem_pio2l.c: Likewise.
27145 * math/e_sinhl.c: Likewise.
27146 * math/e_sqrtf128.c: Likewise.
27147 * math/e_sqrtl.c: Likewise.
27148 * math/k_cosl.c: Likewise.
27149 * math/k_sinl.c: Likewise.
27150 * math/k_tanl.c: Likewise.
27151 * math/s_asinhl.c: Likewise.
27152 * math/s_atanl.c: Likewise.
27153 * math/s_cbrtl.c: Likewise.
27154 * math/s_erfl.c: Likewise.
27155 * math/s_expm1l.c: Likewise.
27156 * math/s_log1pl.c: Likewise.
27157 * math/s_tanhl.c: Likewise.
27158
27159 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27160
27161 [BZ #21745]
27162 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27163 [$(subdir) = math] (sysdep_calls): New variable. Has the
27164 previous contents of sysdep_routines, but re-sorted..
27165 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27166 sysdep_calls.
27167 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27168 defined in sysdep_calls and replace by the respective m_* names.
27169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27170 (compat_symbol): Undefine to avoid duplicated compat symbols in
27171 libc.
27172
27173 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27174
27175 * math/s_fmaf.c: Include <libm-alias-float.h>.
27176 (fmaf): Define using libm_alias_float.
27177 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27178 (acosf): Define using libm_alias_float.
27179 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27180 (acoshf): Define using libm_alias_float.
27181 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27182 (asinf): Define using libm_alias_float.
27183 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27184 (atan2f): Define using libm_alias_float.
27185 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27186 (atanhf): Define using libm_alias_float.
27187 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27188 (coshf): Define using libm_alias_float.
27189 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27190 (exp10f): Define using libm_alias_float.
27191 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27192 (fmodf): Define using libm_alias_float.
27193 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27194 (hypotf): Define using libm_alias_float.
27195 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27196 (j0f): Define using libm_alias_float.
27197 (y0f): Likewise.
27198 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27199 (j1f): Define using libm_alias_float.
27200 (y1f): Likewise.
27201 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27202 (jnf): Define using libm_alias_float.
27203 (ynf): Likewise.
27204 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27205 (log10f): Define using libm_alias_float.
27206 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27207 (log2f): Define using libm_alias_float.
27208 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27209 (logf): Define using libm_alias_float.
27210 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27211 (powf): Define using libm_alias_float.
27212 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27213 (remainderf): Define using libm_alias_float.
27214 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27215 (sinhf): Define using libm_alias_float.
27216 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27217 (sqrtf): Define using libm_alias_float.
27218 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27219 (tgammaf): Define using libm_alias_float.
27220
27221 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27222
27223 * include/math.h (roundeven): Change hidden_proto call to
27224 __roundeven.
27225 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27226 alias.
27227 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27228 (y0): Rename to __y0 and define as weak alias.
27229 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27230 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27231 alias.
27232 (y0f): Rename to __y0f and define as weak alias.
27233 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27234 alias.
27235 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27236 (y1): Rename to __y1 and define as weak alias.
27237 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27238 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27239 alias.
27240 (y1f): Rename to __y1f and define as weak alias.
27241 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27242 alias.
27243 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27244 (yn): Rename to __yn and define as weak alias.
27245 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27246 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27247 alias.
27248 (ynf): Rename to __ynf and define as weak alias.
27249 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27250 (fromfp): Define as weak alias.
27251 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27252 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27253 (fromfpx): Define as weak alias.
27254 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27255 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27256 __getpayload and define as weak alias.
27257 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27258 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27259 __roundeven and define as weak alias.
27260 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27261 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27262 __setpayload.
27263 (setpayload): Define as weak alias.
27264 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27265 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27266 __setpayloadsig.
27267 (setpayloadsig): Define as weak alias.
27268 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27269 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27270 __totalorder and define as weak alias.
27271 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27272 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27273 to __totalordermag and define as weak alias.
27274 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27275 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27276 (ufromfp): Define as weak alias.
27277 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27278 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27279 __ufromfpx.
27280 (ufromfpx): Define as weak alias.
27281 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27282 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27283 Rename to __getpayload and define as weak alias.
27284 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27285 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27286 Rename to __roundeven and define as weak alias.
27287 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27288 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27289 Rename to __totalorder and define as weak alias.
27290 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27291 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27292 (totalordermag): Rename to __totalordermag and define as weak
27293 alias.
27294 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27295 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27296 macro.
27297 (__roundevenl): Likewise.
27298 (__totalorderl): Likewise.
27299 (__totalordermagl): Likewise
27300 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27301 __fromfpf128.
27302 (fromfpf128): Define as weak alias.
27303 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27304 __fromfpxf128.
27305 (fromfpxf128): Define as weak alias.
27306 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27307 __setpayloadf128.
27308 (setpayloadf128): Define as weak alias.
27309 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27310 __setpayloadsigf128.
27311 (setpayloadsigf128): Define as weak alias.
27312 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27313 __ufromfpf128.
27314 (ufromfpf128): Define as weak alias.
27315 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27316 __ufromfpxf128.
27317 (ufromfpxf128): Define as weak alias.
27318 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27319 (fromfpf): Define as weak alias.
27320 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27321 __fromfpxf.
27322 (fromfpxf): Define as weak alias.
27323 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27324 __getpayloadf and define as weak alias.
27325 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27326 __roundevenf and define as weak alias.
27327 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27328 __setpayloadf.
27329 (setpayloadf): Define as weak alias.
27330 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27331 __setpayloadsigf.
27332 (setpayloadsigf): Define as weak alias.
27333 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27334 __totalorderf and define as weak alias.
27335 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27336 Rename to __totalordermagf and define as weak alias.
27337 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27338 __ufromfpf.
27339 (ufromfpf): Define as weak alias.
27340 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27341 __ufromfpxf.
27342 (ufromfpxf): Define as weak alias.
27343 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27344 __fromfpl.
27345 (fromfpl): Define as weak alias.
27346 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27347 __fromfpxl.
27348 (fromfpxl): Define as weak alias.
27349 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27350 to __getpayloadl and define as weak alias.
27351 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27352 __roundevenl and define as weak alias.
27353 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27354 __setpayloadl.
27355 (setpayloadl): Define as weak alias.
27356 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27357 __setpayloadsigl.
27358 (setpayloadsigl): Define as weak alias.
27359 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27360 to __totalorderl and define as weak alias.
27361 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27362 Rename to __totalordermagl and define as weak alias.
27363 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27364 __ufromfpl.
27365 (ufromfpl): Define as weak alias.
27366 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27367 __ufromfpxl.
27368 (ufromfpxl): Define as weak alias.
27369 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27370 __fromfpl.
27371 (fromfpl): Define as weak alias.
27372 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27373 __fromfpxl.
27374 (fromfpxl): Define as weak alias.
27375 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27376 Rename to __getpayloadl and define as weak alias.
27377 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27378 to __roundevenl and define as weak alias. Call __roundeven
27379 instead of roundeven.
27380 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27381 __setpayloadl.
27382 (setpayloadl): Define as weak alias.
27383 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27384 __setpayloadsigl.
27385 (setpayloadsigl): Define as weak alias.
27386 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27387 Rename to __totalorderl and define as weak alias.
27388 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27389 Rename to __totalordermagl and define as weak alias.
27390 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27391 __ufromfpl.
27392 (ufromfpl): Define as weak alias.
27393 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27394 __ufromfpxl.
27395 (ufromfpxl): Define as weak alias.
27396 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27397 __fromfpl.
27398 (fromfpl): Define as weak alias.
27399 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27400 __fromfpxl.
27401 (fromfpxl): Define as weak alias.
27402 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27403 __getpayloadl and define as weak alias.
27404 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27405 __roundevenl and define as weak alias.
27406 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27407 __setpayloadl.
27408 (setpayloadl): Define as weak alias.
27409 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27410 __setpayloadsigl.
27411 (setpayloadsigl): Define as weak alias.
27412 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27413 __totalorderl and define as weak alias.
27414 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27415 Rename to __totalordermagl and define as weak alias.
27416 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27417 __ufromfpl.
27418 (ufromfpl): Define as weak alias.
27419 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27420 __ufromfpxl.
27421 (ufromfpxl): Define as weak alias.
27422
27423 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27424
27425 * benchtests/bench-string.h (realloc_bufs): New function.
27426 (test_init): Call it.
27427 * benchtests/bench-memset-large.c (do_test): Likewise.
27428 * benchtests/bench-memset.c (do_test): Likewise.
27429
27430 * benchtests/bench-memset-large.c: Print output in JSON
27431 format.
27432 * benchtests/bench-memset.c: Likewise.
27433
27434 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27435
27436 [BZ #21084]
27437 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27438 * iconvdata/Makefile: Add IBM858.
27439 * iconvdata/gconv-modules: Likewise.
27440 * iconvdata/tst-tables.sh: Likewise.
27441 * iconvdata/ibm858.c: New file.
27442 * localedata/charmaps/IBM858: Likewise.
27443
27444 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27445
27446 [BZ #22023]
27447 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27448 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27449
27450 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27451
27452 [BZ #22112]
27453 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27454 and add tel_int_fmt.
27455
27456 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27457
27458 * sysdeps/generic/libm-alias-float128.h: New file.
27459 * sysdeps/generic/math-type-macros-float128.h: Include
27460 <libm-alias-float128.h>.
27461 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27462
27463 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27464
27465 * sysdeps/generic/libm-alias-ldouble.h: New file.
27466 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27467 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27468 * sysdeps/generic/math-type-macros-ldouble.h: Include
27469 <libm-alias-ldouble.h>.
27470 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27471 libm_alias_ldouble.
27472
27473 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27474
27475 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27476 * math/w_exp_compat.c: ... here.
27477 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27478 * math/w_expf_compat.c: ... here.
27479 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27480 * math/w_expl_compat.c: ... here.
27481 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27482 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27483 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27484 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27485
27486 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27487
27488 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27489 redefine.
27490 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27491 macro.
27492 (ldexpl): Only define as compat symbol for libc, not libm.
27493 (scalbnl): Define as compat symbol for libc here.
27494 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27495 define for [IS_IN (libc)].
27496 (__ldexpl_2): Remove alias.
27497 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27498 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27499 name in long_double_symbol call.
27500 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27501 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27502 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27503 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27504 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27505 Remove macro.
27506 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27507 Define as compat symbol.
27508
27509 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27510
27511 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27512 * sysdeps/unix/sysv/linux/alpha/Makefile
27513 [$(subdir) = csu] (sysdep_routines): Remove rule.
27514
27515 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27516
27517 * sysdeps/generic/libm-alias-double.h: New file.
27518 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27519 * sysdeps/generic/math-type-macros-double.h: Include
27520 <libm-alias-double.h>.
27521 [declare_mgen_alias] (declare_mgen_alias): Define to use
27522 libm_alias_double.
27523 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27524 (M_LIBM_NEED_COMPAT): Remove macro.
27525 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27526 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27527 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27528 code.
27529 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27530 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27531 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27532 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27533 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27534 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27535 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27536 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27537 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27538 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27539 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27540 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27541 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27542 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27543 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27544 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27545 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27546 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27547 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27548 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27549 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27550 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27551 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27552 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27553 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27554 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27555 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27556 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27557 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27558 macro.
27559 (declare_mgen_alias): New macro.
27560 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27561 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27562 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27563 (M_LIBM_NEED_COMPAT): Remove macro.
27564 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27565 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27566 <first-versions.h>.
27567 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27568 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27569
27570 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27571
27572 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27573 (declare_mgen_alias_2): Remove.
27574 * sysdeps/generic/math-type-macros-double.h
27575 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27576 Likewise.
27577 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27578 alias.
27579 (ldexp): Define with declare_mgen_alias.
27580 (scalbn): Likewise.
27581
27582 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27583
27584 * grp/initgroups.c: Include config.h.
27585 (DEFAULT_CONFIG): New macro.
27586 (internal_getgrouplist): Use DEFAULT_CONFIG.
27587 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27588 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27589 (DEFAULT_DEFCONFIG): New macro.
27590 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27591 * nss/grp-lookup.c: Include config.h
27592 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27593 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27594 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27595 * manual/nss.texi: Update default values section.
27596
27597 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27598
27599 [BZ #21967]
27600 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27601 New.
27602 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27603 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27604 Handle MathVec_Prefer_No_AVX512.
27605 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27606 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27607 is set.
27608
27609 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27610
27611 * posix/sched_primax.c (__sched_get_priority_max): Add
27612 libc_hidden_def.
27613 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27614 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27615 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27616 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27617 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27618 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27619 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27620 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27621 Add aliases.
27622
27623 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27624
27625 * sysdeps/generic/libm-alias-float.h: New file.
27626 * sysdeps/generic/math-type-macros-float.h: Include
27627 <libm-alias-float.h>.
27628 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27629
27630 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27631
27632 [BZ #22093]
27633 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27634 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27635 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27636 (HWCAP_IMPORTANT): Likewise.
27637 (HWCAP_X86_64): New enum.
27638 (HWCAP_X86_AVX512_1): Updated.
27639 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27640 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27641 (modules-names): Add x86_64/tst-x86_64mod-1.
27642 (LDFLAGS-tst-x86_64mod-1.so): New.
27643 ($(objpfx)tst-x86_64-1): Likewise.
27644 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27645 (tst-x86_64-1-clean): Likewise.
27646 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27647 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27648
27649 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27650
27651 * po/sv.po: Update translations.
27652 * po/fr.po: Likewise.
27653
27654 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27655
27656 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27657 seconds.
27658 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27659 seconds.
27660 * elf/rtld-Rules: Fix $(error) use.
27661
27662 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27663
27664 [BZ #14925]
27665 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27666 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27667 * localedata/locales/bn_BD: “Bengali” was still used in some
27668 comments. Change it to “Bangla”.
27669
27670 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27671
27672 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27673
27674 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27675
27676 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27677 thunderx2t99p1 to list of cpu names.
27678 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27679 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27680
27681 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27682
27683 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27684 Use strcmp instead of tunable_is_name.
27685
27686 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27687
27688 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27689 (F_GET_RW_HINT): New macro.
27690 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27691 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27692 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27693 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27694 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27695 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27696 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27697 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27698 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27699
27700 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27701 (F_ADD_SEALS): New macro.
27702 [__USE_GNU] (F_GET_SEALS): Likewise.
27703 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27704 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27705 [__USE_GNU] (F_SEAL_GROW): Likewise.
27706 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27707
27708 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27709
27710 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27711 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27712 * posix/glob_internal.h (__glob_pattern_type):
27713 * posix/glob.c (glob):
27714 * posix/glob_pattern_p.c (__glob_pattern_p):
27715 Use them.
27716
27717 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27718 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27719 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27720 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27721 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27723 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27724 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27725 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27726 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27727 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27728 * sysdeps/wordsize-64/glob.c: Likewise.
27729 * sysdeps/wordsize-64/glob64.c: Likewise.
27730 * sysdeps/wordsize-64/globfree.c: Likewise.
27731 * sysdeps/wordsize-64/globfree64.c: Likewise.
27732 * sysdeps/unix/sysv/linux/glob.c: New file.
27733 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27734 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27735 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27736 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27737 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27738 adds !GLOB_NO_OLD_VERSION as an extra condition.
27739 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27740 using relative path instead of absolute one.
27741 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27742 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27743 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27744 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27745 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27746 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27747
27748 [BZ #1062]
27749 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27750 (glob): Use the same scratch buffer for both getlogin_r and
27751 getpwnam_r. Don’t require preallocation of the login name. This
27752 simplifies storage allocation, and corrects the handling of
27753 long login names.
27754
27755 [BZ #1062]
27756 * posix/glob.c (glob): Port recent patches to platforms
27757 lacking getpwnam_r.
27758 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27759 returns an error number rather than setting errno.
27760
27761 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27762 instead of GCC extension.
27763 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27764 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27765 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27766
27767 [BZ #866]
27768 [BZ #1062]
27769 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27770 * posix/bug-glob1.c: Remove file.
27771 * posix/tst-glob_symlinks.c: New file.
27772 * posix/glob.c (__lstat64): New macro.
27773 (is_dir): New function.
27774 (glob, glob_in_dir): Match symlinks even if they are dangling.
27775 (link_stat, link_exists_p): Remove. All uses removed.
27776
27777 [BZ #1062]
27778 [BZ #19971]
27779 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27780 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27781 All uses removed.
27782
27783 [BZ #1062]
27784 CVE-2017-15671
27785 * posix/Makefile (routines): Add globfree, globfree64, and
27786 glob_pattern_p.
27787 * posix/flexmember.h: New file.
27788 * posix/glob_internal.h: Likewise.
27789 * posix/glob_pattern_p.c: Likewise.
27790 * posix/globfree.c: Likewise.
27791 * posix/globfree64.c: Likewise.
27792 * sysdeps/gnu/globfree64.c: Likewise.
27793 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27794 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27795 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27796 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27797 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27798 * sysdeps/wordsize-64/globfree.c: Likewise.
27799 * sysdeps/wordsize-64/globfree64.c: Likewise.
27800 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27801 [NDEBUG): Remove comments.
27802 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27803 (dirent_type): New type. Use uint_fast8_t not
27804 uint8_t, as C99 does not require uint8_t.
27805 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27806 (struct readdir_result): Use dirent_type. Do not define skip_entry
27807 unless it is needed; this saves a byte on platforms lacking d_ino.
27808 (readdir_result_type, readdir_result_skip_entry):
27809 New functions, replacing ...
27810 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27811 these functions, which were removed. This makes the callers
27812 easier to read. All callers changed.
27813 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27814 (size_add_wrapv, glob_use_alloca): New static functions.
27815 (glob, glob_in_dir): Check for size_t overflow in several places,
27816 and fix some size_t checks that were not quite right.
27817 Remove old code using SHELL since Bash no longer
27818 uses this.
27819 (glob, prefix_array): Separate MS code better.
27820 (glob_in_dir): Remove old Amiga and VMS code.
27821 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27822 separate files.
27823 (glob_in_dir): Do not rely on undefined behavior in accessing
27824 struct members beyond their bounds. Use a flexible array member
27825 instead
27826 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27827 0/1. Caller changed.
27828 (glob): Fix memory leaks.
27829 * posix/glob64 (globfree64): Move to separate file.
27830 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27831 (globfree64): Remove hidden alias.
27832 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27833 oldglob.
27834 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27835 separate file.
27836 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27837 define.
27838 Move compat code to separate file.
27839 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27840 separate file.
27841
27842 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27843
27844 * resolv/tst-resolv-qtypes.c (domain): Changed to
27845 "const char domain[] =".
27846
27847 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27848
27849 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27850 version to 3.1.6.
27851
27852 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27853 (TCP_MD5SIG_EXT): Likewise.
27854 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27855 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27856 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27857
27858 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27859
27860 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27861
27862 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27863
27864 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
27865
27866 [BZ #22100]
27867 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
27868
27869 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27870
27871 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
27872 before assuming that the file is empty. Avoid testing buffer content
27873 when nread == 0.
27874
27875 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27876
27877 [BZ #18858]
27878 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27879 Remove define.
27880 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
27881 Likewise.
27882 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
27883 Likewise.
27884 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
27885 Likewise.
27886 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27887 Likewise.
27888 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
27889 Likewise.
27890 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
27891 Likewise.
27892
27893 2017-09-06 Florian Weimer <fweimer@redhat.com>
27894
27895 * malloc/dynarray_emplace_enlarge.c
27896 (__libc_dynarray_emplace_enlarge): Add missing else.
27897
27898 2017-09-06 Florian Weimer <fweimer@redhat.com>
27899
27900 [BZ #22096]
27901 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
27902 case of failure to obtain the global conf object.
27903
27904 2017-09-06 Florian Weimer <fweimer@redhat.com>
27905
27906 [BZ #22095]
27907 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
27908 dynarray allocation failure.
27909
27910 2017-09-06 Florian Weimer <fweimer@redhat.com>
27911
27912 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
27913 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
27914 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
27915 New functions.
27916 (response): Call them. Add 'p', '6' flag processing.
27917 (test_reverse): New function.
27918 (test_get2_any): Call it.
27919 (test_no_inet6): Add 'p' test.
27920 (test_inet6): Likewise.
27921
27922 2017-09-06 Florian Weimer <fweimer@redhat.com>
27923
27924 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
27925 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
27926 the QNAME.
27927 (test_gai): Adjust query names. Add additional tests.
27928 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
27929 test_get2. Adjust query names. Add additional tests.
27930 (test_no_inet6): New function, extracted from threadfunc.
27931 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
27932 Add additional tests.
27933
27934 2017-09-06 Mike FABIAN <mfabian@redhat.com>
27935
27936 [BZ #22070]
27937 * localedata/unicode-gen/utf8_gen.py: Set the width for
27938 characters with Prepended_Concatenation_Mark property to 1
27939 * localedata/charmaps/UTF-8: Updated using the improved script.
27940
27941 2017-09-06 Mike FABIAN <mfabian@redhat.com>
27942
27943 [BZ #21750]
27944 * localedata/unicode-gen/utf8_gen.py: Improve the script to
27945 use the range notation for all ranges of neighbouring characters
27946 with the same width.
27947
27948 2017-09-05 Joseph Myers <joseph@codesourcery.com>
27949
27950 * sysdeps/generic/math-type-macros-double.h: Include
27951 <math-svid-compat.h>.
27952 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27953 * sysdeps/generic/math-type-macros-float.h: Include
27954 <math-svid-compat.h>.
27955 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27956 * sysdeps/generic/math-type-macros-ldouble.h: Include
27957 <math-svid-compat.h>.
27958 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27959 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
27960 condition.
27961 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
27962 * math/w_acosf_compat.c: Likewise.
27963 * math/w_acosh_compat.c: Likewise.
27964 * math/w_acoshf_compat.c: Likewise.
27965 * math/w_acoshl_compat.c: Likewise.
27966 * math/w_acosl_compat.c: Likewise.
27967 * math/w_asin_compat.c: Likewise.
27968 * math/w_asinf_compat.c: Likewise.
27969 * math/w_asinl_compat.c: Likewise.
27970 * math/w_atan2_compat.c: Likewise.
27971 * math/w_atan2f_compat.c: Likewise.
27972 * math/w_atan2l_compat.c: Likewise.
27973 * math/w_atanh_compat.c: Likewise.
27974 * math/w_atanhf_compat.c: Likewise.
27975 * math/w_atanhl_compat.c: Likewise.
27976 * math/w_cosh_compat.c: Likewise.
27977 * math/w_coshf_compat.c: Likewise.
27978 * math/w_coshl_compat.c: Likewise.
27979 * math/w_exp10_compat.c: Likewise.
27980 * math/w_exp10f_compat.c: Likewise.
27981 * math/w_exp10l_compat.c: Likewise.
27982 * math/w_exp2_compat.c: Likewise.
27983 * math/w_exp2f_compat.c: Likewise.
27984 * math/w_exp2l_compat.c: Likewise.
27985 * math/w_fmod_compat.c: Likewise.
27986 * math/w_fmodf_compat.c: Likewise.
27987 * math/w_fmodl_compat.c: Likewise.
27988 * math/w_hypot_compat.c: Likewise.
27989 * math/w_hypotf_compat.c: Likewise.
27990 * math/w_hypotl_compat.c: Likewise.
27991 * math/w_j0_compat.c: Likewise.
27992 * math/w_j0f_compat.c: Likewise.
27993 * math/w_j0l_compat.c: Likewise.
27994 * math/w_j1_compat.c: Likewise.
27995 * math/w_j1f_compat.c: Likewise.
27996 * math/w_j1l_compat.c: Likewise.
27997 * math/w_jn_compat.c: Likewise.
27998 * math/w_jnf_compat.c: Likewise.
27999 * math/w_jnl_compat.c: Likewise.
28000 * math/w_lgamma_r_compat.c: Likewise.
28001 * math/w_lgammaf_r_compat.c: Likewise.
28002 * math/w_lgammal_r_compat.c: Likewise.
28003 * math/w_log10_compat.c: Likewise.
28004 * math/w_log10f_compat.c: Likewise.
28005 * math/w_log10l_compat.c: Likewise.
28006 * math/w_log2_compat.c: Likewise.
28007 * math/w_log2f_compat.c: Likewise.
28008 * math/w_log2l_compat.c: Likewise.
28009 * math/w_log_compat.c: Likewise.
28010 * math/w_logf_compat.c: Likewise.
28011 * math/w_logl_compat.c: Likewise.
28012 * math/w_pow_compat.c: Likewise.
28013 * math/w_powf_compat.c: Likewise.
28014 * math/w_powl_compat.c: Likewise.
28015 * math/w_remainder_compat.c: Likewise.
28016 * math/w_remainderf_compat.c: Likewise.
28017 * math/w_remainderl_compat.c: Likewise.
28018 * math/w_sinh_compat.c: Likewise.
28019 * math/w_sinhf_compat.c: Likewise.
28020 * math/w_sinhl_compat.c: Likewise.
28021 * math/w_sqrt_compat.c: Likewise.
28022 * math/w_sqrtf_compat.c: Likewise.
28023 * math/w_sqrtl_compat.c: Likewise.
28024 * math/w_tgamma_compat.c: Likewise.
28025 * math/w_tgammaf_compat.c: Likewise.
28026 * math/w_tgammal_compat.c: Likewise.
28027 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28028 [LIBM_SVID_COMPAT].
28029 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28030 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28031 [LIBM_SVID_COMPAT].
28032 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28033 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28034 [LIBM_SVID_COMPAT].
28035 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28036 * sysdeps/i386/fpu/w_sqrt.c: New file.
28037 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28038 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28039 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28040 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28041 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28042 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28043 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28044 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28045 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28046 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28047 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28048 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28049 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28050 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28051 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28052 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28053 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28054 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28055 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28056 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28057 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28058 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28059 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28060 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28061 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28062 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28063 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28064 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28065 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28066 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28067 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28068 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28069 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28070 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28071 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28072 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28073 * sysdeps/ia64/fpu/w_log.c: Likewise.
28074 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28075 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28076 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28077 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28078 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28079 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28080 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28081 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28082 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28083 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28084 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28085 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28086 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28087 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28088 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28089 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28090 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28091 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28092 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28093 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28094 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28095 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28096 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28097 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28098 [LIBM_SVID_COMPAT].
28099 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28100 * sysdeps/ieee754/k_standard.c: Likewise.
28101 * sysdeps/ieee754/k_standardf.c: Likewise.
28102 * sysdeps/ieee754/k_standardl.c: Likewise.
28103 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28104 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28105 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28106 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28107 long_double_symbol call on [LIBM_SVID_COMPAT].
28108 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28109 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28110 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28111 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28112 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28113 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28114 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28115 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28116 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28117 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28118 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28119 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28120 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28121 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28122 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28123 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28124 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28125 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28126 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28127 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28128 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28129 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28130
28131 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28132
28133 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28134 * malloc/tst-mallocstate.c: Convert from test-skeleton
28135 to test-driver. Ifdef code using TEST_COMPAT macro.
28136 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28137 * math/test-matherr.c: Likewise.
28138
28139 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28140
28141 [BZ #22086]
28142 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28143 comparing word with byte-swapped constant.
28144
28145 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28146
28147 [BZ #20498]
28148 * locale/iso-639.def: add Miskito.
28149 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28150 * localedata/locales/miq_NI: New file.
28151
28152 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28153
28154 [BZ #18822]
28155 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28156 (__mkdir): Likewise.
28157 * io/chmod.c (__chmod): Add libc_hidden_def.
28158 * io/mkdir.c (__mkdir): Likewise.
28159 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28160 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28161 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28162 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28163
28164 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28165
28166 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28167 version to 4.13.
28168
28169 [BZ #22082]
28170 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28171 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28172
28173 2017-09-04 Florian Weimer <fweimer@redhat.com>
28174
28175 * math/math.h: Issue warning if log is defined.
28176
28177 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28178
28179 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28180 kernel version to 4.13.
28181
28182 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28183
28184 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28185 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28186 parameter.
28187 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28188 just <bits/types.h>.
28189 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28190 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28191 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28192 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28193 * misc/preadv2.c: Include <errno.h>.
28194 * misc/preadv64v2.c: Include <errno.h>.
28195 * misc/pwritev2.c: Include <errno.h>.
28196 * misc/pwritev64v2.c: Include <errno.h>.
28197 * sysdeps/posix/preadv2.c: Include <errno.h>.
28198 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28199 Fix <unistd.h> inclusion.
28200 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28201 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28202 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28203 __strtoul_internal): New functions.
28204 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28205 * sysdeps/posix/system.c: Include <sigsetops.h>.
28206 * sysdeps/mach/hurd/i386/Makefile
28207 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28208 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28209 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28210 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28211 __feraiseexcept_renamed to feraiseexcept instead of
28212 __GI_feraiseexcept.
28213 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28214 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28215 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28216 RWF_NOWAIT): Define to 0 if undefined already.
28217 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28218 boils down to 0.
28219 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28220 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28221
28222 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28223
28224 * manual/math.texi (pow10): Do not document.
28225 (pow10f): Likewise.
28226 (pow10l): Likewise.
28227 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28228 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28229 * math/libm-test-exp10.inc (pow10_test): Remove.
28230 (do_test): Do not call pow10.
28231 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28232 [NO_LONG_DOUBLE] (pow10l): Likewise.
28233 * math/w_exp10f_compat.c (pow10f): Likewise.
28234 * math/w_exp10l_compat.c (pow10l): Likewise.
28235 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28236 (pow10): Make into compat symbol.
28237 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28238 (pow10f): Make into compat symbol.
28239 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28240 (pow10l): Make into compat symbol.
28241 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28242 pow10.
28243 (CFLAGS-nldbl-pow10.c): Remove variable..
28244 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28245 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28246 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28247 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28248 Undefine and redefine.
28249 (pow10l): Make into compat symbol.
28250 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28251 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28252 * sysdeps/arm/libm-test-ulps: Likewise.
28253 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28254 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28255 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28256 * sysdeps/microblaze/libm-test-ulps: Likewise.
28257 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28258 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28259 * sysdeps/nios2/libm-test-ulps: Likewise.
28260 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28261 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28262 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28263 * sysdeps/sh/libm-test-ulps: Likewise.
28264 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28265 * sysdeps/tile/libm-test-ulps: Likewise.
28266 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28267
28268 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28269
28270 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28271
28272 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28273
28274 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28275 "../ChangeLog.old/ChangeLog.8".
28276 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28277 "../ChangeLog.old/ChangeLog.14".
28278
28279 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28280
28281 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28282 Threads Library.
28283
28284 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28285
28286 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28287
28288 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28289
28290 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28291 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28292
28293 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28294
28295 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28296 32 atexit handlers.
28297
28298 2017-09-01 Zack Weinberg <zackw@panix.com>
28299
28300 * math/math.h (HUGE_VAL): Improve commentary.
28301
28302 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28303 Andreas Schwab <schwab@suse.de>
28304
28305 [BZ #21530]
28306 * include/stdio.h (__gen_tempfd): New function.
28307 * stdio-common/Makefile (routines): Add gentempfd.
28308 * stdio-common/gentempfd.c: New file.
28309 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28310 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28311 unnamed file first.
28312
28313 2017-09-01 Florian Weimer <fweimer@redhat.com>
28314
28315 [BZ #21915]
28316 [BZ #21922]
28317 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28318 result to determine success or failure, not the errno value.
28319 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28320 (tst-nss-files-hosts-erange): Link with -ldl.
28321 * nss/tst-nss-files-hosts-erange.c: New file.
28322 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28323 (do_test): Add NO_DATA tests.
28324 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28325 (do_test): Call it.
28326
28327 2017-09-01 Florian Weimer <fweimer@redhat.com>
28328
28329 [BZ #21922]
28330 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28331 coming from gethostbyname2_r.
28332
28333 2017-09-01 Florian Weimer <fweimer@redhat.com>
28334
28335 * support/namespace.h (struct support_chroot_configuration): Add
28336 hosts, host_conf.
28337 (struct support_chroot): Add path_hosts, path_host_conf.
28338 * support/support_chroot.c (write_file): New function.
28339 (support_chroot_create): Call it to process /etc/resolv.conf,
28340 /etc/hosts, /etc/host.conf.
28341 (support_chroot_free): Update.
28342
28343 2017-09-01 Florian Weimer <fweimer@redhat.com>
28344
28345 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28346 status indicates it is set.
28347
28348 2017-09-01 Florian Weimer <fweimer@redhat.com>
28349
28350 [BZ #20532]
28351 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28352 function lookup failures more reliable.
28353
28354 2017-09-01 Florian Weimer <fweimer@redhat.com>
28355
28356 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28357 (getcanonname): Likewise.
28358 (gaih_inet): Likewise.
28359
28360 2017-09-01 Florian Weimer <fweimer@redhat.com>
28361
28362 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28363 (getcanonname): Likewise.
28364 (gaih_inet): Likewise.
28365
28366 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28367 Richard Henderson <rth@twiddle.net>
28368
28369 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28370 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28371 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28372 (IREG_SIZE, OREG_SIZE): New macros.
28373 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28374 (IREG_SIZE, OREG_SIZE): New macros.
28375 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28376 (IREG_SIZE): New macro.
28377 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28378 (IREG_SIZE): New macro.
28379 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28380 New includes.
28381 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28382 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28383 (__CONCATX): Handle exceptions correctly on large values that may
28384 set FE_INVALID.
28385 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28386 Initialize if not already set.
28387 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28388
28389 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28390
28391 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28392 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28393 Likewise.
28394 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28395 Likewise.
28396 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28397 Likewise.
28398 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28399 Likewise.
28400 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28401 Likewise.
28402 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28403 Likewise.
28404 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28405 Likewise.
28406 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28407 (NO_CANCELLATION): Likewise.
28408 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28409 Likewise.
28410 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28411 Likewise.
28412 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28413 Likewise.
28414 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28415 (NO_CANCELLATION): Likewise.
28416 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28417 (NO_CANCELLATION): Likewise.
28418 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28419 Likewise
28420 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28421 Likewise.
28422 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28423 Likewise.
28424 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28425 Likewise.
28426 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28427 hidden prototype.
28428 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28429 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28430
28431 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28432
28433 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28434 in resolver call.
28435
28436 2017-08-31 Florian Weimer <fweimer@redhat.com>
28437
28438 * include/libc-symbols.h (internal_function): Remove.
28439
28440 2017-08-31 Florian Weimer <fweimer@redhat.com>
28441
28442 * stdlib/fmtmsg.c (internal_addseverity): Remove
28443 internal_function.
28444
28445 2017-08-31 Florian Weimer <fweimer@redhat.com>
28446
28447 * stdio-common/printf_fp.c (group_number): Remove
28448 internal_function.
28449 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28450
28451 2017-08-31 Florian Weimer <fweimer@redhat.com>
28452
28453 * posix/fnmatch.c (internal_function): Remove definition.
28454 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28455 * posix/regcomp.c (peek_token, init_word_char)
28456 (duplicate_node_closure, fetch_token, peek_token)
28457 (peek_token_bracket, build_range_exp, build_collating_symbol):
28458 Likewise.
28459 * posix/regex_internal.c (re_string_construct_common)
28460 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28461 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28462 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28463 (re_string_translate_buffer, re_string_reconstruct)
28464 (re_string_peek_byte_case, re_string_fetch_byte_case)
28465 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28466 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28467 (re_node_set_add_intersect, re_node_set_init_union)
28468 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28469 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28470 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28471 (re_acquire_state_context): Likewise.
28472 * posix/regex_internal.h (internal_function): Remove definition.
28473 (re_string_realloc_buffers, build_wcs_buffer)
28474 (build_wcs_upper_buffer, build_upper_buffer)
28475 (re_string_translate_buffer, re_string_context_at)
28476 (re_string_char_size_at, re_string_wchar_at)
28477 (re_string_elem_size_at): Likewise.
28478 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28479 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28480 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28481 (re_search_internal, re_search_2_stub, re_search_stub)
28482 (re_copy_regs, prune_impossible_nodes, check_matching)
28483 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28484 (free_fail_stack_return, sift_states_iter_mb)
28485 (sift_states_backward, build_sifted_states)
28486 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28487 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28488 (check_subexp_limits, sift_states_bkref, merge_state_array)
28489 (find_recover_state, transit_state, merge_state_with_log)
28490 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28491 (transit_state_mb, transit_state_bkref, get_subexp)
28492 (get_subexp_sub, find_subexp_node, check_arrival)
28493 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28494 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28495 (check_node_accept_bytes, find_collation_sequence_value)
28496 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28497 (acquire_init_state_context, check_halt_node_context)
28498 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28499 (sub_epsilon_src_nodes): Likewise.
28500 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28501 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28502 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28503 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28504 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28505 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28506 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28507 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28508 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28509 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28510 (PREADV): Likewise.
28511 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28512 (PREADV): Likewise.
28513 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28514 (PWRITEV): Likewise.
28515 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28516 (PWRITEV): Likewise.
28517 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28518 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28519
28520 2017-08-31 Florian Weimer <fweimer@redhat.com>
28521
28522 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28523 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28524 Remove internal_function.
28525 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28526 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28527 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28528 (__deallocate_stack, __libc_pthread_init)
28529 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28530 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28531 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28532 Likewise.
28533 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28534 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28535 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28536 Likewise.
28537 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28538 (__pthread_mutex_unlock_usercnt): Likewise.
28539
28540 2017-08-31 Florian Weimer <fweimer@redhat.com>
28541
28542 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28543 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28544 (fts_safe_changedir): Remove internal_function.
28545 * io/ftw.c (internal_function): Remove definition.
28546 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28547
28548 2017-08-31 Florian Weimer <fweimer@redhat.com>
28549
28550 * inet/deadline.c (__deadline_current_time)
28551 (__deadline_from_timeval, __deadline_to_ms): Remove
28552 internal_function.
28553 * inet/getnameinfo.c (nrl_domainname): Likewise.
28554 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28555 * inet/inet6_option.c (add_pad): Likewise.
28556 * inet/net-internal.h (__deadline_current_time)
28557 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28558 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28559 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28560 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28561
28562 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28563
28564 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28565 include <bits/nan.h>.
28566 * math/Makefile (headers): Remove bits/nan.h.
28567 * bits/nan.h: Remove.
28568 * sysdeps/ieee754/bits/nan.h: Likewise.
28569 * sysdeps/mips/bits/nan.h: Likewise.
28570
28571 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28572 not include <bits/inf.h>.
28573 * math/Makefile (headers): Remove bits/inf.h.
28574 * bits/inf.h: Remove.
28575 * sysdeps/ieee754/bits/inf.h: Likewise.
28576
28577 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28578 bits/huge_vall.h or bits/huge_val_flt128.h.
28579 (HUGE_VAL): Define directly here.
28580 [__USE_ISOC99] (HUGE_VALF): Likewise.
28581 [__USE_ISOC99] (HUGE_VALL): Likewise.
28582 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28583 (HUGE_VAL_F128): Likewise.
28584 * math/Makefile (headers): Remove bits/huge_val.h,
28585 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28586 * bits/huge_val.h: Remove.
28587 * bits/huge_val_flt128.h: Likewise.
28588 * bits/huge_valf.h: Likewise.
28589 * bits/huge_vall.h: Likewise.
28590 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28591 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28592 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28593 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28594 * sysdeps/sh/bits/huge_val.h: Likewise.
28595 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28596 * sysdeps/x86/bits/huge_vall.h: Likewise.
28597
28598 2017-08-31 Florian Weimer <fweimer@redhat.com>
28599
28600 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28601 internal_function.
28602 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28603 Likewise.
28604 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28605 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28606 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28607 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28608 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28609 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28610 * elf/dl-libc.c (dlerror_run): Likewise.
28611 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28612 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28613 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28614 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28615 Likewise.
28616 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28617 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28618 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28619 * elf/dl-profile.c (_dl_start_profile): Likewise.
28620 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28621 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28622 Likewise.
28623 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28624 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28625 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28626 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28627 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28628 (_dl_allocate_tls_storage): Likewise.
28629 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28630 (_dl_check_all_versions): Likewise.
28631 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28632 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28633 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28634 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28635 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28636 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28637 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28638 internal_function from __dl_start.
28639 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28640 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28641 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28642 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28643 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28644 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28645 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28646 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28647 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28648 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28649 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28650 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28651 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28652 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28653 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28654 Likewise.
28655 (struct rtld_global_ro): Remove internal_function from the
28656 _dl_lookup_symbol_x member.
28657 (_dl_symbol_value): Remove. No longer defined anywhere.
28658 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28659 internal_function.
28660 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28661 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28662 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28663 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28664 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28665 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28666 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28667 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28668 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28669 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28670 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28671 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28672
28673 2017-08-31 Florian Weimer <fweimer@redhat.com>
28674
28675 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28676 Remove internal_function.
28677 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28678 Likewise.
28679 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28680 Likewise.
28681
28682 2017-08-31 Florian Weimer <fweimer@redhat.com>
28683
28684 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28685 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28686 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28687
28688 2017-08-31 Florian Weimer <fweimer@redhat.com>
28689
28690 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28691 (__gai_enqueue_request): Remove internal_function.
28692 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28693 (__gai_remove_request, __gai_notify, __gai_notify_only)
28694 (__gai_sigqueue): Likewise.
28695 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28696 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28697 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28698 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28699 Likewise.
28700
28701 2017-08-31 Florian Weimer <fweimer@redhat.com>
28702
28703 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28704 * include/dirent.h (__opendirat, __getdents, __getdents64)
28705 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28706 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28707 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28708 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28709 Likewise.
28710 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28711
28712 2017-08-31 Florian Weimer <fweimer@redhat.com>
28713
28714 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28715 internal_function.
28716 (GETCWD_RETURN_TYPE): Likewise.
28717
28718 2017-08-31 Florian Weimer <fweimer@redhat.com>
28719
28720 * include/time.h (__tz_compute, __strptime_internal): Remove
28721 internal_function.
28722 * time/strptime_l.c (__strptime_internal): Likewise.
28723 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28724
28725 2017-08-31 Florian Weimer <fweimer@redhat.com>
28726
28727 * iconv/gconv.c (__gconv): Remove internal_function.
28728 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28729 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28730 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28731 (__gconv_release_cache): Likewise.
28732 * iconv/gconv_close.c (__gconv_close): Likewise.
28733 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28734 (read_conf_file, __gconv_get_path): Likewise.
28735 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28736 (__gconv_release_step, gen_steps, increment_counter)
28737 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28738 (__gconv_close_transform, free_modules_db): Likewise.
28739 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28740 Likewise.
28741 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28742 (__gconv_find_transform, __gconv_lookup_cache)
28743 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28744 (__gconv_close_transform, __gconv_release_cache)
28745 (__gconv_loaded_object, __gconv_release_shlib)
28746 (__gconv_compare_alias): Likewise.
28747 * iconv/gconv_open.c (__gconv_open): Likewise.
28748 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28749 * iconv/iconvconfig.c (add_module): Likewise.
28750 * intl/dcigettext.c (plural_lookup, guess_category_value)
28751 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28752 * intl/eval-plural.h (plural_eval): Likewise.
28753 * intl/finddomain.c (_nl_find_domain): Likewise.
28754 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28755 (_nl_load_domain, _nl_find_msg): Likewise.
28756 (internal_function): Remove definition.
28757 * intl/loadinfo.h (internal_function): Likewise.
28758 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28759 internal_function.
28760 * intl/localealias.c (internal_function): Remove definition.
28761 (read_alias_file): Remove internal_function.
28762 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28763 * intl/plural-exp.h (internal_function): Remove definition.
28764 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28765 internal_function.
28766 * intl/plural.c: Regenerate.
28767 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28768 * locale/coll-lookup.c (__collidx_table_lookup)
28769 (__collseq_table_lookup): Likewise.
28770 * locale/coll-lookup.h (__collidx_table_lookup)
28771 (__collseq_table_lookup): Likewise.
28772 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28773 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28774 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28775 (_nl_unload_locale): Likewise.
28776 * locale/localeinfo.h (struct __locale_data): Remove
28777 internal_function from cleanup member.
28778 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28779 (_nl_remove_locale, _nl_load_locale_from_archive)
28780 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28781 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28782 (_nl_cleanup_time): Remove internal_function.
28783 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28784 (_nl_parse_alt_digit): Likewise.
28785 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28786 (_nl_select_era_entry): Likewise.
28787 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28788 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28789 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28790 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28791 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28792
28793 2017-08-31 Florian Weimer <fweimer@redhat.com>
28794
28795 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28796 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28797 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28798 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28799 Likewise.
28800 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28801 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28802 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28803 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28804 Likewise.
28805 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28806
28807 2017-08-31 Florian Weimer <fweimer@redhat.com>
28808
28809 * misc/getttyent.c (skip, value): Remove internal_function.
28810 * misc/syslog.c (openlog_internal): Likewise.
28811 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28812
28813 2017-08-31 Florian Weimer <fweimer@redhat.com>
28814
28815 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28816 (__nss_rewrite_field): Remove internal_function.
28817 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28818 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28819 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28820 * nss/nsswitch.c (nss_parse_file, nss_getline)
28821 (nss_parse_service_list, nss_new_service): Likewise.
28822 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28823 * nss/valid_field.c (__nss_valid_field): Likewise.
28824 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28825
28826 2017-08-31 Florian Weimer <fweimer@redhat.com>
28827
28828 * malloc/arena.c (__malloc_fork_lock_parent)
28829 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28830 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28831 internal_function from defintions.
28832 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28833 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28834 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28835 internal_function from declarations.
28836 * malloc/malloc.c (internal_function): Do not define.
28837 (mem2mem_check): Remove internal_function from declaration.
28838 (munmap_chunk, mremap_chunk): Remove internal_function.
28839 * malloc/mtrace.c (tr_where): Likewise.
28840
28841 2017-08-31 Florian Weimer <fweimer@redhat.com>
28842
28843 * include/rpc/pmap_clnt.h (__get_socket): Remove
28844 internal_function.
28845 * sunrpc/auth_des.c (synchronize): Likewise.
28846 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28847 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28848 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28849 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28850 (key_call): Likewise.
28851 * sunrpc/pm_getport.c (__get_socket): Likewise.
28852 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28853 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28854 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28855 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28856 (invalidate): Likewise.
28857 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28858 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28859 (set_input_fragment, get_input_bytes): Likewise.
28860
28861 2017-08-31 Florian Weimer <fweimer@redhat.com>
28862
28863 * malloc/malloc.c (_int_free): Remove locked variable and related
28864 asserts.
28865
28866 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
28867
28868 [BZ #22051]
28869 * Makerules (build-module-helper-objlist): Filter out
28870 $(elf-objpfx)sofini.os.
28871 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
28872 needed.
28873
28874 2017-08-31 Florian Weimer <fweimer@redhat.com>
28875
28876 * libio/fcloseall.c: Assume weak_alias is defined.
28877 * libio/feof.c: Likewise.
28878 * libio/fileno.c: Likewise.
28879 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
28880 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28881 definitions.
28882 (_IO_file_open): Call __open directly.
28883 (_IO_new_file_sync): Assume ESPIPE is defined.
28884 (_IO_file_seekoff_maybe_mmap): Call __read directly.
28885 (_IO_new_file_write): Call __write directly.
28886 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
28887 * libio/ftello64.c (__ftello64): Assume EIO is defined.
28888 * libio/genops.c: Assume _LIBC is defined.
28889 (save_for_backup): Remove internal_function.
28890 * libio/getc.c: Assume weak_alias is defined.
28891 * libio/getwc.c: Likewise.
28892 * libio/iofclose.c: Assume _LIBC is defined.
28893 * libio/iofdopen.c: Likewise.
28894 (_IO_fcntl): Remove macro definition.
28895 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
28896 Call __fcntl directly.
28897 * libio/iofflush.c: Assume weak_alias is defined.
28898 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
28899 defined.
28900 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
28901 * libio/iofgets.c: Likewise.
28902 * libio/iofopen.c: Assume _LIBC is defined.
28903 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
28904 * libio/iofputs.c: Assume weak_alias is defined.
28905 * libio/iofread.c: Likewise.
28906 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
28907 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
28908 * libio/ioftell.c: Assume weak_alias is defined.
28909 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
28910 * libio/iofwide.c: Assume _LIBC is defined.
28911 (_IO_fwide): Drop SHARED conditional because it is implied by
28912 SHLIB_COMPAT.
28913 * libio/iofwrite.c: Assume weak_alias is defined.
28914 * libio/iogetdelim.c: Likewise.
28915 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
28916 * libio/iogetwline.c (wmemcpy): Remove macro definition.
28917 (_IO_getwline): Call __wmemcpy directly.
28918 * libio/iopopen.c: Assume _LIBC is defined.
28919 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28920 (_IO_close): Remove macro definitions.
28921 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
28922 _exit directly.
28923 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
28924 directly.
28925 * libio/ioputs.c: Assume weak_alias is defined.
28926 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
28927 * libio/iosetbuffer.c: Assume weak_alias is defined.
28928 * libio/iosetvbuf.c: Likewise.
28929 * libio/ioungetc.c: Likewise.
28930 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
28931 libc_hidden_def, libc_hidden_weak, NULL are defined.
28932 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
28933 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
28934 defined.
28935 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28936 definitions.
28937 (_IO_old_file_init_internal): Drop SHARED conditional because it
28938 is implied by SHLIB_COMPAT.
28939 (_IO_old_file_fopen): Call __open directly.
28940 (_IO_old_file_sync): Assume ESPIPE is defined.
28941 (_IO_old_file_write): Call __write directly.
28942 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
28943 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
28944 Call __fcntl directly.
28945 * libio/oldiofgetpos.c: Assume weak_alias is defined.
28946 (_IO_old_fgetpos): Assume EIO is defined.
28947 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
28948 (_IO_old_fgetpos64): Assume EIO is defined.
28949 * libio/oldiofsetpos.c: Assume weak_alias is defined.
28950 (_IO_old_fsetpos): Assume EIO is defined.
28951 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
28952 (_IO_old_fsetpos64): Assume EIO is defined.
28953 * libio/oldiopopen.c: Assume _LIBC is defined.
28954 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28955 (_IO_close): Remove macro definitions.
28956 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
28957 directly.
28958 (_IO_old_proc_close): Call __close, __waitpid directly.
28959 * libio/put.c: Assume weak_alias is defined.
28960 * libio/stdfiles.c: Assume _LIBC is defined.
28961 * libio/stdio.c: Likewise.
28962 * libio/wfileops.c: Likewise.
28963 (_IO_wfile_sync): Assume ESPIPE is defined.
28964 * libio/wgenops.c: Assume _LIBC is defined.
28965 (save_for_wbackup): Remove internal_function.
28966
28967 2017-08-31 Florian Weimer <fweimer@redhat.com>
28968
28969 * malloc/malloc.c (top_check): Change return type to void. Remove
28970 internal_function.
28971 * malloc/hooks.c (top_check): Likewise.
28972 (malloc_check, realloc_check, memalign_check): Adjust.
28973
28974 2017-08-30 Joseph Myers <joseph@codesourcery.com>
28975
28976 [BZ #21457]
28977 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
28978 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
28979 sigcontext and namespace requirements.
28980 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
28981 * sysdeps/m68k/sys/ucontext.h: Likewise.
28982 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
28983 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
28984 <bits/sigcontext.h>.
28985 (__ctx): Define earlier.
28986 (mcontext_t): Define structure contents rather than using struct
28987 sigcontext.
28988 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
28989 __glibc_reserved1 instead of __reserved.
28990 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
28991 <bits/sigcontext.h>.
28992 (__ctx): Define earlier.
28993 (mcontext_t): Define structure contents rather than using struct
28994 sigcontext.
28995 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
28996 mcontext_t instead of struct sigcontext.
28997 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
28998 <bits/sigcontext.h>.
28999 (__ctx): Define earlier.
29000 (mcontext_t): Define structure contents rather than using struct
29001 sigcontext.
29002 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29003 <bits/sigcontext.h>.
29004 (__ctx): Define earlier.
29005 (mcontext_t): Define structure contents rather than using struct
29006 sigcontext.
29007 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29008 mcontext_t instead of struct sigcontext.
29009 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29010 mcontext_t instead of struct sigcontext.
29011 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29012 <bits/sigcontext.h>.
29013 (__ctx): New macro.
29014 (struct __ia64_fpreg_mcontext): New type.
29015 (mcontext_t): Define structure contents rather than using struct
29016 sigcontext.
29017 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29018 (uc_sigmask): Define using __ctx.
29019 (uc_stack): Likewise.
29020 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29021 <bits/sigcontext.h>.
29022 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29023 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29024 <bits/sigcontext.h>.
29025 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29026 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29027 <bits/sigcontext.h>.
29028 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29029 <bits/sigcontext.h>.
29030 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29031 <bits/sigcontext.h>.
29032 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29033 <bits/sigcontext.h>.
29034 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29035 <bits/sigcontext.h>.
29036 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29037 <bits/sigcontext.h>.
29038 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29039 <bits/sigcontext.h>.
29040 (__ctx): Define earlier.
29041 (mcontext_t): Define structure contents rather than using struct
29042 sigcontext.
29043 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29044 <bits/sigcontext.h>. Include <bits/types.h>.
29045 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29046 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29047 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29048 (test-xfail-UNIX98/signal.h/conform): Likewise.
29049 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29050 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29051 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29052 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29053 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29054 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29055 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29056 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29057 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29058
29059 2017-08-30 Florian Weimer <fweimer@redhat.com>
29060
29061 * malloc/dynarray_emplace_enlarge.c
29062 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29063 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29064 * malloc/tst-dynarray.c (test_long_overflow): New function.
29065 (do_test): Call it.
29066
29067 2017-08-30 Florian Weimer <fweimer@redhat.com>
29068
29069 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29070 (set_arena_corrupt): Remove definitions.
29071 (mtrim): Do not check for corrupt arena.
29072 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29073 Likewise.
29074
29075 2017-08-30 Florian Weimer <fweimer@redhat.com>
29076
29077 [BZ #21754]
29078 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29079 check_action.
29080 (ptmalloc_init): Do not set or use check_action.
29081 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29082 call to malloc_printerr. Remove return statement.
29083 (free_check): Likewise. Remove arena unlock.
29084 (top_check): Update comment. Adjust call to malloc_printerr.
29085 Remove heap repair code.
29086 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29087 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29088 (sysmalloc): Adjust call to malloc_printerr.
29089 (munmap_chunk, __libc_realloc): Likewise. Remove return
29090 statement.
29091 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29092 Remove errout label and corresponding gotos.
29093 (_int_free): Likewise. Remove arena unlock.
29094 (do_set_mallopt_check): Do not set check_action.
29095 (malloc_printerr): Adjust parameter list. Do not mark arena as
29096 corrupt.
29097 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29098 comment.
29099 * manual/probes.texi (Memory Allocation Probes): Remove
29100 memory_mallopt_check_action.
29101
29102 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29103
29104 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29105 Use pointer to uint64_t instead of long int for sp.
29106
29107 2017-08-30 Florian Weimer <fweimer@redhat.com>
29108
29109 [BZ #21754]
29110 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29111 without printing a backtrace. Do not leak any information in the
29112 error message.
29113 * manual/memory.texi (Heap Consistency Checking): Update.
29114 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29115
29116 2017-08-30 Florian Weimer <fweimer@redhat.com>
29117
29118 Do not scale NPTL tests with available number of CPUs.
29119 * nptl/tst-cond16.c (count): Set to constant value of 8.
29120 * nptl/tst-cond18.c (count): Likewise.
29121
29122 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29123
29124 [BZ #22035]
29125 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29126 Define to take a second argument that is a macro that
29127 concatentates a suffix, not the suffix itself.
29128 (__CONCAT_d): New macro.
29129 (__CONCAT_f): Likewise.
29130 (__CONCAT_l): Likewise.
29131
29132 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29133
29134 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29135 by child.
29136
29137 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29138 Aurelien Jarno <aurelien@aurel32.net>
29139 Maciej W. Rozycki <macro@imgtec.com>
29140
29141 [BZ #21956]
29142 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29143 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29144 `mips16-syscall6' and `mips16-syscall7'.
29145 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29146 (CFLAGS-mips16-syscall7.c): Remove.
29147 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29148 Remove `__mips16_syscall5', `__mips16_syscall6' and
29149 `__mips16_syscall7'.
29150 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29151 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29152 `__mips_syscall_return'.
29153 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29154 (__mips16_syscall1): Likewise.
29155 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29156 (__mips16_syscall2): Likewise.
29157 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29158 (__mips16_syscall3): Likewise.
29159 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29160 (__mips16_syscall4): Likewise.
29161 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29162 Remove.
29163 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29164 Remove.
29165 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29166 Remove.
29167 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29168 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29169 `__mips16_syscall5'. Remove prototype.
29170 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29171 `__mips16_syscall6'. Remove prototype.
29172 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29173 `__mips16_syscall7'. Remove prototype.
29174 (__nomips16, __mips16_syscall_return): Move to...
29175 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29176 (__nomips16, __mips_syscall_return): ... here.
29177 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29178 `__mips16_syscall_return' to `__mips_syscall_return'.
29179 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29180 `internal_syscall##nr'.
29181 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29182 `internal_syscall##nr'.
29183 (FORCE_FRAME_POINTER): Remove.
29184 (__mips_syscall5): New prototype.
29185 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29186 (__mips_syscall6): New prototype.
29187 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29188 (__mips_syscall7): New prototype.
29189 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29190 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29191 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29192 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29193 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29194 (sysdep_routines): Add libc-do-syscall.
29195 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29196 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29197
29198 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29199
29200 [BZ #21672]
29201 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29202 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29203 (advise_stack_range): New function.
29204 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29205 stack non required to advise_stack_range at allocatestack.c
29206
29207 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29208
29209 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29210
29211 2017-08-29 Florian Weimer <fweimer@redhat.com>
29212
29213 [BZ #22026]
29214 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29215 __end_fct. Mangle __end_fct after setting it to NULL.
29216 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29217 (modules-names, modules-names-tests): Add
29218 tst-gconv-init-failure-mod.
29219 (gconv-modules): New target.
29220 (tst-gconv-init-failure-mod.so): Link against libsupport.
29221 (tst-gconv-init-failure): Depend on gconv-modules,
29222 tst-gconv-init-failure-mod.so.
29223 * iconv/tst-gconv-init-failure-mod.c: New file.
29224 * iconv/tst-gconv-init-failure.c: Likewise.
29225 * iconv/test-gconv-modules: Likewise.
29226
29227 2017-08-29 Florian Weimer <fweimer@redhat.com>
29228
29229 [BZ #22025]
29230 * iconv/gconv_db.c (free_derivation): Remove redundant
29231 parentheses.
29232 (gen_steps): Unconditionally mangle __btowc_fct after
29233 initialization.
29234 (increment_counter): Likewise. Do not call init_fct for internal
29235 modules.
29236
29237 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29238
29239 [BZ #22028]
29240 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29241 (_MSUF_): Remove macro.
29242 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29243 Likewise.
29244 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29245 (__REDIRFROM_X): New macro.
29246 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29247 Likewise.
29248 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29249 (__REDIRTO_X): Likewise.
29250 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29251 arguments.
29252 (__MATH_REDIRCALL_2): Likewise.
29253 (__MATH_REDIRCALL_INTERNAL): Likewise.
29254 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29255 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29256 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29257 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29258 * math/test-finite-macros.c: New file.
29259 * math/Makefile (tests): Add test-finite-macros.
29260 (CFLAGS-test-finite-macros.c): New variable.
29261
29262 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29263 Jeff Law <law@redhat.com>
29264
29265 [BZ #22025]
29266 Mangle NULL pointers in iconv/gconv.
29267 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29268 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29269 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29270 is non-NULL before demangling the end_fct. Check for NULL
29271 end_fct after demangling.
29272 (__gconv_release_step): Demangle the end_fct before checking
29273 it for NULL. Remove assert on __shlibc_handle != NULL.
29274 (gen_steps): Don't check btowc_fct for NULL before mangling.
29275 Demangle init_fct before checking for NULL.
29276 (increment_counter): Likewise.
29277 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29278 end_fct for NULL before mangling.
29279 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29280 for NULL.
29281
29282 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29283
29284 [BZ #21971]
29285 * locale/iso-639.def: add Morisyen.
29286
29287 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29288
29289 [BZ #21930]
29290 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29291 (iszero): New C++ implementation that does not use
29292 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29293 signaling nans are enabled, since __builtin_types_compatible_p
29294 is a C-only feature.
29295 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29296 defined, include ieee754_float128.h for access to the union and
29297 member ieee854_float128.ieee.
29298 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29299 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29300 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29301 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29302 options of test-math-zero on powerpc64le.
29303
29304 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29305
29306 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29307 Change double to float.
29308
29309 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29310
29311 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29312 unconditional.
29313 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29314 conditional code; define contents only for [LIBM_SVID_COMPAT].
29315
29316 2017-08-28 Florian Weimer <fweimer@redhat.com>
29317
29318 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29319 (abi-lp64_be-options): Remove.
29320 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29321 (abi-hard-options): Likewise.
29322 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29323 (abi-o32_hard-options, abi-o32_soft_2008-options)
29324 (abi-o32_hard_2008-options, abi-n32_soft-options)
29325 (abi-n32_hard-options, abi-n32_soft_2008-options)
29326 (abi-n32_hard_2008-options, abi-n64_soft-options)
29327 (abi-n64_hard-options, abi-n64_soft_2008-options)
29328 (abi-n64_hard_2008-options): Likewise.
29329 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29330 (abi-64-v1-options, abi-64-v2-options): Likewise.
29331 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29332 (abi-64-options): Likewise.
29333 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29334 (abi-64-options): Likewise.
29335 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29336 (abi-64-options): Likewise.
29337 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29338 (abi-64-options, abi-x32-options): Likewise.
29339
29340 2017-08-28 Florian Weimer <fweimer@redhat.com>
29341
29342 Store supported list of SYS_* system calls in the source tree.
29343 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29344 (bits/syscall.h): Generate from list file.
29345 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29346 [$(subdir) = misc] (tests): Add tst-syscall-list.
29347 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29348 [$(subdir) = misc] (tst-syscall-list-macros.list)
29349 [$(subdir) = misc] (tst-syscall-list-nr.list)
29350 (tst-syscall-list-sys.list): Helper targets for new
29351 tst-syscall-list test.
29352 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29353 tst-syscall-list.sh.
29354 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29355 target. Do not include bits/syscall.d.
29356 [$(subdir) = misc] (generated): Do not update.
29357 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29358 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29359 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29360 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29361
29362 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29363
29364 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29365 (tst-cxa_atexit, tst-on_exit): Likewise.
29366 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29367 tst-cxa_atexit, and tst-on_exit.
29368 * stdlib/tst-atexit-common.c: New file.
29369 * stdlib/tst-atexit.c: New file.
29370 * stdlib/tst-at_quick_exit.c: New file.
29371 * stdlib/tst-cxa_atexit.c: New file.
29372 * stdlib/tst-on_exit.c: New file.
29373
29374 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29375
29376 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29377 * mach/stack_chk_fail_local.c: New file.
29378 * hurd/stack_chk_fail_local.c: New file.
29379 * mach/Machrules ($(interface-library)-routines): Add
29380 stack_chk_fail_local.
29381 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29382 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29383 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29384 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29385 * hurd/Makefile (CFLAGS-hurdstartup.o,
29386 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29387
29388 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29389
29390 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29391 (index_cpu_*, index_arch_*): Removed.
29392
29393 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29394
29395 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29396 Use uint64_t instead of unsigned long.
29397
29398 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29399
29400 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29401 [__HAVE_DISTINCT_FLOAT128].
29402
29403 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29404 of <bits/math-finite.h>.
29405 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29406 inclusion of <bits/math-finite.h>.
29407 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29408 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29409 __NO_LONG_DOUBLE_MATH].
29410 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29411 (__MATH_REDIRCALL_2): Likewise.
29412 (__MATH_REDIRCALL_INTERNAL): Likewise.
29413 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29414 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29415 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29416
29417 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29418 Remove file.
29419 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29420 Likewise.
29421 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29422 Likewise.
29423 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29424 Likewise.
29425 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29426 Likewise.
29427 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29428 Likewise.
29429 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29430 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29431 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29432 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29433 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29434 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29435 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29436 w_sqrtf_compat-ppc32.
29437
29438 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29439
29440 * math/math.h [defined __cplusplus] (issignaling): In the long
29441 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29442 is not defined. Call __issignaling, otherwise.
29443
29444 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29445
29446 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29447 syscall definitions and replace __builtin_expect with __glibc_likely.
29448 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29449 syscall.
29450 (SYSCALL_CANCELLABLE): Removedefinition
29451 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29452 definition.
29453 (PSEUDO_END): Likewise.
29454 [IS_IN (libpthread)] (CENABLE): Likewise.
29455 [IS_IN (libpthread)] (CDISABLE): Likewise.
29456 [IS_IN (libc)] (CENABLE): Likewise.
29457 [IS_IN (libc)] (CENABLE): Likewise.
29458 [IS_IN (librt)] (CDISABLE): Likewise.
29459 [IS_IN (librt)] (CDISABLE): Likewise.
29460 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29461 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29462 definition.
29463 (PSEUDO_END): Likewise.
29464 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29465 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29466 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29467 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29468 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29469 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29470 (CENABLE): Likewise.
29471 (CDISABLE): Likewise.
29472 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29473 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29474 defintion.
29475 (PSEUDO_END): Likewise.
29476 [IS_IN (libpthread)] (CENABLE): Likewise.
29477 [IS_IN (libpthread)] (CDISABLE): Likewise.
29478 [IS_IN (libc)] (CENABLE): Likewise.
29479 [IS_IN (libc)] (CENABLE): Likewise.
29480 [IS_IN (librt)] (CDISABLE): Likewise.
29481 [IS_IN (librt)] (CDISABLE): Likewise.
29482 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29483 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29484 definition.
29485 (PSEUDO_END): Likewise.
29486 [IS_IN (libpthread)] (CENABLE): Likewise.
29487 [IS_IN (libpthread)] (CDISABLE): Likewise.
29488 [IS_IN (libc)] (CENABLE): Likewise.
29489 [IS_IN (libc)] (CENABLE): Likewise.
29490 [IS_IN (librt)] (CDISABLE): Likewise.
29491 [IS_IN (librt)] (CDISABLE): Likewise.
29492 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29493 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29494 definition.
29495 (PSEUDO_END): Likewise.
29496 [IS_IN (libpthread)] (CENABLE): Likewise.
29497 [IS_IN (libpthread)] (CDISABLE): Likewise.
29498 [IS_IN (libc)] (CENABLE): Likewise.
29499 [IS_IN (libc)] (CENABLE): Likewise.
29500 [IS_IN (librt)] (CDISABLE): Likewise.
29501 [IS_IN (librt)] (CDISABLE): Likewise.
29502 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29503 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29504 definition.
29505 (PSEUDO_END): Likewise.
29506 [IS_IN (libpthread)] (CENABLE): Likewise.
29507 [IS_IN (libpthread)] (CDISABLE): Likewise.
29508 [IS_IN (libc)] (CENABLE): Likewise.
29509 [IS_IN (libc)] (CENABLE): Likewise.
29510 [IS_IN (librt)] (CDISABLE): Likewise.
29511 [IS_IN (librt)] (CDISABLE): Likewise.
29512 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29513 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29514 definition.
29515 (PSEUDO_END): Likewise.
29516 [IS_IN (libpthread)] (CENABLE): Likewise.
29517 [IS_IN (libpthread)] (CDISABLE): Likewise.
29518 [IS_IN (libc)] (CENABLE): Likewise.
29519 [IS_IN (libc)] (CENABLE): Likewise.
29520 [IS_IN (librt)] (CDISABLE): Likewise.
29521 [IS_IN (librt)] (CDISABLE): Likewise.
29522 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29523 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29524 definition.
29525 (PSEUDO_END): Likewise.
29526 [IS_IN (libpthread)] (CENABLE): Likewise.
29527 [IS_IN (libpthread)] (CDISABLE): Likewise.
29528 [IS_IN (libc)] (CENABLE): Likewise.
29529 [IS_IN (libc)] (CENABLE): Likewise.
29530 [IS_IN (librt)] (CDISABLE): Likewise.
29531 [IS_IN (librt)] (CDISABLE): Likewise.
29532 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29533 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29534 Remove definition.
29535 (PSEUDO_END): Likewise.
29536 [IS_IN (libpthread)] (CENABLE): Likewise.
29537 [IS_IN (libpthread)] (CDISABLE): Likewise.
29538 [IS_IN (libc)] (CENABLE): Likewise.
29539 [IS_IN (libc)] (CENABLE): Likewise.
29540 [IS_IN (librt)] (CDISABLE): Likewise.
29541 [IS_IN (librt)] (CDISABLE): Likewise.
29542 (SINGLE_THREAD_P): Likewise.
29543 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29544 definition.
29545 (PSEUDO_END): Likewise.
29546 [IS_IN (libpthread)] (CENABLE): Likewise.
29547 [IS_IN (libpthread)] (CDISABLE): Likewise.
29548 [IS_IN (libc)] (CENABLE): Likewise.
29549 [IS_IN (libc)] (CENABLE): Likewise.
29550 [IS_IN (librt)] (CDISABLE): Likewise.
29551 [IS_IN (librt)] (CDISABLE): Likewise.
29552 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29553 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29554 definition.
29555 (PSEUDO_END): Likewise.
29556 [IS_IN (libpthread)] (CENABLE): Likewise.
29557 [IS_IN (libpthread)] (CDISABLE): Likewise.
29558 [IS_IN (libc)] (CENABLE): Likewise.
29559 [IS_IN (libc)] (CENABLE): Likewise.
29560 [IS_IN (librt)] (CDISABLE): Likewise.
29561 [IS_IN (librt)] (CDISABLE): Likewise.
29562 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29563 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29564 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29565 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29566 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29567 definition.
29568 (PSEUDO_END): Likewise.
29569 [IS_IN (libpthread)] (CENABLE): Likewise.
29570 [IS_IN (libpthread)] (CDISABLE): Likewise.
29571 [IS_IN (libc)] (CENABLE): Likewise.
29572 [IS_IN (libc)] (CENABLE): Likewise.
29573 [IS_IN (librt)] (CDISABLE): Likewise.
29574 [IS_IN (librt)] (CDISABLE): Likewise.
29575 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29576 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29577 definition.
29578 (PSEUDO_END): Likewise.
29579 [IS_IN (libpthread)] (CENABLE): Likewise.
29580 [IS_IN (libpthread)] (CDISABLE): Likewise.
29581 [IS_IN (libc)] (CENABLE): Likewise.
29582 [IS_IN (libc)] (CENABLE): Likewise.
29583 [IS_IN (librt)] (CDISABLE): Likewise.
29584 [IS_IN (librt)] (CDISABLE): Likewise.
29585 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29586 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29587 definition.
29588 (PSEUDO_END): Likewise.
29589 [IS_IN (libpthread)] (CENABLE): Likewise.
29590 [IS_IN (libpthread)] (CDISABLE): Likewise.
29591 [IS_IN (libc)] (CENABLE): Likewise.
29592 [IS_IN (libc)] (CENABLE): Likewise.
29593 [IS_IN (librt)] (CDISABLE): Likewise.
29594 [IS_IN (librt)] (CDISABLE): Likewise.
29595 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29596 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29597 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29598 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29599 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29600 definition.
29601 (PSEUDO_END): Likewise.
29602 [IS_IN (libpthread)] (CENABLE): Likewise.
29603 [IS_IN (libpthread)] (CDISABLE): Likewise.
29604 [IS_IN (libc)] (CENABLE): Likewise.
29605 [IS_IN (libc)] (CENABLE): Likewise.
29606 [IS_IN (librt)] (CDISABLE): Likewise.
29607 [IS_IN (librt)] (CDISABLE): Likewise.
29608 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29609 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29610 definition.
29611 (PSEUDO_END): Likewise.
29612 [IS_IN (libpthread)] (CENABLE): Likewise.
29613 [IS_IN (libpthread)] (CDISABLE): Likewise.
29614 [IS_IN (libc)] (CENABLE): Likewise.
29615 [IS_IN (libc)] (CENABLE): Likewise.
29616 [IS_IN (librt)] (CDISABLE): Likewise.
29617 [IS_IN (librt)] (CDISABLE): Likewise.
29618 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29619
29620 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29621
29622 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29623
29624 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29625
29626 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29627
29628 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29629
29630 [BZ #21982]
29631 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29632 middle and outer with size_t instead of int. Repleace %d and
29633 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29634 "MAX (outer, nchars - 64)" to support unsigned outer and
29635 nchars. Also exit loop when outer == 0.
29636
29637 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29638
29639 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29640 * include/signal.h (__sigsuspend_nocancel): Likewise.
29641 * include/time.h (__nanosleep_nocancel): Likewise.
29642 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29643 * login/utmp_file.c: Include non cancellable syscall header.
29644 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29645 prototype.
29646
29647 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29648
29649 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29650 .byte sequences with AVX512F instructions.
29651 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29652 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29653 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29654 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29655 Likewise.
29656 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29657 Likewise.
29658
29659 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29660 Steve Ellcey <sellcey@cavium.com>
29661
29662 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29663 Use PTR_REG macro in cmp instruction.
29664
29665 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29666
29667 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29668 Change the return type of the ifunc resolver to match the return
29669 type of the target function.
29670
29671 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29672
29673 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29674 (preadv64): Likewise.
29675 (pwrite64(: Likewise.
29676 (pwritev64): Likewise.
29677
29678 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29679 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29680 (LOAD_ARGS_0): Likewise.
29681 (LOAD_ARGS_1): Likewise.
29682 (LOAD_ARGS_2): Likewise.
29683 (LOAD_ARGS_3): Likewise.
29684 (LOAD_ARGS_4): Likewise.
29685 (LOAD_ARGS_5): Likewise.
29686 (LOAD_ARGS_6): Likewise.
29687 (LOAD_REGS_0): Likewise.
29688 (LOAD_REGS_1): Likewise.
29689 (LOAD_REGS_2): Likewise.
29690 (LOAD_REGS_3): Likewise.
29691 (LOAD_REGS_4): Likewise.
29692 (LOAD_REGS_5): Likewise.
29693 (LOAD_REGS_6): Likewise.
29694 (ASM_ARGS_0): Likewise.
29695 (ASM_ARGS_1): Likewise.
29696 (ASM_ARGS_2): Likewise.
29697 (ASM_ARGS_3): Likewise.
29698 (ASM_ARGS_4): Likewise.
29699 (ASM_ARGS_5): Likewise.
29700 (ASM_ARGS_6): Likewise.
29701 (LOAD_ARGS_TYPES_1): Likewise.
29702 (LOAD_ARGS_TYPES_2): Likewise.
29703 (LOAD_ARGS_TYPES_3): Likewise.
29704 (LOAD_ARGS_TYPES_4): Likewise.
29705 (LOAD_ARGS_TYPES_5): Likewise.
29706 (LOAD_ARGS_TYPES_6): Likewise.
29707 (LOAD_REGS_TYPES_1): Likewise.
29708 (LOAD_REGS_TYPES_2): Likewise.
29709 (LOAD_REGS_TYPES_3): Likewise.
29710 (LOAD_REGS_TYPES_4): Likewise.
29711 (LOAD_REGS_TYPES_5): Likewise.
29712 (LOAD_REGS_TYPES_6): Likewise.
29713 (TYPEFY): New define.
29714 (ARGIFY): Likewise.
29715 (internal_syscall0): Likewise.
29716 (internal_syscall1): Likewise.
29717 (internal_syscall2): Likewise.
29718 (internal_syscall3): Likewise.
29719 (internal_syscall4): Likewise.
29720 (internal_syscall5): Likewise.
29721 (internal_syscall6): Likewise.
29722 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29723 (INTERNAL_SYSCALL_NCS): Remove define.
29724 (internal_syscall1): Add define.
29725
29726 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29727
29728 * math/w_remainder_compat.c: Remove duplicate inclusion of
29729 math-svid-compat.h.
29730 * math/w_remainderf_compat.c: Likewise.
29731 * math/w_remainderl_compat.c: Likewise.
29732
29733 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29734
29735 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29736
29737 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29738
29739 [BZ #21684]
29740 * math/tgmath.h (__floating_type): Simplify definitions.
29741 (__real_integer_type): New macro.
29742 (__complex_integer_type): Likewise.
29743 (__expr_is_real): Likewise.
29744 (__tgmath_real_type_sub): Update comment to describe handling of
29745 complex types.
29746 (__tgmath_complex_type_sub): New macro.
29747 (__tgmath_complex_type): Likewise.
29748 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29749 (__TGMATH_CF128): Use __expr_is_real.
29750 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29751 __expr_is_real.
29752 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29753 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29754 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29755 integer types.
29756
29757 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29758
29759 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29760 macro.
29761 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29762 alias.
29763 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29764 Likewise.
29765
29766 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29767 nanosleep_not_cancel with __nanosleep_nocancel.
29768 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29769 (__nanosleep_nocancel): New macro.
29770 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29771 function.
29772 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29773 macro.
29774 (__nanosleep_nocancel): New prototype.
29775
29776 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29777 pause_not_cancel with __pause_nocancel.
29778 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29779 (__pause_nocancel): New macro.
29780 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29781 macro.
29782 (__pause_nocancel): New prototype.
29783 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29784
29785 2017-08-22 Martin Sebor <msebor@redhat.com>
29786
29787 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29788 to return a pointer to the same type as the target function.
29789
29790 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29791
29792 [BZ #18822]
29793 [BZ #21986]
29794 * include/printf.h (__printf_fphex): Add attribute_hidden.
29795 (__guess_grouping): New prototype.
29796 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29797 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29798 libc_hidden_proto and libc_hidden_def.
29799 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29800 (__vstrfmon_l): Remove the third argument passed to
29801 __guess_grouping.
29802
29803 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29804
29805 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29806 definition for issignaling that does not rely on __MATH_TG,
29807 since __MATH_TG uses __builtin_types_compatible_p, which is only
29808 available in C mode.
29809 (CFLAGS-test-math-issignaling.cc): New variable.
29810 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29811 * math/test-math-issignaling.cc: New test for C++ implementation
29812 of type-generic issignaling.
29813 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29814 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29815 options of test-math-issignaling on powerpc64le.
29816
29817 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29818
29819 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29820 building libc.a.
29821 (hidden_proto): Likewise.
29822 (hidden_tls_proto): Likewise.
29823 (__hidden_proto): Likewise.
29824
29825 2017-08-22 Florian Weimer <fweimer@redhat.com>
29826
29827 math: Statically link tests of internal functionality.
29828 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29829 atest-exp2.
29830 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29831 (gmp-objs): Remove assignment.
29832 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29833
29834 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29835
29836 [BZ #21987]
29837 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29838 and copy to ...
29839 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29840 ... here.
29841 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29842 ... and here.
29843
29844 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29845 variable definitions above inclusion of ../Rules.
29846
29847 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29848
29849 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29850 case calling __builtin_unreachable.
29851
29852 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29853
29854 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29855 __waitpid_nocancel.
29856 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29857 (__waitpid_nocancel): New macro.
29858 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29859 macro.
29860 (__waitpid_nocancel): Replace macro with a function.
29861 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29862 function.
29863
29864 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
29865 __fcntl_nocancel.
29866 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
29867 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
29868
29869 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
29870 __writev_nocancel_nostatus.
29871 (write_call_graph): Likewise.
29872 (write_bb_counts): Likewise.
29873 * resolv/herror.c (herror): Likewise.
29874 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
29875 macro.
29876 (__writev_nocancel_nostatus): New macro.
29877 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
29878 Remove macro.
29879 (__writev_nocancel_nostatus): New function.
29880
29881 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29882
29883 Revert:
29884 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29885
29886 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29887 building libc.a.
29888 (hidden_proto): Likewise.
29889 (hidden_tls_proto): Likewise.
29890 (__hidden_proto): Likewise.
29891
29892 [BZ #21973]
29893 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
29894 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
29895 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
29896 Likewise.
29897 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
29898 Likewise.
29899 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
29900 Likewise.
29901 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
29902 Likewise.
29903 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
29904 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
29905 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
29906 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
29907 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
29908 GLIBC_2.0 sqrtl symbol.
29909
29910 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
29911 [__USE_MISC] (_LIB_VERSION): Likewise.
29912 [__USE_MISC] (struct exception): Likewise.
29913 [__USE_MISC] (matherr): Likewise.
29914 [__USE_MISC] (DOMAIN): Likewise.
29915 [__USE_MISC] (SING): Likewise.
29916 [__USE_MISC] (OVERFLOW): Likewise.
29917 [__USE_MISC] (UNDERFLOW): Likewise.
29918 [__USE_MISC] (TLOSS): Likewise.
29919 [__USE_MISC] (PLOSS): Likewise.
29920 [__USE_MISC] (HUGE): Likewise.
29921 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
29922 * math/math-svid-compat.h: New file.
29923 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
29924 and matherrl.
29925 * include/math.h [!_ISOMAC] (__matherr): Remove.
29926 * manual/arith.texi (FP Exceptions): Do not document matherr.
29927 * math/Makefile (tests): Change test-matherr to test-matherr-3.
29928 (tests-internal): New variable.
29929 (install-lib): Do not add libieee.a.
29930 (non-lib.a): Likewise.
29931 (extra-objs): Do not add libieee.a and ieee-math.o.
29932 (CPPFLAGS-s_lib_version.c): Remove variable.
29933 ($(objpfx)libieee.a): Remove rule.
29934 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
29935 * math/ieee-math.c: Remove.
29936 * math/libm-test-support.c (matherr): Remove.
29937 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
29938 and license notices. Include <math-svid-compat.h> and
29939 <shlib-compat.h>.
29940 (matherr): Undefine as macro. Use compat_symbol_reference.
29941 (_LIB_VERSION): Likewise.
29942 * math/test-matherr-2.c: New file.
29943 * math/test-matherr-3.c: Likewise.
29944 * sysdeps/generic/math_private.h (__kernel_standard): Remove
29945 declaration.
29946 (__kernel_standard_f): Likewise.
29947 (__kernel_standard_l): Likewise.
29948 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
29949 <math_private.h>. Include <math-svid-compat.h>.
29950 (_LIB_VERSION): Undefine as macro.
29951 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
29952 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
29953 [LIBM_SVID_COMPAT], use compat_symbol.
29954 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
29955 <math_private.h>. Include <math-svid-compat.h>.
29956 (matherr): Undefine as macro.
29957 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
29958 compat_symbol.
29959 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
29960 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
29961 compat_symbol_reference.
29962 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
29963 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
29964 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
29965 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
29966 (MATHERR_D): Remove declaration.
29967 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
29968 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
29969 [LIBM_BUILD] (pmatherrf): Likewise.
29970 [LIBM_BUILD] (pmatherr): Likewise.
29971 [LIBM_BUILD] (pmatherrl): Likewise.
29972 (DOMAIN): Likewise.
29973 (SING): Likewise.
29974 (OVERFLOW): Likewise.
29975 (UNDERFLOW): Likewise.
29976 (TLOSS): Likewise.
29977 (PLOSS): Likewise.
29978 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
29979 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
29980 compat_symbol.
29981 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
29982 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
29983 compat_symbol.
29984 * math/lgamma-compat.h: Include <math-svid-compat.h>.
29985 * math/w_acos_compat.c: Likewise.
29986 * math/w_acosf_compat.c: Likewise.
29987 * math/w_acosh_compat.c: Likewise.
29988 * math/w_acoshf_compat.c: Likewise.
29989 * math/w_acoshl_compat.c: Likewise.
29990 * math/w_acosl_compat.c: Likewise.
29991 * math/w_asin_compat.c: Likewise.
29992 * math/w_asinf_compat.c: Likewise.
29993 * math/w_asinl_compat.c: Likewise.
29994 * math/w_atan2_compat.c: Likewise.
29995 * math/w_atan2f_compat.c: Likewise.
29996 * math/w_atan2l_compat.c: Likewise.
29997 * math/w_atanh_compat.c: Likewise.
29998 * math/w_atanhf_compat.c: Likewise.
29999 * math/w_atanhl_compat.c: Likewise.
30000 * math/w_cosh_compat.c: Likewise.
30001 * math/w_coshf_compat.c: Likewise.
30002 * math/w_coshl_compat.c: Likewise.
30003 * math/w_exp10_compat.c: Likewise.
30004 * math/w_exp10f_compat.c: Likewise.
30005 * math/w_exp10l_compat.c: Likewise.
30006 * math/w_exp2_compat.c: Likewise.
30007 * math/w_exp2f_compat.c: Likewise.
30008 * math/w_exp2l_compat.c: Likewise.
30009 * math/w_fmod_compat.c: Likewise.
30010 * math/w_fmodf_compat.c: Likewise.
30011 * math/w_fmodl_compat.c: Likewise.
30012 * math/w_hypot_compat.c: Likewise.
30013 * math/w_hypotf_compat.c: Likewise.
30014 * math/w_hypotl_compat.c: Likewise.
30015 * math/w_j0_compat.c: Likewise.
30016 * math/w_j0f_compat.c: Likewise.
30017 * math/w_j0l_compat.c: Likewise.
30018 * math/w_j1_compat.c: Likewise.
30019 * math/w_j1f_compat.c: Likewise.
30020 * math/w_j1l_compat.c: Likewise.
30021 * math/w_jn_compat.c: Likewise.
30022 * math/w_jnf_compat.c: Likewise.
30023 * math/w_jnl_compat.c: Likewise.
30024 * math/w_lgamma_main.c: Likewise.
30025 * math/w_lgamma_r_compat.c: Likewise.
30026 * math/w_lgammaf_main.c: Likewise.
30027 * math/w_lgammaf_r_compat.c: Likewise.
30028 * math/w_lgammal_main.c: Likewise.
30029 * math/w_lgammal_r_compat.c: Likewise.
30030 * math/w_log10_compat.c: Likewise.
30031 * math/w_log10f_compat.c: Likewise.
30032 * math/w_log10l_compat.c: Likewise.
30033 * math/w_log2_compat.c: Likewise.
30034 * math/w_log2f_compat.c: Likewise.
30035 * math/w_log2l_compat.c: Likewise.
30036 * math/w_log_compat.c: Likewise.
30037 * math/w_logf_compat.c: Likewise.
30038 * math/w_logl_compat.c: Likewise.
30039 * math/w_pow_compat.c: Likewise.
30040 * math/w_powf_compat.c: Likewise.
30041 * math/w_powl_compat.c: Likewise.
30042 * math/w_remainder_compat.c: Likewise.
30043 * math/w_remainderf_compat.c: Likewise.
30044 * math/w_remainderl_compat.c: Likewise.
30045 * math/w_scalb_compat.c: Likewise.
30046 * math/w_scalbf_compat.c: Likewise.
30047 * math/w_scalbl_compat.c: Likewise.
30048 * math/w_sinh_compat.c: Likewise.
30049 * math/w_sinhf_compat.c: Likewise.
30050 * math/w_sinhl_compat.c: Likewise.
30051 * math/w_sqrt_compat.c: Likewise.
30052 * math/w_sqrtf_compat.c: Likewise.
30053 * math/w_sqrtl_compat.c: Likewise.
30054 * math/w_tgamma_compat.c: Likewise.
30055 * math/w_tgammaf_compat.c: Likewise.
30056 * math/w_tgammal_compat.c: Likewise.
30057 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30058 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30059 * sysdeps/ieee754/k_standard.c: Likewise.
30060 * sysdeps/ieee754/k_standardf.c: Likewise.
30061 * sysdeps/ieee754/k_standardl.c: Likewise.
30062 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30063 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30064 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30065 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30066 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30067 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30068 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30069 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30070 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30071 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30072 Likewise.
30073 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30074 Likewise.
30075 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30076 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30077 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30078 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30079
30080 2017-08-21 Florian Weimer <fweimer@redhat.com>
30081
30082 [BZ #21864]
30083 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30084 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30085 Move before inclusion of ../Rules.
30086
30087 2017-08-21 Florian Weimer <fweimer@redhat.com>
30088
30089 [BZ #21972]
30090 * assert/assert.h (assert): Use static_cast (bool) for C++.
30091 Use the ternary operator in the warning branch for GNU C.
30092 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30093 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30094 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30095 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30096 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30097
30098 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30099
30100 [BZ #18822]
30101 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30102 (__syscall_clock_gettime): Add attribute_hidden.
30103 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30104 (__start_context): Likewise.
30105
30106 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30107
30108 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30109 building libc.a.
30110 (hidden_proto): Likewise.
30111 (hidden_tls_proto): Likewise.
30112 (__hidden_proto): Likewise.
30113
30114 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30115
30116 * include/libc-symbols.h (attribute_hidden): Enable hidden
30117 visibility in libc.a compiled with PIE.
30118
30119 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30120
30121 [BZ #18822]
30122 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30123 Add attribute_hidden.
30124
30125 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30126
30127 [BZ #21864]
30128 * Makerules (all-nonlib): Add $(others-extras).
30129 * catgets/Makefile (others-extras): New.
30130 * elf/Makefile (others-extras): Likewise.
30131 * nss/Makefile (others-extras): Likewise.
30132
30133 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30134
30135 [BZ #18822]
30136 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30137 * elf/dl-open.c: Include <libc-internal.h>.
30138 (__libc_multiple_libcs): Removed.
30139 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30140 <hp-timing.h>.
30141 * include/libc-internal.h (__libc_multiple_libcs): New.
30142 * misc/sbrk.c: Include <libc-internal.h>.
30143 (__libc_multiple_libcs): Removed.
30144
30145 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30146
30147 [BZ #18822]
30148 * grp/initgroups.c (__nss_group_database): Removed.
30149 (__nss_initgroups_database): Likewise.
30150 * nscd/gai.c (__nss_hosts_database): Likewise.
30151 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30152 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30153 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30154 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30155 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30156 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30157 attribute_hidden.
30158 * nss/nsswitch.c (__nss_database_custom): Define only if
30159 USE_NSCD is defined.
30160 (__nss_configure_lookup): Use __nss_database_custom only if
30161 USE_NSCD is defined.
30162 * nss/nsswitch.h (__nss_database_custom): Declare only if
30163 USE_NSCD is defined. Add attribute_hidden.
30164 (__nss_setent): Add attribute_hidden.
30165 (__nss_endent): Likewise.
30166 (__nss_getent_r): Likewise.
30167 (__nss_getent): Likewise.
30168 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30169
30170 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30171
30172 [BZ #18822]
30173 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30174 libc_hidden_proto and libc_hidden_def.
30175
30176 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30177
30178 [BZ #18822]
30179 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30180 Add libc_hidden_proto.
30181 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30182 Add libc_hidden_def.
30183
30184 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30185
30186 [BZ #21974]
30187 * gmon/Makefile (routines): Remove bb_init_func and
30188 bb_exit_func.
30189 (elide-routines.os): Removed.
30190 * gmon/bb_exit_func.c: Likewise.
30191 * gmon/bb_init_func.c: Likewise.
30192 * include/sys/gmon.h (__bb): Likewise.
30193 (__bb_init_func): Likewise.
30194 (__bb_exit_func): Likewise.
30195 * sysdeps/alpha/bb_init_func.S: Likewise.
30196
30197 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30198
30199 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30200 * include/setjmp.h (____longjmp_chk): Here. Add
30201 attribute_hidden.
30202
30203 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30204
30205 [BZ #18822]
30206 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30207 attribute_hidden.
30208 (__strspn_sse2): Likewise.
30209
30210 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30211
30212 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30213 (close_not_cancel_no_status): Likewise.
30214 (__close_nocancel): New macro.
30215 (__close_nocancel_nostatus): Likewise.
30216 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30217 macro.
30218 (close_not_cancel): Likewise.
30219 (close_not_cancel_no_status): Likewise.
30220 (__close_nocancel): New prototype.
30221 (__close_nocancel_nostatus): New function.
30222 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30223 * catgets/open_catalog.c (__open_catalog): Replace
30224 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30225 * gmon/gmon.c (write_gmon): Likewise.
30226 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30227 * intl/loadmsgcat.c (close): Likewise.
30228 * io/ftw.c (open_dir_stream): Likewise.
30229 (ftw_startup): Likewise.
30230 * libio/fileops.c (_IO_file_open): Likewise.
30231 (_IO_file_close_mmap): Likewise.
30232 (_IO_file_close): Likewise.
30233 * libio/iopopen.c (_IO_dup2): Likewise.
30234 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30235 * locale/loadlocale.c (_nl_load_locale): Likewise.
30236 * login/utmp_file.c (pututline_file): Likewise.
30237 (endutent_file): Likewise.
30238 * misc/daemon.c (daemon): Likewise.
30239 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30240 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30241 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30242 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30243 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30244 * nscd/nscd_helper.c (open_socket): Likewise.
30245 (__nscd_open_socket): Likewise.
30246 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30247 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30248 (__nscd_innetgr): Likewise.
30249 * nss/nss_db/db-open.c (internal_setent): Likewise.
30250 * resolv/res-close.c (__res_iclose): Likewise.
30251 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30252 * sysdeps/posix/closedir.c (__closedir): Likewise.
30253 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30254 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30255 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30256 (opendir_tail): Likewise.
30257 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30258 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30259 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30260 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30261 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30262 (gethostid): Likewise.
30263 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30264 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30265 Likewise.
30266 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30267 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30268 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30269 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30270 Likewise.
30271 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30272 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30273 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30274 Likewise.
30275 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30276 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30277 Likewise.
30278 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30279 Likewise.
30280 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30281 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30282 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30283 __close_nocancel.
30284
30285 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30286 (openat_not_cancel_3): Likewise.
30287 (openat64_not_cancel_3): Likewise).
30288 (openat_not_cancel_3): Likewise).
30289 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30290 macro.
30291 (openat_not_cancel_3): Likewise.
30292 (openat64_not_cancel): Likewise.
30293 (openat64_not_cancel_3): Likewise.
30294 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30295 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30296 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30297 __open{64}_nocancel.
30298 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30299 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30300 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30301
30302 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30303
30304 [BZ #18822]
30305 * include/argz.h (__argz_create_sep): New function prototype.
30306 (__argz_append): Likewise.
30307 (__argz_add): Likewise.
30308 (__argz_add_sep): Likewise.
30309 (__argz_delete): Likewise.
30310 (__argz_insert): Likewise.
30311 (__argz_replace): Likewise.
30312 * string/argz.h (__argz_create_sep): Removed.
30313 (__argz_append): Likewise.
30314 (__argz_add): Likewise.
30315 (__argz_add_sep): Likewise.
30316 (__argz_delete): Likewise.
30317 (__argz_insert): Likewise.
30318 (__argz_replace): Likewise.
30319
30320 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30321
30322 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30323 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30324 (GNU_PROPERTY_STACK_SIZE): Likewie.
30325 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30326 (GNU_PROPERTY_LOPROC): Likewise.
30327 (GNU_PROPERTY_HIPROC): Likewise.
30328 (GNU_PROPERTY_LOUSER): Likewise.
30329 (GNU_PROPERTY_HIUSER): Likewise.
30330 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30331 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30332 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30333 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30334 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30335 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30336 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30337 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30338 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30339 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30340 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30341 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30342 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30343 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30344 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30345 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30346 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30347 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30348 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30349 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30350 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30351 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30352 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30353
30354 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30355
30356 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30357 in C++ mode.
30358
30359 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30360
30361 [BZ #21930]
30362 * math/math.h (isinf): Check if in C or C++ mode before using
30363 __builtin_types_compatible_p, since this is a C mode feature.
30364
30365 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30366
30367 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30368 (__write_nocancel): New macro.
30369 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30370 Rewrite as a function prototype.
30371 (write_not_cancel): Remove macro.
30372 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30373 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30374 (write_gmon): Likewise.
30375 * libio/fileops.c (_IO_new_file_write): Likewise.
30376 * login/utmp_file.c (pututline_file): Likewise.
30377 (updwtmp_file): Likewise.
30378 * stdio-common/psiginfo.c (psiginfo): Likewise.
30379 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30380 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30381 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30382 Likewise.
30383 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30384 Likewise.
30385
30386 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30387 (__read_nocancel): New macro.
30388 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30389 __read_nocancel.
30390 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30391 macro.
30392 (__read_nocancel): New prototype.
30393 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30394 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30395 with __read_nocancel.
30396 * intl/loadmsgcat.c (read): Likewise.
30397 * libio/fileops.c (_IO_file_read): Likewise.
30398 * locale/loadlocale.c (_nl_load_locale): Likewise.
30399 * login/utmp_file.c (getutent_r_file): Likewise.
30400 (internal_getut_r): Likewise.
30401 (getutline_r_file): Likewise.
30402 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30403 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30404 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30405 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30406 Likewise.
30407 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30408 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30409 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30410 Likewise.
30411 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30412 Likewise.
30413 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30414 Likewise.
30415 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30416 Likewise.
30417 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30418
30419 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30420
30421 [BZ #21966]
30422 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30423 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30424 usable.
30425
30426 2017-08-17 DJ Delorie <dj@redhat.com>
30427
30428 * bug17079.c: Update to new test harness.
30429 * test-digits-dots.c: Likewise.
30430 * test-netdb.c: Likewise.
30431 * tst-field.c: Likewise.
30432 * tst-nss-getpwent.c: Likewise.
30433 * tst-nss-static.c: Likewise.
30434 * tst-nss-test1.c: Likewise.
30435 * tst-nss-test2.c: Likewise.
30436 * tst-nss-test3.c: Likewise.
30437 * tst-nss-test4.c: Likewise.
30438 * tst-nss-test5.c: Likewise.
30439
30440 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30441
30442 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30443 (open_not_cancel_2): Likewise.
30444 (open_nocancel): New macro.
30445 (open64_nocancel): Likewise.
30446 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30447 (open_not_cancel_2): Likewise.
30448 (__open_nocancel): New prototype.
30449 (__open64_nocancel): Likewise.
30450 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30451 __open_nocancel.
30452 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30453 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30454 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30455 with __open_nocancel.
30456 * csu/check_fds.c (check_one_fd): Likewise.
30457 * gmon/gmon.c (write_gmon): Likewise.
30458 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30459 * intl/loadmsgcat.c (open): Likewise.
30460 * libio/fileops.c (_IO_file_open): Likewise.
30461 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30462 * locale/loadlocale.c (_nl_load_locale): Likewise.
30463 * login/utmp_file.c (setutent_file): Likewise.
30464 * misc/daemon.c (daemon): Likewise.
30465 * nss/nss_db/db-open.c (internal_setent): Likewise.
30466 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30467 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30468 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30469 (__opendir): Likewise.
30470 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30471 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30472 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30473 (gethostid): Likewise.
30474 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30475 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30476 Likewise.
30477 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30478 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30479 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30480 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30481 Likewise.
30482 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30483 Likewise.
30484 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30485 Likewise.
30486 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30487 Likewise.
30488 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30489 Likewise.
30490 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30491 Likewise.
30492 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30493 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30494
30495 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30496
30497 * benchtests/bench-skeleton.c (main): Add support for
30498 latency benchmarking.
30499 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30500
30501 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30502
30503 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30504 the startup object.
30505
30506 2017-08-17 Florian Weimer <fweimer@redhat.com>
30507
30508 * include/sys/socket.h (__opensock): Remove internal_function.
30509 * socket/opensock.c (__opensock): Likewise.
30510 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30511
30512 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30513
30514 [BZ #21944]
30515 * signal/bits/types/__sigval_t.h: New file.
30516 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30517 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30518 and define sigval_t using __sigval_t.
30519 * include/bits/types/__sigval_t.h: New file.
30520 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30521 instead of <bits/types/__sigval_t.h>.
30522 (struct sigevent): Use __sigval_t instead of sigval_t.
30523 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30524 instead of <bits/types/__sigval_t.h>.
30525 (siginfo_t): Use __sigval_t instead of sigval_t.
30526 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30527 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30528 (struct sigevent): Use __sigval_t instead of sigval_t.
30529 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30530 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30531 (siginfo_t): Use __sigval_t instead of sigval_t.
30532 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30533
30534 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30535
30536 * NEWS: Remove "[Add new features here]" for 2.27.
30537
30538 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30539
30540 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30541 libc.so.
30542
30543 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30544
30545 * NEWS: Mention x86-64 FMA optimization.
30546
30547 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30548
30549 [BZ #21912]
30550 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30551 Add e_expf-fma.
30552 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30553 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30554 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30555
30556 2017-08-16 Andreas Schwab <schwab@suse.de>
30557
30558 [BZ #16750]
30559 CVE-2009-5064
30560 * elf/ldd.bash.in: Never run file directly.
30561
30562 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30563
30564 [BZ #21955]
30565 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30566 (L(SP_INF_0)): Likewise.
30567
30568 2017-08-15 Florian Weimer <fweimer@redhat.com>
30569
30570 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30571 run-built-tests.
30572
30573 2017-08-15 Florian Weimer <fweimer@redhat.com>
30574
30575 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30576 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30577 BROKEN_THREAD_SIGNALS code.
30578 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30579 request_list): Remove caller_pid member used for
30580 BROKEN_THREAD_SIGNALS.
30581 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30582 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30583 Remove BROKEN_THREAD_SIGNALS support.
30584 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30585 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30586
30587 2017-08-15 Florian Weimer <fweimer@redhat.com>
30588
30589 * gmon/Makefile (tests): Add tst-gmon.
30590 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30591 Set.
30592 (tests-special): Add tst-gmon-prof.out.
30593 (tst-gmon.out): Depend on clean-tst-gmon-data.
30594 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30595 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30596 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30597 startup object.
30598 * aclocal.m4 (GPROF): Set and substitute.
30599 * config.amke.in (GPROF): Set.
30600 * configure: Regenerate.
30601
30602 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30603
30604 * elf/elf.h A (NT_PPC_TAR): New macro.
30605 (NT_PPC_PPR): Likewise.
30606 (NT_PPC_DSCR): Likewise.
30607 (NT_PPC_EBB): Likewise.
30608 (NT_PPC_PMU): Likewise.
30609 (NT_PPC_TM_CGPR): Likewise.
30610 (NT_PPC_TM_CFPR): Likewise.
30611 (NT_PPC_TM_CVMX): Likewise.
30612 (NT_PPC_TM_CVSX): Likewise.
30613 (NT_PPC_TM_SPR): Likewise.
30614 (NT_PPC_TM_CTAR): Likewise.
30615 (NT_PPC_TM_CPPR): Likewise.
30616 (NT_PPC_TM_CDSCR): Likewise.
30617
30618 2017-08-15 Florian Weimer <fweimer@redhat.com>
30619
30620 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30621 regparm (2) instead of internal_function.
30622 (_MCOUNT_DECL): Adjust.
30623
30624 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30625
30626 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30627 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30628
30629 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30630
30631 * conform/data/sys/wait.h-data (si_value): Do not expect for
30632 XPG42.
30633
30634 2017-08-14 Florian Weimer <fweimer@redhat.com>
30635
30636 [BZ #21962]
30637 NSS: Create stubs for accidentally exported lookup functions.
30638 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30639 Remove declaration.
30640 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30641 (ether_hostton): Call __nss_ethers_lookup2 instead.
30642 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30643 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30644 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30645 (setup): Call __nss_netgroup_lookup2 instead.
30646 * nss/Makefile (routines): Add compat-lookup.
30647 * nss/Versions (GLIBC_2.27): Add symbol version.
30648 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30649 (DB_COMPAT_FCT): Remove.
30650 * nss/compat-lookup.c: New file.
30651 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30652 from databases.def.
30653 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30654 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30655 (netname2user): Call __nss_publickey_lookup2 instead.
30656 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30657 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30658 instead.
30659
30660 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30661 Sergei Trofimovich <slyfox@inbox.ru>
30662
30663 [BZ #21908]
30664 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30665 Rename to MMAP2_PAGE_UNIT.
30666 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30667 __OFF_T_MATCHES_OFF64_T is not defined.
30668 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30669 uint64_t.
30670 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30671 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30672
30673 2017-08-14 Florian Weimer <fweimer@redhat.com>
30674
30675 i386: Do not set internal_function.
30676 * config.h.in (USE_REGPARMS, internal_function): Remove.
30677 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30678 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30679
30680 2017-08-14 Florian Weimer <fweimer@redhat.com>
30681
30682 * elf/dl-init.c (_dl_init): Remove internal_function.
30683 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30684 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30685
30686 2017-08-14 Florian Weimer <fweimer@redhat.com>
30687
30688 * elf/rtld.c (_dl_start): Remove internal_function.
30689 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30690 _dl_start.
30691
30692 2017-08-14 Florian Weimer <fweimer@redhat.com>
30693
30694 * elf/dl-fini.c (_dl_fini): Remove internal_function
30695 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30696
30697 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30698
30699 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30700 (bit_cpu_SHSTK): Likewise.
30701 (index_cpu_IBT): Likewise.
30702 (index_cpu_SHSTK): Likewise.
30703 (reg_IBT): Likewise.
30704 (reg_SHSTK): Likewise.
30705 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30706 Handle index_cpu_IBT and index_cpu_SHSTK.
30707
30708 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30709
30710 [BZ #19982]
30711 * po/fr.po: Fix spelling mistake.
30712
30713 2017-08-13 Florian Weimer <fweimer@redhat.com>
30714
30715 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30716 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30717 (_dl_catch_error, _dl_receive_error): Likewise.
30718 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30719 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30720 (_dl_deallocate_tls): Likewise.
30721 * include/dlfcn.h (_dl_addr): Likewise.
30722 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30723 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30724 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30725 Likewise.
30726
30727 2017-08-13 Florian Weimer <fweimer@redhat.com>
30728
30729 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30730 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30731 internal_function.
30732 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30733
30734 2017-08-13 Florian Weimer <fweimer@redhat.com>
30735
30736 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30737 internal_function.
30738 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30739 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30740 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30741 internal_function from _dl_make_stack_executable_hook member.
30742 (_dl_make_stack_executable): Remove internal_function.
30743 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30744 Likewise.
30745 * sysdeps/unix/sysv/linux/dl-execstack.c
30746 (_dl_make_stack_executable): Likewise.
30747
30748 2017-08-13 Florian Weimer <fweimer@redhat.com>
30749
30750 * sysdeps/unix/sysv/linux/netlinkaccess.h
30751 (__netlink_assert_response): Remove internal_function.
30752 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30753 (__netlink_assert_response): Likewise.
30754
30755 2017-08-13 Florian Weimer <fweimer@redhat.com>
30756
30757 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30758 internal_function.
30759 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30760
30761 2017-08-13 Florian Weimer <fweimer@redhat.com>
30762
30763 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30764 internal_function.
30765 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30766 * inet/netgroup.h (__internal_setnetgrent)
30767 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30768 * inet/getnetgrent_r.c (__internal_setnetgrent)
30769 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30770 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30771 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30772 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30773 * nss/nsswitch.h (db_lookup_function): Likewise.
30774
30775 2017-08-13 Florian Weimer <fweimer@redhat.com>
30776
30777 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30778 Remove internal_function.
30779 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30780 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30781 message argument on the stack.
30782 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30783 Likeweise.
30784
30785 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30786
30787 Adapt test case data to the changes in the thousands
30788 separators.
30789
30790 [BZ #20756]
30791 * localedata/tst-langinfo.sh: Adapt test case data.
30792 * stdlib/tst-strfmon_l.c: Likewise.
30793 * stdlib/tst-strtod4.c: Likewise.
30794 * stdlib/tst-strtod5i.c: Likewise.
30795
30796 2017-08-11 Florian Weimer <fweimer@redhat.com>
30797
30798 [BZ #21242]
30799 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30800 Suppress pedantic warning resulting from statement expression.
30801 (__ASSERT_FUNCTION): Add missing __extension__.
30802
30803 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30804
30805 * benchtests/bench-memmove-large.c: Print output in JSON
30806 format.
30807 * benchtests/bench-memmove.c: Likewise.
30808
30809 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30810 * benchtests/bench-memchr.c (do_one_test): Likewise.
30811 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30812 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30813 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30814 * benchtests/bench-memmove.c (do_one_test): Likewise.
30815 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30816 * benchtests/bench-memset.c (do_one_test): Likewise.
30817 * benchtests/bench-string.h (test_init): Remove memsets.
30818
30819 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30820
30821 * manual/lang.texi
30822 (Computing the Width of an Integer Data Type): Rename section to
30823 "Width of an Integer Type". Remove inaccurate statement regarding
30824 lack of C language facilities for determining width of integer
30825 types, and reorder content to improve flow and context of
30826 discussion.
30827
30828 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30829
30830 * lang.texi (va_copy): Change standard from ISO to C99.
30831 (__va_copy): Add standard and header annotation.
30832 Update description for clarity of origins and current use.
30833
30834 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30835
30836 [BZ #21941]
30837 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30838 xssqrtqp requires operands to be in Vector Registers
30839 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30840 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30841 (__ieee754_sqrtf128): Likewise.
30842
30843 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30844
30845 * sysdeps/aarch64/memcmp.S (memcmp):
30846 Rewrite of optimized memcmp.
30847
30848 2017-08-10 Florian Weimer <fweimer@redhat.com>
30849
30850 Introduce ld.so exceptions.
30851 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30852 (_dl_exception_create, _dl_exception_create_format)
30853 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30854 (_dl_catch_exception): Declare.
30855 (_dl_catch_error): Update comment.
30856 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30857 errstring, malloced members with exception member.
30858 (_dl_out_of_memory): Remove.
30859 (fatal_error): New function, extracted from _dl_signal_error.
30860 (_dl_signal_exception, _dl_signal_cexception): New functions.
30861 (_dl_signal_error): Call _dl_exception_create to allocate an
30862 exception object.
30863 (_dl_catch_exception): New function, based on _dl_catch_error.
30864 (_dl_catch_error): Implement using _dl_catch_exception.
30865 * elf/dl-exception.c: New file.
30866 * elf/Makefile (dl-routines): Add dl-exception.
30867 (elide-routines.os): Likewise.
30868 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
30869 _dl_exception_create_format, _dl_exception_free.
30870 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
30871 _dl_signal_exception.
30872 * elf/dl-lookup.c (make_string): Remove.
30873 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
30874 _dl_signal_cexception, _dl_exception_free.
30875 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
30876 _dl_signal_exception.
30877 * elf/dl-sym.c (do_sym): Likewise.
30878 * elf/dl-version.c (make_string): Remove.
30879 (match_symbol): Use _dl_exception_create_format,
30880 _dl_signal_cexception, _dl_exception_free.
30881 (_dl_check_map_versions): Likewise.
30882 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
30883 _dl_catch_exception.
30884 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
30885 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
30886 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
30887 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
30888 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
30889 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
30890 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
30891 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
30892 Likewise.
30893 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
30894 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
30895 (ld.so): Likewise.
30896 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
30897 (ld.so): Likewise.
30898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
30899 Likewise.
30900 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
30901 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
30902 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
30903 Likewise.
30904 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
30905 Likewise.
30906 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
30907
30908 2017-08-10 Florian Weimer <fweimer@redhat.com>
30909
30910 * inet/net-internal.h (__inet6_scopeid_pton): Remove
30911 attribute_hidden, internal_function.
30912 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
30913 internal_function.
30914
30915 2017-08-10 Florian Weimer <fweimer@redhat.com>
30916
30917 * malloc/malloc.c (get_max_fast): Reimplement as an inline
30918 function which calls __builtin_unreachable.
30919
30920 2017-08-10 Mike FABIAN <mfabian@redhat.com>
30921
30922 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
30923 Indian monetary formatting
30924 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
30925 test cases.
30926
30927 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
30928
30929 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
30930 Fix typo in comment.
30931
30932 [BZ #21928]
30933 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
30934 PTRACE_SEIZE_DEVEL): Remove.
30935 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
30936 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30937 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30938 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30939 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30940
30941 2017-08-09 Joseph Myers <joseph@codesourcery.com>
30942
30943 * posix/bits/types.h (__qaddr_t): Remove.
30944
30945 [BZ #21457]
30946 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
30947 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30948 __glibc_reserved1.
30949 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
30950 (ucontext_t): Use __ctx with uc_flags.
30951 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
30952 (__ctxt): Likewise.
30953 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30954 __glibc_reserved1.
30955 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
30956 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30957 __glibc_reserved1.
30958 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
30959 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30960 __glibc_reserved1.
30961 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
30962 macro.
30963 (ucontext_t): Use __ctx with uc_flags.
30964 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
30965 (ucontext_t): Use __ctx with uc_flags.
30966 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
30967 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
30968 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
30969 (ucontext_t): Use __ctx with uc_flags.
30970 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
30971 undefine further down.
30972 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30973 __glibc_reserved1.
30974 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
30975 undefine further down.
30976 (ucontext_t): Use __ctx with uc_flags.
30977 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
30978 undefine further down.
30979 (ucontext_t): Use __ctx with uc_flags.
30980 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
30981 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
30982 Rename uc_pad to __glibc_reserved1.
30983 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
30984 undefine further down.
30985 (ucontext_t): Use __ctx with uc_flags.
30986 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
30987 further down.
30988 (ucontext_t): Use __ctx with uc_flags.
30989 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
30990 __ctx with uc_flags.
30991 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
30992 (ucontext_t): Use __ctx with uc_flags.
30993 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
30994 __ctx with uc_flags.
30995
30996 2017-08-09 Florian Weimer <fweimer@redhat.com>
30997
30998 [BZ #21932]
30999 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31000 before early return.
31001
31002 2017-08-09 Andreas Schwab <schwab@suse.de>
31003
31004 [BZ #21041]
31005 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31006 renamed alias.
31007
31008 [BZ #21041]
31009 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31010 tst-compat-forwarder.
31011 (modules-names): Add tst-compat-forwarder-mod.
31012 ($(objpfx)tst-compat-forwarder): Depend on
31013 $(objpfx)tst-compat-forwarder-mod.so.
31014 * nptl/tst-compat-forwarder.c: New file.
31015 * nptl/tst-compat-forwarder-mod.c: New file.
31016
31017 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31018
31019 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31020 comments.
31021
31022 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31023 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31024 memcpy_falkor.
31025 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31026 Bump.
31027 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31028 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31029 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31030 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31031 Add falkor.
31032 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31033 New macro.
31034
31035 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31036
31037 [BZ #759]
31038 * manual/setjmp.texi (getcontex): Document uc_stack value
31039 compatibility differences.
31040
31041 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31042
31043 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31044 (old_malloc_hook): Likewise.
31045 (old_memalign_hook): Likewise.
31046 (old_realloc_hook): Likewise.
31047 (struct hdr): Likewise.
31048 (flood): Likewise.
31049 (freehook): Likewise.
31050 (mallochook): Likewise.
31051 (memalignhook): Likewise.
31052 (reallochook): Likewise.
31053 (mprobe): Likewise.
31054 * malloc/mtrace.c (mallwatch): Likewise.
31055 (tr_old_free_hook): Likewise.
31056 (tr_old_malloc_hook): Likewise.
31057 (tr_old_realloc_hook): Likewise.
31058 (tr_old_memalign_hook): Likewise.
31059 (tr_where): Likewise.
31060 (lock_and_info): Likewise.
31061 (tr_freehook): Likewise.
31062 (tr_mallochook): Likewise.
31063 (tr_reallochook): Likewise.
31064 (tr_memalignhook): Likewise.
31065 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31066 * misc/mmap.c (__mmap): Likewise.
31067 * misc/mmap64.c (__mmap64): Likewise.
31068 * misc/mprotect.c (__mprotect): Likewise.
31069 * misc/msync.c (msync): Likewise.
31070 * misc/munmap.c (__munmap): Likewise.
31071 * posix/posix_madvise.c (posix_madvise): Likewise.
31072 * socket/send.c (__send): Likewise.
31073 * socket/sendto.c (__sendto): Likewise.
31074 * socket/setsockopt.c (__setsockopt): Likewise.
31075 * string/memcmp.c (__ptr_t): Remove macro.
31076 (MEMCMP): Use void * instead of ptr_t.
31077 * string/memrchr.c (__ptr_t): Remove macro.
31078 (__memrchr): Use void * instead of ptr_t.
31079 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31080 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31081 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31082 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31083 * sysdeps/mach/msync.c (msync): Likewise.
31084 * sysdeps/mach/munmap.c (__munmap): Likewise.
31085 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31086 Likewise.
31087 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31088 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31089 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31090 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31091 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31092 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31093 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31094 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31095 Likewise.
31096 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31097 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31098 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31099 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31100 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31101 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31102 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31103 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31104 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31105 Likewise.
31106 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31107 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31108 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31109 (MEMCMP): Use void * instead of ptr_t.
31110 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31111 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31112
31113 2017-08-08 Florian Weimer <fweimer@redhat.com>
31114
31115 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31116 return statement.
31117
31118 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31119
31120 [BZ #21913]
31121 * csu/libc-tls.c: Include <startup.h> first.
31122 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31123 * elf/dl-tunables.c: Include <startup.h> first.
31124 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31125 * sysdeps/generic/startup.h: New file.
31126 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31127 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31128 (I386_USE_SYSENTER): New. Defined to 0.
31129
31130 2017-08-08 Andreas Schwab <schwab@suse.de>
31131
31132 [BZ #21041]
31133 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31134 * nptl/pt-system.c (system): Likewise.
31135
31136 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31137
31138 [BZ #21780]
31139 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31140 EOPNOTSUPP.
31141 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31142 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31143 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31144 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31145 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31146 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31147 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31148
31149 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31150
31151 [BZ #21899]
31152 * bits/sigaction.h (struct sigaction): Define sa_handler and
31153 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31154 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31155 [__USE_XOPEN_EXTENDED].
31156 (SA_RESTART): Likewise.
31157 (SA_NODEFER): Likewise.
31158 (SA_RESETHAND): Likewise.
31159 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31160 (struct sigaction): Define sa_handler and sa_sigaction using union
31161 also for [__USE_XOPEN_EXTENDED].
31162 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31163 [__USE_XOPEN_EXTENDED].
31164 (SA_RESTART): Likewise.
31165 (SA_NODEFER): Likewise.
31166 (SA_RESETHAND): Likewise.
31167 * sysdeps/unix/sysv/linux/bits/sigaction.h
31168 (struct sigaction): Define sa_handler and sa_sigaction using union
31169 also for [__USE_XOPEN_EXTENDED].
31170 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31171 [__USE_XOPEN_EXTENDED].
31172 (SA_RESTART): Likewise.
31173 (SA_NODEFER): Likewise.
31174 (SA_RESETHAND): Likewise.
31175 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31176 (struct sigaction): Define sa_handler and sa_sigaction using union
31177 also for [__USE_XOPEN_EXTENDED].
31178 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31179 [__USE_XOPEN_EXTENDED].
31180 (SA_RESTART): Likewise.
31181 (SA_NODEFER): Likewise.
31182 (SA_RESETHAND): Likewise.
31183 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31184 (struct sigaction): Define sa_handler and sa_sigaction using union
31185 also for [__USE_XOPEN_EXTENDED].
31186 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31187 [__USE_XOPEN_EXTENDED].
31188 (SA_RESTART): Likewise.
31189 (SA_NODEFER): Likewise.
31190 (SA_RESETHAND): Likewise.
31191 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31192 (struct sigaction): Define sa_handler and sa_sigaction using union
31193 also for [__USE_XOPEN_EXTENDED].
31194 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31195 [__USE_XOPEN_EXTENDED].
31196 (SA_RESTART): Likewise.
31197 (SA_NODEFER): Likewise.
31198 (SA_RESETHAND): Likewise.
31199 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31200 (struct sigaction): Define sa_handler and sa_sigaction using union
31201 also for [__USE_XOPEN_EXTENDED].
31202 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31203 [__USE_XOPEN_EXTENDED].
31204 (SA_RESTART): Likewise.
31205 (SA_NODEFER): Likewise.
31206 (SA_RESETHAND): Likewise.
31207 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31208 (struct sigaction): Define sa_handler and sa_sigaction using union
31209 also for [__USE_XOPEN_EXTENDED].
31210 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31211 [__USE_XOPEN_EXTENDED].
31212 (SA_RESTART): Likewise.
31213 (SA_NODEFER): Likewise. Define directly rather than as alias.
31214 (SA_RESETHAND): Likewise.
31215 (SA_INTERRUPT): Define only for [__USE_MISC].
31216 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31217 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31218 [__USE_MISC].
31219 (SA_STACK): Define only for [__USE_MISC].
31220 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31221 (struct sigaction): Define sa_handler and sa_sigaction using union
31222 also for [__USE_XOPEN_EXTENDED].
31223 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31224 [__USE_XOPEN_EXTENDED].
31225 (SA_RESTART): Likewise.
31226 (SA_NODEFER): Likewise.
31227 (SA_RESETHAND): Likewise.
31228 (SA_NOPTRACE): Define only for [__USE_MISC].
31229
31230 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31231 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31232 (struct catalog_info): Likewise.
31233 * inet/htontest.c (lo): Likewise.
31234 (foo): Likewise.
31235 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31236 * inet/inet_net.c (inet_network): Likewise.
31237 * inet/inet_netof.c (inet_netof): Likewise.
31238 * inet/rcmd.c (__ivaliduser): Likewise.
31239 (iruserok): Likewise.
31240 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31241 * locale/programs/locale-spec.c (locale_special): Likewise.
31242 * nis/nis_findserv.c (struct findserv_req): Likewise.
31243 (__nis_findfastest_with_timeout): Likewise.
31244 * nss/test-netdb.c (test_network): Likewise.
31245 * resolv/inet_neta.c (inet_neta): Likewise.
31246 * resolv/ns_date.c (ns_datetosecs): Likewise.
31247 (SECS_PER_DAY): Likewise.
31248 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31249 Likewise.
31250 * resolv/res_comp.c (__putlong): Likewise.
31251 (__putshort): Likewise.
31252 (_getlong): Likewise.
31253 (_getshort): Likewise.
31254 * resolv/res_debug.c (p_time): Likewise.
31255 (precsize_ntoa): Likewise.
31256 (precsize_aton): Likewise.
31257 (latlon2ul): Likewise.
31258 (loc_aton): Likewise.
31259 (loc_ntoa): Likewise.
31260 * resolv/res_hconf.c (struct netaddr): Likewise.
31261 (_res_hconf_reorder_addrs): Likewise.
31262 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31263 (clnttcp_control): Likewise.
31264 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31265 (clntudp_control): Likewise.
31266 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31267 (clntunix_control): Likewise.
31268 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31269 * sunrpc/rpc/auth.h (union des_block): Likewise.
31270 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31271 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31272 (xdrrec_create): Likewise.
31273 (xdrrec_endofrecord): Likewise.
31274 (flush_out): Likewise.
31275 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31276 (xdrstdio_putlong): Likewise.
31277 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31278 Likewise.
31279
31280 * misc/sys/cdefs.h (__long_double_t): Remove.
31281 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31282 instead of __long_double_t,
31283 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31284
31285 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31286
31287 * benchtests/scripts/compare_strings.py: Avoid display error when
31288 running on a text terminal.
31289
31290 * benchtests/scripts/compare_strings.py (main): Add an
31291 optional -base option.
31292 (process_results): New argument base_func.
31293
31294 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31295 hardcoding memcpy.
31296 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31297 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31298
31299 2017-08-07 Andreas Schwab <schwab@suse.de>
31300
31301 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31302 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31303 * intl/Makefile ($(objpfx)tst-gettext.out)
31304 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31305 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31306 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31307 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31308 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31309 * posix/Makefile ($(objpfx)globtest.out)
31310 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31311 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31312 ($(objpfx)tst-printf.out): Likewise.
31313 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31314 ($(objpfx)tst-setcontext3.out): Likewise.
31315
31316 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31317
31318 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31319 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31320 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31321 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31322 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31323 and mptan-fma.
31324 (CFLAGS-doasin-fma.c): New.
31325 (CFLAGS-dosincos-fma.c): Likewise.
31326 (CFLAGS-e_asin-fma.c): Likewise.
31327 (CFLAGS-e_atan2-fma.c): Likewise.
31328 (CFLAGS-e_exp-fma.c): Likewise.
31329 (CFLAGS-e_log-fma.c): Likewise.
31330 (CFLAGS-e_pow-fma.c): Likewise.
31331 (CFLAGS-halfulp-fma.c): Likewise.
31332 (CFLAGS-mpa-fma.c): Likewise.
31333 (CFLAGS-mpatan-fma.c): Likewise.
31334 (CFLAGS-mpatan2-fma.c): Likewise.
31335 (CFLAGS-mpexp-fma.c): Likewise.
31336 (CFLAGS-mplog-fma.c): Likewise.
31337 (CFLAGS-mpsqrt-fma.c): Likewise.
31338 (CFLAGS-mptan-fma.c): Likewise.
31339 (CFLAGS-s_atan-fma.c): Likewise.
31340 (CFLAGS-sincos32-fma.c): Likewise.
31341 (CFLAGS-slowexp-fma.c): Likewise.
31342 (CFLAGS-slowpow-fma.c): Likewise.
31343 (CFLAGS-s_sin-fma.c): Likewise.
31344 (CFLAGS-s_tan-fma.c): Likewise.
31345 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31346 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31347 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31348 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31349 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31350 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31351 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31352 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31353 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31354 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31355 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31356 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31357 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31358 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31359 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31360 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31361 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31362 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31363 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31364 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31365 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31366 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31367 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31368 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31369 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31370 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31371 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31372 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31373 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31374 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31375 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31376
31377 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31378
31379 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31380 (min_of_type_f): New macro.
31381 (min_of_type_): Likewise.
31382 (min_of_type_l): Likewise.
31383 (min_of_type_f128): Likewise.
31384 (min_of_type): Define using __MATH_TG and taking an expression
31385 argument.
31386 (math_check_force_underflow): Pass expression instead of type to
31387 min_of_type.
31388 (math_check_force_underflow_nonneg): Likewise.
31389
31390 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31391
31392 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31393 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31394 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31395
31396 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31397
31398 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31399 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31400 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31401 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31402 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31403 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31404 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31405 memmove_chk-nonshared and memset_chk-nonshared
31406 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31407 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31408 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31409 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31410 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31411 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31412 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31413 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31414 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31415 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31416 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31417 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31418 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31419 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31420 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31421 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31422 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31423 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31424 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31425 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31426 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31427 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31428 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31429 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31430 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31431 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31432 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31433 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31434 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31435 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31436 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31437 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31438 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31439 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31440 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31441 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31442 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31443 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31444 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31445 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31446 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31447 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31448 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31449 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31450 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31451 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31452 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31453 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31454 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31455 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31456 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31457 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31458 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31459 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31460 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31461 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31462 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31463 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31464 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31465 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31466 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31467 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31468 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31469 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31470 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31471 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31472 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31473 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31474 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31475 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31476 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31477 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31478 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31479 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31480 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31481 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31482 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31483 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31484 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31485 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31486 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31487 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31488 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31489 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31490 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31491 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31492 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31493 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31494 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31495 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31496 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31497 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31498 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31499 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31500 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31501 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31502 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31503 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31504 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31505 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31506 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31507 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31508 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31509 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31510 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31511 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31512 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31513 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31514
31515 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31516
31517 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31518 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31519 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31520 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31521 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31522 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31523 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31524 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31525 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31526 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31527 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31528 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31529 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31530 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31531 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31532 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31533 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31534 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31535 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31536 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31537 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31538 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31539 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31540 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31541 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31542 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31543 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31544 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31545 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31546 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31547 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31548 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31549 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31550 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31551 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31552 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31553 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31554 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31555 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31556 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31557 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31558 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31559 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31560 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31561 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31562 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31563 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31564 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31565 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31566 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31567 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31568 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31569 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31570 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31571 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31572 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31573 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31574 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31575 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31576 ...
31577 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31578 Don't include <sysdep.h> nor <init-arch.h>.
31579 (_ZGVbN2v_cos): Removed.
31580 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31581 ...
31582 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31583 Don't include <sysdep.h> nor <init-arch.h>.
31584 (_ZGVdN4v_cos): Removed.
31585 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31586 ...
31587 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31588 Don't include <sysdep.h> nor <init-arch.h>.
31589 (_ZGVeN8v_cos): Removed.
31590 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31591 ...
31592 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31593 Don't include <sysdep.h> nor <init-arch.h>.
31594 (_ZGVbN2v_exp): Removed.
31595 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31596 ...
31597 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31598 Don't include <sysdep.h> nor <init-arch.h>.
31599 (_ZGVdN4v_exp): Removed.
31600 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31601 ...
31602 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31603 Don't include <sysdep.h> nor <init-arch.h>.
31604 (_ZGVeN8v_exp): Removed.
31605 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31606 ...
31607 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31608 Don't include <sysdep.h> nor <init-arch.h>.
31609 (_ZGVbN2v_log): Removed.
31610 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31611 ...
31612 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31613 Don't include <sysdep.h> nor <init-arch.h>.
31614 (_ZGVdN4v_log): Removed.
31615 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31616 ...
31617 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31618 Don't include <sysdep.h> nor <init-arch.h>.
31619 (_ZGVeN8v_log): Removed.
31620 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31621 ...
31622 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31623 Don't include <sysdep.h> nor <init-arch.h>.
31624 (_ZGVbN2vv_pow): Removed.
31625 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31626 ...
31627 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31628 Don't include <sysdep.h> nor <init-arch.h>.
31629 (_ZGVdN4vv_pow): Removed.
31630 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31631 ...
31632 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31633 Don't include <sysdep.h> nor <init-arch.h>.
31634 (_ZGVeN8vv_pow): Removed.
31635 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31636 ...
31637 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31638 Don't include <sysdep.h> nor <init-arch.h>.
31639 (_ZGVbN2v_sin): Removed.
31640 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31641 ...
31642 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31643 Don't include <sysdep.h> nor <init-arch.h>.
31644 (_ZGVbN4v_sin): Removed.
31645 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31646 ...
31647 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31648 Don't include <sysdep.h> nor <init-arch.h>.
31649 (_ZGVbN8v_sin): Removed.
31650 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31651 ...
31652 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31653 Don't include <sysdep.h> nor <init-arch.h>.
31654 (_ZGVbN2vvv_sincos): Removed.
31655 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31656 ...
31657 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31658 Don't include <sysdep.h> nor <init-arch.h>.
31659 (_ZGVdN4vvv_sincos): Removed.
31660 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31661 ...
31662 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31663 Don't include <sysdep.h> nor <init-arch.h>.
31664 (_ZGVeN8vvv_sincos): Removed.
31665 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31666 ...
31667 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31668 Don't include <sysdep.h> nor <init-arch.h>.
31669 (_ZGVeN16v_cosf): Removed.
31670 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31671 ...
31672 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31673 Don't include <sysdep.h> nor <init-arch.h>.
31674 (_ZGVbN4v_cosf): Removed.
31675 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31676 ...
31677 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31678 Don't include <sysdep.h> nor <init-arch.h>.
31679 (_ZGVdN8v_cosf): Removed.
31680 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31681 ...
31682 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31683 Don't include <sysdep.h> nor <init-arch.h>.
31684 (_ZGVeN16v_expf): Removed.
31685 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31686 ...
31687 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31688 Don't include <sysdep.h> nor <init-arch.h>.
31689 (_ZGVbN4v_expf): Removed.
31690 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31691 ...
31692 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31693 Don't include <sysdep.h> nor <init-arch.h>.
31694 (_ZGVdN8v_expf): Removed.
31695 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31696 ...
31697 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31698 Don't include <sysdep.h> nor <init-arch.h>.
31699 (_ZGVeN16v_logf): Removed.
31700 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31701 ...
31702 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31703 Don't include <sysdep.h> nor <init-arch.h>.
31704 (_ZGVbN4v_logf): Removed.
31705 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31706 ...
31707 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31708 Don't include <sysdep.h> nor <init-arch.h>.
31709 (_ZGVdN8v_logf): Removed.
31710 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31711 ...
31712 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31713 Don't include <sysdep.h> nor <init-arch.h>.
31714 (_ZGVeN16vv_powf): Removed.
31715 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31716 ...
31717 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31718 Don't include <sysdep.h> nor <init-arch.h>.
31719 (_ZGVbN4vv_powf): Removed.
31720 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31721 ...
31722 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31723 Don't include <sysdep.h> nor <init-arch.h>.
31724 (_ZGVdN8vv_powf): Removed.
31725 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31726 ...
31727 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31728 Don't include <sysdep.h> nor <init-arch.h>.
31729 (_ZGVeN16vvv_sincosf): Removed.
31730 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31731 ...
31732 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31733 Don't include <sysdep.h> nor <init-arch.h>.
31734 (_ZGVbN4vvv_sincosf): Removed.
31735 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31736 ...
31737 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31738 Don't include <sysdep.h> nor <init-arch.h>.
31739 (_ZGVdN8vvv_sincosf): Removed.
31740 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31741 ...
31742 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31743 Don't include <sysdep.h> nor <init-arch.h>.
31744 (_ZGVeN16v_sinf): Removed.
31745 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31746 ...
31747 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31748 Don't include <sysdep.h> nor <init-arch.h>.
31749 (_ZGVbN4v_sinf): Removed.
31750 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31751 ...
31752 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31753 Don't include <sysdep.h> nor <init-arch.h>.
31754 (_ZGVdN8v_sinf): Removed.
31755
31756 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31757
31758 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31759 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31760 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31761 s_rint-sse4_1 and s_rintf-sse4_1.
31762 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31763 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31764 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31765 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31766 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31767 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31768 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31769 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31770 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31771 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31772 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31773 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31774 (__ceil): Removed.
31775 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31776 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31777 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31778 (__ceilf): Removed.
31779 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31780 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31781 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31782 (__floor): Removed.
31783 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31784 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31785 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31786 (__floorf): Removed.
31787 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31788 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31789 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31790 (__nearbyint): Removed.
31791 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31792 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31793 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31794 (__nearbyintf): Removed.
31795 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31796 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31797 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31798 (__rint): Removed.
31799 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31800 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31801 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31802 (__rintf): Removed.
31803
31804 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31805
31806 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31807 SHARED. Avoid dynamic relocation against main in static PIE.
31808
31809 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31810
31811 [BZ #21815]
31812 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31813 (LDFLAGS-tst-prelink): Likewise.
31814
31815 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31816
31817 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31818 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31819 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31820 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31821 (INTERNAL_SYSCALL_NCS): Likewise.
31822 (LOADARGS_1): Likewise.
31823 (LOADARGS_5): Likewise.
31824 (RESTOREARGS_1): Likewise.
31825 (RESTOREARGS_5): Likewise.
31826
31827 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31828
31829 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31830 (MEMPCPY_SYMBOL): Likewise.
31831 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31832 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31833 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31834 in libc.a.
31835 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31836 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31837 Likewise.
31838 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31839 (__hidden_ver1): Don't use in libc.a.
31840 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31841 (__mempcpy): Don't create a weak alias in libc.a.
31842 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31843 libc.a.
31844 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31845 (__hidden_ver1): Don't use in libc.a.
31846
31847 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31848
31849 * config.make.in (have-insert): New.
31850 * configure.ac (libc_cv_insert): New. Set to yes if linker
31851 supports INSERT in linker script.
31852 (AC_SUBST(libc_cv_insert): New.
31853 * configure: Regenerated.
31854 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31855 if $(have-insert) == yes.
31856
31857 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31858
31859 * elf/Makefile (tests): Add vismain only if
31860 $(have-protected-data) == yes.
31861 (tests-pie): Likewise.
31862
31863 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31864
31865 [BZ #21871]
31866 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
31867 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
31868
31869 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31870
31871 [BZ #21790]
31872 * sysdeps/i386/i586/memset.S
31873 (__memset_zero_constant_len_parameter): Removed.
31874 * sysdeps/i386/i686/memset.S
31875 (__memset_zero_constant_len_parameter): Likewise.
31876 * sysdeps/i386/i686/multiarch/memset_chk.S
31877 (__memset_zero_constant_len_parameter): Likewise.
31878 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
31879 Likewise.
31880
31881 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31882
31883 * stdlib/getentropy.c (getentropy): Change return type to int.
31884
31885 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31886
31887 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
31888
31889 2017-08-03 Joseph Myers <joseph@codesourcery.com>
31890
31891 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
31892 u_intN_t.
31893 * math/s_nexttowardf.c (__nexttowardf): Likewise.
31894 * sysdeps/generic/math_private.h (ieee_double_shape_type):
31895 Likewise.
31896 (ieee_float_shape_type): Likewise.
31897 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
31898 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
31899 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
31900 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
31901 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
31902 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
31903 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
31904 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
31905 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
31906 Likewise.
31907 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
31908 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
31909 (__ieee754_yn): Likewise.
31910 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
31911 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
31912 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
31913 Likewise.
31914 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
31915 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
31916 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
31917 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
31918 (__erfc): Likewise.
31919 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
31920 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
31921 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
31922 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
31923 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
31924 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
31925 Likewise.
31926 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
31927 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
31928 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
31929 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
31930 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
31931 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
31932 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
31933 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
31934 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
31935 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
31936 (__issignaling): Likewise.
31937 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
31938 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
31939 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
31940 Likewise.
31941 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31942 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
31943 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
31944 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
31945 Likewise.
31946 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
31947 Likewise.
31948 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
31949 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
31950 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
31951 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
31952 (__erfcf): Likewise.
31953 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
31954 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
31955 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
31956 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
31957 Likewise.
31958 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
31959 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
31960 Likewise.
31961 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
31962 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
31963 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
31964 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
31965 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
31966 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
31967 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
31968 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
31969 Likewise.
31970 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
31971 Likewise.
31972 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
31973 Likewise.
31974 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
31975 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
31976 Likewise.
31977 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
31978 Likewise.
31979 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
31980 (__ieee754_ynl): Likewise.
31981 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
31982 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
31983 Likewise.
31984 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
31985 Likewise.
31986 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
31987 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
31988 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
31989 Likewise.
31990 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
31991 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
31992 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
31993 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
31994 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
31995 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
31996 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
31997 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
31998 Likewise.
31999 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32000 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32001 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32002 Likewise.
32003 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32004 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32005 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32006 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32007 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32008 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32009 Likewise.
32010 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32011 Likewise.
32012 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32013 Likewise.
32014 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32015 Likewise.
32016 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32017 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32018 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32019 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32020 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32021 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32022 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32023 Likewise.
32024 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32025 Likewise.
32026 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32027 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32028 Likewise.
32029 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32030 (__ieee754_remainderl): Likewise.
32031 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32032 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32033 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32034 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32035 Likewise.
32036 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32037 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32038 Likewise.
32039 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32040 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32041 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32042 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32043 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32044 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32045 Likewise.
32046 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32047 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32048 (__ieee754_y0l): Likewise.
32049 (pzero): Likewise.
32050 (qzero): Likewise.
32051 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32052 (__ieee754_y1l): Likewise.
32053 (pone): Likewise.
32054 (qone): Likewise.
32055 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32056 (__ieee754_ynl): Likewise.
32057 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32058 (__ieee754_lgammal_r): Likewise.
32059 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32060 Likewise.
32061 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32062 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32063 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32064 (__erfcl): Likewise.
32065 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32066 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32067 Likewise.
32068 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32069 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32070 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32071 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32072 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32073 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32074 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32075 Likewise.
32076 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32077 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32078 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32079 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32080 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32081 Likewise.
32082 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32083 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32084 Likewise.
32085 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32086 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32087 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32088 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32089 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32090
32091 2017-08-03 Florian Weimer <fweimer@redhat.com>
32092
32093 [BZ #21885]
32094 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32095 on memory allocation failure.
32096
32097 2017-08-03 Alan Modra <amodra@gmail.com>
32098
32099 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32100 tst-tlsopt-powerpc.c with function name change and no test harness.
32101 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32102 Call tls_get_addr_opt_test.
32103 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32104 (modules-names): Add mod-tlsopt-powerpc.
32105 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32106 (tst-tlsopt-powerpc): Depend on .so.
32107 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32108 define. Expand use in TLS_GD and TLS_LD.
32109
32110 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32111
32112 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32113 function.
32114 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32115
32116 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32117
32118 [BZ #21686]
32119 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32120 comparing size with that of double.
32121 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32122 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32123 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32124 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32125 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32126 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32127 unsigned __int128 types.
32128
32129 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32130
32131 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32132 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32133 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32134 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32135 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32136
32137 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32138
32139 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32140
32141 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32142
32143 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32144 of SHARED.
32145 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32146 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32147 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32148 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32149 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32150 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32151 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32152
32153 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32154
32155 [BZ #21685]
32156 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32157 bit-field expressions passed to sizeof or typeof.
32158 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32159 (__TGMATH_F128): Likewise.
32160 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32161 (__TGMATH_CF128): Likewise.
32162 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32163 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32164 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32165 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32166 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32167 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32168 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32169 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32170 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32171 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32172 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32173 (__TGMATH_UNARY_IMAG): Likewise.
32174 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32175 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32176 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32177 type.
32178 (define_vars_for_type): Handle bit_field type specially.
32179 (Tests.__init__): Declare structure with bit-field element.
32180
32181 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32182
32183 [BZ #21791]
32184 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32185 (MEMCPY_CHK): Define only if SHARED is defined.
32186 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32187 Likewise.
32188 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32189 Likewise.
32190
32191 See ChangeLog.18 for earlier changes.